]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_misc_wrap.cpp
grid/dbgrid was not getting built for inclusion with this project
[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
354 static const wxString wxPyEmptyString(wxEmptyString);
355
356
357
358 #include <limits.h>
359
360
361 SWIGSTATICINLINE(long)
362 SWIG_CheckLongInRange(long value, const char* type,
363 long min_value, long max_value)
364 {
365 if (!PyErr_Occurred()) {
366 if (value < min_value) {
367 PyObject *err =
368 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
369 value, type, min_value);
370
371 PyErr_SetObject(PyExc_OverflowError, err);
372 Py_DECREF(err);
373 } else if (value > max_value) {
374 PyObject *err =
375 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
376 value, type, max_value);
377 PyErr_SetObject(PyExc_OverflowError, err);
378 Py_DECREF(err);
379 }
380 }
381 return value;
382 }
383
384
385 SWIGSTATICINLINE(long)
386 SWIG_AsLong(PyObject * obj)
387 {
388 if (PyNumber_Check(obj))
389 return PyInt_AsLong(obj);
390 else {
391 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
392 obj->ob_type->tp_name);
393 PyErr_SetObject(PyExc_TypeError, errmsg);
394 Py_DECREF(errmsg);
395 return 0;
396 }
397 }
398
399
400 #if INT_MAX != LONG_MAX
401 SWIGSTATICINLINE(int)
402 SWIG_AsInt(PyObject *obj)
403 {
404 return swig_numeric_cast(int,
405 SWIG_CheckLongInRange(SWIG_AsLong(obj),
406 "int", INT_MIN, INT_MAX));
407 }
408 #else
409 #define SWIG_AsInt SWIG_AsLong
410 #endif
411
412
413 SWIGSTATICINLINE(int)
414 SWIG_CheckInt(PyObject* obj)
415 {
416 SWIG_AsInt(obj);
417 if (PyErr_Occurred()) {
418 PyErr_Clear();
419 return 0;
420 } else {
421 return 1;
422 }
423 }
424
425 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
426 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
427 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
428
429 SWIGSTATICINLINE(int)
430 SWIG_CheckLong(PyObject* obj)
431 {
432 SWIG_AsLong(obj);
433 if (PyErr_Occurred()) {
434 PyErr_Clear();
435 return 0;
436 } else {
437 return 1;
438 }
439 }
440
441
442 SWIGSTATICINLINE(bool)
443 SWIG_AsBool(PyObject *obj)
444 {
445 return PyObject_IsTrue(obj) ? true : false;
446 }
447
448
449 SWIGSTATICINLINE(int)
450 SWIG_CheckBool(PyObject* obj)
451 {
452 SWIG_AsBool(obj);
453 if (PyErr_Occurred()) {
454 PyErr_Clear();
455 return 0;
456 } else {
457 return 1;
458 }
459 }
460
461
462 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
463 PyObject* o2;
464 PyObject* o3;
465
466 if (!target) {
467 target = o;
468 } else if (target == Py_None) {
469 Py_DECREF(Py_None);
470 target = o;
471 } else {
472 if (!PyTuple_Check(target)) {
473 o2 = target;
474 target = PyTuple_New(1);
475 PyTuple_SetItem(target, 0, o2);
476 }
477 o3 = PyTuple_New(1);
478 PyTuple_SetItem(o3, 0, o);
479
480 o2 = target;
481 target = PySequence_Concat(o2, o3);
482 Py_DECREF(o2);
483 Py_DECREF(o3);
484 }
485 return target;
486 }
487
488
489 long wxGetFreeMemory()
490 { wxPyRaiseNotImplemented(); return 0; }
491
492
493 SWIGSTATICINLINE(unsigned long)
494 SWIG_AsUnsignedLong(PyObject * obj)
495 {
496 if (PyLong_Check(obj)) {
497 return PyLong_AsUnsignedLong(obj);
498 } else {
499 long i = SWIG_AsLong(obj);
500 if ( !PyErr_Occurred() && (i < 0)) {
501 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
502 }
503 return i;
504 }
505 }
506
507
508 SWIGSTATICINLINE(int)
509 SWIG_CheckUnsignedLong(PyObject* obj)
510 {
511 SWIG_AsUnsignedLong(obj);
512 if (PyErr_Occurred()) {
513 PyErr_Clear();
514 return 0;
515 } else {
516 return 1;
517 }
518 }
519
520
521 SWIGSTATICINLINE(PyObject* )
522 SWIG_FromUnsignedLong(unsigned long value)
523 {
524 return (value > LONG_MAX) ?
525 PyLong_FromUnsignedLong(value)
526 : PyInt_FromLong(swig_numeric_cast(long,value));
527 }
528
529
530 bool wxGetKeyState(wxKeyCode key)
531 { wxPyRaiseNotImplemented(); return False; }
532
533
534 void wxWakeUpMainThread() {}
535
536
537 bool wxThread_IsMain() {
538 #ifdef WXP_WITH_THREAD
539 return wxThread::IsMain();
540 #else
541 return True;
542 #endif
543 }
544
545
546 int wxCaret_GetBlinkTime() {
547 return wxCaret::GetBlinkTime();
548 }
549
550 void wxCaret_SetBlinkTime(int milliseconds) {
551 wxCaret::SetBlinkTime(milliseconds);
552 }
553
554
555 #include <wx/snglinst.h>
556
557
558 #ifdef __WXMSW__
559 #include <wx/msw/private.h>
560 #include <wx/dynload.h>
561 #endif
562
563
564
565 void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method)
566 {
567 #ifdef __WXMSW__
568
569 switch (method)
570 {
571 case 1:
572 // This one only partially works. Appears to be an undocumented
573 // "standard" convention that not all widgets adhear to. For
574 // example, for some widgets backgrounds or non-client areas may
575 // not be painted.
576 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
577 break;
578
579 case 2:
580 // This one works much better, except for on XP. On Win2k nearly
581 // all widgets and their children are captured correctly[**]. On
582 // XP with Themes activated most native widgets draw only
583 // partially, if at all. Without themes it works just like on
584 // Win2k.
585 //
586 // ** For example the radio buttons in a wxRadioBox are not its
587 // children by default, but you can capture it via the panel
588 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
589 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
590 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
591 PRF_ERASEBKGND | PRF_OWNED );
592 break;
593
594 case 3:
595 // This one is only defined in the latest SDK and is only
596 // available on XP. MSDN says it is similar to sending WM_PRINT
597 // so I expect that it will work similar to the above. Since it
598 // is avaialble only on XP, it can't be compiled like this and
599 // will have to be loaded dynamically.
600 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
601
602 // fall through
603
604 case 4:
605 // Use PrintWindow if available, or fallback to WM_PRINT
606 // otherwise. Unfortunately using PrintWindow is even worse than
607 // WM_PRINT. For most native widgets nothing is drawn to the dc
608 // at all, with or without Themes.
609 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
610 static bool s_triedToLoad = False;
611 static PrintWindow_t pfnPrintWindow = NULL;
612 if ( !s_triedToLoad )
613 {
614
615 s_triedToLoad = True;
616 wxDynamicLibrary dllUser32(_T("user32.dll"));
617 if ( dllUser32.IsLoaded() )
618 {
619 wxLogNull nolog; // Don't report errors here
620 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
621 }
622 }
623 if (pfnPrintWindow)
624 {
625 printf("Using PrintWindow\n");
626 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
627 }
628 else
629 {
630 printf("Using WM_PRINT\n");
631 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
632 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED );
633 }
634 }
635 #endif
636 }
637
638
639
640 #include <wx/tipdlg.h>
641
642
643 class wxPyTipProvider : public wxTipProvider {
644 public:
645 wxPyTipProvider(size_t currentTip)
646 : wxTipProvider(currentTip) {}
647
648 DEC_PYCALLBACK_STRING__pure(GetTip);
649 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
650 PYPRIVATE;
651 };
652
653 IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
654 IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
655
656
657 //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
658
659 IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer);
660
661 void wxPyTimer::Notify() {
662 bool found;
663 bool blocked = wxPyBeginBlockThreads();
664 if ((found = wxPyCBH_findCallback(m_myInst, "Notify")))
665 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()"));
666 wxPyEndBlockThreads(blocked);
667 if (! found)
668 wxTimer::Notify();
669 }
670 void wxPyTimer::base_Notify() {
671 wxTimer::Notify();
672 }
673
674
675
676 SWIGSTATICINLINE(PyObject *)
677 SWIG_FromCharPtr(const char* cptr)
678 {
679 size_t size = cptr ? strlen(cptr) : 0;
680 if (cptr) {
681 if (size > INT_MAX) {
682 return SWIG_NewPointerObj(swig_const_cast(char*,cptr),
683 SWIG_TypeQuery("char *"), 0);
684 } else {
685 return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size));
686 }
687 } else {
688 Py_INCREF(Py_None);
689 return Py_None;
690 }
691 }
692
693
694 SWIGSTATICINLINE(unsigned long)
695 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
696 unsigned long max_value)
697 {
698 if (!PyErr_Occurred()) {
699 if (value > max_value) {
700 PyObject *err =
701 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
702 value, type, max_value);
703 PyErr_SetObject(PyExc_OverflowError, err);
704 Py_DECREF(err);
705 }
706 }
707 return value;
708 }
709
710
711 #if UINT_MAX != ULONG_MAX
712 SWIGSTATICINLINE(unsigned int)
713 SWIG_AsUnsignedInt(PyObject *obj)
714 {
715 return swig_numeric_cast(unsigned int,
716 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
717 "unsigned int", UINT_MAX));
718 }
719 #else
720 #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
721 #endif
722
723
724 SWIGSTATICINLINE(int)
725 SWIG_CheckUnsignedInt(PyObject* obj)
726 {
727 SWIG_AsUnsignedInt(obj);
728 if (PyErr_Occurred()) {
729 PyErr_Clear();
730 return 0;
731 } else {
732 return 1;
733 }
734 }
735
736 wxString Log_TimeStamp(){
737 wxString msg;
738 wxLog::TimeStamp(&msg);
739 return msg;
740 }
741 void wxLog_Destroy(wxLog *self){ delete self; }
742
743 // A wxLog class that can be derived from in wxPython
744 class wxPyLog : public wxLog {
745 public:
746 wxPyLog() : wxLog() {}
747
748 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
749 bool found;
750 bool blocked = wxPyBeginBlockThreads();
751 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
752 PyObject* s = wx2PyString(szString);
753 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
754 Py_DECREF(s);
755 }
756 wxPyEndBlockThreads(blocked);
757 if (! found)
758 wxLog::DoLog(level, szString, t);
759 }
760
761 virtual void DoLogString(const wxChar *szString, time_t t) {
762 bool found;
763 bool blocked = wxPyBeginBlockThreads();
764 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
765 PyObject* s = wx2PyString(szString);
766 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
767 Py_DECREF(s);
768 }
769 wxPyEndBlockThreads(blocked);
770 if (! found)
771 wxLog::DoLogString(szString, t);
772 }
773
774 PYPRIVATE;
775 };
776
777
778
779
780 IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
781
782
783 #include <wx/joystick.h>
784
785
786 #if !wxUSE_JOYSTICK && !defined(__WXMSW__)
787 // A C++ stub class for wxJoystick for platforms that don't have it.
788 class wxJoystick : public wxObject {
789 public:
790 wxJoystick(int joystick = wxJOYSTICK1) {
791 bool blocked = wxPyBeginBlockThreads();
792 PyErr_SetString(PyExc_NotImplementedError,
793 "wxJoystick is not available on this platform.");
794 wxPyEndBlockThreads(blocked);
795 }
796 wxPoint GetPosition() { return wxPoint(-1,-1); }
797 int GetZPosition() { return -1; }
798 int GetButtonState() { return -1; }
799 int GetPOVPosition() { return -1; }
800 int GetPOVCTSPosition() { return -1; }
801 int GetRudderPosition() { return -1; }
802 int GetUPosition() { return -1; }
803 int GetVPosition() { return -1; }
804 int GetMovementThreshold() { return -1; }
805 void SetMovementThreshold(int threshold) {}
806
807 bool IsOk(void) { return False; }
808 int GetNumberJoysticks() { return -1; }
809 int GetManufacturerId() { return -1; }
810 int GetProductId() { return -1; }
811 wxString GetProductName() { return wxEmptyString; }
812 int GetXMin() { return -1; }
813 int GetYMin() { return -1; }
814 int GetZMin() { return -1; }
815 int GetXMax() { return -1; }
816 int GetYMax() { return -1; }
817 int GetZMax() { return -1; }
818 int GetNumberButtons() { return -1; }
819 int GetNumberAxes() { return -1; }
820 int GetMaxButtons() { return -1; }
821 int GetMaxAxes() { return -1; }
822 int GetPollingMin() { return -1; }
823 int GetPollingMax() { return -1; }
824 int GetRudderMin() { return -1; }
825 int GetRudderMax() { return -1; }
826 int GetUMin() { return -1; }
827 int GetUMax() { return -1; }
828 int GetVMin() { return -1; }
829 int GetVMax() { return -1; }
830
831 bool HasRudder() { return False; }
832 bool HasZ() { return False; }
833 bool HasU() { return False; }
834 bool HasV() { return False; }
835 bool HasPOV() { return False; }
836 bool HasPOV4Dir() { return False; }
837 bool HasPOVCTS() { return False; }
838
839 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; }
840 bool ReleaseCapture() { return False; }
841 };
842 #endif
843
844
845 #include <wx/sound.h>
846
847
848 #if !wxUSE_SOUND
849 // A C++ stub class for wxWave for platforms that don't have it.
850 class wxSound : public wxObject
851 {
852 public:
853 wxSound() {
854 bool blocked = wxPyBeginBlockThreads();
855 PyErr_SetString(PyExc_NotImplementedError,
856 "wxSound is not available on this platform.");
857 wxPyEndBlockThreads(blocked);
858 }
859 wxSound(const wxString&/*, bool*/) {
860 bool blocked = wxPyBeginBlockThreads();
861 PyErr_SetString(PyExc_NotImplementedError,
862 "wxSound is not available on this platform.");
863 wxPyEndBlockThreads(blocked);
864 }
865 wxSound(int, const wxByte*) {
866 bool blocked = wxPyBeginBlockThreads();
867 PyErr_SetString(PyExc_NotImplementedError,
868 "wxSound is not available on this platform.");
869 wxPyEndBlockThreads(blocked);
870 }
871
872 ~wxSound() {};
873
874 bool Create(const wxString&/*, bool*/) { return false; }
875 bool Create(int, const wxByte*) { return false; };
876 bool IsOk() { return false; };
877 bool Play(unsigned) const { return false; }
878 static bool Play(const wxString&, unsigned) { return false; }
879 static void Stop() {}
880 };
881
882 #endif
883
884 wxSound *new_wxSound(wxString const &fileName){
885 if (fileName.Length() == 0)
886 return new wxSound;
887 else
888 return new wxSound(fileName);
889 }
890 wxSound *new_wxSound(PyObject *data){
891 unsigned char* buffer; int size;
892 wxSound *sound = NULL;
893
894 bool blocked = wxPyBeginBlockThreads();
895 if (!PyArg_Parse(data, "t#", &buffer, &size))
896 goto done;
897 sound = new wxSound(size, buffer);
898 done:
899 wxPyEndBlockThreads(blocked);
900 return sound;
901 }
902 bool wxSound_CreateFromData(wxSound *self,PyObject *data){
903 #ifndef __WXMAC__
904 unsigned char* buffer;
905 int size;
906 bool rv = False;
907
908 bool blocked = wxPyBeginBlockThreads();
909 if (!PyArg_Parse(data, "t#", &buffer, &size))
910 goto done;
911 rv = self->Create(size, buffer);
912 done:
913 wxPyEndBlockThreads(blocked);
914 return rv;
915 #else
916 bool blocked = wxPyBeginBlockThreads();
917 PyErr_SetString(PyExc_NotImplementedError,
918 "Create from data is not available on this platform.");
919 wxPyEndBlockThreads(blocked);
920 return False;
921 #endif
922 }
923
924 #include <wx/mimetype.h>
925
926 PyObject *wxFileType_GetMimeType(wxFileType *self){
927 wxString str;
928 if (self->GetMimeType(&str))
929 return wx2PyString(str);
930 else
931 RETURN_NONE();
932 }
933 PyObject *wxFileType_GetMimeTypes(wxFileType *self){
934 wxArrayString arr;
935 if (self->GetMimeTypes(arr))
936 return wxArrayString2PyList_helper(arr);
937 else
938 RETURN_NONE();
939 }
940 PyObject *wxFileType_GetExtensions(wxFileType *self){
941 wxArrayString arr;
942 if (self->GetExtensions(arr))
943 return wxArrayString2PyList_helper(arr);
944 else
945 RETURN_NONE();
946 }
947 wxIcon *wxFileType_GetIcon(wxFileType *self){
948 wxIconLocation loc;
949 if (self->GetIcon(&loc))
950 return new wxIcon(loc);
951 else
952 return NULL;
953 }
954 PyObject *wxFileType_GetIconInfo(wxFileType *self){
955 wxIconLocation loc;
956 if (self->GetIcon(&loc)) {
957 wxString iconFile = loc.GetFileName();
958 int iconIndex = -1;
959
960
961
962 // Make a tuple and put the values in it
963 bool blocked = wxPyBeginBlockThreads();
964 PyObject* tuple = PyTuple_New(3);
965 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
966 wxT("wxIcon"), True));
967 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
968 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
969 wxPyEndBlockThreads(blocked);
970 return tuple;
971 }
972 else
973 RETURN_NONE();
974 }
975 PyObject *wxFileType_GetDescription(wxFileType *self){
976 wxString str;
977 if (self->GetDescription(&str))
978 return wx2PyString(str);
979 else
980 RETURN_NONE();
981 }
982 PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
983 wxString str;
984 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
985 return wx2PyString(str);
986 else
987 RETURN_NONE();
988 }
989 PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
990 wxString str;
991 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
992 return wx2PyString(str);
993 else
994 RETURN_NONE();
995 }
996 PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){
997 wxArrayString verbs;
998 wxArrayString commands;
999 if (self->GetAllCommands(&verbs, &commands,
1000 wxFileType::MessageParameters(filename, mimetype))) {
1001 bool blocked = wxPyBeginBlockThreads();
1002 PyObject* tuple = PyTuple_New(2);
1003 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
1004 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
1005 wxPyEndBlockThreads(blocked);
1006 return tuple;
1007 }
1008 else
1009 RETURN_NONE();
1010 }
1011 wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){
1012 return wxFileType::ExpandCommand(command,
1013 wxFileType::MessageParameters(filename, mimetype));
1014 }
1015 PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
1016 wxArrayString arr;
1017 self->EnumAllFileTypes(arr);
1018 return wxArrayString2PyList_helper(arr);
1019 }
1020
1021 #include <wx/artprov.h>
1022
1023 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
1024 static const wxString wxPyART_MENU(wxART_MENU);
1025 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
1026 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
1027 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
1028 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
1029 static const wxString wxPyART_OTHER(wxART_OTHER);
1030 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
1031 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
1032 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
1033 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
1034 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
1035 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
1036 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
1037 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
1038 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
1039 static const wxString wxPyART_GO_UP(wxART_GO_UP);
1040 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
1041 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
1042 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
1043 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
1044 static const wxString wxPyART_PRINT(wxART_PRINT);
1045 static const wxString wxPyART_HELP(wxART_HELP);
1046 static const wxString wxPyART_TIP(wxART_TIP);
1047 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
1048 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
1049 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
1050 static const wxString wxPyART_FOLDER(wxART_FOLDER);
1051 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
1052 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
1053 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
1054 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
1055 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
1056 static const wxString wxPyART_ERROR(wxART_ERROR);
1057 static const wxString wxPyART_QUESTION(wxART_QUESTION);
1058 static const wxString wxPyART_WARNING(wxART_WARNING);
1059 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
1060 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
1061 // Python aware wxArtProvider
1062 class wxPyArtProvider : public wxArtProvider {
1063 public:
1064
1065 virtual wxBitmap CreateBitmap(const wxArtID& id,
1066 const wxArtClient& client,
1067 const wxSize& size) {
1068 wxBitmap rval = wxNullBitmap;
1069 bool blocked = wxPyBeginBlockThreads();
1070 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
1071 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
1072 PyObject* ro;
1073 wxBitmap* ptr;
1074 PyObject* s1, *s2;
1075 s1 = wx2PyString(id);
1076 s2 = wx2PyString(client);
1077 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
1078 Py_DECREF(so);
1079 Py_DECREF(s1);
1080 Py_DECREF(s2);
1081 if (ro) {
1082 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
1083 rval = *ptr;
1084 Py_DECREF(ro);
1085 }
1086 }
1087 wxPyEndBlockThreads(blocked);
1088 return rval;
1089 }
1090
1091 PYPRIVATE;
1092 };
1093
1094 void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
1095
1096
1097
1098 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
1099 PyObject* ret = PyTuple_New(3);
1100 if (ret) {
1101 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
1102 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
1103 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
1104 }
1105 return ret;
1106 }
1107
1108 PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
1109 bool cont;
1110 long index = 0;
1111 wxString value;
1112
1113 cont = self->GetFirstGroup(value, index);
1114 return __EnumerationHelper(cont, value, index);
1115 }
1116 PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
1117 bool cont;
1118 wxString value;
1119
1120 cont = self->GetNextGroup(value, index);
1121 return __EnumerationHelper(cont, value, index);
1122 }
1123 PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
1124 bool cont;
1125 long index = 0;
1126 wxString value;
1127
1128 cont = self->GetFirstEntry(value, index);
1129 return __EnumerationHelper(cont, value, index);
1130 }
1131 PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
1132 bool cont;
1133 wxString value;
1134
1135 cont = self->GetNextEntry(value, index);
1136 return __EnumerationHelper(cont, value, index);
1137 }
1138 long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){
1139 long rv;
1140 self->Read(key, &rv, defaultVal);
1141 return rv;
1142 }
1143
1144 SWIGSTATICINLINE(double)
1145 SWIG_AsDouble(PyObject *obj)
1146 {
1147 if (PyNumber_Check(obj))
1148 return PyFloat_AsDouble(obj);
1149 else {
1150 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
1151 obj->ob_type->tp_name);
1152 PyErr_SetObject(PyExc_TypeError, errmsg);
1153 Py_DECREF(errmsg);
1154 return 0;
1155 }
1156 }
1157
1158
1159 SWIGSTATICINLINE(int)
1160 SWIG_CheckDouble(PyObject* obj)
1161 {
1162 SWIG_AsDouble(obj);
1163 if (PyErr_Occurred()) {
1164 PyErr_Clear();
1165 return 0;
1166 } else {
1167 return 1;
1168 }
1169 }
1170
1171 double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){
1172 double rv;
1173 self->Read(key, &rv, defaultVal);
1174 return rv;
1175 }
1176 bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){
1177 bool rv;
1178 self->Read(key, &rv, defaultVal);
1179 return rv;
1180 }
1181
1182 #include <wx/datetime.h>
1183
1184
1185 static const wxString wxPyDateFormatStr(wxT("%c"));
1186 static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S"));
1187
1188 #define LOCAL_TZ wxDateTime::Local
1189
1190
1191 #if UINT_MAX < LONG_MAX
1192 #define SWIG_FromUnsignedInt SWIG_FromLong
1193 #else
1194 #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
1195 #endif
1196
1197 wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
1198 wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
1199 wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
1200 wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
1201 wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
1202 bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){
1203 if (!other || !self->IsValid() || !other->IsValid()) return self < other;
1204 return (*self < *other);
1205 }
1206 bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){
1207 if (!other || !self->IsValid() || !other->IsValid()) return self <= other;
1208 return (*self <= *other);
1209 }
1210 bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){
1211 if (!other || !self->IsValid() || !other->IsValid()) return self > other;
1212 return (*self > *other);
1213 }
1214 bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){
1215 if (!other || !self->IsValid() || !other->IsValid()) return self >= other;
1216 return (*self >= *other);
1217 }
1218 bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){
1219 if (!other || !self->IsValid() || !other->IsValid()) return self == other;
1220 return (*self == *other);
1221 }
1222 bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){
1223 if (!other || !self->IsValid() || !other->IsValid()) return self != other;
1224 return (*self != *other);
1225 }
1226 int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
1227 const wxChar* rv;
1228 const wxChar* _date = date;
1229 rv = self->ParseRfc822Date(_date);
1230 if (rv == NULL) return -1;
1231 return rv - _date;
1232 }
1233 int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){
1234 const wxChar* rv;
1235 const wxChar* _date = date;
1236 rv = self->ParseFormat(_date, format, dateDef);
1237 if (rv == NULL) return -1;
1238 return rv - _date;
1239 }
1240 int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
1241 const wxChar* rv;
1242 const wxChar* _datetime = datetime;
1243 rv = self->ParseDateTime(_datetime);
1244 if (rv == NULL) return -1;
1245 return rv - _datetime;
1246 }
1247 int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
1248 const wxChar* rv;
1249 const wxChar* _date = date;
1250 rv = self->ParseDate(_date);
1251 if (rv == NULL) return -1;
1252 return rv - _date;
1253 }
1254 int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
1255 const wxChar* rv;
1256 const wxChar* _time = time;
1257 rv = self->ParseTime(_time);
1258 if (rv == NULL) return -1;
1259 return rv - _time;
1260 }
1261 wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
1262 wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
1263 wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
1264 wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
1265 bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; }
1266 bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; }
1267 bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; }
1268 bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; }
1269 bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; }
1270 bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; }
1271 wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
1272 wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
1273 wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
1274 wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
1275 bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; }
1276 bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; }
1277
1278 #include <wx/dataobj.h>
1279
1280 // Create a new class for wxPython to use
1281 class wxPyDataObjectSimple : public wxDataObjectSimple {
1282 public:
1283 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
1284 : wxDataObjectSimple(format) {}
1285
1286 DEC_PYCALLBACK_SIZET__const(GetDataSize);
1287 bool GetDataHere(void *buf) const;
1288 bool SetData(size_t len, const void *buf) const;
1289 PYPRIVATE;
1290 };
1291
1292 IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
1293
1294 bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
1295 // We need to get the data for this object and write it to buf. I think
1296 // the best way to do this for wxPython is to have the Python method
1297 // return either a string or None and then act appropriately with the
1298 // C++ version.
1299
1300 bool rval = False;
1301 bool blocked = wxPyBeginBlockThreads();
1302 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
1303 PyObject* ro;
1304 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1305 if (ro) {
1306 rval = (ro != Py_None && PyString_Check(ro));
1307 if (rval)
1308 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
1309 Py_DECREF(ro);
1310 }
1311 }
1312 wxPyEndBlockThreads(blocked);
1313 return rval;
1314 }
1315
1316 bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
1317 // For this one we simply need to make a string from buf and len
1318 // and send it to the Python method.
1319 bool rval = False;
1320 bool blocked = wxPyBeginBlockThreads();
1321 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
1322 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
1323 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
1324 Py_DECREF(data);
1325 }
1326 wxPyEndBlockThreads(blocked);
1327 return rval;
1328 }
1329
1330 // Create a new class for wxPython to use
1331 class wxPyTextDataObject : public wxTextDataObject {
1332 public:
1333 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
1334 : wxTextDataObject(text) {}
1335
1336 DEC_PYCALLBACK_SIZET__const(GetTextLength);
1337 DEC_PYCALLBACK_STRING__const(GetText);
1338 DEC_PYCALLBACK__STRING(SetText);
1339 PYPRIVATE;
1340 };
1341
1342 IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
1343 IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
1344 IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
1345
1346
1347 // Create a new class for wxPython to use
1348 class wxPyBitmapDataObject : public wxBitmapDataObject {
1349 public:
1350 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
1351 : wxBitmapDataObject(bitmap) {}
1352
1353 wxBitmap GetBitmap() const;
1354 void SetBitmap(const wxBitmap& bitmap);
1355 PYPRIVATE;
1356 };
1357
1358 wxBitmap wxPyBitmapDataObject::GetBitmap() const {
1359 wxBitmap* rval = &wxNullBitmap;
1360 bool blocked = wxPyBeginBlockThreads();
1361 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
1362 PyObject* ro;
1363 wxBitmap* ptr;
1364 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1365 if (ro) {
1366 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
1367 rval = ptr;
1368 Py_DECREF(ro);
1369 }
1370 }
1371 wxPyEndBlockThreads(blocked);
1372 return *rval;
1373 }
1374
1375 void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
1376 bool blocked = wxPyBeginBlockThreads();
1377 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
1378 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False);
1379 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
1380 Py_DECREF(bo);
1381 }
1382 wxPyEndBlockThreads(blocked);
1383 }
1384
1385 void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject *data){
1386 if (PyString_Check(data)) {
1387 // for Python we just call SetData here since we always need it to make a copy.
1388 self->SetData(PyString_Size(data), PyString_AsString(data));
1389 }
1390 else {
1391 // raise a TypeError if not a string
1392 PyErr_SetString(PyExc_TypeError, "String expected.");
1393 }
1394 }
1395 bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
1396 if (PyString_Check(data)) {
1397 return self->SetData(PyString_Size(data), PyString_AsString(data));
1398 }
1399 else {
1400 // raise a TypeError if not a string
1401 PyErr_SetString(PyExc_TypeError, "String expected.");
1402 return False;
1403 }
1404 }
1405 PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
1406 return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
1407 }
1408
1409 class wxMetafileDataObject : public wxDataObjectSimple
1410 {
1411 public:
1412 wxMetafileDataObject() { wxPyRaiseNotImplemented(); }
1413 };
1414
1415
1416 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
1417
1418
1419 IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
1420 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
1421 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
1422 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
1423 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
1424
1425
1426 class wxPyTextDropTarget : public wxTextDropTarget {
1427 public:
1428 wxPyTextDropTarget() {}
1429
1430 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
1431
1432 DEC_PYCALLBACK__(OnLeave);
1433 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1434 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1435 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1436 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1437
1438 PYPRIVATE;
1439 };
1440
1441 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
1442 IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
1443 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
1444 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
1445 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
1446 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
1447
1448
1449
1450 class wxPyFileDropTarget : public wxFileDropTarget {
1451 public:
1452 wxPyFileDropTarget() {}
1453
1454 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
1455
1456 DEC_PYCALLBACK__(OnLeave);
1457 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1458 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1459 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1460 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1461
1462 PYPRIVATE;
1463 };
1464
1465 bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
1466 const wxArrayString& filenames) {
1467 bool rval = False;
1468 bool blocked = wxPyBeginBlockThreads();
1469 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
1470 PyObject* list = wxArrayString2PyList_helper(filenames);
1471 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
1472 Py_DECREF(list);
1473 }
1474 wxPyEndBlockThreads(blocked);
1475 return rval;
1476 }
1477
1478
1479
1480 IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
1481 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
1482 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
1483 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
1484 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
1485
1486
1487
1488
1489 bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
1490
1491 #include "wx/display.h"
1492
1493 bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; }
1494 bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; }
1495 int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1496 PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){
1497 PyObject* pyList = NULL;
1498 wxArrayVideoModes arr = self->GetModes(mode);
1499 bool blocked = wxPyBeginBlockThreads();
1500 pyList = PyList_New(0);
1501 for (int i=0; i < arr.GetCount(); i++) {
1502 wxVideoMode* m = new wxVideoMode(arr.Item(i));
1503 PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true);
1504 PyList_Append(pyList, pyObj);
1505 }
1506 wxPyEndBlockThreads(blocked);
1507 return pyList;
1508 }
1509 #ifdef __cplusplus
1510 extern "C" {
1511 #endif
1512 static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1513 PyObject *resultobj;
1514 int arg1 ;
1515 wxColour result;
1516 PyObject * obj0 = 0 ;
1517 char *kwnames[] = {
1518 (char *) "index", NULL
1519 };
1520
1521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
1522 arg1 = (wxSystemColour) SWIG_AsInt(obj0);
1523 if (PyErr_Occurred()) SWIG_fail;
1524 {
1525 PyThreadState* __tstate = wxPyBeginAllowThreads();
1526 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1527
1528 wxPyEndAllowThreads(__tstate);
1529 if (PyErr_Occurred()) SWIG_fail;
1530 }
1531 {
1532 wxColour * resultptr;
1533 resultptr = new wxColour((wxColour &) result);
1534 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1535 }
1536 return resultobj;
1537 fail:
1538 return NULL;
1539 }
1540
1541
1542 static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1543 PyObject *resultobj;
1544 int arg1 ;
1545 wxFont result;
1546 PyObject * obj0 = 0 ;
1547 char *kwnames[] = {
1548 (char *) "index", NULL
1549 };
1550
1551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
1552 arg1 = (wxSystemFont) SWIG_AsInt(obj0);
1553 if (PyErr_Occurred()) SWIG_fail;
1554 {
1555 PyThreadState* __tstate = wxPyBeginAllowThreads();
1556 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1557
1558 wxPyEndAllowThreads(__tstate);
1559 if (PyErr_Occurred()) SWIG_fail;
1560 }
1561 {
1562 wxFont * resultptr;
1563 resultptr = new wxFont((wxFont &) result);
1564 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
1565 }
1566 return resultobj;
1567 fail:
1568 return NULL;
1569 }
1570
1571
1572 static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) {
1573 PyObject *resultobj;
1574 int arg1 ;
1575 int result;
1576 PyObject * obj0 = 0 ;
1577 char *kwnames[] = {
1578 (char *) "index", NULL
1579 };
1580
1581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail;
1582 arg1 = (wxSystemMetric) SWIG_AsInt(obj0);
1583 if (PyErr_Occurred()) SWIG_fail;
1584 {
1585 PyThreadState* __tstate = wxPyBeginAllowThreads();
1586 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1587
1588 wxPyEndAllowThreads(__tstate);
1589 if (PyErr_Occurred()) SWIG_fail;
1590 }
1591 resultobj = SWIG_FromInt((int)result);
1592 return resultobj;
1593 fail:
1594 return NULL;
1595 }
1596
1597
1598 static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) {
1599 PyObject *resultobj;
1600 int arg1 ;
1601 bool result;
1602 PyObject * obj0 = 0 ;
1603 char *kwnames[] = {
1604 (char *) "index", NULL
1605 };
1606
1607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
1608 arg1 = (wxSystemFeature) SWIG_AsInt(obj0);
1609 if (PyErr_Occurred()) SWIG_fail;
1610 {
1611 PyThreadState* __tstate = wxPyBeginAllowThreads();
1612 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1613
1614 wxPyEndAllowThreads(__tstate);
1615 if (PyErr_Occurred()) SWIG_fail;
1616 }
1617 {
1618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1619 }
1620 return resultobj;
1621 fail:
1622 return NULL;
1623 }
1624
1625
1626 static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1627 PyObject *resultobj;
1628 int result;
1629 char *kwnames[] = {
1630 NULL
1631 };
1632
1633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
1634 {
1635 PyThreadState* __tstate = wxPyBeginAllowThreads();
1636 result = (int)wxSystemSettings::GetScreenType();
1637
1638 wxPyEndAllowThreads(__tstate);
1639 if (PyErr_Occurred()) SWIG_fail;
1640 }
1641 resultobj = SWIG_FromInt((int)result);
1642 return resultobj;
1643 fail:
1644 return NULL;
1645 }
1646
1647
1648 static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1649 PyObject *resultobj;
1650 int arg1 ;
1651 PyObject * obj0 = 0 ;
1652 char *kwnames[] = {
1653 (char *) "screen", NULL
1654 };
1655
1656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
1657 arg1 = (wxSystemScreenType) SWIG_AsInt(obj0);
1658 if (PyErr_Occurred()) SWIG_fail;
1659 {
1660 PyThreadState* __tstate = wxPyBeginAllowThreads();
1661 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
1662
1663 wxPyEndAllowThreads(__tstate);
1664 if (PyErr_Occurred()) SWIG_fail;
1665 }
1666 Py_INCREF(Py_None); resultobj = Py_None;
1667 return resultobj;
1668 fail:
1669 return NULL;
1670 }
1671
1672
1673 static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) {
1674 PyObject *obj;
1675 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1676 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
1677 Py_INCREF(obj);
1678 return Py_BuildValue((char *)"");
1679 }
1680 static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) {
1681 PyObject *resultobj;
1682 wxSystemOptions *result;
1683 char *kwnames[] = {
1684 NULL
1685 };
1686
1687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
1688 {
1689 PyThreadState* __tstate = wxPyBeginAllowThreads();
1690 result = (wxSystemOptions *)new wxSystemOptions();
1691
1692 wxPyEndAllowThreads(__tstate);
1693 if (PyErr_Occurred()) SWIG_fail;
1694 }
1695 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
1696 return resultobj;
1697 fail:
1698 return NULL;
1699 }
1700
1701
1702 static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1703 PyObject *resultobj;
1704 wxString *arg1 = 0 ;
1705 wxString *arg2 = 0 ;
1706 bool temp1 = False ;
1707 bool temp2 = False ;
1708 PyObject * obj0 = 0 ;
1709 PyObject * obj1 = 0 ;
1710 char *kwnames[] = {
1711 (char *) "name",(char *) "value", NULL
1712 };
1713
1714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
1715 {
1716 arg1 = wxString_in_helper(obj0);
1717 if (arg1 == NULL) SWIG_fail;
1718 temp1 = True;
1719 }
1720 {
1721 arg2 = wxString_in_helper(obj1);
1722 if (arg2 == NULL) SWIG_fail;
1723 temp2 = True;
1724 }
1725 {
1726 PyThreadState* __tstate = wxPyBeginAllowThreads();
1727 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
1728
1729 wxPyEndAllowThreads(__tstate);
1730 if (PyErr_Occurred()) SWIG_fail;
1731 }
1732 Py_INCREF(Py_None); resultobj = Py_None;
1733 {
1734 if (temp1)
1735 delete arg1;
1736 }
1737 {
1738 if (temp2)
1739 delete arg2;
1740 }
1741 return resultobj;
1742 fail:
1743 {
1744 if (temp1)
1745 delete arg1;
1746 }
1747 {
1748 if (temp2)
1749 delete arg2;
1750 }
1751 return NULL;
1752 }
1753
1754
1755 static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1756 PyObject *resultobj;
1757 wxString *arg1 = 0 ;
1758 int arg2 ;
1759 bool temp1 = False ;
1760 PyObject * obj0 = 0 ;
1761 PyObject * obj1 = 0 ;
1762 char *kwnames[] = {
1763 (char *) "name",(char *) "value", NULL
1764 };
1765
1766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
1767 {
1768 arg1 = wxString_in_helper(obj0);
1769 if (arg1 == NULL) SWIG_fail;
1770 temp1 = True;
1771 }
1772 arg2 = (int) SWIG_AsInt(obj1);
1773 if (PyErr_Occurred()) SWIG_fail;
1774 {
1775 PyThreadState* __tstate = wxPyBeginAllowThreads();
1776 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
1777
1778 wxPyEndAllowThreads(__tstate);
1779 if (PyErr_Occurred()) SWIG_fail;
1780 }
1781 Py_INCREF(Py_None); resultobj = Py_None;
1782 {
1783 if (temp1)
1784 delete arg1;
1785 }
1786 return resultobj;
1787 fail:
1788 {
1789 if (temp1)
1790 delete arg1;
1791 }
1792 return NULL;
1793 }
1794
1795
1796 static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1797 PyObject *resultobj;
1798 wxString *arg1 = 0 ;
1799 wxString result;
1800 bool temp1 = False ;
1801 PyObject * obj0 = 0 ;
1802 char *kwnames[] = {
1803 (char *) "name", NULL
1804 };
1805
1806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
1807 {
1808 arg1 = wxString_in_helper(obj0);
1809 if (arg1 == NULL) SWIG_fail;
1810 temp1 = True;
1811 }
1812 {
1813 PyThreadState* __tstate = wxPyBeginAllowThreads();
1814 result = wxSystemOptions::GetOption((wxString const &)*arg1);
1815
1816 wxPyEndAllowThreads(__tstate);
1817 if (PyErr_Occurred()) SWIG_fail;
1818 }
1819 {
1820 #if wxUSE_UNICODE
1821 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1822 #else
1823 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1824 #endif
1825 }
1826 {
1827 if (temp1)
1828 delete arg1;
1829 }
1830 return resultobj;
1831 fail:
1832 {
1833 if (temp1)
1834 delete arg1;
1835 }
1836 return NULL;
1837 }
1838
1839
1840 static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1841 PyObject *resultobj;
1842 wxString *arg1 = 0 ;
1843 int result;
1844 bool temp1 = False ;
1845 PyObject * obj0 = 0 ;
1846 char *kwnames[] = {
1847 (char *) "name", NULL
1848 };
1849
1850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
1851 {
1852 arg1 = wxString_in_helper(obj0);
1853 if (arg1 == NULL) SWIG_fail;
1854 temp1 = True;
1855 }
1856 {
1857 PyThreadState* __tstate = wxPyBeginAllowThreads();
1858 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
1859
1860 wxPyEndAllowThreads(__tstate);
1861 if (PyErr_Occurred()) SWIG_fail;
1862 }
1863 resultobj = SWIG_FromInt((int)result);
1864 {
1865 if (temp1)
1866 delete arg1;
1867 }
1868 return resultobj;
1869 fail:
1870 {
1871 if (temp1)
1872 delete arg1;
1873 }
1874 return NULL;
1875 }
1876
1877
1878 static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1879 PyObject *resultobj;
1880 wxString *arg1 = 0 ;
1881 bool result;
1882 bool temp1 = False ;
1883 PyObject * obj0 = 0 ;
1884 char *kwnames[] = {
1885 (char *) "name", NULL
1886 };
1887
1888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
1889 {
1890 arg1 = wxString_in_helper(obj0);
1891 if (arg1 == NULL) SWIG_fail;
1892 temp1 = True;
1893 }
1894 {
1895 PyThreadState* __tstate = wxPyBeginAllowThreads();
1896 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
1897
1898 wxPyEndAllowThreads(__tstate);
1899 if (PyErr_Occurred()) SWIG_fail;
1900 }
1901 {
1902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1903 }
1904 {
1905 if (temp1)
1906 delete arg1;
1907 }
1908 return resultobj;
1909 fail:
1910 {
1911 if (temp1)
1912 delete arg1;
1913 }
1914 return NULL;
1915 }
1916
1917
1918 static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) {
1919 PyObject *obj;
1920 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1921 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
1922 Py_INCREF(obj);
1923 return Py_BuildValue((char *)"");
1924 }
1925 static int _wrap_FileSelectorPromptStr_set(PyObject *_val) {
1926 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
1927 return 1;
1928 }
1929
1930
1931 static PyObject *_wrap_FileSelectorPromptStr_get() {
1932 PyObject *pyobj;
1933
1934 {
1935 #if wxUSE_UNICODE
1936 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
1937 #else
1938 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
1939 #endif
1940 }
1941 return pyobj;
1942 }
1943
1944
1945 static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) {
1946 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
1947 return 1;
1948 }
1949
1950
1951 static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() {
1952 PyObject *pyobj;
1953
1954 {
1955 #if wxUSE_UNICODE
1956 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
1957 #else
1958 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
1959 #endif
1960 }
1961 return pyobj;
1962 }
1963
1964
1965 static int _wrap_DirSelectorPromptStr_set(PyObject *_val) {
1966 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
1967 return 1;
1968 }
1969
1970
1971 static PyObject *_wrap_DirSelectorPromptStr_get() {
1972 PyObject *pyobj;
1973
1974 {
1975 #if wxUSE_UNICODE
1976 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
1977 #else
1978 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
1979 #endif
1980 }
1981 return pyobj;
1982 }
1983
1984
1985 static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) {
1986 PyObject *resultobj;
1987 long result;
1988 char *kwnames[] = {
1989 NULL
1990 };
1991
1992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
1993 {
1994 PyThreadState* __tstate = wxPyBeginAllowThreads();
1995 result = (long)wxNewId();
1996
1997 wxPyEndAllowThreads(__tstate);
1998 if (PyErr_Occurred()) SWIG_fail;
1999 }
2000 resultobj = SWIG_FromLong((long)result);
2001 return resultobj;
2002 fail:
2003 return NULL;
2004 }
2005
2006
2007 static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) {
2008 PyObject *resultobj;
2009 long arg1 ;
2010 PyObject * obj0 = 0 ;
2011 char *kwnames[] = {
2012 (char *) "id", NULL
2013 };
2014
2015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
2016 arg1 = (long) SWIG_AsLong(obj0);
2017 if (PyErr_Occurred()) SWIG_fail;
2018 {
2019 PyThreadState* __tstate = wxPyBeginAllowThreads();
2020 wxRegisterId(arg1);
2021
2022 wxPyEndAllowThreads(__tstate);
2023 if (PyErr_Occurred()) SWIG_fail;
2024 }
2025 Py_INCREF(Py_None); resultobj = Py_None;
2026 return resultobj;
2027 fail:
2028 return NULL;
2029 }
2030
2031
2032 static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) {
2033 PyObject *resultobj;
2034 long result;
2035 char *kwnames[] = {
2036 NULL
2037 };
2038
2039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
2040 {
2041 PyThreadState* __tstate = wxPyBeginAllowThreads();
2042 result = (long)wxGetCurrentId();
2043
2044 wxPyEndAllowThreads(__tstate);
2045 if (PyErr_Occurred()) SWIG_fail;
2046 }
2047 resultobj = SWIG_FromLong((long)result);
2048 return resultobj;
2049 fail:
2050 return NULL;
2051 }
2052
2053
2054 static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) {
2055 PyObject *resultobj;
2056 char *kwnames[] = {
2057 NULL
2058 };
2059
2060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
2061 {
2062 PyThreadState* __tstate = wxPyBeginAllowThreads();
2063 wxBell();
2064
2065 wxPyEndAllowThreads(__tstate);
2066 if (PyErr_Occurred()) SWIG_fail;
2067 }
2068 Py_INCREF(Py_None); resultobj = Py_None;
2069 return resultobj;
2070 fail:
2071 return NULL;
2072 }
2073
2074
2075 static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2076 PyObject *resultobj;
2077 char *kwnames[] = {
2078 NULL
2079 };
2080
2081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
2082 {
2083 PyThreadState* __tstate = wxPyBeginAllowThreads();
2084 wxEndBusyCursor();
2085
2086 wxPyEndAllowThreads(__tstate);
2087 if (PyErr_Occurred()) SWIG_fail;
2088 }
2089 Py_INCREF(Py_None); resultobj = Py_None;
2090 return resultobj;
2091 fail:
2092 return NULL;
2093 }
2094
2095
2096 static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) {
2097 PyObject *resultobj;
2098 bool arg1 = (bool) True ;
2099 long result;
2100 PyObject * obj0 = 0 ;
2101 char *kwnames[] = {
2102 (char *) "resetTimer", NULL
2103 };
2104
2105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
2106 if (obj0) {
2107 arg1 = (bool) SWIG_AsBool(obj0);
2108 if (PyErr_Occurred()) SWIG_fail;
2109 }
2110 {
2111 PyThreadState* __tstate = wxPyBeginAllowThreads();
2112 result = (long)wxGetElapsedTime(arg1);
2113
2114 wxPyEndAllowThreads(__tstate);
2115 if (PyErr_Occurred()) SWIG_fail;
2116 }
2117 resultobj = SWIG_FromLong((long)result);
2118 return resultobj;
2119 fail:
2120 return NULL;
2121 }
2122
2123
2124 static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2125 PyObject *resultobj;
2126 int *arg1 = (int *) 0 ;
2127 int *arg2 = (int *) 0 ;
2128 int temp1 ;
2129 int temp2 ;
2130 char *kwnames[] = {
2131 NULL
2132 };
2133
2134 arg1 = &temp1;
2135 arg2 = &temp2;
2136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
2137 {
2138 PyThreadState* __tstate = wxPyBeginAllowThreads();
2139 wxGetMousePosition(arg1,arg2);
2140
2141 wxPyEndAllowThreads(__tstate);
2142 if (PyErr_Occurred()) SWIG_fail;
2143 }
2144 Py_INCREF(Py_None); resultobj = Py_None;
2145 {
2146 PyObject *o = PyInt_FromLong((long) (*arg1));
2147 resultobj = t_output_helper(resultobj,o);
2148 }
2149 {
2150 PyObject *o = PyInt_FromLong((long) (*arg2));
2151 resultobj = t_output_helper(resultobj,o);
2152 }
2153 return resultobj;
2154 fail:
2155 return NULL;
2156 }
2157
2158
2159 static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) {
2160 PyObject *resultobj;
2161 bool result;
2162 char *kwnames[] = {
2163 NULL
2164 };
2165
2166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
2167 {
2168 PyThreadState* __tstate = wxPyBeginAllowThreads();
2169 result = (bool)wxIsBusy();
2170
2171 wxPyEndAllowThreads(__tstate);
2172 if (PyErr_Occurred()) SWIG_fail;
2173 }
2174 {
2175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2176 }
2177 return resultobj;
2178 fail:
2179 return NULL;
2180 }
2181
2182
2183 static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
2184 PyObject *resultobj;
2185 wxString result;
2186 char *kwnames[] = {
2187 NULL
2188 };
2189
2190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
2191 {
2192 PyThreadState* __tstate = wxPyBeginAllowThreads();
2193 result = wxNow();
2194
2195 wxPyEndAllowThreads(__tstate);
2196 if (PyErr_Occurred()) SWIG_fail;
2197 }
2198 {
2199 #if wxUSE_UNICODE
2200 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2201 #else
2202 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2203 #endif
2204 }
2205 return resultobj;
2206 fail:
2207 return NULL;
2208 }
2209
2210
2211 static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) {
2212 PyObject *resultobj;
2213 wxString const &arg1_defvalue = wxPyEmptyString ;
2214 wxString *arg1 = (wxString *) &arg1_defvalue ;
2215 bool result;
2216 bool temp1 = False ;
2217 PyObject * obj0 = 0 ;
2218 char *kwnames[] = {
2219 (char *) "command", NULL
2220 };
2221
2222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
2223 if (obj0) {
2224 {
2225 arg1 = wxString_in_helper(obj0);
2226 if (arg1 == NULL) SWIG_fail;
2227 temp1 = True;
2228 }
2229 }
2230 {
2231 PyThreadState* __tstate = wxPyBeginAllowThreads();
2232 result = (bool)wxShell((wxString const &)*arg1);
2233
2234 wxPyEndAllowThreads(__tstate);
2235 if (PyErr_Occurred()) SWIG_fail;
2236 }
2237 {
2238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2239 }
2240 {
2241 if (temp1)
2242 delete arg1;
2243 }
2244 return resultobj;
2245 fail:
2246 {
2247 if (temp1)
2248 delete arg1;
2249 }
2250 return NULL;
2251 }
2252
2253
2254 static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) {
2255 PyObject *resultobj;
2256 char *kwnames[] = {
2257 NULL
2258 };
2259
2260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
2261 {
2262 PyThreadState* __tstate = wxPyBeginAllowThreads();
2263 wxStartTimer();
2264
2265 wxPyEndAllowThreads(__tstate);
2266 if (PyErr_Occurred()) SWIG_fail;
2267 }
2268 Py_INCREF(Py_None); resultobj = Py_None;
2269 return resultobj;
2270 fail:
2271 return NULL;
2272 }
2273
2274
2275 static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
2276 PyObject *resultobj;
2277 int *arg1 = (int *) 0 ;
2278 int *arg2 = (int *) 0 ;
2279 int result;
2280 int temp1 ;
2281 int temp2 ;
2282 char *kwnames[] = {
2283 NULL
2284 };
2285
2286 arg1 = &temp1;
2287 arg2 = &temp2;
2288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
2289 {
2290 PyThreadState* __tstate = wxPyBeginAllowThreads();
2291 result = (int)wxGetOsVersion(arg1,arg2);
2292
2293 wxPyEndAllowThreads(__tstate);
2294 if (PyErr_Occurred()) SWIG_fail;
2295 }
2296 resultobj = SWIG_FromInt((int)result);
2297 {
2298 PyObject *o = PyInt_FromLong((long) (*arg1));
2299 resultobj = t_output_helper(resultobj,o);
2300 }
2301 {
2302 PyObject *o = PyInt_FromLong((long) (*arg2));
2303 resultobj = t_output_helper(resultobj,o);
2304 }
2305 return resultobj;
2306 fail:
2307 return NULL;
2308 }
2309
2310
2311 static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
2312 PyObject *resultobj;
2313 wxString result;
2314 char *kwnames[] = {
2315 NULL
2316 };
2317
2318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
2319 {
2320 PyThreadState* __tstate = wxPyBeginAllowThreads();
2321 result = wxGetOsDescription();
2322
2323 wxPyEndAllowThreads(__tstate);
2324 if (PyErr_Occurred()) SWIG_fail;
2325 }
2326 {
2327 #if wxUSE_UNICODE
2328 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2329 #else
2330 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2331 #endif
2332 }
2333 return resultobj;
2334 fail:
2335 return NULL;
2336 }
2337
2338
2339 static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) {
2340 PyObject *resultobj;
2341 long result;
2342 char *kwnames[] = {
2343 NULL
2344 };
2345
2346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
2347 {
2348 PyThreadState* __tstate = wxPyBeginAllowThreads();
2349 result = (long)wxGetFreeMemory();
2350
2351 wxPyEndAllowThreads(__tstate);
2352 if (PyErr_Occurred()) SWIG_fail;
2353 }
2354 resultobj = SWIG_FromLong((long)result);
2355 return resultobj;
2356 fail:
2357 return NULL;
2358 }
2359
2360
2361 static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) {
2362 PyObject *resultobj;
2363 int arg1 ;
2364 bool result;
2365 PyObject * obj0 = 0 ;
2366 char *kwnames[] = {
2367 (char *) "wFlags", NULL
2368 };
2369
2370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
2371 arg1 = (wxShutdownFlags) SWIG_AsInt(obj0);
2372 if (PyErr_Occurred()) SWIG_fail;
2373 {
2374 PyThreadState* __tstate = wxPyBeginAllowThreads();
2375 result = (bool)wxShutdown((wxShutdownFlags )arg1);
2376
2377 wxPyEndAllowThreads(__tstate);
2378 if (PyErr_Occurred()) SWIG_fail;
2379 }
2380 {
2381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2382 }
2383 return resultobj;
2384 fail:
2385 return NULL;
2386 }
2387
2388
2389 static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2390 PyObject *resultobj;
2391 int arg1 ;
2392 PyObject * obj0 = 0 ;
2393 char *kwnames[] = {
2394 (char *) "secs", NULL
2395 };
2396
2397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
2398 arg1 = (int) SWIG_AsInt(obj0);
2399 if (PyErr_Occurred()) SWIG_fail;
2400 {
2401 PyThreadState* __tstate = wxPyBeginAllowThreads();
2402 wxSleep(arg1);
2403
2404 wxPyEndAllowThreads(__tstate);
2405 if (PyErr_Occurred()) SWIG_fail;
2406 }
2407 Py_INCREF(Py_None); resultobj = Py_None;
2408 return resultobj;
2409 fail:
2410 return NULL;
2411 }
2412
2413
2414 static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2415 PyObject *resultobj;
2416 unsigned long arg1 ;
2417 PyObject * obj0 = 0 ;
2418 char *kwnames[] = {
2419 (char *) "milliseconds", NULL
2420 };
2421
2422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail;
2423 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
2424 if (PyErr_Occurred()) SWIG_fail;
2425 {
2426 PyThreadState* __tstate = wxPyBeginAllowThreads();
2427 wxUsleep(arg1);
2428
2429 wxPyEndAllowThreads(__tstate);
2430 if (PyErr_Occurred()) SWIG_fail;
2431 }
2432 Py_INCREF(Py_None); resultobj = Py_None;
2433 return resultobj;
2434 fail:
2435 return NULL;
2436 }
2437
2438
2439 static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
2440 PyObject *resultobj;
2441 bool arg1 ;
2442 PyObject * obj0 = 0 ;
2443 char *kwnames[] = {
2444 (char *) "enable", NULL
2445 };
2446
2447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
2448 arg1 = (bool) SWIG_AsBool(obj0);
2449 if (PyErr_Occurred()) SWIG_fail;
2450 {
2451 PyThreadState* __tstate = wxPyBeginAllowThreads();
2452 wxEnableTopLevelWindows(arg1);
2453
2454 wxPyEndAllowThreads(__tstate);
2455 if (PyErr_Occurred()) SWIG_fail;
2456 }
2457 Py_INCREF(Py_None); resultobj = Py_None;
2458 return resultobj;
2459 fail:
2460 return NULL;
2461 }
2462
2463
2464 static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) {
2465 PyObject *resultobj;
2466 wxString *arg1 = 0 ;
2467 wxString result;
2468 bool temp1 = False ;
2469 PyObject * obj0 = 0 ;
2470 char *kwnames[] = {
2471 (char *) "in", NULL
2472 };
2473
2474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2475 {
2476 arg1 = wxString_in_helper(obj0);
2477 if (arg1 == NULL) SWIG_fail;
2478 temp1 = True;
2479 }
2480 {
2481 PyThreadState* __tstate = wxPyBeginAllowThreads();
2482 result = wxStripMenuCodes((wxString const &)*arg1);
2483
2484 wxPyEndAllowThreads(__tstate);
2485 if (PyErr_Occurred()) SWIG_fail;
2486 }
2487 {
2488 #if wxUSE_UNICODE
2489 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2490 #else
2491 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2492 #endif
2493 }
2494 {
2495 if (temp1)
2496 delete arg1;
2497 }
2498 return resultobj;
2499 fail:
2500 {
2501 if (temp1)
2502 delete arg1;
2503 }
2504 return NULL;
2505 }
2506
2507
2508 static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) {
2509 PyObject *resultobj;
2510 wxString result;
2511 char *kwnames[] = {
2512 NULL
2513 };
2514
2515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
2516 {
2517 PyThreadState* __tstate = wxPyBeginAllowThreads();
2518 result = wxGetEmailAddress();
2519
2520 wxPyEndAllowThreads(__tstate);
2521 if (PyErr_Occurred()) SWIG_fail;
2522 }
2523 {
2524 #if wxUSE_UNICODE
2525 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2526 #else
2527 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2528 #endif
2529 }
2530 return resultobj;
2531 fail:
2532 return NULL;
2533 }
2534
2535
2536 static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2537 PyObject *resultobj;
2538 wxString result;
2539 char *kwnames[] = {
2540 NULL
2541 };
2542
2543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
2544 {
2545 PyThreadState* __tstate = wxPyBeginAllowThreads();
2546 result = wxGetHostName();
2547
2548 wxPyEndAllowThreads(__tstate);
2549 if (PyErr_Occurred()) SWIG_fail;
2550 }
2551 {
2552 #if wxUSE_UNICODE
2553 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2554 #else
2555 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2556 #endif
2557 }
2558 return resultobj;
2559 fail:
2560 return NULL;
2561 }
2562
2563
2564 static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2565 PyObject *resultobj;
2566 wxString result;
2567 char *kwnames[] = {
2568 NULL
2569 };
2570
2571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
2572 {
2573 PyThreadState* __tstate = wxPyBeginAllowThreads();
2574 result = wxGetFullHostName();
2575
2576 wxPyEndAllowThreads(__tstate);
2577 if (PyErr_Occurred()) SWIG_fail;
2578 }
2579 {
2580 #if wxUSE_UNICODE
2581 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2582 #else
2583 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2584 #endif
2585 }
2586 return resultobj;
2587 fail:
2588 return NULL;
2589 }
2590
2591
2592 static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) {
2593 PyObject *resultobj;
2594 wxString result;
2595 char *kwnames[] = {
2596 NULL
2597 };
2598
2599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
2600 {
2601 PyThreadState* __tstate = wxPyBeginAllowThreads();
2602 result = wxGetUserId();
2603
2604 wxPyEndAllowThreads(__tstate);
2605 if (PyErr_Occurred()) SWIG_fail;
2606 }
2607 {
2608 #if wxUSE_UNICODE
2609 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2610 #else
2611 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2612 #endif
2613 }
2614 return resultobj;
2615 fail:
2616 return NULL;
2617 }
2618
2619
2620 static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) {
2621 PyObject *resultobj;
2622 wxString result;
2623 char *kwnames[] = {
2624 NULL
2625 };
2626
2627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
2628 {
2629 PyThreadState* __tstate = wxPyBeginAllowThreads();
2630 result = wxGetUserName();
2631
2632 wxPyEndAllowThreads(__tstate);
2633 if (PyErr_Occurred()) SWIG_fail;
2634 }
2635 {
2636 #if wxUSE_UNICODE
2637 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2638 #else
2639 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2640 #endif
2641 }
2642 return resultobj;
2643 fail:
2644 return NULL;
2645 }
2646
2647
2648 static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) {
2649 PyObject *resultobj;
2650 wxString result;
2651 char *kwnames[] = {
2652 NULL
2653 };
2654
2655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
2656 {
2657 PyThreadState* __tstate = wxPyBeginAllowThreads();
2658 result = wxGetHomeDir();
2659
2660 wxPyEndAllowThreads(__tstate);
2661 if (PyErr_Occurred()) SWIG_fail;
2662 }
2663 {
2664 #if wxUSE_UNICODE
2665 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2666 #else
2667 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2668 #endif
2669 }
2670 return resultobj;
2671 fail:
2672 return NULL;
2673 }
2674
2675
2676 static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) {
2677 PyObject *resultobj;
2678 wxString const &arg1_defvalue = wxPyEmptyString ;
2679 wxString *arg1 = (wxString *) &arg1_defvalue ;
2680 wxString result;
2681 bool temp1 = False ;
2682 PyObject * obj0 = 0 ;
2683 char *kwnames[] = {
2684 (char *) "user", NULL
2685 };
2686
2687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
2688 if (obj0) {
2689 {
2690 arg1 = wxString_in_helper(obj0);
2691 if (arg1 == NULL) SWIG_fail;
2692 temp1 = True;
2693 }
2694 }
2695 {
2696 PyThreadState* __tstate = wxPyBeginAllowThreads();
2697 result = wxGetUserHome((wxString const &)*arg1);
2698
2699 wxPyEndAllowThreads(__tstate);
2700 if (PyErr_Occurred()) SWIG_fail;
2701 }
2702 {
2703 #if wxUSE_UNICODE
2704 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2705 #else
2706 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2707 #endif
2708 }
2709 {
2710 if (temp1)
2711 delete arg1;
2712 }
2713 return resultobj;
2714 fail:
2715 {
2716 if (temp1)
2717 delete arg1;
2718 }
2719 return NULL;
2720 }
2721
2722
2723 static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) {
2724 PyObject *resultobj;
2725 unsigned long result;
2726 char *kwnames[] = {
2727 NULL
2728 };
2729
2730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
2731 {
2732 PyThreadState* __tstate = wxPyBeginAllowThreads();
2733 result = (unsigned long)wxGetProcessId();
2734
2735 wxPyEndAllowThreads(__tstate);
2736 if (PyErr_Occurred()) SWIG_fail;
2737 }
2738 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
2739 return resultobj;
2740 fail:
2741 return NULL;
2742 }
2743
2744
2745 static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) {
2746 PyObject *resultobj;
2747 char *kwnames[] = {
2748 NULL
2749 };
2750
2751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
2752 {
2753 PyThreadState* __tstate = wxPyBeginAllowThreads();
2754 wxTrap();
2755
2756 wxPyEndAllowThreads(__tstate);
2757 if (PyErr_Occurred()) SWIG_fail;
2758 }
2759 Py_INCREF(Py_None); resultobj = Py_None;
2760 return resultobj;
2761 fail:
2762 return NULL;
2763 }
2764
2765
2766 static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2767 PyObject *resultobj;
2768 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
2769 wxString *arg1 = (wxString *) &arg1_defvalue ;
2770 wxString const &arg2_defvalue = wxPyEmptyString ;
2771 wxString *arg2 = (wxString *) &arg2_defvalue ;
2772 wxString const &arg3_defvalue = wxPyEmptyString ;
2773 wxString *arg3 = (wxString *) &arg3_defvalue ;
2774 wxString const &arg4_defvalue = wxPyEmptyString ;
2775 wxString *arg4 = (wxString *) &arg4_defvalue ;
2776 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
2777 wxString *arg5 = (wxString *) &arg5_defvalue ;
2778 int arg6 = (int) 0 ;
2779 wxWindow *arg7 = (wxWindow *) NULL ;
2780 int arg8 = (int) -1 ;
2781 int arg9 = (int) -1 ;
2782 wxString result;
2783 bool temp1 = False ;
2784 bool temp2 = False ;
2785 bool temp3 = False ;
2786 bool temp4 = False ;
2787 bool temp5 = False ;
2788 PyObject * obj0 = 0 ;
2789 PyObject * obj1 = 0 ;
2790 PyObject * obj2 = 0 ;
2791 PyObject * obj3 = 0 ;
2792 PyObject * obj4 = 0 ;
2793 PyObject * obj5 = 0 ;
2794 PyObject * obj6 = 0 ;
2795 PyObject * obj7 = 0 ;
2796 PyObject * obj8 = 0 ;
2797 char *kwnames[] = {
2798 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
2799 };
2800
2801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2802 if (obj0) {
2803 {
2804 arg1 = wxString_in_helper(obj0);
2805 if (arg1 == NULL) SWIG_fail;
2806 temp1 = True;
2807 }
2808 }
2809 if (obj1) {
2810 {
2811 arg2 = wxString_in_helper(obj1);
2812 if (arg2 == NULL) SWIG_fail;
2813 temp2 = True;
2814 }
2815 }
2816 if (obj2) {
2817 {
2818 arg3 = wxString_in_helper(obj2);
2819 if (arg3 == NULL) SWIG_fail;
2820 temp3 = True;
2821 }
2822 }
2823 if (obj3) {
2824 {
2825 arg4 = wxString_in_helper(obj3);
2826 if (arg4 == NULL) SWIG_fail;
2827 temp4 = True;
2828 }
2829 }
2830 if (obj4) {
2831 {
2832 arg5 = wxString_in_helper(obj4);
2833 if (arg5 == NULL) SWIG_fail;
2834 temp5 = True;
2835 }
2836 }
2837 if (obj5) {
2838 arg6 = (int) SWIG_AsInt(obj5);
2839 if (PyErr_Occurred()) SWIG_fail;
2840 }
2841 if (obj6) {
2842 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
2843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2844 }
2845 if (obj7) {
2846 arg8 = (int) SWIG_AsInt(obj7);
2847 if (PyErr_Occurred()) SWIG_fail;
2848 }
2849 if (obj8) {
2850 arg9 = (int) SWIG_AsInt(obj8);
2851 if (PyErr_Occurred()) SWIG_fail;
2852 }
2853 {
2854 PyThreadState* __tstate = wxPyBeginAllowThreads();
2855 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
2856
2857 wxPyEndAllowThreads(__tstate);
2858 if (PyErr_Occurred()) SWIG_fail;
2859 }
2860 {
2861 #if wxUSE_UNICODE
2862 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2863 #else
2864 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2865 #endif
2866 }
2867 {
2868 if (temp1)
2869 delete arg1;
2870 }
2871 {
2872 if (temp2)
2873 delete arg2;
2874 }
2875 {
2876 if (temp3)
2877 delete arg3;
2878 }
2879 {
2880 if (temp4)
2881 delete arg4;
2882 }
2883 {
2884 if (temp5)
2885 delete arg5;
2886 }
2887 return resultobj;
2888 fail:
2889 {
2890 if (temp1)
2891 delete arg1;
2892 }
2893 {
2894 if (temp2)
2895 delete arg2;
2896 }
2897 {
2898 if (temp3)
2899 delete arg3;
2900 }
2901 {
2902 if (temp4)
2903 delete arg4;
2904 }
2905 {
2906 if (temp5)
2907 delete arg5;
2908 }
2909 return NULL;
2910 }
2911
2912
2913 static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2914 PyObject *resultobj;
2915 wxString *arg1 = 0 ;
2916 wxString *arg2 = 0 ;
2917 wxString const &arg3_defvalue = wxPyEmptyString ;
2918 wxString *arg3 = (wxString *) &arg3_defvalue ;
2919 wxWindow *arg4 = (wxWindow *) NULL ;
2920 wxString result;
2921 bool temp1 = False ;
2922 bool temp2 = False ;
2923 bool temp3 = False ;
2924 PyObject * obj0 = 0 ;
2925 PyObject * obj1 = 0 ;
2926 PyObject * obj2 = 0 ;
2927 PyObject * obj3 = 0 ;
2928 char *kwnames[] = {
2929 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
2930 };
2931
2932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2933 {
2934 arg1 = wxString_in_helper(obj0);
2935 if (arg1 == NULL) SWIG_fail;
2936 temp1 = True;
2937 }
2938 {
2939 arg2 = wxString_in_helper(obj1);
2940 if (arg2 == NULL) SWIG_fail;
2941 temp2 = True;
2942 }
2943 if (obj2) {
2944 {
2945 arg3 = wxString_in_helper(obj2);
2946 if (arg3 == NULL) SWIG_fail;
2947 temp3 = True;
2948 }
2949 }
2950 if (obj3) {
2951 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
2952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2953 }
2954 {
2955 PyThreadState* __tstate = wxPyBeginAllowThreads();
2956 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
2957
2958 wxPyEndAllowThreads(__tstate);
2959 if (PyErr_Occurred()) SWIG_fail;
2960 }
2961 {
2962 #if wxUSE_UNICODE
2963 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2964 #else
2965 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2966 #endif
2967 }
2968 {
2969 if (temp1)
2970 delete arg1;
2971 }
2972 {
2973 if (temp2)
2974 delete arg2;
2975 }
2976 {
2977 if (temp3)
2978 delete arg3;
2979 }
2980 return resultobj;
2981 fail:
2982 {
2983 if (temp1)
2984 delete arg1;
2985 }
2986 {
2987 if (temp2)
2988 delete arg2;
2989 }
2990 {
2991 if (temp3)
2992 delete arg3;
2993 }
2994 return NULL;
2995 }
2996
2997
2998 static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2999 PyObject *resultobj;
3000 wxString *arg1 = 0 ;
3001 wxString *arg2 = 0 ;
3002 wxString const &arg3_defvalue = wxPyEmptyString ;
3003 wxString *arg3 = (wxString *) &arg3_defvalue ;
3004 wxWindow *arg4 = (wxWindow *) NULL ;
3005 wxString result;
3006 bool temp1 = False ;
3007 bool temp2 = False ;
3008 bool temp3 = False ;
3009 PyObject * obj0 = 0 ;
3010 PyObject * obj1 = 0 ;
3011 PyObject * obj2 = 0 ;
3012 PyObject * obj3 = 0 ;
3013 char *kwnames[] = {
3014 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3015 };
3016
3017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3018 {
3019 arg1 = wxString_in_helper(obj0);
3020 if (arg1 == NULL) SWIG_fail;
3021 temp1 = True;
3022 }
3023 {
3024 arg2 = wxString_in_helper(obj1);
3025 if (arg2 == NULL) SWIG_fail;
3026 temp2 = True;
3027 }
3028 if (obj2) {
3029 {
3030 arg3 = wxString_in_helper(obj2);
3031 if (arg3 == NULL) SWIG_fail;
3032 temp3 = True;
3033 }
3034 }
3035 if (obj3) {
3036 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3038 }
3039 {
3040 PyThreadState* __tstate = wxPyBeginAllowThreads();
3041 result = wxSaveFileSelector((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_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3084 PyObject *resultobj;
3085 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
3086 wxString *arg1 = (wxString *) &arg1_defvalue ;
3087 wxString const &arg2_defvalue = wxPyEmptyString ;
3088 wxString *arg2 = (wxString *) &arg2_defvalue ;
3089 long arg3 = (long) wxDD_DEFAULT_STYLE ;
3090 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3091 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3092 wxWindow *arg5 = (wxWindow *) NULL ;
3093 wxString result;
3094 bool temp1 = False ;
3095 bool temp2 = False ;
3096 wxPoint temp4 ;
3097 PyObject * obj0 = 0 ;
3098 PyObject * obj1 = 0 ;
3099 PyObject * obj2 = 0 ;
3100 PyObject * obj3 = 0 ;
3101 PyObject * obj4 = 0 ;
3102 char *kwnames[] = {
3103 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
3104 };
3105
3106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
3107 if (obj0) {
3108 {
3109 arg1 = wxString_in_helper(obj0);
3110 if (arg1 == NULL) SWIG_fail;
3111 temp1 = True;
3112 }
3113 }
3114 if (obj1) {
3115 {
3116 arg2 = wxString_in_helper(obj1);
3117 if (arg2 == NULL) SWIG_fail;
3118 temp2 = True;
3119 }
3120 }
3121 if (obj2) {
3122 arg3 = (long) SWIG_AsLong(obj2);
3123 if (PyErr_Occurred()) SWIG_fail;
3124 }
3125 if (obj3) {
3126 {
3127 arg4 = &temp4;
3128 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3129 }
3130 }
3131 if (obj4) {
3132 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3134 }
3135 {
3136 PyThreadState* __tstate = wxPyBeginAllowThreads();
3137 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
3138
3139 wxPyEndAllowThreads(__tstate);
3140 if (PyErr_Occurred()) SWIG_fail;
3141 }
3142 {
3143 #if wxUSE_UNICODE
3144 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3145 #else
3146 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3147 #endif
3148 }
3149 {
3150 if (temp1)
3151 delete arg1;
3152 }
3153 {
3154 if (temp2)
3155 delete arg2;
3156 }
3157 return resultobj;
3158 fail:
3159 {
3160 if (temp1)
3161 delete arg1;
3162 }
3163 {
3164 if (temp2)
3165 delete arg2;
3166 }
3167 return NULL;
3168 }
3169
3170
3171 static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3172 PyObject *resultobj;
3173 wxString *arg1 = 0 ;
3174 wxString const &arg2_defvalue = wxPyEmptyString ;
3175 wxString *arg2 = (wxString *) &arg2_defvalue ;
3176 wxString const &arg3_defvalue = wxPyEmptyString ;
3177 wxString *arg3 = (wxString *) &arg3_defvalue ;
3178 wxWindow *arg4 = (wxWindow *) NULL ;
3179 int arg5 = (int) -1 ;
3180 int arg6 = (int) -1 ;
3181 bool arg7 = (bool) True ;
3182 wxString result;
3183 bool temp1 = False ;
3184 bool temp2 = False ;
3185 bool temp3 = False ;
3186 PyObject * obj0 = 0 ;
3187 PyObject * obj1 = 0 ;
3188 PyObject * obj2 = 0 ;
3189 PyObject * obj3 = 0 ;
3190 PyObject * obj4 = 0 ;
3191 PyObject * obj5 = 0 ;
3192 PyObject * obj6 = 0 ;
3193 char *kwnames[] = {
3194 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
3195 };
3196
3197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3198 {
3199 arg1 = wxString_in_helper(obj0);
3200 if (arg1 == NULL) SWIG_fail;
3201 temp1 = True;
3202 }
3203 if (obj1) {
3204 {
3205 arg2 = wxString_in_helper(obj1);
3206 if (arg2 == NULL) SWIG_fail;
3207 temp2 = True;
3208 }
3209 }
3210 if (obj2) {
3211 {
3212 arg3 = wxString_in_helper(obj2);
3213 if (arg3 == NULL) SWIG_fail;
3214 temp3 = True;
3215 }
3216 }
3217 if (obj3) {
3218 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3220 }
3221 if (obj4) {
3222 arg5 = (int) SWIG_AsInt(obj4);
3223 if (PyErr_Occurred()) SWIG_fail;
3224 }
3225 if (obj5) {
3226 arg6 = (int) SWIG_AsInt(obj5);
3227 if (PyErr_Occurred()) SWIG_fail;
3228 }
3229 if (obj6) {
3230 arg7 = (bool) SWIG_AsBool(obj6);
3231 if (PyErr_Occurred()) SWIG_fail;
3232 }
3233 {
3234 PyThreadState* __tstate = wxPyBeginAllowThreads();
3235 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
3236
3237 wxPyEndAllowThreads(__tstate);
3238 if (PyErr_Occurred()) SWIG_fail;
3239 }
3240 {
3241 #if wxUSE_UNICODE
3242 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3243 #else
3244 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3245 #endif
3246 }
3247 {
3248 if (temp1)
3249 delete arg1;
3250 }
3251 {
3252 if (temp2)
3253 delete arg2;
3254 }
3255 {
3256 if (temp3)
3257 delete arg3;
3258 }
3259 return resultobj;
3260 fail:
3261 {
3262 if (temp1)
3263 delete arg1;
3264 }
3265 {
3266 if (temp2)
3267 delete arg2;
3268 }
3269 {
3270 if (temp3)
3271 delete arg3;
3272 }
3273 return NULL;
3274 }
3275
3276
3277 static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3278 PyObject *resultobj;
3279 wxString *arg1 = 0 ;
3280 wxString const &arg2_defvalue = wxPyEmptyString ;
3281 wxString *arg2 = (wxString *) &arg2_defvalue ;
3282 wxString const &arg3_defvalue = wxPyEmptyString ;
3283 wxString *arg3 = (wxString *) &arg3_defvalue ;
3284 wxWindow *arg4 = (wxWindow *) NULL ;
3285 wxString result;
3286 bool temp1 = False ;
3287 bool temp2 = False ;
3288 bool temp3 = False ;
3289 PyObject * obj0 = 0 ;
3290 PyObject * obj1 = 0 ;
3291 PyObject * obj2 = 0 ;
3292 PyObject * obj3 = 0 ;
3293 char *kwnames[] = {
3294 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
3295 };
3296
3297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3298 {
3299 arg1 = wxString_in_helper(obj0);
3300 if (arg1 == NULL) SWIG_fail;
3301 temp1 = True;
3302 }
3303 if (obj1) {
3304 {
3305 arg2 = wxString_in_helper(obj1);
3306 if (arg2 == NULL) SWIG_fail;
3307 temp2 = True;
3308 }
3309 }
3310 if (obj2) {
3311 {
3312 arg3 = wxString_in_helper(obj2);
3313 if (arg3 == NULL) SWIG_fail;
3314 temp3 = True;
3315 }
3316 }
3317 if (obj3) {
3318 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3320 }
3321 {
3322 PyThreadState* __tstate = wxPyBeginAllowThreads();
3323 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
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_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
3366 PyObject *resultobj;
3367 wxString *arg1 = 0 ;
3368 wxString *arg2 = 0 ;
3369 int arg3 ;
3370 wxString *arg4 = (wxString *) 0 ;
3371 wxWindow *arg5 = (wxWindow *) NULL ;
3372 int arg6 = (int) -1 ;
3373 int arg7 = (int) -1 ;
3374 bool arg8 = (bool) True ;
3375 int arg9 = (int) 150 ;
3376 int arg10 = (int) 200 ;
3377 wxString result;
3378 bool temp1 = False ;
3379 bool temp2 = False ;
3380 PyObject * obj0 = 0 ;
3381 PyObject * obj1 = 0 ;
3382 PyObject * obj2 = 0 ;
3383 PyObject * obj3 = 0 ;
3384 PyObject * obj4 = 0 ;
3385 PyObject * obj5 = 0 ;
3386 PyObject * obj6 = 0 ;
3387 PyObject * obj7 = 0 ;
3388 PyObject * obj8 = 0 ;
3389 char *kwnames[] = {
3390 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3391 };
3392
3393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3394 {
3395 arg1 = wxString_in_helper(obj0);
3396 if (arg1 == NULL) SWIG_fail;
3397 temp1 = True;
3398 }
3399 {
3400 arg2 = wxString_in_helper(obj1);
3401 if (arg2 == NULL) SWIG_fail;
3402 temp2 = True;
3403 }
3404 {
3405 arg3 = PyList_Size(obj2);
3406 arg4 = wxString_LIST_helper(obj2);
3407 if (arg4 == NULL) SWIG_fail;
3408 }
3409 if (obj3) {
3410 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3412 }
3413 if (obj4) {
3414 arg6 = (int) SWIG_AsInt(obj4);
3415 if (PyErr_Occurred()) SWIG_fail;
3416 }
3417 if (obj5) {
3418 arg7 = (int) SWIG_AsInt(obj5);
3419 if (PyErr_Occurred()) SWIG_fail;
3420 }
3421 if (obj6) {
3422 arg8 = (bool) SWIG_AsBool(obj6);
3423 if (PyErr_Occurred()) SWIG_fail;
3424 }
3425 if (obj7) {
3426 arg9 = (int) SWIG_AsInt(obj7);
3427 if (PyErr_Occurred()) SWIG_fail;
3428 }
3429 if (obj8) {
3430 arg10 = (int) SWIG_AsInt(obj8);
3431 if (PyErr_Occurred()) SWIG_fail;
3432 }
3433 {
3434 PyThreadState* __tstate = wxPyBeginAllowThreads();
3435 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3436
3437 wxPyEndAllowThreads(__tstate);
3438 if (PyErr_Occurred()) SWIG_fail;
3439 }
3440 {
3441 #if wxUSE_UNICODE
3442 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3443 #else
3444 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3445 #endif
3446 }
3447 {
3448 if (temp1)
3449 delete arg1;
3450 }
3451 {
3452 if (temp2)
3453 delete arg2;
3454 }
3455 {
3456 if (arg4) delete [] arg4;
3457 }
3458 return resultobj;
3459 fail:
3460 {
3461 if (temp1)
3462 delete arg1;
3463 }
3464 {
3465 if (temp2)
3466 delete arg2;
3467 }
3468 {
3469 if (arg4) delete [] arg4;
3470 }
3471 return NULL;
3472 }
3473
3474
3475 static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3476 PyObject *resultobj;
3477 wxString *arg1 = 0 ;
3478 wxString *arg2 = 0 ;
3479 int arg3 ;
3480 wxString *arg4 = (wxString *) 0 ;
3481 wxWindow *arg5 = (wxWindow *) NULL ;
3482 int arg6 = (int) -1 ;
3483 int arg7 = (int) -1 ;
3484 bool arg8 = (bool) True ;
3485 int arg9 = (int) 150 ;
3486 int arg10 = (int) 200 ;
3487 int result;
3488 bool temp1 = False ;
3489 bool temp2 = False ;
3490 PyObject * obj0 = 0 ;
3491 PyObject * obj1 = 0 ;
3492 PyObject * obj2 = 0 ;
3493 PyObject * obj3 = 0 ;
3494 PyObject * obj4 = 0 ;
3495 PyObject * obj5 = 0 ;
3496 PyObject * obj6 = 0 ;
3497 PyObject * obj7 = 0 ;
3498 PyObject * obj8 = 0 ;
3499 char *kwnames[] = {
3500 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3501 };
3502
3503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3504 {
3505 arg1 = wxString_in_helper(obj0);
3506 if (arg1 == NULL) SWIG_fail;
3507 temp1 = True;
3508 }
3509 {
3510 arg2 = wxString_in_helper(obj1);
3511 if (arg2 == NULL) SWIG_fail;
3512 temp2 = True;
3513 }
3514 {
3515 arg3 = PyList_Size(obj2);
3516 arg4 = wxString_LIST_helper(obj2);
3517 if (arg4 == NULL) SWIG_fail;
3518 }
3519 if (obj3) {
3520 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3522 }
3523 if (obj4) {
3524 arg6 = (int) SWIG_AsInt(obj4);
3525 if (PyErr_Occurred()) SWIG_fail;
3526 }
3527 if (obj5) {
3528 arg7 = (int) SWIG_AsInt(obj5);
3529 if (PyErr_Occurred()) SWIG_fail;
3530 }
3531 if (obj6) {
3532 arg8 = (bool) SWIG_AsBool(obj6);
3533 if (PyErr_Occurred()) SWIG_fail;
3534 }
3535 if (obj7) {
3536 arg9 = (int) SWIG_AsInt(obj7);
3537 if (PyErr_Occurred()) SWIG_fail;
3538 }
3539 if (obj8) {
3540 arg10 = (int) SWIG_AsInt(obj8);
3541 if (PyErr_Occurred()) SWIG_fail;
3542 }
3543 {
3544 PyThreadState* __tstate = wxPyBeginAllowThreads();
3545 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3546
3547 wxPyEndAllowThreads(__tstate);
3548 if (PyErr_Occurred()) SWIG_fail;
3549 }
3550 resultobj = SWIG_FromInt((int)result);
3551 {
3552 if (temp1)
3553 delete arg1;
3554 }
3555 {
3556 if (temp2)
3557 delete arg2;
3558 }
3559 {
3560 if (arg4) delete [] arg4;
3561 }
3562 return resultobj;
3563 fail:
3564 {
3565 if (temp1)
3566 delete arg1;
3567 }
3568 {
3569 if (temp2)
3570 delete arg2;
3571 }
3572 {
3573 if (arg4) delete [] arg4;
3574 }
3575 return NULL;
3576 }
3577
3578
3579 static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3580 PyObject *resultobj;
3581 wxString *arg1 = 0 ;
3582 wxString const &arg2_defvalue = wxPyEmptyString ;
3583 wxString *arg2 = (wxString *) &arg2_defvalue ;
3584 int arg3 = (int) wxOK|wxCENTRE ;
3585 wxWindow *arg4 = (wxWindow *) NULL ;
3586 int arg5 = (int) -1 ;
3587 int arg6 = (int) -1 ;
3588 int result;
3589 bool temp1 = False ;
3590 bool temp2 = False ;
3591 PyObject * obj0 = 0 ;
3592 PyObject * obj1 = 0 ;
3593 PyObject * obj2 = 0 ;
3594 PyObject * obj3 = 0 ;
3595 PyObject * obj4 = 0 ;
3596 PyObject * obj5 = 0 ;
3597 char *kwnames[] = {
3598 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
3599 };
3600
3601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
3602 {
3603 arg1 = wxString_in_helper(obj0);
3604 if (arg1 == NULL) SWIG_fail;
3605 temp1 = True;
3606 }
3607 if (obj1) {
3608 {
3609 arg2 = wxString_in_helper(obj1);
3610 if (arg2 == NULL) SWIG_fail;
3611 temp2 = True;
3612 }
3613 }
3614 if (obj2) {
3615 arg3 = (int) SWIG_AsInt(obj2);
3616 if (PyErr_Occurred()) SWIG_fail;
3617 }
3618 if (obj3) {
3619 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3621 }
3622 if (obj4) {
3623 arg5 = (int) SWIG_AsInt(obj4);
3624 if (PyErr_Occurred()) SWIG_fail;
3625 }
3626 if (obj5) {
3627 arg6 = (int) SWIG_AsInt(obj5);
3628 if (PyErr_Occurred()) SWIG_fail;
3629 }
3630 {
3631 PyThreadState* __tstate = wxPyBeginAllowThreads();
3632 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
3633
3634 wxPyEndAllowThreads(__tstate);
3635 if (PyErr_Occurred()) SWIG_fail;
3636 }
3637 resultobj = SWIG_FromInt((int)result);
3638 {
3639 if (temp1)
3640 delete arg1;
3641 }
3642 {
3643 if (temp2)
3644 delete arg2;
3645 }
3646 return resultobj;
3647 fail:
3648 {
3649 if (temp1)
3650 delete arg1;
3651 }
3652 {
3653 if (temp2)
3654 delete arg2;
3655 }
3656 return NULL;
3657 }
3658
3659
3660 static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3661 PyObject *resultobj;
3662 wxString *arg1 = 0 ;
3663 wxString *arg2 = 0 ;
3664 wxString *arg3 = 0 ;
3665 long arg4 ;
3666 long arg5 = (long) 0 ;
3667 long arg6 = (long) 100 ;
3668 wxWindow *arg7 = (wxWindow *) NULL ;
3669 wxPoint const &arg8_defvalue = wxDefaultPosition ;
3670 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
3671 long result;
3672 bool temp1 = False ;
3673 bool temp2 = False ;
3674 bool temp3 = False ;
3675 wxPoint temp8 ;
3676 PyObject * obj0 = 0 ;
3677 PyObject * obj1 = 0 ;
3678 PyObject * obj2 = 0 ;
3679 PyObject * obj3 = 0 ;
3680 PyObject * obj4 = 0 ;
3681 PyObject * obj5 = 0 ;
3682 PyObject * obj6 = 0 ;
3683 PyObject * obj7 = 0 ;
3684 char *kwnames[] = {
3685 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
3686 };
3687
3688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3689 {
3690 arg1 = wxString_in_helper(obj0);
3691 if (arg1 == NULL) SWIG_fail;
3692 temp1 = True;
3693 }
3694 {
3695 arg2 = wxString_in_helper(obj1);
3696 if (arg2 == NULL) SWIG_fail;
3697 temp2 = True;
3698 }
3699 {
3700 arg3 = wxString_in_helper(obj2);
3701 if (arg3 == NULL) SWIG_fail;
3702 temp3 = True;
3703 }
3704 arg4 = (long) SWIG_AsLong(obj3);
3705 if (PyErr_Occurred()) SWIG_fail;
3706 if (obj4) {
3707 arg5 = (long) SWIG_AsLong(obj4);
3708 if (PyErr_Occurred()) SWIG_fail;
3709 }
3710 if (obj5) {
3711 arg6 = (long) SWIG_AsLong(obj5);
3712 if (PyErr_Occurred()) SWIG_fail;
3713 }
3714 if (obj6) {
3715 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
3716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3717 }
3718 if (obj7) {
3719 {
3720 arg8 = &temp8;
3721 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
3722 }
3723 }
3724 {
3725 PyThreadState* __tstate = wxPyBeginAllowThreads();
3726 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
3727
3728 wxPyEndAllowThreads(__tstate);
3729 if (PyErr_Occurred()) SWIG_fail;
3730 }
3731 resultobj = SWIG_FromLong((long)result);
3732 {
3733 if (temp1)
3734 delete arg1;
3735 }
3736 {
3737 if (temp2)
3738 delete arg2;
3739 }
3740 {
3741 if (temp3)
3742 delete arg3;
3743 }
3744 return resultobj;
3745 fail:
3746 {
3747 if (temp1)
3748 delete arg1;
3749 }
3750 {
3751 if (temp2)
3752 delete arg2;
3753 }
3754 {
3755 if (temp3)
3756 delete arg3;
3757 }
3758 return NULL;
3759 }
3760
3761
3762 static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
3763 PyObject *resultobj;
3764 bool result;
3765 char *kwnames[] = {
3766 NULL
3767 };
3768
3769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
3770 {
3771 PyThreadState* __tstate = wxPyBeginAllowThreads();
3772 result = (bool)wxColourDisplay();
3773
3774 wxPyEndAllowThreads(__tstate);
3775 if (PyErr_Occurred()) SWIG_fail;
3776 }
3777 {
3778 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3779 }
3780 return resultobj;
3781 fail:
3782 return NULL;
3783 }
3784
3785
3786 static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3787 PyObject *resultobj;
3788 int result;
3789 char *kwnames[] = {
3790 NULL
3791 };
3792
3793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
3794 {
3795 PyThreadState* __tstate = wxPyBeginAllowThreads();
3796 result = (int)wxDisplayDepth();
3797
3798 wxPyEndAllowThreads(__tstate);
3799 if (PyErr_Occurred()) SWIG_fail;
3800 }
3801 resultobj = SWIG_FromInt((int)result);
3802 return resultobj;
3803 fail:
3804 return NULL;
3805 }
3806
3807
3808 static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3809 PyObject *resultobj;
3810 int result;
3811 char *kwnames[] = {
3812 NULL
3813 };
3814
3815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
3816 {
3817 PyThreadState* __tstate = wxPyBeginAllowThreads();
3818 result = (int)wxGetDisplayDepth();
3819
3820 wxPyEndAllowThreads(__tstate);
3821 if (PyErr_Occurred()) SWIG_fail;
3822 }
3823 resultobj = SWIG_FromInt((int)result);
3824 return resultobj;
3825 fail:
3826 return NULL;
3827 }
3828
3829
3830 static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3831 PyObject *resultobj;
3832 int *arg1 = (int *) 0 ;
3833 int *arg2 = (int *) 0 ;
3834 int temp1 ;
3835 int temp2 ;
3836 char *kwnames[] = {
3837 NULL
3838 };
3839
3840 arg1 = &temp1;
3841 arg2 = &temp2;
3842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
3843 {
3844 PyThreadState* __tstate = wxPyBeginAllowThreads();
3845 wxDisplaySize(arg1,arg2);
3846
3847 wxPyEndAllowThreads(__tstate);
3848 if (PyErr_Occurred()) SWIG_fail;
3849 }
3850 Py_INCREF(Py_None); resultobj = Py_None;
3851 {
3852 PyObject *o = PyInt_FromLong((long) (*arg1));
3853 resultobj = t_output_helper(resultobj,o);
3854 }
3855 {
3856 PyObject *o = PyInt_FromLong((long) (*arg2));
3857 resultobj = t_output_helper(resultobj,o);
3858 }
3859 return resultobj;
3860 fail:
3861 return NULL;
3862 }
3863
3864
3865 static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3866 PyObject *resultobj;
3867 wxSize result;
3868 char *kwnames[] = {
3869 NULL
3870 };
3871
3872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
3873 {
3874 PyThreadState* __tstate = wxPyBeginAllowThreads();
3875 result = wxGetDisplaySize();
3876
3877 wxPyEndAllowThreads(__tstate);
3878 if (PyErr_Occurred()) SWIG_fail;
3879 }
3880 {
3881 wxSize * resultptr;
3882 resultptr = new wxSize((wxSize &) result);
3883 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3884 }
3885 return resultobj;
3886 fail:
3887 return NULL;
3888 }
3889
3890
3891 static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
3892 PyObject *resultobj;
3893 int *arg1 = (int *) 0 ;
3894 int *arg2 = (int *) 0 ;
3895 int temp1 ;
3896 int temp2 ;
3897 char *kwnames[] = {
3898 NULL
3899 };
3900
3901 arg1 = &temp1;
3902 arg2 = &temp2;
3903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
3904 {
3905 PyThreadState* __tstate = wxPyBeginAllowThreads();
3906 wxDisplaySizeMM(arg1,arg2);
3907
3908 wxPyEndAllowThreads(__tstate);
3909 if (PyErr_Occurred()) SWIG_fail;
3910 }
3911 Py_INCREF(Py_None); resultobj = Py_None;
3912 {
3913 PyObject *o = PyInt_FromLong((long) (*arg1));
3914 resultobj = t_output_helper(resultobj,o);
3915 }
3916 {
3917 PyObject *o = PyInt_FromLong((long) (*arg2));
3918 resultobj = t_output_helper(resultobj,o);
3919 }
3920 return resultobj;
3921 fail:
3922 return NULL;
3923 }
3924
3925
3926 static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
3927 PyObject *resultobj;
3928 wxSize result;
3929 char *kwnames[] = {
3930 NULL
3931 };
3932
3933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
3934 {
3935 PyThreadState* __tstate = wxPyBeginAllowThreads();
3936 result = wxGetDisplaySizeMM();
3937
3938 wxPyEndAllowThreads(__tstate);
3939 if (PyErr_Occurred()) SWIG_fail;
3940 }
3941 {
3942 wxSize * resultptr;
3943 resultptr = new wxSize((wxSize &) result);
3944 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3945 }
3946 return resultobj;
3947 fail:
3948 return NULL;
3949 }
3950
3951
3952 static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
3953 PyObject *resultobj;
3954 int *arg1 = (int *) 0 ;
3955 int *arg2 = (int *) 0 ;
3956 int *arg3 = (int *) 0 ;
3957 int *arg4 = (int *) 0 ;
3958 int temp1 ;
3959 int temp2 ;
3960 int temp3 ;
3961 int temp4 ;
3962 char *kwnames[] = {
3963 NULL
3964 };
3965
3966 arg1 = &temp1;
3967 arg2 = &temp2;
3968 arg3 = &temp3;
3969 arg4 = &temp4;
3970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
3971 {
3972 PyThreadState* __tstate = wxPyBeginAllowThreads();
3973 wxClientDisplayRect(arg1,arg2,arg3,arg4);
3974
3975 wxPyEndAllowThreads(__tstate);
3976 if (PyErr_Occurred()) SWIG_fail;
3977 }
3978 Py_INCREF(Py_None); resultobj = Py_None;
3979 {
3980 PyObject *o = PyInt_FromLong((long) (*arg1));
3981 resultobj = t_output_helper(resultobj,o);
3982 }
3983 {
3984 PyObject *o = PyInt_FromLong((long) (*arg2));
3985 resultobj = t_output_helper(resultobj,o);
3986 }
3987 {
3988 PyObject *o = PyInt_FromLong((long) (*arg3));
3989 resultobj = t_output_helper(resultobj,o);
3990 }
3991 {
3992 PyObject *o = PyInt_FromLong((long) (*arg4));
3993 resultobj = t_output_helper(resultobj,o);
3994 }
3995 return resultobj;
3996 fail:
3997 return NULL;
3998 }
3999
4000
4001 static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4002 PyObject *resultobj;
4003 wxRect result;
4004 char *kwnames[] = {
4005 NULL
4006 };
4007
4008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
4009 {
4010 PyThreadState* __tstate = wxPyBeginAllowThreads();
4011 result = wxGetClientDisplayRect();
4012
4013 wxPyEndAllowThreads(__tstate);
4014 if (PyErr_Occurred()) SWIG_fail;
4015 }
4016 {
4017 wxRect * resultptr;
4018 resultptr = new wxRect((wxRect &) result);
4019 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4020 }
4021 return resultobj;
4022 fail:
4023 return NULL;
4024 }
4025
4026
4027 static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4028 PyObject *resultobj;
4029 wxCursor *arg1 = 0 ;
4030 PyObject * obj0 = 0 ;
4031 char *kwnames[] = {
4032 (char *) "cursor", NULL
4033 };
4034
4035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
4036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4037 SWIG_POINTER_EXCEPTION | 0)) == -1)
4038 SWIG_fail;
4039 if (arg1 == NULL) {
4040 PyErr_SetString(PyExc_TypeError,"null reference");
4041 SWIG_fail;
4042 }
4043 {
4044 PyThreadState* __tstate = wxPyBeginAllowThreads();
4045 wxSetCursor(*arg1);
4046
4047 wxPyEndAllowThreads(__tstate);
4048 if (PyErr_Occurred()) SWIG_fail;
4049 }
4050 Py_INCREF(Py_None); resultobj = Py_None;
4051 return resultobj;
4052 fail:
4053 return NULL;
4054 }
4055
4056
4057 static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4058 PyObject *resultobj;
4059 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
4060 PyObject * obj0 = 0 ;
4061 char *kwnames[] = {
4062 (char *) "cursor", NULL
4063 };
4064
4065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
4066 if (obj0) {
4067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4069 }
4070 {
4071 PyThreadState* __tstate = wxPyBeginAllowThreads();
4072 wxBeginBusyCursor(arg1);
4073
4074 wxPyEndAllowThreads(__tstate);
4075 if (PyErr_Occurred()) SWIG_fail;
4076 }
4077 Py_INCREF(Py_None); resultobj = Py_None;
4078 return resultobj;
4079 fail:
4080 return NULL;
4081 }
4082
4083
4084 static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4085 PyObject *resultobj;
4086 wxWindow *result;
4087 char *kwnames[] = {
4088 NULL
4089 };
4090
4091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
4092 {
4093 PyThreadState* __tstate = wxPyBeginAllowThreads();
4094 result = (wxWindow *)wxGetActiveWindow();
4095
4096 wxPyEndAllowThreads(__tstate);
4097 if (PyErr_Occurred()) SWIG_fail;
4098 }
4099 {
4100 resultobj = wxPyMake_wxObject(result);
4101 }
4102 return resultobj;
4103 fail:
4104 return NULL;
4105 }
4106
4107
4108 static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4109 PyObject *resultobj;
4110 wxPoint *arg1 = 0 ;
4111 wxWindow *result;
4112 wxPoint temp1 ;
4113 PyObject * obj0 = 0 ;
4114 char *kwnames[] = {
4115 (char *) "pt", NULL
4116 };
4117
4118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
4119 {
4120 arg1 = &temp1;
4121 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4122 }
4123 {
4124 PyThreadState* __tstate = wxPyBeginAllowThreads();
4125 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
4126
4127 wxPyEndAllowThreads(__tstate);
4128 if (PyErr_Occurred()) SWIG_fail;
4129 }
4130 {
4131 resultobj = wxPyMake_wxObject(result);
4132 }
4133 return resultobj;
4134 fail:
4135 return NULL;
4136 }
4137
4138
4139 static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4140 PyObject *resultobj;
4141 wxPoint *arg1 = 0 ;
4142 wxWindow *result;
4143 wxPoint temp1 ;
4144 PyObject * obj0 = 0 ;
4145 char *kwnames[] = {
4146 (char *) "pt", NULL
4147 };
4148
4149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
4150 {
4151 arg1 = &temp1;
4152 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4153 }
4154 {
4155 PyThreadState* __tstate = wxPyBeginAllowThreads();
4156 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
4157
4158 wxPyEndAllowThreads(__tstate);
4159 if (PyErr_Occurred()) SWIG_fail;
4160 }
4161 {
4162 resultobj = wxPyMake_wxObject(result);
4163 }
4164 return resultobj;
4165 fail:
4166 return NULL;
4167 }
4168
4169
4170 static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) {
4171 PyObject *resultobj;
4172 wxWindow *arg1 = (wxWindow *) 0 ;
4173 wxWindow *result;
4174 PyObject * obj0 = 0 ;
4175 char *kwnames[] = {
4176 (char *) "win", NULL
4177 };
4178
4179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
4180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4182 {
4183 PyThreadState* __tstate = wxPyBeginAllowThreads();
4184 result = (wxWindow *)wxGetTopLevelParent(arg1);
4185
4186 wxPyEndAllowThreads(__tstate);
4187 if (PyErr_Occurred()) SWIG_fail;
4188 }
4189 {
4190 resultobj = wxPyMake_wxObject(result);
4191 }
4192 return resultobj;
4193 fail:
4194 return NULL;
4195 }
4196
4197
4198 static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) {
4199 PyObject *resultobj;
4200 int arg1 ;
4201 bool result;
4202 PyObject * obj0 = 0 ;
4203 char *kwnames[] = {
4204 (char *) "key", NULL
4205 };
4206
4207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
4208 arg1 = (wxKeyCode) SWIG_AsInt(obj0);
4209 if (PyErr_Occurred()) SWIG_fail;
4210 {
4211 PyThreadState* __tstate = wxPyBeginAllowThreads();
4212 result = (bool)wxGetKeyState((wxKeyCode )arg1);
4213
4214 wxPyEndAllowThreads(__tstate);
4215 if (PyErr_Occurred()) SWIG_fail;
4216 }
4217 {
4218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4219 }
4220 return resultobj;
4221 fail:
4222 return NULL;
4223 }
4224
4225
4226 static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) {
4227 PyObject *resultobj;
4228 char *kwnames[] = {
4229 NULL
4230 };
4231
4232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
4233 {
4234 PyThreadState* __tstate = wxPyBeginAllowThreads();
4235 wxWakeUpMainThread();
4236
4237 wxPyEndAllowThreads(__tstate);
4238 if (PyErr_Occurred()) SWIG_fail;
4239 }
4240 Py_INCREF(Py_None); resultobj = Py_None;
4241 return resultobj;
4242 fail:
4243 return NULL;
4244 }
4245
4246
4247 static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
4248 PyObject *resultobj;
4249 char *kwnames[] = {
4250 NULL
4251 };
4252
4253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
4254 {
4255 PyThreadState* __tstate = wxPyBeginAllowThreads();
4256 wxMutexGuiEnter();
4257
4258 wxPyEndAllowThreads(__tstate);
4259 if (PyErr_Occurred()) SWIG_fail;
4260 }
4261 Py_INCREF(Py_None); resultobj = Py_None;
4262 return resultobj;
4263 fail:
4264 return NULL;
4265 }
4266
4267
4268 static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
4269 PyObject *resultobj;
4270 char *kwnames[] = {
4271 NULL
4272 };
4273
4274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
4275 {
4276 PyThreadState* __tstate = wxPyBeginAllowThreads();
4277 wxMutexGuiLeave();
4278
4279 wxPyEndAllowThreads(__tstate);
4280 if (PyErr_Occurred()) SWIG_fail;
4281 }
4282 Py_INCREF(Py_None); resultobj = Py_None;
4283 return resultobj;
4284 fail:
4285 return NULL;
4286 }
4287
4288
4289 static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4290 PyObject *resultobj;
4291 wxMutexGuiLocker *result;
4292 char *kwnames[] = {
4293 NULL
4294 };
4295
4296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
4297 {
4298 PyThreadState* __tstate = wxPyBeginAllowThreads();
4299 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
4300
4301 wxPyEndAllowThreads(__tstate);
4302 if (PyErr_Occurred()) SWIG_fail;
4303 }
4304 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
4305 return resultobj;
4306 fail:
4307 return NULL;
4308 }
4309
4310
4311 static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4312 PyObject *resultobj;
4313 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
4314 PyObject * obj0 = 0 ;
4315 char *kwnames[] = {
4316 (char *) "self", NULL
4317 };
4318
4319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
4320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker,
4321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4322 {
4323 PyThreadState* __tstate = wxPyBeginAllowThreads();
4324 delete arg1;
4325
4326 wxPyEndAllowThreads(__tstate);
4327 if (PyErr_Occurred()) SWIG_fail;
4328 }
4329 Py_INCREF(Py_None); resultobj = Py_None;
4330 return resultobj;
4331 fail:
4332 return NULL;
4333 }
4334
4335
4336 static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) {
4337 PyObject *obj;
4338 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4339 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
4340 Py_INCREF(obj);
4341 return Py_BuildValue((char *)"");
4342 }
4343 static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) {
4344 PyObject *resultobj;
4345 bool result;
4346 char *kwnames[] = {
4347 NULL
4348 };
4349
4350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
4351 {
4352 PyThreadState* __tstate = wxPyBeginAllowThreads();
4353 result = (bool)wxThread_IsMain();
4354
4355 wxPyEndAllowThreads(__tstate);
4356 if (PyErr_Occurred()) SWIG_fail;
4357 }
4358 {
4359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4360 }
4361 return resultobj;
4362 fail:
4363 return NULL;
4364 }
4365
4366
4367 static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4368 PyObject *resultobj;
4369 wxString *arg1 = 0 ;
4370 wxToolTip *result;
4371 bool temp1 = False ;
4372 PyObject * obj0 = 0 ;
4373 char *kwnames[] = {
4374 (char *) "tip", NULL
4375 };
4376
4377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
4378 {
4379 arg1 = wxString_in_helper(obj0);
4380 if (arg1 == NULL) SWIG_fail;
4381 temp1 = True;
4382 }
4383 {
4384 PyThreadState* __tstate = wxPyBeginAllowThreads();
4385 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
4386
4387 wxPyEndAllowThreads(__tstate);
4388 if (PyErr_Occurred()) SWIG_fail;
4389 }
4390 {
4391 resultobj = wxPyMake_wxObject(result);
4392 }
4393 {
4394 if (temp1)
4395 delete arg1;
4396 }
4397 return resultobj;
4398 fail:
4399 {
4400 if (temp1)
4401 delete arg1;
4402 }
4403 return NULL;
4404 }
4405
4406
4407 static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4408 PyObject *resultobj;
4409 wxToolTip *arg1 = (wxToolTip *) 0 ;
4410 wxString *arg2 = 0 ;
4411 bool temp2 = False ;
4412 PyObject * obj0 = 0 ;
4413 PyObject * obj1 = 0 ;
4414 char *kwnames[] = {
4415 (char *) "self",(char *) "tip", NULL
4416 };
4417
4418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
4419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4421 {
4422 arg2 = wxString_in_helper(obj1);
4423 if (arg2 == NULL) SWIG_fail;
4424 temp2 = True;
4425 }
4426 {
4427 PyThreadState* __tstate = wxPyBeginAllowThreads();
4428 (arg1)->SetTip((wxString const &)*arg2);
4429
4430 wxPyEndAllowThreads(__tstate);
4431 if (PyErr_Occurred()) SWIG_fail;
4432 }
4433 Py_INCREF(Py_None); resultobj = Py_None;
4434 {
4435 if (temp2)
4436 delete arg2;
4437 }
4438 return resultobj;
4439 fail:
4440 {
4441 if (temp2)
4442 delete arg2;
4443 }
4444 return NULL;
4445 }
4446
4447
4448 static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4449 PyObject *resultobj;
4450 wxToolTip *arg1 = (wxToolTip *) 0 ;
4451 wxString result;
4452 PyObject * obj0 = 0 ;
4453 char *kwnames[] = {
4454 (char *) "self", NULL
4455 };
4456
4457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
4458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4460 {
4461 PyThreadState* __tstate = wxPyBeginAllowThreads();
4462 result = (arg1)->GetTip();
4463
4464 wxPyEndAllowThreads(__tstate);
4465 if (PyErr_Occurred()) SWIG_fail;
4466 }
4467 {
4468 #if wxUSE_UNICODE
4469 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4470 #else
4471 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4472 #endif
4473 }
4474 return resultobj;
4475 fail:
4476 return NULL;
4477 }
4478
4479
4480 static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4481 PyObject *resultobj;
4482 wxToolTip *arg1 = (wxToolTip *) 0 ;
4483 wxWindow *result;
4484 PyObject * obj0 = 0 ;
4485 char *kwnames[] = {
4486 (char *) "self", NULL
4487 };
4488
4489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
4490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4492 {
4493 PyThreadState* __tstate = wxPyBeginAllowThreads();
4494 result = (wxWindow *)(arg1)->GetWindow();
4495
4496 wxPyEndAllowThreads(__tstate);
4497 if (PyErr_Occurred()) SWIG_fail;
4498 }
4499 {
4500 resultobj = wxPyMake_wxObject(result);
4501 }
4502 return resultobj;
4503 fail:
4504 return NULL;
4505 }
4506
4507
4508 static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
4509 PyObject *resultobj;
4510 bool arg1 ;
4511 PyObject * obj0 = 0 ;
4512 char *kwnames[] = {
4513 (char *) "flag", NULL
4514 };
4515
4516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
4517 arg1 = (bool) SWIG_AsBool(obj0);
4518 if (PyErr_Occurred()) SWIG_fail;
4519 {
4520 PyThreadState* __tstate = wxPyBeginAllowThreads();
4521 wxToolTip::Enable(arg1);
4522
4523 wxPyEndAllowThreads(__tstate);
4524 if (PyErr_Occurred()) SWIG_fail;
4525 }
4526 Py_INCREF(Py_None); resultobj = Py_None;
4527 return resultobj;
4528 fail:
4529 return NULL;
4530 }
4531
4532
4533 static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) {
4534 PyObject *resultobj;
4535 long arg1 ;
4536 PyObject * obj0 = 0 ;
4537 char *kwnames[] = {
4538 (char *) "milliseconds", NULL
4539 };
4540
4541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
4542 arg1 = (long) SWIG_AsLong(obj0);
4543 if (PyErr_Occurred()) SWIG_fail;
4544 {
4545 PyThreadState* __tstate = wxPyBeginAllowThreads();
4546 wxToolTip::SetDelay(arg1);
4547
4548 wxPyEndAllowThreads(__tstate);
4549 if (PyErr_Occurred()) SWIG_fail;
4550 }
4551 Py_INCREF(Py_None); resultobj = Py_None;
4552 return resultobj;
4553 fail:
4554 return NULL;
4555 }
4556
4557
4558 static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) {
4559 PyObject *obj;
4560 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4561 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
4562 Py_INCREF(obj);
4563 return Py_BuildValue((char *)"");
4564 }
4565 static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4566 PyObject *resultobj;
4567 wxWindow *arg1 = (wxWindow *) 0 ;
4568 wxSize *arg2 = 0 ;
4569 wxCaret *result;
4570 wxSize temp2 ;
4571 PyObject * obj0 = 0 ;
4572 PyObject * obj1 = 0 ;
4573 char *kwnames[] = {
4574 (char *) "window",(char *) "size", NULL
4575 };
4576
4577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
4578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4580 {
4581 arg2 = &temp2;
4582 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4583 }
4584 {
4585 PyThreadState* __tstate = wxPyBeginAllowThreads();
4586 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
4587
4588 wxPyEndAllowThreads(__tstate);
4589 if (PyErr_Occurred()) SWIG_fail;
4590 }
4591 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
4592 return resultobj;
4593 fail:
4594 return NULL;
4595 }
4596
4597
4598 static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4599 PyObject *resultobj;
4600 wxCaret *arg1 = (wxCaret *) 0 ;
4601 PyObject * obj0 = 0 ;
4602 char *kwnames[] = {
4603 (char *) "self", NULL
4604 };
4605
4606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
4607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4609 {
4610 PyThreadState* __tstate = wxPyBeginAllowThreads();
4611 delete arg1;
4612
4613 wxPyEndAllowThreads(__tstate);
4614 if (PyErr_Occurred()) SWIG_fail;
4615 }
4616 Py_INCREF(Py_None); resultobj = Py_None;
4617 return resultobj;
4618 fail:
4619 return NULL;
4620 }
4621
4622
4623 static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4624 PyObject *resultobj;
4625 wxCaret *arg1 = (wxCaret *) 0 ;
4626 bool result;
4627 PyObject * obj0 = 0 ;
4628 char *kwnames[] = {
4629 (char *) "self", NULL
4630 };
4631
4632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
4633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4635 {
4636 PyThreadState* __tstate = wxPyBeginAllowThreads();
4637 result = (bool)(arg1)->IsOk();
4638
4639 wxPyEndAllowThreads(__tstate);
4640 if (PyErr_Occurred()) SWIG_fail;
4641 }
4642 {
4643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4644 }
4645 return resultobj;
4646 fail:
4647 return NULL;
4648 }
4649
4650
4651 static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4652 PyObject *resultobj;
4653 wxCaret *arg1 = (wxCaret *) 0 ;
4654 bool result;
4655 PyObject * obj0 = 0 ;
4656 char *kwnames[] = {
4657 (char *) "self", NULL
4658 };
4659
4660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
4661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4663 {
4664 PyThreadState* __tstate = wxPyBeginAllowThreads();
4665 result = (bool)(arg1)->IsVisible();
4666
4667 wxPyEndAllowThreads(__tstate);
4668 if (PyErr_Occurred()) SWIG_fail;
4669 }
4670 {
4671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4672 }
4673 return resultobj;
4674 fail:
4675 return NULL;
4676 }
4677
4678
4679 static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
4680 PyObject *resultobj;
4681 wxCaret *arg1 = (wxCaret *) 0 ;
4682 wxPoint result;
4683 PyObject * obj0 = 0 ;
4684 char *kwnames[] = {
4685 (char *) "self", NULL
4686 };
4687
4688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
4689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4691 {
4692 PyThreadState* __tstate = wxPyBeginAllowThreads();
4693 result = (arg1)->GetPosition();
4694
4695 wxPyEndAllowThreads(__tstate);
4696 if (PyErr_Occurred()) SWIG_fail;
4697 }
4698 {
4699 wxPoint * resultptr;
4700 resultptr = new wxPoint((wxPoint &) result);
4701 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
4702 }
4703 return resultobj;
4704 fail:
4705 return NULL;
4706 }
4707
4708
4709 static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4710 PyObject *resultobj;
4711 wxCaret *arg1 = (wxCaret *) 0 ;
4712 int *arg2 = (int *) 0 ;
4713 int *arg3 = (int *) 0 ;
4714 int temp2 ;
4715 int temp3 ;
4716 PyObject * obj0 = 0 ;
4717 char *kwnames[] = {
4718 (char *) "self", NULL
4719 };
4720
4721 arg2 = &temp2;
4722 arg3 = &temp3;
4723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
4724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4726 {
4727 PyThreadState* __tstate = wxPyBeginAllowThreads();
4728 (arg1)->GetPosition(arg2,arg3);
4729
4730 wxPyEndAllowThreads(__tstate);
4731 if (PyErr_Occurred()) SWIG_fail;
4732 }
4733 Py_INCREF(Py_None); resultobj = Py_None;
4734 {
4735 PyObject *o = PyInt_FromLong((long) (*arg2));
4736 resultobj = t_output_helper(resultobj,o);
4737 }
4738 {
4739 PyObject *o = PyInt_FromLong((long) (*arg3));
4740 resultobj = t_output_helper(resultobj,o);
4741 }
4742 return resultobj;
4743 fail:
4744 return NULL;
4745 }
4746
4747
4748 static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4749 PyObject *resultobj;
4750 wxCaret *arg1 = (wxCaret *) 0 ;
4751 wxSize result;
4752 PyObject * obj0 = 0 ;
4753 char *kwnames[] = {
4754 (char *) "self", NULL
4755 };
4756
4757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
4758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4760 {
4761 PyThreadState* __tstate = wxPyBeginAllowThreads();
4762 result = (arg1)->GetSize();
4763
4764 wxPyEndAllowThreads(__tstate);
4765 if (PyErr_Occurred()) SWIG_fail;
4766 }
4767 {
4768 wxSize * resultptr;
4769 resultptr = new wxSize((wxSize &) result);
4770 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4771 }
4772 return resultobj;
4773 fail:
4774 return NULL;
4775 }
4776
4777
4778 static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4779 PyObject *resultobj;
4780 wxCaret *arg1 = (wxCaret *) 0 ;
4781 int *arg2 = (int *) 0 ;
4782 int *arg3 = (int *) 0 ;
4783 int temp2 ;
4784 int temp3 ;
4785 PyObject * obj0 = 0 ;
4786 char *kwnames[] = {
4787 (char *) "self", NULL
4788 };
4789
4790 arg2 = &temp2;
4791 arg3 = &temp3;
4792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
4793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4795 {
4796 PyThreadState* __tstate = wxPyBeginAllowThreads();
4797 (arg1)->GetSize(arg2,arg3);
4798
4799 wxPyEndAllowThreads(__tstate);
4800 if (PyErr_Occurred()) SWIG_fail;
4801 }
4802 Py_INCREF(Py_None); resultobj = Py_None;
4803 {
4804 PyObject *o = PyInt_FromLong((long) (*arg2));
4805 resultobj = t_output_helper(resultobj,o);
4806 }
4807 {
4808 PyObject *o = PyInt_FromLong((long) (*arg3));
4809 resultobj = t_output_helper(resultobj,o);
4810 }
4811 return resultobj;
4812 fail:
4813 return NULL;
4814 }
4815
4816
4817 static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4818 PyObject *resultobj;
4819 wxCaret *arg1 = (wxCaret *) 0 ;
4820 wxWindow *result;
4821 PyObject * obj0 = 0 ;
4822 char *kwnames[] = {
4823 (char *) "self", NULL
4824 };
4825
4826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
4827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4829 {
4830 PyThreadState* __tstate = wxPyBeginAllowThreads();
4831 result = (wxWindow *)(arg1)->GetWindow();
4832
4833 wxPyEndAllowThreads(__tstate);
4834 if (PyErr_Occurred()) SWIG_fail;
4835 }
4836 {
4837 resultobj = wxPyMake_wxObject(result);
4838 }
4839 return resultobj;
4840 fail:
4841 return NULL;
4842 }
4843
4844
4845 static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
4846 PyObject *resultobj;
4847 wxCaret *arg1 = (wxCaret *) 0 ;
4848 int arg2 ;
4849 int arg3 ;
4850 PyObject * obj0 = 0 ;
4851 PyObject * obj1 = 0 ;
4852 PyObject * obj2 = 0 ;
4853 char *kwnames[] = {
4854 (char *) "self",(char *) "x",(char *) "y", NULL
4855 };
4856
4857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
4858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4860 arg2 = (int) SWIG_AsInt(obj1);
4861 if (PyErr_Occurred()) SWIG_fail;
4862 arg3 = (int) SWIG_AsInt(obj2);
4863 if (PyErr_Occurred()) SWIG_fail;
4864 {
4865 PyThreadState* __tstate = wxPyBeginAllowThreads();
4866 (arg1)->Move(arg2,arg3);
4867
4868 wxPyEndAllowThreads(__tstate);
4869 if (PyErr_Occurred()) SWIG_fail;
4870 }
4871 Py_INCREF(Py_None); resultobj = Py_None;
4872 return resultobj;
4873 fail:
4874 return NULL;
4875 }
4876
4877
4878 static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
4879 PyObject *resultobj;
4880 wxCaret *arg1 = (wxCaret *) 0 ;
4881 wxPoint *arg2 = 0 ;
4882 wxPoint temp2 ;
4883 PyObject * obj0 = 0 ;
4884 PyObject * obj1 = 0 ;
4885 char *kwnames[] = {
4886 (char *) "self",(char *) "pt", NULL
4887 };
4888
4889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
4890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4892 {
4893 arg2 = &temp2;
4894 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4895 }
4896 {
4897 PyThreadState* __tstate = wxPyBeginAllowThreads();
4898 (arg1)->Move((wxPoint const &)*arg2);
4899
4900 wxPyEndAllowThreads(__tstate);
4901 if (PyErr_Occurred()) SWIG_fail;
4902 }
4903 Py_INCREF(Py_None); resultobj = Py_None;
4904 return resultobj;
4905 fail:
4906 return NULL;
4907 }
4908
4909
4910 static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
4911 PyObject *resultobj;
4912 wxCaret *arg1 = (wxCaret *) 0 ;
4913 int arg2 ;
4914 int arg3 ;
4915 PyObject * obj0 = 0 ;
4916 PyObject * obj1 = 0 ;
4917 PyObject * obj2 = 0 ;
4918 char *kwnames[] = {
4919 (char *) "self",(char *) "width",(char *) "height", NULL
4920 };
4921
4922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
4923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4925 arg2 = (int) SWIG_AsInt(obj1);
4926 if (PyErr_Occurred()) SWIG_fail;
4927 arg3 = (int) SWIG_AsInt(obj2);
4928 if (PyErr_Occurred()) SWIG_fail;
4929 {
4930 PyThreadState* __tstate = wxPyBeginAllowThreads();
4931 (arg1)->SetSize(arg2,arg3);
4932
4933 wxPyEndAllowThreads(__tstate);
4934 if (PyErr_Occurred()) SWIG_fail;
4935 }
4936 Py_INCREF(Py_None); resultobj = Py_None;
4937 return resultobj;
4938 fail:
4939 return NULL;
4940 }
4941
4942
4943 static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4944 PyObject *resultobj;
4945 wxCaret *arg1 = (wxCaret *) 0 ;
4946 wxSize *arg2 = 0 ;
4947 wxSize temp2 ;
4948 PyObject * obj0 = 0 ;
4949 PyObject * obj1 = 0 ;
4950 char *kwnames[] = {
4951 (char *) "self",(char *) "size", NULL
4952 };
4953
4954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
4955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4957 {
4958 arg2 = &temp2;
4959 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4960 }
4961 {
4962 PyThreadState* __tstate = wxPyBeginAllowThreads();
4963 (arg1)->SetSize((wxSize const &)*arg2);
4964
4965 wxPyEndAllowThreads(__tstate);
4966 if (PyErr_Occurred()) SWIG_fail;
4967 }
4968 Py_INCREF(Py_None); resultobj = Py_None;
4969 return resultobj;
4970 fail:
4971 return NULL;
4972 }
4973
4974
4975 static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
4976 PyObject *resultobj;
4977 wxCaret *arg1 = (wxCaret *) 0 ;
4978 int arg2 = (int) True ;
4979 PyObject * obj0 = 0 ;
4980 PyObject * obj1 = 0 ;
4981 char *kwnames[] = {
4982 (char *) "self",(char *) "show", NULL
4983 };
4984
4985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
4986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4988 if (obj1) {
4989 arg2 = (int) SWIG_AsInt(obj1);
4990 if (PyErr_Occurred()) SWIG_fail;
4991 }
4992 {
4993 PyThreadState* __tstate = wxPyBeginAllowThreads();
4994 (arg1)->Show(arg2);
4995
4996 wxPyEndAllowThreads(__tstate);
4997 if (PyErr_Occurred()) SWIG_fail;
4998 }
4999 Py_INCREF(Py_None); resultobj = Py_None;
5000 return resultobj;
5001 fail:
5002 return NULL;
5003 }
5004
5005
5006 static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
5007 PyObject *resultobj;
5008 wxCaret *arg1 = (wxCaret *) 0 ;
5009 PyObject * obj0 = 0 ;
5010 char *kwnames[] = {
5011 (char *) "self", NULL
5012 };
5013
5014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
5015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5017 {
5018 PyThreadState* __tstate = wxPyBeginAllowThreads();
5019 (arg1)->Hide();
5020
5021 wxPyEndAllowThreads(__tstate);
5022 if (PyErr_Occurred()) SWIG_fail;
5023 }
5024 Py_INCREF(Py_None); resultobj = Py_None;
5025 return resultobj;
5026 fail:
5027 return NULL;
5028 }
5029
5030
5031 static PyObject * Caret_swigregister(PyObject *self, PyObject *args) {
5032 PyObject *obj;
5033 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5034 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
5035 Py_INCREF(obj);
5036 return Py_BuildValue((char *)"");
5037 }
5038 static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5039 PyObject *resultobj;
5040 int result;
5041 char *kwnames[] = {
5042 NULL
5043 };
5044
5045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
5046 {
5047 PyThreadState* __tstate = wxPyBeginAllowThreads();
5048 result = (int)wxCaret_GetBlinkTime();
5049
5050 wxPyEndAllowThreads(__tstate);
5051 if (PyErr_Occurred()) SWIG_fail;
5052 }
5053 resultobj = SWIG_FromInt((int)result);
5054 return resultobj;
5055 fail:
5056 return NULL;
5057 }
5058
5059
5060 static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5061 PyObject *resultobj;
5062 int arg1 ;
5063 PyObject * obj0 = 0 ;
5064 char *kwnames[] = {
5065 (char *) "milliseconds", NULL
5066 };
5067
5068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
5069 arg1 = (int) SWIG_AsInt(obj0);
5070 if (PyErr_Occurred()) SWIG_fail;
5071 {
5072 PyThreadState* __tstate = wxPyBeginAllowThreads();
5073 wxCaret_SetBlinkTime(arg1);
5074
5075 wxPyEndAllowThreads(__tstate);
5076 if (PyErr_Occurred()) SWIG_fail;
5077 }
5078 Py_INCREF(Py_None); resultobj = Py_None;
5079 return resultobj;
5080 fail:
5081 return NULL;
5082 }
5083
5084
5085 static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5086 PyObject *resultobj;
5087 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
5088 wxBusyCursor *result;
5089 PyObject * obj0 = 0 ;
5090 char *kwnames[] = {
5091 (char *) "cursor", NULL
5092 };
5093
5094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
5095 if (obj0) {
5096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5098 }
5099 {
5100 PyThreadState* __tstate = wxPyBeginAllowThreads();
5101 result = (wxBusyCursor *)new wxBusyCursor(arg1);
5102
5103 wxPyEndAllowThreads(__tstate);
5104 if (PyErr_Occurred()) SWIG_fail;
5105 }
5106 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
5107 return resultobj;
5108 fail:
5109 return NULL;
5110 }
5111
5112
5113 static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5114 PyObject *resultobj;
5115 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
5116 PyObject * obj0 = 0 ;
5117 char *kwnames[] = {
5118 (char *) "self", NULL
5119 };
5120
5121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
5122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor,
5123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5124 {
5125 PyThreadState* __tstate = wxPyBeginAllowThreads();
5126 delete arg1;
5127
5128 wxPyEndAllowThreads(__tstate);
5129 if (PyErr_Occurred()) SWIG_fail;
5130 }
5131 Py_INCREF(Py_None); resultobj = Py_None;
5132 return resultobj;
5133 fail:
5134 return NULL;
5135 }
5136
5137
5138 static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) {
5139 PyObject *obj;
5140 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5141 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
5142 Py_INCREF(obj);
5143 return Py_BuildValue((char *)"");
5144 }
5145 static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5146 PyObject *resultobj;
5147 wxWindow *arg1 = (wxWindow *) NULL ;
5148 wxWindowDisabler *result;
5149 PyObject * obj0 = 0 ;
5150 char *kwnames[] = {
5151 (char *) "winToSkip", NULL
5152 };
5153
5154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
5155 if (obj0) {
5156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5158 }
5159 {
5160 PyThreadState* __tstate = wxPyBeginAllowThreads();
5161 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
5162
5163 wxPyEndAllowThreads(__tstate);
5164 if (PyErr_Occurred()) SWIG_fail;
5165 }
5166 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
5167 return resultobj;
5168 fail:
5169 return NULL;
5170 }
5171
5172
5173 static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5174 PyObject *resultobj;
5175 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
5176 PyObject * obj0 = 0 ;
5177 char *kwnames[] = {
5178 (char *) "self", NULL
5179 };
5180
5181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
5182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler,
5183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5184 {
5185 PyThreadState* __tstate = wxPyBeginAllowThreads();
5186 delete arg1;
5187
5188 wxPyEndAllowThreads(__tstate);
5189 if (PyErr_Occurred()) SWIG_fail;
5190 }
5191 Py_INCREF(Py_None); resultobj = Py_None;
5192 return resultobj;
5193 fail:
5194 return NULL;
5195 }
5196
5197
5198 static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) {
5199 PyObject *obj;
5200 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5201 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
5202 Py_INCREF(obj);
5203 return Py_BuildValue((char *)"");
5204 }
5205 static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5206 PyObject *resultobj;
5207 wxString *arg1 = 0 ;
5208 wxBusyInfo *result;
5209 bool temp1 = False ;
5210 PyObject * obj0 = 0 ;
5211 char *kwnames[] = {
5212 (char *) "message", NULL
5213 };
5214
5215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
5216 {
5217 arg1 = wxString_in_helper(obj0);
5218 if (arg1 == NULL) SWIG_fail;
5219 temp1 = True;
5220 }
5221 {
5222 PyThreadState* __tstate = wxPyBeginAllowThreads();
5223 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
5224
5225 wxPyEndAllowThreads(__tstate);
5226 if (PyErr_Occurred()) SWIG_fail;
5227 }
5228 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
5229 {
5230 if (temp1)
5231 delete arg1;
5232 }
5233 return resultobj;
5234 fail:
5235 {
5236 if (temp1)
5237 delete arg1;
5238 }
5239 return NULL;
5240 }
5241
5242
5243 static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5244 PyObject *resultobj;
5245 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
5246 PyObject * obj0 = 0 ;
5247 char *kwnames[] = {
5248 (char *) "self", NULL
5249 };
5250
5251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
5252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo,
5253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5254 {
5255 PyThreadState* __tstate = wxPyBeginAllowThreads();
5256 delete arg1;
5257
5258 wxPyEndAllowThreads(__tstate);
5259 if (PyErr_Occurred()) SWIG_fail;
5260 }
5261 Py_INCREF(Py_None); resultobj = Py_None;
5262 return resultobj;
5263 fail:
5264 return NULL;
5265 }
5266
5267
5268 static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) {
5269 PyObject *obj;
5270 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5271 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
5272 Py_INCREF(obj);
5273 return Py_BuildValue((char *)"");
5274 }
5275 static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) {
5276 PyObject *resultobj;
5277 wxStopWatch *result;
5278 char *kwnames[] = {
5279 NULL
5280 };
5281
5282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
5283 {
5284 PyThreadState* __tstate = wxPyBeginAllowThreads();
5285 result = (wxStopWatch *)new wxStopWatch();
5286
5287 wxPyEndAllowThreads(__tstate);
5288 if (PyErr_Occurred()) SWIG_fail;
5289 }
5290 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
5291 return resultobj;
5292 fail:
5293 return NULL;
5294 }
5295
5296
5297 static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
5298 PyObject *resultobj;
5299 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5300 long arg2 = (long) 0 ;
5301 PyObject * obj0 = 0 ;
5302 PyObject * obj1 = 0 ;
5303 char *kwnames[] = {
5304 (char *) "self",(char *) "t0", NULL
5305 };
5306
5307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
5308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5310 if (obj1) {
5311 arg2 = (long) SWIG_AsLong(obj1);
5312 if (PyErr_Occurred()) SWIG_fail;
5313 }
5314 {
5315 PyThreadState* __tstate = wxPyBeginAllowThreads();
5316 (arg1)->Start(arg2);
5317
5318 wxPyEndAllowThreads(__tstate);
5319 if (PyErr_Occurred()) SWIG_fail;
5320 }
5321 Py_INCREF(Py_None); resultobj = Py_None;
5322 return resultobj;
5323 fail:
5324 return NULL;
5325 }
5326
5327
5328 static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) {
5329 PyObject *resultobj;
5330 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5331 PyObject * obj0 = 0 ;
5332 char *kwnames[] = {
5333 (char *) "self", NULL
5334 };
5335
5336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
5337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5339 {
5340 PyThreadState* __tstate = wxPyBeginAllowThreads();
5341 (arg1)->Pause();
5342
5343 wxPyEndAllowThreads(__tstate);
5344 if (PyErr_Occurred()) SWIG_fail;
5345 }
5346 Py_INCREF(Py_None); resultobj = Py_None;
5347 return resultobj;
5348 fail:
5349 return NULL;
5350 }
5351
5352
5353 static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
5354 PyObject *resultobj;
5355 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5356 PyObject * obj0 = 0 ;
5357 char *kwnames[] = {
5358 (char *) "self", NULL
5359 };
5360
5361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
5362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5364 {
5365 PyThreadState* __tstate = wxPyBeginAllowThreads();
5366 (arg1)->Resume();
5367
5368 wxPyEndAllowThreads(__tstate);
5369 if (PyErr_Occurred()) SWIG_fail;
5370 }
5371 Py_INCREF(Py_None); resultobj = Py_None;
5372 return resultobj;
5373 fail:
5374 return NULL;
5375 }
5376
5377
5378 static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) {
5379 PyObject *resultobj;
5380 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5381 long result;
5382 PyObject * obj0 = 0 ;
5383 char *kwnames[] = {
5384 (char *) "self", NULL
5385 };
5386
5387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
5388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5390 {
5391 PyThreadState* __tstate = wxPyBeginAllowThreads();
5392 result = (long)((wxStopWatch const *)arg1)->Time();
5393
5394 wxPyEndAllowThreads(__tstate);
5395 if (PyErr_Occurred()) SWIG_fail;
5396 }
5397 resultobj = SWIG_FromLong((long)result);
5398 return resultobj;
5399 fail:
5400 return NULL;
5401 }
5402
5403
5404 static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) {
5405 PyObject *obj;
5406 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5407 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
5408 Py_INCREF(obj);
5409 return Py_BuildValue((char *)"");
5410 }
5411 static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5412 PyObject *resultobj;
5413 int arg1 = (int) 9 ;
5414 wxFileHistory *result;
5415 PyObject * obj0 = 0 ;
5416 char *kwnames[] = {
5417 (char *) "maxFiles", NULL
5418 };
5419
5420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail;
5421 if (obj0) {
5422 arg1 = (int) SWIG_AsInt(obj0);
5423 if (PyErr_Occurred()) SWIG_fail;
5424 }
5425 {
5426 PyThreadState* __tstate = wxPyBeginAllowThreads();
5427 result = (wxFileHistory *)new wxFileHistory(arg1);
5428
5429 wxPyEndAllowThreads(__tstate);
5430 if (PyErr_Occurred()) SWIG_fail;
5431 }
5432 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
5433 return resultobj;
5434 fail:
5435 return NULL;
5436 }
5437
5438
5439 static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5440 PyObject *resultobj;
5441 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5442 PyObject * obj0 = 0 ;
5443 char *kwnames[] = {
5444 (char *) "self", NULL
5445 };
5446
5447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
5448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5450 {
5451 PyThreadState* __tstate = wxPyBeginAllowThreads();
5452 delete arg1;
5453
5454 wxPyEndAllowThreads(__tstate);
5455 if (PyErr_Occurred()) SWIG_fail;
5456 }
5457 Py_INCREF(Py_None); resultobj = Py_None;
5458 return resultobj;
5459 fail:
5460 return NULL;
5461 }
5462
5463
5464 static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5465 PyObject *resultobj;
5466 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5467 wxString *arg2 = 0 ;
5468 bool temp2 = False ;
5469 PyObject * obj0 = 0 ;
5470 PyObject * obj1 = 0 ;
5471 char *kwnames[] = {
5472 (char *) "self",(char *) "file", NULL
5473 };
5474
5475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
5476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5478 {
5479 arg2 = wxString_in_helper(obj1);
5480 if (arg2 == NULL) SWIG_fail;
5481 temp2 = True;
5482 }
5483 {
5484 PyThreadState* __tstate = wxPyBeginAllowThreads();
5485 (arg1)->AddFileToHistory((wxString const &)*arg2);
5486
5487 wxPyEndAllowThreads(__tstate);
5488 if (PyErr_Occurred()) SWIG_fail;
5489 }
5490 Py_INCREF(Py_None); resultobj = Py_None;
5491 {
5492 if (temp2)
5493 delete arg2;
5494 }
5495 return resultobj;
5496 fail:
5497 {
5498 if (temp2)
5499 delete arg2;
5500 }
5501 return NULL;
5502 }
5503
5504
5505 static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5506 PyObject *resultobj;
5507 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5508 int arg2 ;
5509 PyObject * obj0 = 0 ;
5510 PyObject * obj1 = 0 ;
5511 char *kwnames[] = {
5512 (char *) "self",(char *) "i", NULL
5513 };
5514
5515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
5516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5518 arg2 = (int) SWIG_AsInt(obj1);
5519 if (PyErr_Occurred()) SWIG_fail;
5520 {
5521 PyThreadState* __tstate = wxPyBeginAllowThreads();
5522 (arg1)->RemoveFileFromHistory(arg2);
5523
5524 wxPyEndAllowThreads(__tstate);
5525 if (PyErr_Occurred()) SWIG_fail;
5526 }
5527 Py_INCREF(Py_None); resultobj = Py_None;
5528 return resultobj;
5529 fail:
5530 return NULL;
5531 }
5532
5533
5534 static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
5535 PyObject *resultobj;
5536 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5537 int result;
5538 PyObject * obj0 = 0 ;
5539 char *kwnames[] = {
5540 (char *) "self", NULL
5541 };
5542
5543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
5544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5546 {
5547 PyThreadState* __tstate = wxPyBeginAllowThreads();
5548 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
5549
5550 wxPyEndAllowThreads(__tstate);
5551 if (PyErr_Occurred()) SWIG_fail;
5552 }
5553 resultobj = SWIG_FromInt((int)result);
5554 return resultobj;
5555 fail:
5556 return NULL;
5557 }
5558
5559
5560 static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5561 PyObject *resultobj;
5562 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5563 wxMenu *arg2 = (wxMenu *) 0 ;
5564 PyObject * obj0 = 0 ;
5565 PyObject * obj1 = 0 ;
5566 char *kwnames[] = {
5567 (char *) "self",(char *) "menu", NULL
5568 };
5569
5570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
5571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5573 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5575 {
5576 PyThreadState* __tstate = wxPyBeginAllowThreads();
5577 (arg1)->UseMenu(arg2);
5578
5579 wxPyEndAllowThreads(__tstate);
5580 if (PyErr_Occurred()) SWIG_fail;
5581 }
5582 Py_INCREF(Py_None); resultobj = Py_None;
5583 return resultobj;
5584 fail:
5585 return NULL;
5586 }
5587
5588
5589 static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5590 PyObject *resultobj;
5591 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5592 wxMenu *arg2 = (wxMenu *) 0 ;
5593 PyObject * obj0 = 0 ;
5594 PyObject * obj1 = 0 ;
5595 char *kwnames[] = {
5596 (char *) "self",(char *) "menu", NULL
5597 };
5598
5599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
5600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5602 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5604 {
5605 PyThreadState* __tstate = wxPyBeginAllowThreads();
5606 (arg1)->RemoveMenu(arg2);
5607
5608 wxPyEndAllowThreads(__tstate);
5609 if (PyErr_Occurred()) SWIG_fail;
5610 }
5611 Py_INCREF(Py_None); resultobj = Py_None;
5612 return resultobj;
5613 fail:
5614 return NULL;
5615 }
5616
5617
5618 static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) {
5619 PyObject *resultobj;
5620 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5621 wxConfigBase *arg2 = 0 ;
5622 PyObject * obj0 = 0 ;
5623 PyObject * obj1 = 0 ;
5624 char *kwnames[] = {
5625 (char *) "self",(char *) "config", NULL
5626 };
5627
5628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
5629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5631 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5632 SWIG_POINTER_EXCEPTION | 0)) == -1)
5633 SWIG_fail;
5634 if (arg2 == NULL) {
5635 PyErr_SetString(PyExc_TypeError,"null reference");
5636 SWIG_fail;
5637 }
5638 {
5639 PyThreadState* __tstate = wxPyBeginAllowThreads();
5640 (arg1)->Load(*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_Save(PyObject *self, PyObject *args, PyObject *kwargs) {
5653 PyObject *resultobj;
5654 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5655 wxConfigBase *arg2 = 0 ;
5656 PyObject * obj0 = 0 ;
5657 PyObject * obj1 = 0 ;
5658 char *kwnames[] = {
5659 (char *) "self",(char *) "config", NULL
5660 };
5661
5662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
5663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5665 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5666 SWIG_POINTER_EXCEPTION | 0)) == -1)
5667 SWIG_fail;
5668 if (arg2 == NULL) {
5669 PyErr_SetString(PyExc_TypeError,"null reference");
5670 SWIG_fail;
5671 }
5672 {
5673 PyThreadState* __tstate = wxPyBeginAllowThreads();
5674 (arg1)->Save(*arg2);
5675
5676 wxPyEndAllowThreads(__tstate);
5677 if (PyErr_Occurred()) SWIG_fail;
5678 }
5679 Py_INCREF(Py_None); resultobj = Py_None;
5680 return resultobj;
5681 fail:
5682 return NULL;
5683 }
5684
5685
5686 static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5687 PyObject *resultobj;
5688 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5689 PyObject * obj0 = 0 ;
5690 char *kwnames[] = {
5691 (char *) "self", NULL
5692 };
5693
5694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
5695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5697 {
5698 PyThreadState* __tstate = wxPyBeginAllowThreads();
5699 (arg1)->AddFilesToMenu();
5700
5701 wxPyEndAllowThreads(__tstate);
5702 if (PyErr_Occurred()) SWIG_fail;
5703 }
5704 Py_INCREF(Py_None); resultobj = Py_None;
5705 return resultobj;
5706 fail:
5707 return NULL;
5708 }
5709
5710
5711 static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5712 PyObject *resultobj;
5713 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5714 wxMenu *arg2 = (wxMenu *) 0 ;
5715 PyObject * obj0 = 0 ;
5716 PyObject * obj1 = 0 ;
5717 char *kwnames[] = {
5718 (char *) "self",(char *) "menu", NULL
5719 };
5720
5721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
5722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5724 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5726 {
5727 PyThreadState* __tstate = wxPyBeginAllowThreads();
5728 (arg1)->AddFilesToMenu(arg2);
5729
5730 wxPyEndAllowThreads(__tstate);
5731 if (PyErr_Occurred()) SWIG_fail;
5732 }
5733 Py_INCREF(Py_None); resultobj = Py_None;
5734 return resultobj;
5735 fail:
5736 return NULL;
5737 }
5738
5739
5740 static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) {
5741 PyObject *resultobj;
5742 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5743 int arg2 ;
5744 wxString result;
5745 PyObject * obj0 = 0 ;
5746 PyObject * obj1 = 0 ;
5747 char *kwnames[] = {
5748 (char *) "self",(char *) "i", NULL
5749 };
5750
5751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
5752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5754 arg2 = (int) SWIG_AsInt(obj1);
5755 if (PyErr_Occurred()) SWIG_fail;
5756 {
5757 PyThreadState* __tstate = wxPyBeginAllowThreads();
5758 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
5759
5760 wxPyEndAllowThreads(__tstate);
5761 if (PyErr_Occurred()) SWIG_fail;
5762 }
5763 {
5764 #if wxUSE_UNICODE
5765 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5766 #else
5767 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5768 #endif
5769 }
5770 return resultobj;
5771 fail:
5772 return NULL;
5773 }
5774
5775
5776 static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5777 PyObject *resultobj;
5778 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5779 int result;
5780 PyObject * obj0 = 0 ;
5781 char *kwnames[] = {
5782 (char *) "self", NULL
5783 };
5784
5785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
5786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5788 {
5789 PyThreadState* __tstate = wxPyBeginAllowThreads();
5790 result = (int)((wxFileHistory const *)arg1)->GetCount();
5791
5792 wxPyEndAllowThreads(__tstate);
5793 if (PyErr_Occurred()) SWIG_fail;
5794 }
5795 resultobj = SWIG_FromInt((int)result);
5796 return resultobj;
5797 fail:
5798 return NULL;
5799 }
5800
5801
5802 static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) {
5803 PyObject *obj;
5804 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5805 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
5806 Py_INCREF(obj);
5807 return Py_BuildValue((char *)"");
5808 }
5809 static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5810 PyObject *resultobj;
5811 wxString *arg1 = 0 ;
5812 wxString const &arg2_defvalue = wxPyEmptyString ;
5813 wxString *arg2 = (wxString *) &arg2_defvalue ;
5814 wxSingleInstanceChecker *result;
5815 bool temp1 = False ;
5816 bool temp2 = False ;
5817 PyObject * obj0 = 0 ;
5818 PyObject * obj1 = 0 ;
5819 char *kwnames[] = {
5820 (char *) "name",(char *) "path", NULL
5821 };
5822
5823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
5824 {
5825 arg1 = wxString_in_helper(obj0);
5826 if (arg1 == NULL) SWIG_fail;
5827 temp1 = True;
5828 }
5829 if (obj1) {
5830 {
5831 arg2 = wxString_in_helper(obj1);
5832 if (arg2 == NULL) SWIG_fail;
5833 temp2 = True;
5834 }
5835 }
5836 {
5837 PyThreadState* __tstate = wxPyBeginAllowThreads();
5838 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
5839
5840 wxPyEndAllowThreads(__tstate);
5841 if (PyErr_Occurred()) SWIG_fail;
5842 }
5843 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
5844 {
5845 if (temp1)
5846 delete arg1;
5847 }
5848 {
5849 if (temp2)
5850 delete arg2;
5851 }
5852 return resultobj;
5853 fail:
5854 {
5855 if (temp1)
5856 delete arg1;
5857 }
5858 {
5859 if (temp2)
5860 delete arg2;
5861 }
5862 return NULL;
5863 }
5864
5865
5866 static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5867 PyObject *resultobj;
5868 wxSingleInstanceChecker *result;
5869 char *kwnames[] = {
5870 NULL
5871 };
5872
5873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
5874 {
5875 PyThreadState* __tstate = wxPyBeginAllowThreads();
5876 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
5877
5878 wxPyEndAllowThreads(__tstate);
5879 if (PyErr_Occurred()) SWIG_fail;
5880 }
5881 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
5882 return resultobj;
5883 fail:
5884 return NULL;
5885 }
5886
5887
5888 static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5889 PyObject *resultobj;
5890 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5891 PyObject * obj0 = 0 ;
5892 char *kwnames[] = {
5893 (char *) "self", NULL
5894 };
5895
5896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
5897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5899 {
5900 PyThreadState* __tstate = wxPyBeginAllowThreads();
5901 delete arg1;
5902
5903 wxPyEndAllowThreads(__tstate);
5904 if (PyErr_Occurred()) SWIG_fail;
5905 }
5906 Py_INCREF(Py_None); resultobj = Py_None;
5907 return resultobj;
5908 fail:
5909 return NULL;
5910 }
5911
5912
5913 static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5914 PyObject *resultobj;
5915 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5916 wxString *arg2 = 0 ;
5917 wxString const &arg3_defvalue = wxPyEmptyString ;
5918 wxString *arg3 = (wxString *) &arg3_defvalue ;
5919 bool result;
5920 bool temp2 = False ;
5921 bool temp3 = False ;
5922 PyObject * obj0 = 0 ;
5923 PyObject * obj1 = 0 ;
5924 PyObject * obj2 = 0 ;
5925 char *kwnames[] = {
5926 (char *) "self",(char *) "name",(char *) "path", NULL
5927 };
5928
5929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
5930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5932 {
5933 arg2 = wxString_in_helper(obj1);
5934 if (arg2 == NULL) SWIG_fail;
5935 temp2 = True;
5936 }
5937 if (obj2) {
5938 {
5939 arg3 = wxString_in_helper(obj2);
5940 if (arg3 == NULL) SWIG_fail;
5941 temp3 = True;
5942 }
5943 }
5944 {
5945 PyThreadState* __tstate = wxPyBeginAllowThreads();
5946 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
5947
5948 wxPyEndAllowThreads(__tstate);
5949 if (PyErr_Occurred()) SWIG_fail;
5950 }
5951 {
5952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5953 }
5954 {
5955 if (temp2)
5956 delete arg2;
5957 }
5958 {
5959 if (temp3)
5960 delete arg3;
5961 }
5962 return resultobj;
5963 fail:
5964 {
5965 if (temp2)
5966 delete arg2;
5967 }
5968 {
5969 if (temp3)
5970 delete arg3;
5971 }
5972 return NULL;
5973 }
5974
5975
5976 static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
5977 PyObject *resultobj;
5978 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5979 bool result;
5980 PyObject * obj0 = 0 ;
5981 char *kwnames[] = {
5982 (char *) "self", NULL
5983 };
5984
5985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
5986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5988 {
5989 PyThreadState* __tstate = wxPyBeginAllowThreads();
5990 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
5991
5992 wxPyEndAllowThreads(__tstate);
5993 if (PyErr_Occurred()) SWIG_fail;
5994 }
5995 {
5996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5997 }
5998 return resultobj;
5999 fail:
6000 return NULL;
6001 }
6002
6003
6004 static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) {
6005 PyObject *obj;
6006 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6007 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
6008 Py_INCREF(obj);
6009 return Py_BuildValue((char *)"");
6010 }
6011 static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) {
6012 PyObject *resultobj;
6013 wxWindow *arg1 = (wxWindow *) 0 ;
6014 wxDC *arg2 = 0 ;
6015 int arg3 ;
6016 PyObject * obj0 = 0 ;
6017 PyObject * obj1 = 0 ;
6018 PyObject * obj2 = 0 ;
6019 char *kwnames[] = {
6020 (char *) "window",(char *) "dc",(char *) "method", NULL
6021 };
6022
6023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
6024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6026 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
6027 SWIG_POINTER_EXCEPTION | 0)) == -1)
6028 SWIG_fail;
6029 if (arg2 == NULL) {
6030 PyErr_SetString(PyExc_TypeError,"null reference");
6031 SWIG_fail;
6032 }
6033 arg3 = (int) SWIG_AsInt(obj2);
6034 if (PyErr_Occurred()) SWIG_fail;
6035 {
6036 PyThreadState* __tstate = wxPyBeginAllowThreads();
6037 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
6038
6039 wxPyEndAllowThreads(__tstate);
6040 if (PyErr_Occurred()) SWIG_fail;
6041 }
6042 Py_INCREF(Py_None); resultobj = Py_None;
6043 return resultobj;
6044 fail:
6045 return NULL;
6046 }
6047
6048
6049 static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6050 PyObject *resultobj;
6051 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6052 PyObject * obj0 = 0 ;
6053 char *kwnames[] = {
6054 (char *) "self", NULL
6055 };
6056
6057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
6058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6060 {
6061 PyThreadState* __tstate = wxPyBeginAllowThreads();
6062 delete arg1;
6063
6064 wxPyEndAllowThreads(__tstate);
6065 if (PyErr_Occurred()) SWIG_fail;
6066 }
6067 Py_INCREF(Py_None); resultobj = Py_None;
6068 return resultobj;
6069 fail:
6070 return NULL;
6071 }
6072
6073
6074 static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6075 PyObject *resultobj;
6076 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6077 wxString result;
6078 PyObject * obj0 = 0 ;
6079 char *kwnames[] = {
6080 (char *) "self", NULL
6081 };
6082
6083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
6084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6086 {
6087 PyThreadState* __tstate = wxPyBeginAllowThreads();
6088 result = (arg1)->GetTip();
6089
6090 wxPyEndAllowThreads(__tstate);
6091 if (PyErr_Occurred()) SWIG_fail;
6092 }
6093 {
6094 #if wxUSE_UNICODE
6095 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6096 #else
6097 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6098 #endif
6099 }
6100 return resultobj;
6101 fail:
6102 return NULL;
6103 }
6104
6105
6106 static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6107 PyObject *resultobj;
6108 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6109 size_t result;
6110 PyObject * obj0 = 0 ;
6111 char *kwnames[] = {
6112 (char *) "self", NULL
6113 };
6114
6115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
6116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6118 {
6119 PyThreadState* __tstate = wxPyBeginAllowThreads();
6120 result = (size_t)(arg1)->GetCurrentTip();
6121
6122 wxPyEndAllowThreads(__tstate);
6123 if (PyErr_Occurred()) SWIG_fail;
6124 }
6125 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
6126 return resultobj;
6127 fail:
6128 return NULL;
6129 }
6130
6131
6132 static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6133 PyObject *resultobj;
6134 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6135 wxString *arg2 = 0 ;
6136 wxString result;
6137 bool temp2 = False ;
6138 PyObject * obj0 = 0 ;
6139 PyObject * obj1 = 0 ;
6140 char *kwnames[] = {
6141 (char *) "self",(char *) "tip", NULL
6142 };
6143
6144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
6145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6147 {
6148 arg2 = wxString_in_helper(obj1);
6149 if (arg2 == NULL) SWIG_fail;
6150 temp2 = True;
6151 }
6152 {
6153 PyThreadState* __tstate = wxPyBeginAllowThreads();
6154 result = (arg1)->PreprocessTip((wxString const &)*arg2);
6155
6156 wxPyEndAllowThreads(__tstate);
6157 if (PyErr_Occurred()) SWIG_fail;
6158 }
6159 {
6160 #if wxUSE_UNICODE
6161 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6162 #else
6163 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6164 #endif
6165 }
6166 {
6167 if (temp2)
6168 delete arg2;
6169 }
6170 return resultobj;
6171 fail:
6172 {
6173 if (temp2)
6174 delete arg2;
6175 }
6176 return NULL;
6177 }
6178
6179
6180 static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) {
6181 PyObject *obj;
6182 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6183 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
6184 Py_INCREF(obj);
6185 return Py_BuildValue((char *)"");
6186 }
6187 static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6188 PyObject *resultobj;
6189 size_t arg1 ;
6190 wxPyTipProvider *result;
6191 PyObject * obj0 = 0 ;
6192 char *kwnames[] = {
6193 (char *) "currentTip", NULL
6194 };
6195
6196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
6197 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
6198 if (PyErr_Occurred()) SWIG_fail;
6199 {
6200 PyThreadState* __tstate = wxPyBeginAllowThreads();
6201 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
6202
6203 wxPyEndAllowThreads(__tstate);
6204 if (PyErr_Occurred()) SWIG_fail;
6205 }
6206 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
6207 return resultobj;
6208 fail:
6209 return NULL;
6210 }
6211
6212
6213 static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6214 PyObject *resultobj;
6215 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
6216 PyObject *arg2 = (PyObject *) 0 ;
6217 PyObject *arg3 = (PyObject *) 0 ;
6218 PyObject * obj0 = 0 ;
6219 PyObject * obj1 = 0 ;
6220 PyObject * obj2 = 0 ;
6221 char *kwnames[] = {
6222 (char *) "self",(char *) "self",(char *) "_class", NULL
6223 };
6224
6225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider,
6227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6228 arg2 = obj1;
6229 arg3 = obj2;
6230 {
6231 PyThreadState* __tstate = wxPyBeginAllowThreads();
6232 (arg1)->_setCallbackInfo(arg2,arg3);
6233
6234 wxPyEndAllowThreads(__tstate);
6235 if (PyErr_Occurred()) SWIG_fail;
6236 }
6237 Py_INCREF(Py_None); resultobj = Py_None;
6238 return resultobj;
6239 fail:
6240 return NULL;
6241 }
6242
6243
6244 static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) {
6245 PyObject *obj;
6246 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6247 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
6248 Py_INCREF(obj);
6249 return Py_BuildValue((char *)"");
6250 }
6251 static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6252 PyObject *resultobj;
6253 wxWindow *arg1 = (wxWindow *) 0 ;
6254 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
6255 bool arg3 = (bool) True ;
6256 bool result;
6257 PyObject * obj0 = 0 ;
6258 PyObject * obj1 = 0 ;
6259 PyObject * obj2 = 0 ;
6260 char *kwnames[] = {
6261 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
6262 };
6263
6264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
6265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6267 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider,
6268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6269 if (obj2) {
6270 arg3 = (bool) SWIG_AsBool(obj2);
6271 if (PyErr_Occurred()) SWIG_fail;
6272 }
6273 {
6274 PyThreadState* __tstate = wxPyBeginAllowThreads();
6275 result = (bool)wxShowTip(arg1,arg2,arg3);
6276
6277 wxPyEndAllowThreads(__tstate);
6278 if (PyErr_Occurred()) SWIG_fail;
6279 }
6280 {
6281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6282 }
6283 return resultobj;
6284 fail:
6285 return NULL;
6286 }
6287
6288
6289 static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6290 PyObject *resultobj;
6291 wxString *arg1 = 0 ;
6292 size_t arg2 ;
6293 wxTipProvider *result;
6294 bool temp1 = False ;
6295 PyObject * obj0 = 0 ;
6296 PyObject * obj1 = 0 ;
6297 char *kwnames[] = {
6298 (char *) "filename",(char *) "currentTip", NULL
6299 };
6300
6301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
6302 {
6303 arg1 = wxString_in_helper(obj0);
6304 if (arg1 == NULL) SWIG_fail;
6305 temp1 = True;
6306 }
6307 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6308 if (PyErr_Occurred()) SWIG_fail;
6309 {
6310 PyThreadState* __tstate = wxPyBeginAllowThreads();
6311 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
6312
6313 wxPyEndAllowThreads(__tstate);
6314 if (PyErr_Occurred()) SWIG_fail;
6315 }
6316 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
6317 {
6318 if (temp1)
6319 delete arg1;
6320 }
6321 return resultobj;
6322 fail:
6323 {
6324 if (temp1)
6325 delete arg1;
6326 }
6327 return NULL;
6328 }
6329
6330
6331 static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6332 PyObject *resultobj;
6333 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
6334 int arg2 = (int) -1 ;
6335 wxPyTimer *result;
6336 PyObject * obj0 = 0 ;
6337 PyObject * obj1 = 0 ;
6338 char *kwnames[] = {
6339 (char *) "owner",(char *) "id", NULL
6340 };
6341
6342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
6343 if (obj0) {
6344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
6345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6346 }
6347 if (obj1) {
6348 arg2 = (int) SWIG_AsInt(obj1);
6349 if (PyErr_Occurred()) SWIG_fail;
6350 }
6351 {
6352 PyThreadState* __tstate = wxPyBeginAllowThreads();
6353 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
6354
6355 wxPyEndAllowThreads(__tstate);
6356 if (PyErr_Occurred()) SWIG_fail;
6357 }
6358 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
6359 return resultobj;
6360 fail:
6361 return NULL;
6362 }
6363
6364
6365 static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6366 PyObject *resultobj;
6367 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6368 PyObject * obj0 = 0 ;
6369 char *kwnames[] = {
6370 (char *) "self", NULL
6371 };
6372
6373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
6374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6376 {
6377 PyThreadState* __tstate = wxPyBeginAllowThreads();
6378 delete arg1;
6379
6380 wxPyEndAllowThreads(__tstate);
6381 if (PyErr_Occurred()) SWIG_fail;
6382 }
6383 Py_INCREF(Py_None); resultobj = Py_None;
6384 return resultobj;
6385 fail:
6386 return NULL;
6387 }
6388
6389
6390 static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6391 PyObject *resultobj;
6392 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6393 PyObject *arg2 = (PyObject *) 0 ;
6394 PyObject *arg3 = (PyObject *) 0 ;
6395 int arg4 = (int) 1 ;
6396 PyObject * obj0 = 0 ;
6397 PyObject * obj1 = 0 ;
6398 PyObject * obj2 = 0 ;
6399 PyObject * obj3 = 0 ;
6400 char *kwnames[] = {
6401 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
6402 };
6403
6404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6407 arg2 = obj1;
6408 arg3 = obj2;
6409 if (obj3) {
6410 arg4 = (int) SWIG_AsInt(obj3);
6411 if (PyErr_Occurred()) SWIG_fail;
6412 }
6413 {
6414 PyThreadState* __tstate = wxPyBeginAllowThreads();
6415 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
6416
6417 wxPyEndAllowThreads(__tstate);
6418 if (PyErr_Occurred()) SWIG_fail;
6419 }
6420 Py_INCREF(Py_None); resultobj = Py_None;
6421 return resultobj;
6422 fail:
6423 return NULL;
6424 }
6425
6426
6427 static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6428 PyObject *resultobj;
6429 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6430 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
6431 int arg3 = (int) -1 ;
6432 PyObject * obj0 = 0 ;
6433 PyObject * obj1 = 0 ;
6434 PyObject * obj2 = 0 ;
6435 char *kwnames[] = {
6436 (char *) "self",(char *) "owner",(char *) "id", NULL
6437 };
6438
6439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
6440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6442 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
6443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6444 if (obj2) {
6445 arg3 = (int) SWIG_AsInt(obj2);
6446 if (PyErr_Occurred()) SWIG_fail;
6447 }
6448 {
6449 PyThreadState* __tstate = wxPyBeginAllowThreads();
6450 (arg1)->SetOwner(arg2,arg3);
6451
6452 wxPyEndAllowThreads(__tstate);
6453 if (PyErr_Occurred()) SWIG_fail;
6454 }
6455 Py_INCREF(Py_None); resultobj = Py_None;
6456 return resultobj;
6457 fail:
6458 return NULL;
6459 }
6460
6461
6462 static PyObject *_wrap_Timer_GetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6463 PyObject *resultobj;
6464 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6465 wxEvtHandler *result;
6466 PyObject * obj0 = 0 ;
6467 char *kwnames[] = {
6468 (char *) "self", NULL
6469 };
6470
6471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail;
6472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6474 {
6475 PyThreadState* __tstate = wxPyBeginAllowThreads();
6476 result = (wxEvtHandler *)(arg1)->GetOwner();
6477
6478 wxPyEndAllowThreads(__tstate);
6479 if (PyErr_Occurred()) SWIG_fail;
6480 }
6481 {
6482 resultobj = wxPyMake_wxObject(result);
6483 }
6484 return resultobj;
6485 fail:
6486 return NULL;
6487 }
6488
6489
6490 static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6491 PyObject *resultobj;
6492 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6493 int arg2 = (int) -1 ;
6494 bool arg3 = (bool) False ;
6495 bool result;
6496 PyObject * obj0 = 0 ;
6497 PyObject * obj1 = 0 ;
6498 PyObject * obj2 = 0 ;
6499 char *kwnames[] = {
6500 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
6501 };
6502
6503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6506 if (obj1) {
6507 arg2 = (int) SWIG_AsInt(obj1);
6508 if (PyErr_Occurred()) SWIG_fail;
6509 }
6510 if (obj2) {
6511 arg3 = (bool) SWIG_AsBool(obj2);
6512 if (PyErr_Occurred()) SWIG_fail;
6513 }
6514 {
6515 PyThreadState* __tstate = wxPyBeginAllowThreads();
6516 result = (bool)(arg1)->Start(arg2,arg3);
6517
6518 wxPyEndAllowThreads(__tstate);
6519 if (PyErr_Occurred()) SWIG_fail;
6520 }
6521 {
6522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6523 }
6524 return resultobj;
6525 fail:
6526 return NULL;
6527 }
6528
6529
6530 static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
6531 PyObject *resultobj;
6532 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6533 PyObject * obj0 = 0 ;
6534 char *kwnames[] = {
6535 (char *) "self", NULL
6536 };
6537
6538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
6539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6541 {
6542 PyThreadState* __tstate = wxPyBeginAllowThreads();
6543 (arg1)->Stop();
6544
6545 wxPyEndAllowThreads(__tstate);
6546 if (PyErr_Occurred()) SWIG_fail;
6547 }
6548 Py_INCREF(Py_None); resultobj = Py_None;
6549 return resultobj;
6550 fail:
6551 return NULL;
6552 }
6553
6554
6555 static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6556 PyObject *resultobj;
6557 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6558 bool result;
6559 PyObject * obj0 = 0 ;
6560 char *kwnames[] = {
6561 (char *) "self", NULL
6562 };
6563
6564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
6565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6567 {
6568 PyThreadState* __tstate = wxPyBeginAllowThreads();
6569 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
6570
6571 wxPyEndAllowThreads(__tstate);
6572 if (PyErr_Occurred()) SWIG_fail;
6573 }
6574 {
6575 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6576 }
6577 return resultobj;
6578 fail:
6579 return NULL;
6580 }
6581
6582
6583 static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6584 PyObject *resultobj;
6585 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6586 int result;
6587 PyObject * obj0 = 0 ;
6588 char *kwnames[] = {
6589 (char *) "self", NULL
6590 };
6591
6592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",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 = (int)((wxPyTimer const *)arg1)->GetInterval();
6598
6599 wxPyEndAllowThreads(__tstate);
6600 if (PyErr_Occurred()) SWIG_fail;
6601 }
6602 resultobj = SWIG_FromInt((int)result);
6603 return resultobj;
6604 fail:
6605 return NULL;
6606 }
6607
6608
6609 static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) {
6610 PyObject *resultobj;
6611 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6612 bool result;
6613 PyObject * obj0 = 0 ;
6614 char *kwnames[] = {
6615 (char *) "self", NULL
6616 };
6617
6618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
6619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6621 {
6622 PyThreadState* __tstate = wxPyBeginAllowThreads();
6623 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
6624
6625 wxPyEndAllowThreads(__tstate);
6626 if (PyErr_Occurred()) SWIG_fail;
6627 }
6628 {
6629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6630 }
6631 return resultobj;
6632 fail:
6633 return NULL;
6634 }
6635
6636
6637 static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6638 PyObject *resultobj;
6639 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6640 int result;
6641 PyObject * obj0 = 0 ;
6642 char *kwnames[] = {
6643 (char *) "self", NULL
6644 };
6645
6646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
6647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6649 {
6650 PyThreadState* __tstate = wxPyBeginAllowThreads();
6651 result = (int)((wxPyTimer const *)arg1)->GetId();
6652
6653 wxPyEndAllowThreads(__tstate);
6654 if (PyErr_Occurred()) SWIG_fail;
6655 }
6656 resultobj = SWIG_FromInt((int)result);
6657 return resultobj;
6658 fail:
6659 return NULL;
6660 }
6661
6662
6663 static PyObject * Timer_swigregister(PyObject *self, PyObject *args) {
6664 PyObject *obj;
6665 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6666 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
6667 Py_INCREF(obj);
6668 return Py_BuildValue((char *)"");
6669 }
6670 static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
6671 PyObject *resultobj;
6672 int arg1 = (int) 0 ;
6673 int arg2 = (int) 0 ;
6674 wxTimerEvent *result;
6675 PyObject * obj0 = 0 ;
6676 PyObject * obj1 = 0 ;
6677 char *kwnames[] = {
6678 (char *) "timerid",(char *) "interval", NULL
6679 };
6680
6681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
6682 if (obj0) {
6683 arg1 = (int) SWIG_AsInt(obj0);
6684 if (PyErr_Occurred()) SWIG_fail;
6685 }
6686 if (obj1) {
6687 arg2 = (int) SWIG_AsInt(obj1);
6688 if (PyErr_Occurred()) SWIG_fail;
6689 }
6690 {
6691 PyThreadState* __tstate = wxPyBeginAllowThreads();
6692 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
6693
6694 wxPyEndAllowThreads(__tstate);
6695 if (PyErr_Occurred()) SWIG_fail;
6696 }
6697 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
6698 return resultobj;
6699 fail:
6700 return NULL;
6701 }
6702
6703
6704 static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6705 PyObject *resultobj;
6706 wxTimerEvent *arg1 = (wxTimerEvent *) 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:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
6714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent,
6715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6716 {
6717 PyThreadState* __tstate = wxPyBeginAllowThreads();
6718 result = (int)((wxTimerEvent 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 * TimerEvent_swigregister(PyObject *self, PyObject *args) {
6731 PyObject *obj;
6732 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6733 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
6734 Py_INCREF(obj);
6735 return Py_BuildValue((char *)"");
6736 }
6737 static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) {
6738 PyObject *resultobj;
6739 wxTimer *arg1 = 0 ;
6740 wxTimerRunner *result;
6741 PyObject * obj0 = 0 ;
6742
6743 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
6744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6745 SWIG_POINTER_EXCEPTION | 0)) == -1)
6746 SWIG_fail;
6747 if (arg1 == NULL) {
6748 PyErr_SetString(PyExc_TypeError,"null reference");
6749 SWIG_fail;
6750 }
6751 {
6752 PyThreadState* __tstate = wxPyBeginAllowThreads();
6753 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
6754
6755 wxPyEndAllowThreads(__tstate);
6756 if (PyErr_Occurred()) SWIG_fail;
6757 }
6758 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6759 return resultobj;
6760 fail:
6761 return NULL;
6762 }
6763
6764
6765 static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) {
6766 PyObject *resultobj;
6767 wxTimer *arg1 = 0 ;
6768 int arg2 ;
6769 bool arg3 = (bool) False ;
6770 wxTimerRunner *result;
6771 PyObject * obj0 = 0 ;
6772 PyObject * obj1 = 0 ;
6773 PyObject * obj2 = 0 ;
6774
6775 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
6776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6777 SWIG_POINTER_EXCEPTION | 0)) == -1)
6778 SWIG_fail;
6779 if (arg1 == NULL) {
6780 PyErr_SetString(PyExc_TypeError,"null reference");
6781 SWIG_fail;
6782 }
6783 arg2 = (int) SWIG_AsInt(obj1);
6784 if (PyErr_Occurred()) SWIG_fail;
6785 if (obj2) {
6786 arg3 = (bool) SWIG_AsBool(obj2);
6787 if (PyErr_Occurred()) SWIG_fail;
6788 }
6789 {
6790 PyThreadState* __tstate = wxPyBeginAllowThreads();
6791 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
6792
6793 wxPyEndAllowThreads(__tstate);
6794 if (PyErr_Occurred()) SWIG_fail;
6795 }
6796 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6797 return resultobj;
6798 fail:
6799 return NULL;
6800 }
6801
6802
6803 static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
6804 int argc;
6805 PyObject *argv[4];
6806 int ii;
6807
6808 argc = PyObject_Length(args);
6809 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
6810 argv[ii] = PyTuple_GetItem(args,ii);
6811 }
6812 if (argc == 1) {
6813 int _v;
6814 {
6815 void *ptr;
6816 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6817 _v = 0;
6818 PyErr_Clear();
6819 } else {
6820 _v = 1;
6821 }
6822 }
6823 if (_v) {
6824 return _wrap_new_TimerRunner__SWIG_0(self,args);
6825 }
6826 }
6827 if ((argc >= 2) && (argc <= 3)) {
6828 int _v;
6829 {
6830 void *ptr;
6831 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6832 _v = 0;
6833 PyErr_Clear();
6834 } else {
6835 _v = 1;
6836 }
6837 }
6838 if (_v) {
6839 _v = SWIG_CheckInt(argv[1]);
6840 if (_v) {
6841 if (argc <= 2) {
6842 return _wrap_new_TimerRunner__SWIG_1(self,args);
6843 }
6844 _v = SWIG_CheckBool(argv[2]);
6845 if (_v) {
6846 return _wrap_new_TimerRunner__SWIG_1(self,args);
6847 }
6848 }
6849 }
6850 }
6851
6852 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
6853 return NULL;
6854 }
6855
6856
6857 static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) {
6858 PyObject *resultobj;
6859 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6860 PyObject * obj0 = 0 ;
6861 char *kwnames[] = {
6862 (char *) "self", NULL
6863 };
6864
6865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
6866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
6867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6868 {
6869 PyThreadState* __tstate = wxPyBeginAllowThreads();
6870 delete arg1;
6871
6872 wxPyEndAllowThreads(__tstate);
6873 if (PyErr_Occurred()) SWIG_fail;
6874 }
6875 Py_INCREF(Py_None); resultobj = Py_None;
6876 return resultobj;
6877 fail:
6878 return NULL;
6879 }
6880
6881
6882 static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6883 PyObject *resultobj;
6884 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6885 int arg2 ;
6886 bool arg3 = (bool) False ;
6887 PyObject * obj0 = 0 ;
6888 PyObject * obj1 = 0 ;
6889 PyObject * obj2 = 0 ;
6890 char *kwnames[] = {
6891 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
6892 };
6893
6894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
6896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6897 arg2 = (int) SWIG_AsInt(obj1);
6898 if (PyErr_Occurred()) SWIG_fail;
6899 if (obj2) {
6900 arg3 = (bool) SWIG_AsBool(obj2);
6901 if (PyErr_Occurred()) SWIG_fail;
6902 }
6903 {
6904 PyThreadState* __tstate = wxPyBeginAllowThreads();
6905 (arg1)->Start(arg2,arg3);
6906
6907 wxPyEndAllowThreads(__tstate);
6908 if (PyErr_Occurred()) SWIG_fail;
6909 }
6910 Py_INCREF(Py_None); resultobj = Py_None;
6911 return resultobj;
6912 fail:
6913 return NULL;
6914 }
6915
6916
6917 static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) {
6918 PyObject *obj;
6919 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6920 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
6921 Py_INCREF(obj);
6922 return Py_BuildValue((char *)"");
6923 }
6924 static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) {
6925 PyObject *resultobj;
6926 wxLog *result;
6927 char *kwnames[] = {
6928 NULL
6929 };
6930
6931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
6932 {
6933 PyThreadState* __tstate = wxPyBeginAllowThreads();
6934 result = (wxLog *)new wxLog();
6935
6936 wxPyEndAllowThreads(__tstate);
6937 if (PyErr_Occurred()) SWIG_fail;
6938 }
6939 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
6940 return resultobj;
6941 fail:
6942 return NULL;
6943 }
6944
6945
6946 static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
6947 PyObject *resultobj;
6948 bool result;
6949 char *kwnames[] = {
6950 NULL
6951 };
6952
6953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
6954 {
6955 PyThreadState* __tstate = wxPyBeginAllowThreads();
6956 result = (bool)wxLog::IsEnabled();
6957
6958 wxPyEndAllowThreads(__tstate);
6959 if (PyErr_Occurred()) SWIG_fail;
6960 }
6961 {
6962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6963 }
6964 return resultobj;
6965 fail:
6966 return NULL;
6967 }
6968
6969
6970 static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) {
6971 PyObject *resultobj;
6972 bool arg1 = (bool) True ;
6973 bool result;
6974 PyObject * obj0 = 0 ;
6975 char *kwnames[] = {
6976 (char *) "doIt", NULL
6977 };
6978
6979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
6980 if (obj0) {
6981 arg1 = (bool) SWIG_AsBool(obj0);
6982 if (PyErr_Occurred()) SWIG_fail;
6983 }
6984 {
6985 PyThreadState* __tstate = wxPyBeginAllowThreads();
6986 result = (bool)wxLog::EnableLogging(arg1);
6987
6988 wxPyEndAllowThreads(__tstate);
6989 if (PyErr_Occurred()) SWIG_fail;
6990 }
6991 {
6992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6993 }
6994 return resultobj;
6995 fail:
6996 return NULL;
6997 }
6998
6999
7000 static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7001 PyObject *resultobj;
7002 wxLogLevel arg1 ;
7003 wxChar *arg2 = (wxChar *) 0 ;
7004 time_t arg3 ;
7005 PyObject * obj0 = 0 ;
7006 PyObject * obj1 = 0 ;
7007 PyObject * obj2 = 0 ;
7008 char *kwnames[] = {
7009 (char *) "level",(char *) "szString",(char *) "t", NULL
7010 };
7011
7012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
7013 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7014 if (PyErr_Occurred()) SWIG_fail;
7015 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar,
7016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7017 arg3 = (time_t) SWIG_AsUnsignedInt(obj2);
7018 if (PyErr_Occurred()) SWIG_fail;
7019 {
7020 PyThreadState* __tstate = wxPyBeginAllowThreads();
7021 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
7022
7023 wxPyEndAllowThreads(__tstate);
7024 if (PyErr_Occurred()) SWIG_fail;
7025 }
7026 Py_INCREF(Py_None); resultobj = Py_None;
7027 return resultobj;
7028 fail:
7029 return NULL;
7030 }
7031
7032
7033 static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
7034 PyObject *resultobj;
7035 wxLog *arg1 = (wxLog *) 0 ;
7036 PyObject * obj0 = 0 ;
7037 char *kwnames[] = {
7038 (char *) "self", NULL
7039 };
7040
7041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
7042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7044 {
7045 PyThreadState* __tstate = wxPyBeginAllowThreads();
7046 (arg1)->Flush();
7047
7048 wxPyEndAllowThreads(__tstate);
7049 if (PyErr_Occurred()) SWIG_fail;
7050 }
7051 Py_INCREF(Py_None); resultobj = Py_None;
7052 return resultobj;
7053 fail:
7054 return NULL;
7055 }
7056
7057
7058 static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) {
7059 PyObject *resultobj;
7060 char *kwnames[] = {
7061 NULL
7062 };
7063
7064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
7065 {
7066 PyThreadState* __tstate = wxPyBeginAllowThreads();
7067 wxLog::FlushActive();
7068
7069 wxPyEndAllowThreads(__tstate);
7070 if (PyErr_Occurred()) SWIG_fail;
7071 }
7072 Py_INCREF(Py_None); resultobj = Py_None;
7073 return resultobj;
7074 fail:
7075 return NULL;
7076 }
7077
7078
7079 static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
7080 PyObject *resultobj;
7081 wxLog *result;
7082 char *kwnames[] = {
7083 NULL
7084 };
7085
7086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
7087 {
7088 PyThreadState* __tstate = wxPyBeginAllowThreads();
7089 result = (wxLog *)wxLog::GetActiveTarget();
7090
7091 wxPyEndAllowThreads(__tstate);
7092 if (PyErr_Occurred()) SWIG_fail;
7093 }
7094 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7095 return resultobj;
7096 fail:
7097 return NULL;
7098 }
7099
7100
7101 static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
7102 PyObject *resultobj;
7103 wxLog *arg1 = (wxLog *) 0 ;
7104 wxLog *result;
7105 PyObject * obj0 = 0 ;
7106 char *kwnames[] = {
7107 (char *) "pLogger", NULL
7108 };
7109
7110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
7111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7113 {
7114 PyThreadState* __tstate = wxPyBeginAllowThreads();
7115 result = (wxLog *)wxLog::SetActiveTarget(arg1);
7116
7117 wxPyEndAllowThreads(__tstate);
7118 if (PyErr_Occurred()) SWIG_fail;
7119 }
7120 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7121 return resultobj;
7122 fail:
7123 return NULL;
7124 }
7125
7126
7127 static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) {
7128 PyObject *resultobj;
7129 char *kwnames[] = {
7130 NULL
7131 };
7132
7133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
7134 {
7135 PyThreadState* __tstate = wxPyBeginAllowThreads();
7136 wxLog::Suspend();
7137
7138 wxPyEndAllowThreads(__tstate);
7139 if (PyErr_Occurred()) SWIG_fail;
7140 }
7141 Py_INCREF(Py_None); resultobj = Py_None;
7142 return resultobj;
7143 fail:
7144 return NULL;
7145 }
7146
7147
7148 static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
7149 PyObject *resultobj;
7150 char *kwnames[] = {
7151 NULL
7152 };
7153
7154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
7155 {
7156 PyThreadState* __tstate = wxPyBeginAllowThreads();
7157 wxLog::Resume();
7158
7159 wxPyEndAllowThreads(__tstate);
7160 if (PyErr_Occurred()) SWIG_fail;
7161 }
7162 Py_INCREF(Py_None); resultobj = Py_None;
7163 return resultobj;
7164 fail:
7165 return NULL;
7166 }
7167
7168
7169 static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7170 PyObject *resultobj;
7171 bool arg1 = (bool) True ;
7172 PyObject * obj0 = 0 ;
7173 char *kwnames[] = {
7174 (char *) "bVerbose", NULL
7175 };
7176
7177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
7178 if (obj0) {
7179 arg1 = (bool) SWIG_AsBool(obj0);
7180 if (PyErr_Occurred()) SWIG_fail;
7181 }
7182 {
7183 PyThreadState* __tstate = wxPyBeginAllowThreads();
7184 wxLog::SetVerbose(arg1);
7185
7186 wxPyEndAllowThreads(__tstate);
7187 if (PyErr_Occurred()) SWIG_fail;
7188 }
7189 Py_INCREF(Py_None); resultobj = Py_None;
7190 return resultobj;
7191 fail:
7192 return NULL;
7193 }
7194
7195
7196 static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7197 PyObject *resultobj;
7198 wxLogLevel arg1 ;
7199 PyObject * obj0 = 0 ;
7200 char *kwnames[] = {
7201 (char *) "logLevel", NULL
7202 };
7203
7204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
7205 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7206 if (PyErr_Occurred()) SWIG_fail;
7207 {
7208 PyThreadState* __tstate = wxPyBeginAllowThreads();
7209 wxLog::SetLogLevel(arg1);
7210
7211 wxPyEndAllowThreads(__tstate);
7212 if (PyErr_Occurred()) SWIG_fail;
7213 }
7214 Py_INCREF(Py_None); resultobj = Py_None;
7215 return resultobj;
7216 fail:
7217 return NULL;
7218 }
7219
7220
7221 static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
7222 PyObject *resultobj;
7223 char *kwnames[] = {
7224 NULL
7225 };
7226
7227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
7228 {
7229 PyThreadState* __tstate = wxPyBeginAllowThreads();
7230 wxLog::DontCreateOnDemand();
7231
7232 wxPyEndAllowThreads(__tstate);
7233 if (PyErr_Occurred()) SWIG_fail;
7234 }
7235 Py_INCREF(Py_None); resultobj = Py_None;
7236 return resultobj;
7237 fail:
7238 return NULL;
7239 }
7240
7241
7242 static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7243 PyObject *resultobj;
7244 wxTraceMask arg1 ;
7245 PyObject * obj0 = 0 ;
7246 char *kwnames[] = {
7247 (char *) "ulMask", NULL
7248 };
7249
7250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
7251 arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0);
7252 if (PyErr_Occurred()) SWIG_fail;
7253 {
7254 PyThreadState* __tstate = wxPyBeginAllowThreads();
7255 wxLog::SetTraceMask(arg1);
7256
7257 wxPyEndAllowThreads(__tstate);
7258 if (PyErr_Occurred()) SWIG_fail;
7259 }
7260 Py_INCREF(Py_None); resultobj = Py_None;
7261 return resultobj;
7262 fail:
7263 return NULL;
7264 }
7265
7266
7267 static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7268 PyObject *resultobj;
7269 wxString *arg1 = 0 ;
7270 bool temp1 = False ;
7271 PyObject * obj0 = 0 ;
7272 char *kwnames[] = {
7273 (char *) "str", NULL
7274 };
7275
7276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
7277 {
7278 arg1 = wxString_in_helper(obj0);
7279 if (arg1 == NULL) SWIG_fail;
7280 temp1 = True;
7281 }
7282 {
7283 PyThreadState* __tstate = wxPyBeginAllowThreads();
7284 wxLog::AddTraceMask((wxString const &)*arg1);
7285
7286 wxPyEndAllowThreads(__tstate);
7287 if (PyErr_Occurred()) SWIG_fail;
7288 }
7289 Py_INCREF(Py_None); resultobj = Py_None;
7290 {
7291 if (temp1)
7292 delete arg1;
7293 }
7294 return resultobj;
7295 fail:
7296 {
7297 if (temp1)
7298 delete arg1;
7299 }
7300 return NULL;
7301 }
7302
7303
7304 static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7305 PyObject *resultobj;
7306 wxString *arg1 = 0 ;
7307 bool temp1 = False ;
7308 PyObject * obj0 = 0 ;
7309 char *kwnames[] = {
7310 (char *) "str", NULL
7311 };
7312
7313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
7314 {
7315 arg1 = wxString_in_helper(obj0);
7316 if (arg1 == NULL) SWIG_fail;
7317 temp1 = True;
7318 }
7319 {
7320 PyThreadState* __tstate = wxPyBeginAllowThreads();
7321 wxLog::RemoveTraceMask((wxString const &)*arg1);
7322
7323 wxPyEndAllowThreads(__tstate);
7324 if (PyErr_Occurred()) SWIG_fail;
7325 }
7326 Py_INCREF(Py_None); resultobj = Py_None;
7327 {
7328 if (temp1)
7329 delete arg1;
7330 }
7331 return resultobj;
7332 fail:
7333 {
7334 if (temp1)
7335 delete arg1;
7336 }
7337 return NULL;
7338 }
7339
7340
7341 static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7342 PyObject *resultobj;
7343 char *kwnames[] = {
7344 NULL
7345 };
7346
7347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
7348 {
7349 PyThreadState* __tstate = wxPyBeginAllowThreads();
7350 wxLog::ClearTraceMasks();
7351
7352 wxPyEndAllowThreads(__tstate);
7353 if (PyErr_Occurred()) SWIG_fail;
7354 }
7355 Py_INCREF(Py_None); resultobj = Py_None;
7356 return resultobj;
7357 fail:
7358 return NULL;
7359 }
7360
7361
7362 static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7363 PyObject *resultobj;
7364 wxArrayString *result;
7365 char *kwnames[] = {
7366 NULL
7367 };
7368
7369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
7370 {
7371 PyThreadState* __tstate = wxPyBeginAllowThreads();
7372 {
7373 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
7374 result = (wxArrayString *) &_result_ref;
7375 }
7376
7377 wxPyEndAllowThreads(__tstate);
7378 if (PyErr_Occurred()) SWIG_fail;
7379 }
7380 {
7381 resultobj = wxArrayString2PyList_helper(*result);
7382 }
7383 return resultobj;
7384 fail:
7385 return NULL;
7386 }
7387
7388
7389 static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7390 PyObject *resultobj;
7391 wxChar *arg1 = (wxChar *) 0 ;
7392 PyObject * obj0 = 0 ;
7393 char *kwnames[] = {
7394 (char *) "ts", NULL
7395 };
7396
7397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
7398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7400 {
7401 PyThreadState* __tstate = wxPyBeginAllowThreads();
7402 wxLog::SetTimestamp((wxChar const *)arg1);
7403
7404 wxPyEndAllowThreads(__tstate);
7405 if (PyErr_Occurred()) SWIG_fail;
7406 }
7407 Py_INCREF(Py_None); resultobj = Py_None;
7408 return resultobj;
7409 fail:
7410 return NULL;
7411 }
7412
7413
7414 static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7415 PyObject *resultobj;
7416 bool result;
7417 char *kwnames[] = {
7418 NULL
7419 };
7420
7421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
7422 {
7423 PyThreadState* __tstate = wxPyBeginAllowThreads();
7424 result = (bool)wxLog::GetVerbose();
7425
7426 wxPyEndAllowThreads(__tstate);
7427 if (PyErr_Occurred()) SWIG_fail;
7428 }
7429 {
7430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7431 }
7432 return resultobj;
7433 fail:
7434 return NULL;
7435 }
7436
7437
7438 static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7439 PyObject *resultobj;
7440 wxTraceMask result;
7441 char *kwnames[] = {
7442 NULL
7443 };
7444
7445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
7446 {
7447 PyThreadState* __tstate = wxPyBeginAllowThreads();
7448 result = (wxTraceMask)wxLog::GetTraceMask();
7449
7450 wxPyEndAllowThreads(__tstate);
7451 if (PyErr_Occurred()) SWIG_fail;
7452 }
7453 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7454 return resultobj;
7455 fail:
7456 return NULL;
7457 }
7458
7459
7460 static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7461 PyObject *resultobj;
7462 wxChar *arg1 = (wxChar *) 0 ;
7463 bool result;
7464 PyObject * obj0 = 0 ;
7465 char *kwnames[] = {
7466 (char *) "mask", NULL
7467 };
7468
7469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
7470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7472 {
7473 PyThreadState* __tstate = wxPyBeginAllowThreads();
7474 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
7475
7476 wxPyEndAllowThreads(__tstate);
7477 if (PyErr_Occurred()) SWIG_fail;
7478 }
7479 {
7480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7481 }
7482 return resultobj;
7483 fail:
7484 return NULL;
7485 }
7486
7487
7488 static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7489 PyObject *resultobj;
7490 wxLogLevel result;
7491 char *kwnames[] = {
7492 NULL
7493 };
7494
7495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
7496 {
7497 PyThreadState* __tstate = wxPyBeginAllowThreads();
7498 result = (wxLogLevel)wxLog::GetLogLevel();
7499
7500 wxPyEndAllowThreads(__tstate);
7501 if (PyErr_Occurred()) SWIG_fail;
7502 }
7503 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7504 return resultobj;
7505 fail:
7506 return NULL;
7507 }
7508
7509
7510 static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7511 PyObject *resultobj;
7512 wxChar *result;
7513 char *kwnames[] = {
7514 NULL
7515 };
7516
7517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
7518 {
7519 PyThreadState* __tstate = wxPyBeginAllowThreads();
7520 result = (wxChar *)wxLog::GetTimestamp();
7521
7522 wxPyEndAllowThreads(__tstate);
7523 if (PyErr_Occurred()) SWIG_fail;
7524 }
7525 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
7526 return resultobj;
7527 fail:
7528 return NULL;
7529 }
7530
7531
7532 static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7533 PyObject *resultobj;
7534 wxString result;
7535 char *kwnames[] = {
7536 NULL
7537 };
7538
7539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
7540 {
7541 PyThreadState* __tstate = wxPyBeginAllowThreads();
7542 result = Log_TimeStamp();
7543
7544 wxPyEndAllowThreads(__tstate);
7545 if (PyErr_Occurred()) SWIG_fail;
7546 }
7547 {
7548 #if wxUSE_UNICODE
7549 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7550 #else
7551 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7552 #endif
7553 }
7554 return resultobj;
7555 fail:
7556 return NULL;
7557 }
7558
7559
7560 static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
7561 PyObject *resultobj;
7562 wxLog *arg1 = (wxLog *) 0 ;
7563 PyObject * obj0 = 0 ;
7564 char *kwnames[] = {
7565 (char *) "self", NULL
7566 };
7567
7568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
7569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7571 {
7572 PyThreadState* __tstate = wxPyBeginAllowThreads();
7573 wxLog_Destroy(arg1);
7574
7575 wxPyEndAllowThreads(__tstate);
7576 if (PyErr_Occurred()) SWIG_fail;
7577 }
7578 Py_INCREF(Py_None); resultobj = Py_None;
7579 return resultobj;
7580 fail:
7581 return NULL;
7582 }
7583
7584
7585 static PyObject * Log_swigregister(PyObject *self, PyObject *args) {
7586 PyObject *obj;
7587 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7588 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
7589 Py_INCREF(obj);
7590 return Py_BuildValue((char *)"");
7591 }
7592 static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) {
7593 PyObject *resultobj;
7594 wxLogStderr *result;
7595 char *kwnames[] = {
7596 NULL
7597 };
7598
7599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
7600 {
7601 PyThreadState* __tstate = wxPyBeginAllowThreads();
7602 result = (wxLogStderr *)new wxLogStderr();
7603
7604 wxPyEndAllowThreads(__tstate);
7605 if (PyErr_Occurred()) SWIG_fail;
7606 }
7607 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
7608 return resultobj;
7609 fail:
7610 return NULL;
7611 }
7612
7613
7614 static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) {
7615 PyObject *obj;
7616 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7617 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
7618 Py_INCREF(obj);
7619 return Py_BuildValue((char *)"");
7620 }
7621 static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7622 PyObject *resultobj;
7623 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7624 wxLogTextCtrl *result;
7625 PyObject * obj0 = 0 ;
7626 char *kwnames[] = {
7627 (char *) "pTextCtrl", NULL
7628 };
7629
7630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
7631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7633 {
7634 PyThreadState* __tstate = wxPyBeginAllowThreads();
7635 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
7636
7637 wxPyEndAllowThreads(__tstate);
7638 if (PyErr_Occurred()) SWIG_fail;
7639 }
7640 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
7641 return resultobj;
7642 fail:
7643 return NULL;
7644 }
7645
7646
7647 static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) {
7648 PyObject *obj;
7649 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7650 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
7651 Py_INCREF(obj);
7652 return Py_BuildValue((char *)"");
7653 }
7654 static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) {
7655 PyObject *resultobj;
7656 wxLogGui *result;
7657 char *kwnames[] = {
7658 NULL
7659 };
7660
7661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
7662 {
7663 PyThreadState* __tstate = wxPyBeginAllowThreads();
7664 result = (wxLogGui *)new wxLogGui();
7665
7666 wxPyEndAllowThreads(__tstate);
7667 if (PyErr_Occurred()) SWIG_fail;
7668 }
7669 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
7670 return resultobj;
7671 fail:
7672 return NULL;
7673 }
7674
7675
7676 static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) {
7677 PyObject *obj;
7678 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7679 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
7680 Py_INCREF(obj);
7681 return Py_BuildValue((char *)"");
7682 }
7683 static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
7684 PyObject *resultobj;
7685 wxFrame *arg1 = (wxFrame *) 0 ;
7686 wxString *arg2 = 0 ;
7687 bool arg3 = (bool) True ;
7688 bool arg4 = (bool) True ;
7689 wxLogWindow *result;
7690 bool temp2 = False ;
7691 PyObject * obj0 = 0 ;
7692 PyObject * obj1 = 0 ;
7693 PyObject * obj2 = 0 ;
7694 PyObject * obj3 = 0 ;
7695 char *kwnames[] = {
7696 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
7697 };
7698
7699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
7701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7702 {
7703 arg2 = wxString_in_helper(obj1);
7704 if (arg2 == NULL) SWIG_fail;
7705 temp2 = True;
7706 }
7707 if (obj2) {
7708 arg3 = (bool) SWIG_AsBool(obj2);
7709 if (PyErr_Occurred()) SWIG_fail;
7710 }
7711 if (obj3) {
7712 arg4 = (bool) SWIG_AsBool(obj3);
7713 if (PyErr_Occurred()) SWIG_fail;
7714 }
7715 {
7716 PyThreadState* __tstate = wxPyBeginAllowThreads();
7717 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
7718
7719 wxPyEndAllowThreads(__tstate);
7720 if (PyErr_Occurred()) SWIG_fail;
7721 }
7722 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
7723 {
7724 if (temp2)
7725 delete arg2;
7726 }
7727 return resultobj;
7728 fail:
7729 {
7730 if (temp2)
7731 delete arg2;
7732 }
7733 return NULL;
7734 }
7735
7736
7737 static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
7738 PyObject *resultobj;
7739 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7740 bool arg2 = (bool) True ;
7741 PyObject * obj0 = 0 ;
7742 PyObject * obj1 = 0 ;
7743 char *kwnames[] = {
7744 (char *) "self",(char *) "bShow", NULL
7745 };
7746
7747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
7748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7750 if (obj1) {
7751 arg2 = (bool) SWIG_AsBool(obj1);
7752 if (PyErr_Occurred()) SWIG_fail;
7753 }
7754 {
7755 PyThreadState* __tstate = wxPyBeginAllowThreads();
7756 (arg1)->Show(arg2);
7757
7758 wxPyEndAllowThreads(__tstate);
7759 if (PyErr_Occurred()) SWIG_fail;
7760 }
7761 Py_INCREF(Py_None); resultobj = Py_None;
7762 return resultobj;
7763 fail:
7764 return NULL;
7765 }
7766
7767
7768 static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
7769 PyObject *resultobj;
7770 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7771 wxFrame *result;
7772 PyObject * obj0 = 0 ;
7773 char *kwnames[] = {
7774 (char *) "self", NULL
7775 };
7776
7777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
7778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7780 {
7781 PyThreadState* __tstate = wxPyBeginAllowThreads();
7782 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
7783
7784 wxPyEndAllowThreads(__tstate);
7785 if (PyErr_Occurred()) SWIG_fail;
7786 }
7787 {
7788 resultobj = wxPyMake_wxObject(result);
7789 }
7790 return resultobj;
7791 fail:
7792 return NULL;
7793 }
7794
7795
7796 static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7797 PyObject *resultobj;
7798 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7799 wxLog *result;
7800 PyObject * obj0 = 0 ;
7801 char *kwnames[] = {
7802 (char *) "self", NULL
7803 };
7804
7805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
7806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7808 {
7809 PyThreadState* __tstate = wxPyBeginAllowThreads();
7810 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
7811
7812 wxPyEndAllowThreads(__tstate);
7813 if (PyErr_Occurred()) SWIG_fail;
7814 }
7815 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7816 return resultobj;
7817 fail:
7818 return NULL;
7819 }
7820
7821
7822 static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7823 PyObject *resultobj;
7824 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7825 bool result;
7826 PyObject * obj0 = 0 ;
7827 char *kwnames[] = {
7828 (char *) "self", NULL
7829 };
7830
7831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
7832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7834 {
7835 PyThreadState* __tstate = wxPyBeginAllowThreads();
7836 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
7837
7838 wxPyEndAllowThreads(__tstate);
7839 if (PyErr_Occurred()) SWIG_fail;
7840 }
7841 {
7842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7843 }
7844 return resultobj;
7845 fail:
7846 return NULL;
7847 }
7848
7849
7850 static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7851 PyObject *resultobj;
7852 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7853 bool arg2 ;
7854 PyObject * obj0 = 0 ;
7855 PyObject * obj1 = 0 ;
7856 char *kwnames[] = {
7857 (char *) "self",(char *) "bDoPass", NULL
7858 };
7859
7860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
7861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7863 arg2 = (bool) SWIG_AsBool(obj1);
7864 if (PyErr_Occurred()) SWIG_fail;
7865 {
7866 PyThreadState* __tstate = wxPyBeginAllowThreads();
7867 (arg1)->PassMessages(arg2);
7868
7869 wxPyEndAllowThreads(__tstate);
7870 if (PyErr_Occurred()) SWIG_fail;
7871 }
7872 Py_INCREF(Py_None); resultobj = Py_None;
7873 return resultobj;
7874 fail:
7875 return NULL;
7876 }
7877
7878
7879 static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) {
7880 PyObject *obj;
7881 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7882 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
7883 Py_INCREF(obj);
7884 return Py_BuildValue((char *)"");
7885 }
7886 static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) {
7887 PyObject *resultobj;
7888 wxLog *arg1 = (wxLog *) 0 ;
7889 wxLogChain *result;
7890 PyObject * obj0 = 0 ;
7891 char *kwnames[] = {
7892 (char *) "logger", NULL
7893 };
7894
7895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
7896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7898 {
7899 PyThreadState* __tstate = wxPyBeginAllowThreads();
7900 result = (wxLogChain *)new wxLogChain(arg1);
7901
7902 wxPyEndAllowThreads(__tstate);
7903 if (PyErr_Occurred()) SWIG_fail;
7904 }
7905 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
7906 return resultobj;
7907 fail:
7908 return NULL;
7909 }
7910
7911
7912 static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7913 PyObject *resultobj;
7914 wxLogChain *arg1 = (wxLogChain *) 0 ;
7915 wxLog *arg2 = (wxLog *) 0 ;
7916 PyObject * obj0 = 0 ;
7917 PyObject * obj1 = 0 ;
7918 char *kwnames[] = {
7919 (char *) "self",(char *) "logger", NULL
7920 };
7921
7922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
7923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7925 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog,
7926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7927 {
7928 PyThreadState* __tstate = wxPyBeginAllowThreads();
7929 (arg1)->SetLog(arg2);
7930
7931 wxPyEndAllowThreads(__tstate);
7932 if (PyErr_Occurred()) SWIG_fail;
7933 }
7934 Py_INCREF(Py_None); resultobj = Py_None;
7935 return resultobj;
7936 fail:
7937 return NULL;
7938 }
7939
7940
7941 static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7942 PyObject *resultobj;
7943 wxLogChain *arg1 = (wxLogChain *) 0 ;
7944 bool arg2 ;
7945 PyObject * obj0 = 0 ;
7946 PyObject * obj1 = 0 ;
7947 char *kwnames[] = {
7948 (char *) "self",(char *) "bDoPass", NULL
7949 };
7950
7951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
7952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7954 arg2 = (bool) SWIG_AsBool(obj1);
7955 if (PyErr_Occurred()) SWIG_fail;
7956 {
7957 PyThreadState* __tstate = wxPyBeginAllowThreads();
7958 (arg1)->PassMessages(arg2);
7959
7960 wxPyEndAllowThreads(__tstate);
7961 if (PyErr_Occurred()) SWIG_fail;
7962 }
7963 Py_INCREF(Py_None); resultobj = Py_None;
7964 return resultobj;
7965 fail:
7966 return NULL;
7967 }
7968
7969
7970 static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7971 PyObject *resultobj;
7972 wxLogChain *arg1 = (wxLogChain *) 0 ;
7973 bool result;
7974 PyObject * obj0 = 0 ;
7975 char *kwnames[] = {
7976 (char *) "self", NULL
7977 };
7978
7979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
7980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7982 {
7983 PyThreadState* __tstate = wxPyBeginAllowThreads();
7984 result = (bool)(arg1)->IsPassingMessages();
7985
7986 wxPyEndAllowThreads(__tstate);
7987 if (PyErr_Occurred()) SWIG_fail;
7988 }
7989 {
7990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7991 }
7992 return resultobj;
7993 fail:
7994 return NULL;
7995 }
7996
7997
7998 static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7999 PyObject *resultobj;
8000 wxLogChain *arg1 = (wxLogChain *) 0 ;
8001 wxLog *result;
8002 PyObject * obj0 = 0 ;
8003 char *kwnames[] = {
8004 (char *) "self", NULL
8005 };
8006
8007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
8008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8010 {
8011 PyThreadState* __tstate = wxPyBeginAllowThreads();
8012 result = (wxLog *)(arg1)->GetOldLog();
8013
8014 wxPyEndAllowThreads(__tstate);
8015 if (PyErr_Occurred()) SWIG_fail;
8016 }
8017 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8018 return resultobj;
8019 fail:
8020 return NULL;
8021 }
8022
8023
8024 static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) {
8025 PyObject *obj;
8026 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8027 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
8028 Py_INCREF(obj);
8029 return Py_BuildValue((char *)"");
8030 }
8031 static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) {
8032 PyObject *resultobj;
8033 unsigned long result;
8034 char *kwnames[] = {
8035 NULL
8036 };
8037
8038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
8039 {
8040 PyThreadState* __tstate = wxPyBeginAllowThreads();
8041 result = (unsigned long)wxSysErrorCode();
8042
8043 wxPyEndAllowThreads(__tstate);
8044 if (PyErr_Occurred()) SWIG_fail;
8045 }
8046 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
8047 return resultobj;
8048 fail:
8049 return NULL;
8050 }
8051
8052
8053 static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) {
8054 PyObject *resultobj;
8055 unsigned long arg1 = (unsigned long) 0 ;
8056 wxString result;
8057 PyObject * obj0 = 0 ;
8058 char *kwnames[] = {
8059 (char *) "nErrCode", NULL
8060 };
8061
8062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
8063 if (obj0) {
8064 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8065 if (PyErr_Occurred()) SWIG_fail;
8066 }
8067 {
8068 PyThreadState* __tstate = wxPyBeginAllowThreads();
8069 result = wxSysErrorMsg(arg1);
8070
8071 wxPyEndAllowThreads(__tstate);
8072 if (PyErr_Occurred()) SWIG_fail;
8073 }
8074 {
8075 #if wxUSE_UNICODE
8076 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8077 #else
8078 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8079 #endif
8080 }
8081 return resultobj;
8082 fail:
8083 return NULL;
8084 }
8085
8086
8087 static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) {
8088 PyObject *resultobj;
8089 wxString *arg1 = 0 ;
8090 bool temp1 = False ;
8091 PyObject * obj0 = 0 ;
8092 char *kwnames[] = {
8093 (char *) "msg", NULL
8094 };
8095
8096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
8097 {
8098 arg1 = wxString_in_helper(obj0);
8099 if (arg1 == NULL) SWIG_fail;
8100 temp1 = True;
8101 }
8102 {
8103 PyThreadState* __tstate = wxPyBeginAllowThreads();
8104 wxLogFatalError((wxString const &)*arg1);
8105
8106 wxPyEndAllowThreads(__tstate);
8107 if (PyErr_Occurred()) SWIG_fail;
8108 }
8109 Py_INCREF(Py_None); resultobj = Py_None;
8110 {
8111 if (temp1)
8112 delete arg1;
8113 }
8114 return resultobj;
8115 fail:
8116 {
8117 if (temp1)
8118 delete arg1;
8119 }
8120 return NULL;
8121 }
8122
8123
8124 static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) {
8125 PyObject *resultobj;
8126 wxString *arg1 = 0 ;
8127 bool temp1 = False ;
8128 PyObject * obj0 = 0 ;
8129 char *kwnames[] = {
8130 (char *) "msg", NULL
8131 };
8132
8133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
8134 {
8135 arg1 = wxString_in_helper(obj0);
8136 if (arg1 == NULL) SWIG_fail;
8137 temp1 = True;
8138 }
8139 {
8140 PyThreadState* __tstate = wxPyBeginAllowThreads();
8141 wxLogError((wxString const &)*arg1);
8142
8143 wxPyEndAllowThreads(__tstate);
8144 if (PyErr_Occurred()) SWIG_fail;
8145 }
8146 Py_INCREF(Py_None); resultobj = Py_None;
8147 {
8148 if (temp1)
8149 delete arg1;
8150 }
8151 return resultobj;
8152 fail:
8153 {
8154 if (temp1)
8155 delete arg1;
8156 }
8157 return NULL;
8158 }
8159
8160
8161 static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) {
8162 PyObject *resultobj;
8163 wxString *arg1 = 0 ;
8164 bool temp1 = False ;
8165 PyObject * obj0 = 0 ;
8166 char *kwnames[] = {
8167 (char *) "msg", NULL
8168 };
8169
8170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
8171 {
8172 arg1 = wxString_in_helper(obj0);
8173 if (arg1 == NULL) SWIG_fail;
8174 temp1 = True;
8175 }
8176 {
8177 PyThreadState* __tstate = wxPyBeginAllowThreads();
8178 wxLogWarning((wxString const &)*arg1);
8179
8180 wxPyEndAllowThreads(__tstate);
8181 if (PyErr_Occurred()) SWIG_fail;
8182 }
8183 Py_INCREF(Py_None); resultobj = Py_None;
8184 {
8185 if (temp1)
8186 delete arg1;
8187 }
8188 return resultobj;
8189 fail:
8190 {
8191 if (temp1)
8192 delete arg1;
8193 }
8194 return NULL;
8195 }
8196
8197
8198 static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8199 PyObject *resultobj;
8200 wxString *arg1 = 0 ;
8201 bool temp1 = False ;
8202 PyObject * obj0 = 0 ;
8203 char *kwnames[] = {
8204 (char *) "msg", NULL
8205 };
8206
8207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
8208 {
8209 arg1 = wxString_in_helper(obj0);
8210 if (arg1 == NULL) SWIG_fail;
8211 temp1 = True;
8212 }
8213 {
8214 PyThreadState* __tstate = wxPyBeginAllowThreads();
8215 wxLogMessage((wxString const &)*arg1);
8216
8217 wxPyEndAllowThreads(__tstate);
8218 if (PyErr_Occurred()) SWIG_fail;
8219 }
8220 Py_INCREF(Py_None); resultobj = Py_None;
8221 {
8222 if (temp1)
8223 delete arg1;
8224 }
8225 return resultobj;
8226 fail:
8227 {
8228 if (temp1)
8229 delete arg1;
8230 }
8231 return NULL;
8232 }
8233
8234
8235 static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8236 PyObject *resultobj;
8237 wxString *arg1 = 0 ;
8238 bool temp1 = False ;
8239 PyObject * obj0 = 0 ;
8240 char *kwnames[] = {
8241 (char *) "msg", NULL
8242 };
8243
8244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
8245 {
8246 arg1 = wxString_in_helper(obj0);
8247 if (arg1 == NULL) SWIG_fail;
8248 temp1 = True;
8249 }
8250 {
8251 PyThreadState* __tstate = wxPyBeginAllowThreads();
8252 wxLogInfo((wxString const &)*arg1);
8253
8254 wxPyEndAllowThreads(__tstate);
8255 if (PyErr_Occurred()) SWIG_fail;
8256 }
8257 Py_INCREF(Py_None); resultobj = Py_None;
8258 {
8259 if (temp1)
8260 delete arg1;
8261 }
8262 return resultobj;
8263 fail:
8264 {
8265 if (temp1)
8266 delete arg1;
8267 }
8268 return NULL;
8269 }
8270
8271
8272 static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) {
8273 PyObject *resultobj;
8274 wxString *arg1 = 0 ;
8275 bool temp1 = False ;
8276 PyObject * obj0 = 0 ;
8277 char *kwnames[] = {
8278 (char *) "msg", NULL
8279 };
8280
8281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
8282 {
8283 arg1 = wxString_in_helper(obj0);
8284 if (arg1 == NULL) SWIG_fail;
8285 temp1 = True;
8286 }
8287 {
8288 PyThreadState* __tstate = wxPyBeginAllowThreads();
8289 wxLogDebug((wxString const &)*arg1);
8290
8291 wxPyEndAllowThreads(__tstate);
8292 if (PyErr_Occurred()) SWIG_fail;
8293 }
8294 Py_INCREF(Py_None); resultobj = Py_None;
8295 {
8296 if (temp1)
8297 delete arg1;
8298 }
8299 return resultobj;
8300 fail:
8301 {
8302 if (temp1)
8303 delete arg1;
8304 }
8305 return NULL;
8306 }
8307
8308
8309 static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
8310 PyObject *resultobj;
8311 wxString *arg1 = 0 ;
8312 bool temp1 = False ;
8313 PyObject * obj0 = 0 ;
8314 char *kwnames[] = {
8315 (char *) "msg", NULL
8316 };
8317
8318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
8319 {
8320 arg1 = wxString_in_helper(obj0);
8321 if (arg1 == NULL) SWIG_fail;
8322 temp1 = True;
8323 }
8324 {
8325 PyThreadState* __tstate = wxPyBeginAllowThreads();
8326 wxLogVerbose((wxString const &)*arg1);
8327
8328 wxPyEndAllowThreads(__tstate);
8329 if (PyErr_Occurred()) SWIG_fail;
8330 }
8331 Py_INCREF(Py_None); resultobj = Py_None;
8332 {
8333 if (temp1)
8334 delete arg1;
8335 }
8336 return resultobj;
8337 fail:
8338 {
8339 if (temp1)
8340 delete arg1;
8341 }
8342 return NULL;
8343 }
8344
8345
8346 static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) {
8347 PyObject *resultobj;
8348 wxString *arg1 = 0 ;
8349 bool temp1 = False ;
8350 PyObject * obj0 = 0 ;
8351 char *kwnames[] = {
8352 (char *) "msg", NULL
8353 };
8354
8355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
8356 {
8357 arg1 = wxString_in_helper(obj0);
8358 if (arg1 == NULL) SWIG_fail;
8359 temp1 = True;
8360 }
8361 {
8362 PyThreadState* __tstate = wxPyBeginAllowThreads();
8363 wxLogStatus((wxString const &)*arg1);
8364
8365 wxPyEndAllowThreads(__tstate);
8366 if (PyErr_Occurred()) SWIG_fail;
8367 }
8368 Py_INCREF(Py_None); resultobj = Py_None;
8369 {
8370 if (temp1)
8371 delete arg1;
8372 }
8373 return resultobj;
8374 fail:
8375 {
8376 if (temp1)
8377 delete arg1;
8378 }
8379 return NULL;
8380 }
8381
8382
8383 static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
8384 PyObject *resultobj;
8385 wxFrame *arg1 = (wxFrame *) 0 ;
8386 wxString *arg2 = 0 ;
8387 bool temp2 = False ;
8388 PyObject * obj0 = 0 ;
8389 PyObject * obj1 = 0 ;
8390 char *kwnames[] = {
8391 (char *) "pFrame",(char *) "msg", NULL
8392 };
8393
8394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
8395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8397 {
8398 arg2 = wxString_in_helper(obj1);
8399 if (arg2 == NULL) SWIG_fail;
8400 temp2 = True;
8401 }
8402 {
8403 PyThreadState* __tstate = wxPyBeginAllowThreads();
8404 wxLogStatus(arg1,(wxString const &)*arg2);
8405
8406 wxPyEndAllowThreads(__tstate);
8407 if (PyErr_Occurred()) SWIG_fail;
8408 }
8409 Py_INCREF(Py_None); resultobj = Py_None;
8410 {
8411 if (temp2)
8412 delete arg2;
8413 }
8414 return resultobj;
8415 fail:
8416 {
8417 if (temp2)
8418 delete arg2;
8419 }
8420 return NULL;
8421 }
8422
8423
8424 static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) {
8425 PyObject *resultobj;
8426 wxString *arg1 = 0 ;
8427 bool temp1 = False ;
8428 PyObject * obj0 = 0 ;
8429 char *kwnames[] = {
8430 (char *) "msg", NULL
8431 };
8432
8433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
8434 {
8435 arg1 = wxString_in_helper(obj0);
8436 if (arg1 == NULL) SWIG_fail;
8437 temp1 = True;
8438 }
8439 {
8440 PyThreadState* __tstate = wxPyBeginAllowThreads();
8441 wxLogSysError((wxString const &)*arg1);
8442
8443 wxPyEndAllowThreads(__tstate);
8444 if (PyErr_Occurred()) SWIG_fail;
8445 }
8446 Py_INCREF(Py_None); resultobj = Py_None;
8447 {
8448 if (temp1)
8449 delete arg1;
8450 }
8451 return resultobj;
8452 fail:
8453 {
8454 if (temp1)
8455 delete arg1;
8456 }
8457 return NULL;
8458 }
8459
8460
8461 static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) {
8462 PyObject *resultobj;
8463 unsigned long arg1 ;
8464 wxString *arg2 = 0 ;
8465 bool temp2 = False ;
8466 PyObject * obj0 = 0 ;
8467 PyObject * obj1 = 0 ;
8468
8469 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8470 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8471 if (PyErr_Occurred()) SWIG_fail;
8472 {
8473 arg2 = wxString_in_helper(obj1);
8474 if (arg2 == NULL) SWIG_fail;
8475 temp2 = True;
8476 }
8477 {
8478 PyThreadState* __tstate = wxPyBeginAllowThreads();
8479 wxLogTrace(arg1,(wxString const &)*arg2);
8480
8481 wxPyEndAllowThreads(__tstate);
8482 if (PyErr_Occurred()) SWIG_fail;
8483 }
8484 Py_INCREF(Py_None); resultobj = Py_None;
8485 {
8486 if (temp2)
8487 delete arg2;
8488 }
8489 return resultobj;
8490 fail:
8491 {
8492 if (temp2)
8493 delete arg2;
8494 }
8495 return NULL;
8496 }
8497
8498
8499 static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) {
8500 PyObject *resultobj;
8501 wxString *arg1 = 0 ;
8502 wxString *arg2 = 0 ;
8503 bool temp1 = False ;
8504 bool temp2 = False ;
8505 PyObject * obj0 = 0 ;
8506 PyObject * obj1 = 0 ;
8507
8508 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8509 {
8510 arg1 = wxString_in_helper(obj0);
8511 if (arg1 == NULL) SWIG_fail;
8512 temp1 = True;
8513 }
8514 {
8515 arg2 = wxString_in_helper(obj1);
8516 if (arg2 == NULL) SWIG_fail;
8517 temp2 = True;
8518 }
8519 {
8520 PyThreadState* __tstate = wxPyBeginAllowThreads();
8521 wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
8522
8523 wxPyEndAllowThreads(__tstate);
8524 if (PyErr_Occurred()) SWIG_fail;
8525 }
8526 Py_INCREF(Py_None); resultobj = Py_None;
8527 {
8528 if (temp1)
8529 delete arg1;
8530 }
8531 {
8532 if (temp2)
8533 delete arg2;
8534 }
8535 return resultobj;
8536 fail:
8537 {
8538 if (temp1)
8539 delete arg1;
8540 }
8541 {
8542 if (temp2)
8543 delete arg2;
8544 }
8545 return NULL;
8546 }
8547
8548
8549 static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
8550 int argc;
8551 PyObject *argv[3];
8552 int ii;
8553
8554 argc = PyObject_Length(args);
8555 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
8556 argv[ii] = PyTuple_GetItem(args,ii);
8557 }
8558 if (argc == 2) {
8559 int _v;
8560 {
8561 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
8562 }
8563 if (_v) {
8564 {
8565 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8566 }
8567 if (_v) {
8568 return _wrap_LogTrace__SWIG_1(self,args);
8569 }
8570 }
8571 }
8572 if (argc == 2) {
8573 int _v;
8574 _v = SWIG_CheckUnsignedLong(argv[0]);
8575 if (_v) {
8576 {
8577 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8578 }
8579 if (_v) {
8580 return _wrap_LogTrace__SWIG_0(self,args);
8581 }
8582 }
8583 }
8584
8585 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
8586 return NULL;
8587 }
8588
8589
8590 static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) {
8591 PyObject *resultobj;
8592 unsigned long arg1 ;
8593 wxString *arg2 = 0 ;
8594 bool temp2 = False ;
8595 PyObject * obj0 = 0 ;
8596 PyObject * obj1 = 0 ;
8597 char *kwnames[] = {
8598 (char *) "level",(char *) "msg", NULL
8599 };
8600
8601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
8602 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8603 if (PyErr_Occurred()) SWIG_fail;
8604 {
8605 arg2 = wxString_in_helper(obj1);
8606 if (arg2 == NULL) SWIG_fail;
8607 temp2 = True;
8608 }
8609 {
8610 PyThreadState* __tstate = wxPyBeginAllowThreads();
8611 wxLogGeneric(arg1,(wxString const &)*arg2);
8612
8613 wxPyEndAllowThreads(__tstate);
8614 if (PyErr_Occurred()) SWIG_fail;
8615 }
8616 Py_INCREF(Py_None); resultobj = Py_None;
8617 {
8618 if (temp2)
8619 delete arg2;
8620 }
8621 return resultobj;
8622 fail:
8623 {
8624 if (temp2)
8625 delete arg2;
8626 }
8627 return NULL;
8628 }
8629
8630
8631 static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8632 PyObject *resultobj;
8633 wxString *arg1 = 0 ;
8634 wxString *arg2 = 0 ;
8635 bool temp1 = False ;
8636 bool temp2 = False ;
8637 PyObject * obj0 = 0 ;
8638 PyObject * obj1 = 0 ;
8639 char *kwnames[] = {
8640 (char *) "title",(char *) "text", NULL
8641 };
8642
8643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
8644 {
8645 arg1 = wxString_in_helper(obj0);
8646 if (arg1 == NULL) SWIG_fail;
8647 temp1 = True;
8648 }
8649 {
8650 arg2 = wxString_in_helper(obj1);
8651 if (arg2 == NULL) SWIG_fail;
8652 temp2 = True;
8653 }
8654 {
8655 PyThreadState* __tstate = wxPyBeginAllowThreads();
8656 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
8657
8658 wxPyEndAllowThreads(__tstate);
8659 if (PyErr_Occurred()) SWIG_fail;
8660 }
8661 Py_INCREF(Py_None); resultobj = Py_None;
8662 {
8663 if (temp1)
8664 delete arg1;
8665 }
8666 {
8667 if (temp2)
8668 delete arg2;
8669 }
8670 return resultobj;
8671 fail:
8672 {
8673 if (temp1)
8674 delete arg1;
8675 }
8676 {
8677 if (temp2)
8678 delete arg2;
8679 }
8680 return NULL;
8681 }
8682
8683
8684 static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8685 PyObject *resultobj;
8686 wxLogNull *result;
8687 char *kwnames[] = {
8688 NULL
8689 };
8690
8691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
8692 {
8693 PyThreadState* __tstate = wxPyBeginAllowThreads();
8694 result = (wxLogNull *)new wxLogNull();
8695
8696 wxPyEndAllowThreads(__tstate);
8697 if (PyErr_Occurred()) SWIG_fail;
8698 }
8699 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
8700 return resultobj;
8701 fail:
8702 return NULL;
8703 }
8704
8705
8706 static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8707 PyObject *resultobj;
8708 wxLogNull *arg1 = (wxLogNull *) 0 ;
8709 PyObject * obj0 = 0 ;
8710 char *kwnames[] = {
8711 (char *) "self", NULL
8712 };
8713
8714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
8715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull,
8716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8717 {
8718 PyThreadState* __tstate = wxPyBeginAllowThreads();
8719 delete arg1;
8720
8721 wxPyEndAllowThreads(__tstate);
8722 if (PyErr_Occurred()) SWIG_fail;
8723 }
8724 Py_INCREF(Py_None); resultobj = Py_None;
8725 return resultobj;
8726 fail:
8727 return NULL;
8728 }
8729
8730
8731 static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) {
8732 PyObject *obj;
8733 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8734 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
8735 Py_INCREF(obj);
8736 return Py_BuildValue((char *)"");
8737 }
8738 static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8739 PyObject *resultobj;
8740 wxPyLog *result;
8741 char *kwnames[] = {
8742 NULL
8743 };
8744
8745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
8746 {
8747 PyThreadState* __tstate = wxPyBeginAllowThreads();
8748 result = (wxPyLog *)new wxPyLog();
8749
8750 wxPyEndAllowThreads(__tstate);
8751 if (PyErr_Occurred()) SWIG_fail;
8752 }
8753 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
8754 return resultobj;
8755 fail:
8756 return NULL;
8757 }
8758
8759
8760 static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8761 PyObject *resultobj;
8762 wxPyLog *arg1 = (wxPyLog *) 0 ;
8763 PyObject *arg2 = (PyObject *) 0 ;
8764 PyObject *arg3 = (PyObject *) 0 ;
8765 PyObject * obj0 = 0 ;
8766 PyObject * obj1 = 0 ;
8767 PyObject * obj2 = 0 ;
8768 char *kwnames[] = {
8769 (char *) "self",(char *) "self",(char *) "_class", NULL
8770 };
8771
8772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog,
8774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8775 arg2 = obj1;
8776 arg3 = obj2;
8777 {
8778 PyThreadState* __tstate = wxPyBeginAllowThreads();
8779 (arg1)->_setCallbackInfo(arg2,arg3);
8780
8781 wxPyEndAllowThreads(__tstate);
8782 if (PyErr_Occurred()) SWIG_fail;
8783 }
8784 Py_INCREF(Py_None); resultobj = Py_None;
8785 return resultobj;
8786 fail:
8787 return NULL;
8788 }
8789
8790
8791 static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) {
8792 PyObject *obj;
8793 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8794 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
8795 Py_INCREF(obj);
8796 return Py_BuildValue((char *)"");
8797 }
8798 static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) {
8799 PyObject *resultobj;
8800 int arg1 ;
8801 int arg2 = (int) wxSIGTERM ;
8802 int result;
8803 PyObject * obj0 = 0 ;
8804 PyObject * obj1 = 0 ;
8805 char *kwnames[] = {
8806 (char *) "pid",(char *) "sig", NULL
8807 };
8808
8809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail;
8810 arg1 = (int) SWIG_AsInt(obj0);
8811 if (PyErr_Occurred()) SWIG_fail;
8812 if (obj1) {
8813 arg2 = (wxSignal) SWIG_AsInt(obj1);
8814 if (PyErr_Occurred()) SWIG_fail;
8815 }
8816 {
8817 PyThreadState* __tstate = wxPyBeginAllowThreads();
8818 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
8819
8820 wxPyEndAllowThreads(__tstate);
8821 if (PyErr_Occurred()) SWIG_fail;
8822 }
8823 resultobj = SWIG_FromInt((int)result);
8824 return resultobj;
8825 fail:
8826 return NULL;
8827 }
8828
8829
8830 static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
8831 PyObject *resultobj;
8832 int arg1 ;
8833 bool result;
8834 PyObject * obj0 = 0 ;
8835 char *kwnames[] = {
8836 (char *) "pid", NULL
8837 };
8838
8839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
8840 arg1 = (int) SWIG_AsInt(obj0);
8841 if (PyErr_Occurred()) SWIG_fail;
8842 {
8843 PyThreadState* __tstate = wxPyBeginAllowThreads();
8844 result = (bool)wxPyProcess::Exists(arg1);
8845
8846 wxPyEndAllowThreads(__tstate);
8847 if (PyErr_Occurred()) SWIG_fail;
8848 }
8849 {
8850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8851 }
8852 return resultobj;
8853 fail:
8854 return NULL;
8855 }
8856
8857
8858 static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
8859 PyObject *resultobj;
8860 wxString *arg1 = 0 ;
8861 int arg2 = (int) wxEXEC_ASYNC ;
8862 wxPyProcess *result;
8863 bool temp1 = False ;
8864 PyObject * obj0 = 0 ;
8865 PyObject * obj1 = 0 ;
8866 char *kwnames[] = {
8867 (char *) "cmd",(char *) "flags", NULL
8868 };
8869
8870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
8871 {
8872 arg1 = wxString_in_helper(obj0);
8873 if (arg1 == NULL) SWIG_fail;
8874 temp1 = True;
8875 }
8876 if (obj1) {
8877 arg2 = (int) SWIG_AsInt(obj1);
8878 if (PyErr_Occurred()) SWIG_fail;
8879 }
8880 {
8881 PyThreadState* __tstate = wxPyBeginAllowThreads();
8882 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
8883
8884 wxPyEndAllowThreads(__tstate);
8885 if (PyErr_Occurred()) SWIG_fail;
8886 }
8887 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
8888 {
8889 if (temp1)
8890 delete arg1;
8891 }
8892 return resultobj;
8893 fail:
8894 {
8895 if (temp1)
8896 delete arg1;
8897 }
8898 return NULL;
8899 }
8900
8901
8902 static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) {
8903 PyObject *resultobj;
8904 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
8905 int arg2 = (int) -1 ;
8906 wxPyProcess *result;
8907 PyObject * obj0 = 0 ;
8908 PyObject * obj1 = 0 ;
8909 char *kwnames[] = {
8910 (char *) "parent",(char *) "id", NULL
8911 };
8912
8913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
8914 if (obj0) {
8915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
8916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8917 }
8918 if (obj1) {
8919 arg2 = (int) SWIG_AsInt(obj1);
8920 if (PyErr_Occurred()) SWIG_fail;
8921 }
8922 {
8923 PyThreadState* __tstate = wxPyBeginAllowThreads();
8924 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
8925
8926 wxPyEndAllowThreads(__tstate);
8927 if (PyErr_Occurred()) SWIG_fail;
8928 }
8929 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
8930 return resultobj;
8931 fail:
8932 return NULL;
8933 }
8934
8935
8936 static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8937 PyObject *resultobj;
8938 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8939 PyObject *arg2 = (PyObject *) 0 ;
8940 PyObject *arg3 = (PyObject *) 0 ;
8941 PyObject * obj0 = 0 ;
8942 PyObject * obj1 = 0 ;
8943 PyObject * obj2 = 0 ;
8944 char *kwnames[] = {
8945 (char *) "self",(char *) "self",(char *) "_class", NULL
8946 };
8947
8948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8951 arg2 = obj1;
8952 arg3 = obj2;
8953 {
8954 PyThreadState* __tstate = wxPyBeginAllowThreads();
8955 (arg1)->_setCallbackInfo(arg2,arg3);
8956
8957 wxPyEndAllowThreads(__tstate);
8958 if (PyErr_Occurred()) SWIG_fail;
8959 }
8960 Py_INCREF(Py_None); resultobj = Py_None;
8961 return resultobj;
8962 fail:
8963 return NULL;
8964 }
8965
8966
8967 static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) {
8968 PyObject *resultobj;
8969 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8970 int arg2 ;
8971 int arg3 ;
8972 PyObject * obj0 = 0 ;
8973 PyObject * obj1 = 0 ;
8974 PyObject * obj2 = 0 ;
8975 char *kwnames[] = {
8976 (char *) "self",(char *) "pid",(char *) "status", NULL
8977 };
8978
8979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
8980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8982 arg2 = (int) SWIG_AsInt(obj1);
8983 if (PyErr_Occurred()) SWIG_fail;
8984 arg3 = (int) SWIG_AsInt(obj2);
8985 if (PyErr_Occurred()) SWIG_fail;
8986 {
8987 PyThreadState* __tstate = wxPyBeginAllowThreads();
8988 (arg1)->base_OnTerminate(arg2,arg3);
8989
8990 wxPyEndAllowThreads(__tstate);
8991 if (PyErr_Occurred()) SWIG_fail;
8992 }
8993 Py_INCREF(Py_None); resultobj = Py_None;
8994 return resultobj;
8995 fail:
8996 return NULL;
8997 }
8998
8999
9000 static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) {
9001 PyObject *resultobj;
9002 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9003 PyObject * obj0 = 0 ;
9004 char *kwnames[] = {
9005 (char *) "self", NULL
9006 };
9007
9008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
9009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9011 {
9012 PyThreadState* __tstate = wxPyBeginAllowThreads();
9013 (arg1)->Redirect();
9014
9015 wxPyEndAllowThreads(__tstate);
9016 if (PyErr_Occurred()) SWIG_fail;
9017 }
9018 Py_INCREF(Py_None); resultobj = Py_None;
9019 return resultobj;
9020 fail:
9021 return NULL;
9022 }
9023
9024
9025 static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) {
9026 PyObject *resultobj;
9027 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9028 bool result;
9029 PyObject * obj0 = 0 ;
9030 char *kwnames[] = {
9031 (char *) "self", NULL
9032 };
9033
9034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
9035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9037 {
9038 PyThreadState* __tstate = wxPyBeginAllowThreads();
9039 result = (bool)(arg1)->IsRedirected();
9040
9041 wxPyEndAllowThreads(__tstate);
9042 if (PyErr_Occurred()) SWIG_fail;
9043 }
9044 {
9045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9046 }
9047 return resultobj;
9048 fail:
9049 return NULL;
9050 }
9051
9052
9053 static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
9054 PyObject *resultobj;
9055 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9056 PyObject * obj0 = 0 ;
9057 char *kwnames[] = {
9058 (char *) "self", NULL
9059 };
9060
9061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
9062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9064 {
9065 PyThreadState* __tstate = wxPyBeginAllowThreads();
9066 (arg1)->Detach();
9067
9068 wxPyEndAllowThreads(__tstate);
9069 if (PyErr_Occurred()) SWIG_fail;
9070 }
9071 Py_INCREF(Py_None); resultobj = Py_None;
9072 return resultobj;
9073 fail:
9074 return NULL;
9075 }
9076
9077
9078 static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9079 PyObject *resultobj;
9080 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9081 wxInputStream *result;
9082 PyObject * obj0 = 0 ;
9083 char *kwnames[] = {
9084 (char *) "self", NULL
9085 };
9086
9087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
9088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9090 {
9091 PyThreadState* __tstate = wxPyBeginAllowThreads();
9092 result = (wxInputStream *)(arg1)->GetInputStream();
9093
9094 wxPyEndAllowThreads(__tstate);
9095 if (PyErr_Occurred()) SWIG_fail;
9096 }
9097 {
9098 wxPyInputStream * _ptr = NULL;
9099
9100 if (result) {
9101 _ptr = new wxPyInputStream(result);
9102 }
9103 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9104 }
9105 return resultobj;
9106 fail:
9107 return NULL;
9108 }
9109
9110
9111 static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9112 PyObject *resultobj;
9113 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9114 wxInputStream *result;
9115 PyObject * obj0 = 0 ;
9116 char *kwnames[] = {
9117 (char *) "self", NULL
9118 };
9119
9120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
9121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9123 {
9124 PyThreadState* __tstate = wxPyBeginAllowThreads();
9125 result = (wxInputStream *)(arg1)->GetErrorStream();
9126
9127 wxPyEndAllowThreads(__tstate);
9128 if (PyErr_Occurred()) SWIG_fail;
9129 }
9130 {
9131 wxPyInputStream * _ptr = NULL;
9132
9133 if (result) {
9134 _ptr = new wxPyInputStream(result);
9135 }
9136 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9137 }
9138 return resultobj;
9139 fail:
9140 return NULL;
9141 }
9142
9143
9144 static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9145 PyObject *resultobj;
9146 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9147 wxOutputStream *result;
9148 PyObject * obj0 = 0 ;
9149 char *kwnames[] = {
9150 (char *) "self", NULL
9151 };
9152
9153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
9154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9156 {
9157 PyThreadState* __tstate = wxPyBeginAllowThreads();
9158 result = (wxOutputStream *)(arg1)->GetOutputStream();
9159
9160 wxPyEndAllowThreads(__tstate);
9161 if (PyErr_Occurred()) SWIG_fail;
9162 }
9163 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
9164 return resultobj;
9165 fail:
9166 return NULL;
9167 }
9168
9169
9170 static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) {
9171 PyObject *resultobj;
9172 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9173 PyObject * obj0 = 0 ;
9174 char *kwnames[] = {
9175 (char *) "self", NULL
9176 };
9177
9178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
9179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9181 {
9182 PyThreadState* __tstate = wxPyBeginAllowThreads();
9183 (arg1)->CloseOutput();
9184
9185 wxPyEndAllowThreads(__tstate);
9186 if (PyErr_Occurred()) SWIG_fail;
9187 }
9188 Py_INCREF(Py_None); resultobj = Py_None;
9189 return resultobj;
9190 fail:
9191 return NULL;
9192 }
9193
9194
9195 static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
9196 PyObject *resultobj;
9197 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9198 bool result;
9199 PyObject * obj0 = 0 ;
9200 char *kwnames[] = {
9201 (char *) "self", NULL
9202 };
9203
9204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
9205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9207 {
9208 PyThreadState* __tstate = wxPyBeginAllowThreads();
9209 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
9210
9211 wxPyEndAllowThreads(__tstate);
9212 if (PyErr_Occurred()) SWIG_fail;
9213 }
9214 {
9215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9216 }
9217 return resultobj;
9218 fail:
9219 return NULL;
9220 }
9221
9222
9223 static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9224 PyObject *resultobj;
9225 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9226 bool result;
9227 PyObject * obj0 = 0 ;
9228 char *kwnames[] = {
9229 (char *) "self", NULL
9230 };
9231
9232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
9233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9235 {
9236 PyThreadState* __tstate = wxPyBeginAllowThreads();
9237 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
9238
9239 wxPyEndAllowThreads(__tstate);
9240 if (PyErr_Occurred()) SWIG_fail;
9241 }
9242 {
9243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9244 }
9245 return resultobj;
9246 fail:
9247 return NULL;
9248 }
9249
9250
9251 static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9252 PyObject *resultobj;
9253 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9254 bool result;
9255 PyObject * obj0 = 0 ;
9256 char *kwnames[] = {
9257 (char *) "self", NULL
9258 };
9259
9260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
9261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9263 {
9264 PyThreadState* __tstate = wxPyBeginAllowThreads();
9265 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
9266
9267 wxPyEndAllowThreads(__tstate);
9268 if (PyErr_Occurred()) SWIG_fail;
9269 }
9270 {
9271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9272 }
9273 return resultobj;
9274 fail:
9275 return NULL;
9276 }
9277
9278
9279 static PyObject * Process_swigregister(PyObject *self, PyObject *args) {
9280 PyObject *obj;
9281 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9282 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
9283 Py_INCREF(obj);
9284 return Py_BuildValue((char *)"");
9285 }
9286 static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9287 PyObject *resultobj;
9288 int arg1 = (int) 0 ;
9289 int arg2 = (int) 0 ;
9290 int arg3 = (int) 0 ;
9291 wxProcessEvent *result;
9292 PyObject * obj0 = 0 ;
9293 PyObject * obj1 = 0 ;
9294 PyObject * obj2 = 0 ;
9295 char *kwnames[] = {
9296 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
9297 };
9298
9299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
9300 if (obj0) {
9301 arg1 = (int) SWIG_AsInt(obj0);
9302 if (PyErr_Occurred()) SWIG_fail;
9303 }
9304 if (obj1) {
9305 arg2 = (int) SWIG_AsInt(obj1);
9306 if (PyErr_Occurred()) SWIG_fail;
9307 }
9308 if (obj2) {
9309 arg3 = (int) SWIG_AsInt(obj2);
9310 if (PyErr_Occurred()) SWIG_fail;
9311 }
9312 {
9313 PyThreadState* __tstate = wxPyBeginAllowThreads();
9314 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
9315
9316 wxPyEndAllowThreads(__tstate);
9317 if (PyErr_Occurred()) SWIG_fail;
9318 }
9319 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
9320 return resultobj;
9321 fail:
9322 return NULL;
9323 }
9324
9325
9326 static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) {
9327 PyObject *resultobj;
9328 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9329 int result;
9330 PyObject * obj0 = 0 ;
9331 char *kwnames[] = {
9332 (char *) "self", NULL
9333 };
9334
9335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
9336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9338 {
9339 PyThreadState* __tstate = wxPyBeginAllowThreads();
9340 result = (int)(arg1)->GetPid();
9341
9342 wxPyEndAllowThreads(__tstate);
9343 if (PyErr_Occurred()) SWIG_fail;
9344 }
9345 resultobj = SWIG_FromInt((int)result);
9346 return resultobj;
9347 fail:
9348 return NULL;
9349 }
9350
9351
9352 static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) {
9353 PyObject *resultobj;
9354 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9355 int result;
9356 PyObject * obj0 = 0 ;
9357 char *kwnames[] = {
9358 (char *) "self", NULL
9359 };
9360
9361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
9362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9364 {
9365 PyThreadState* __tstate = wxPyBeginAllowThreads();
9366 result = (int)(arg1)->GetExitCode();
9367
9368 wxPyEndAllowThreads(__tstate);
9369 if (PyErr_Occurred()) SWIG_fail;
9370 }
9371 resultobj = SWIG_FromInt((int)result);
9372 return resultobj;
9373 fail:
9374 return NULL;
9375 }
9376
9377
9378 static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9379 PyObject *resultobj;
9380 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9381 int arg2 ;
9382 PyObject * obj0 = 0 ;
9383 PyObject * obj1 = 0 ;
9384 char *kwnames[] = {
9385 (char *) "self",(char *) "m_pid", NULL
9386 };
9387
9388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
9389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9391 arg2 = (int) SWIG_AsInt(obj1);
9392 if (PyErr_Occurred()) SWIG_fail;
9393 if (arg1) (arg1)->m_pid = arg2;
9394
9395 Py_INCREF(Py_None); resultobj = Py_None;
9396 return resultobj;
9397 fail:
9398 return NULL;
9399 }
9400
9401
9402 static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9403 PyObject *resultobj;
9404 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9405 int result;
9406 PyObject * obj0 = 0 ;
9407 char *kwnames[] = {
9408 (char *) "self", NULL
9409 };
9410
9411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
9412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9414 result = (int) ((arg1)->m_pid);
9415
9416 resultobj = SWIG_FromInt((int)result);
9417 return resultobj;
9418 fail:
9419 return NULL;
9420 }
9421
9422
9423 static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9424 PyObject *resultobj;
9425 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9426 int arg2 ;
9427 PyObject * obj0 = 0 ;
9428 PyObject * obj1 = 0 ;
9429 char *kwnames[] = {
9430 (char *) "self",(char *) "m_exitcode", NULL
9431 };
9432
9433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
9434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9436 arg2 = (int) SWIG_AsInt(obj1);
9437 if (PyErr_Occurred()) SWIG_fail;
9438 if (arg1) (arg1)->m_exitcode = arg2;
9439
9440 Py_INCREF(Py_None); resultobj = Py_None;
9441 return resultobj;
9442 fail:
9443 return NULL;
9444 }
9445
9446
9447 static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9448 PyObject *resultobj;
9449 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9450 int result;
9451 PyObject * obj0 = 0 ;
9452 char *kwnames[] = {
9453 (char *) "self", NULL
9454 };
9455
9456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
9457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9459 result = (int) ((arg1)->m_exitcode);
9460
9461 resultobj = SWIG_FromInt((int)result);
9462 return resultobj;
9463 fail:
9464 return NULL;
9465 }
9466
9467
9468 static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) {
9469 PyObject *obj;
9470 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9471 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
9472 Py_INCREF(obj);
9473 return Py_BuildValue((char *)"");
9474 }
9475 static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) {
9476 PyObject *resultobj;
9477 wxString *arg1 = 0 ;
9478 int arg2 = (int) wxEXEC_ASYNC ;
9479 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
9480 long result;
9481 bool temp1 = False ;
9482 PyObject * obj0 = 0 ;
9483 PyObject * obj1 = 0 ;
9484 PyObject * obj2 = 0 ;
9485 char *kwnames[] = {
9486 (char *) "command",(char *) "flags",(char *) "process", NULL
9487 };
9488
9489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
9490 {
9491 arg1 = wxString_in_helper(obj0);
9492 if (arg1 == NULL) SWIG_fail;
9493 temp1 = True;
9494 }
9495 if (obj1) {
9496 arg2 = (int) SWIG_AsInt(obj1);
9497 if (PyErr_Occurred()) SWIG_fail;
9498 }
9499 if (obj2) {
9500 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess,
9501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9502 }
9503 {
9504 PyThreadState* __tstate = wxPyBeginAllowThreads();
9505 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
9506
9507 wxPyEndAllowThreads(__tstate);
9508 if (PyErr_Occurred()) SWIG_fail;
9509 }
9510 resultobj = SWIG_FromLong((long)result);
9511 {
9512 if (temp1)
9513 delete arg1;
9514 }
9515 return resultobj;
9516 fail:
9517 {
9518 if (temp1)
9519 delete arg1;
9520 }
9521 return NULL;
9522 }
9523
9524
9525 static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9526 PyObject *resultobj;
9527 int arg1 = (int) wxJOYSTICK1 ;
9528 wxJoystick *result;
9529 PyObject * obj0 = 0 ;
9530 char *kwnames[] = {
9531 (char *) "joystick", NULL
9532 };
9533
9534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
9535 if (obj0) {
9536 arg1 = (int) SWIG_AsInt(obj0);
9537 if (PyErr_Occurred()) SWIG_fail;
9538 }
9539 {
9540 PyThreadState* __tstate = wxPyBeginAllowThreads();
9541 result = (wxJoystick *)new wxJoystick(arg1);
9542
9543 wxPyEndAllowThreads(__tstate);
9544 if (PyErr_Occurred()) SWIG_fail;
9545 }
9546 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
9547 return resultobj;
9548 fail:
9549 return NULL;
9550 }
9551
9552
9553 static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9554 PyObject *resultobj;
9555 wxJoystick *arg1 = (wxJoystick *) 0 ;
9556 PyObject * obj0 = 0 ;
9557 char *kwnames[] = {
9558 (char *) "self", NULL
9559 };
9560
9561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
9562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9564 {
9565 PyThreadState* __tstate = wxPyBeginAllowThreads();
9566 delete arg1;
9567
9568 wxPyEndAllowThreads(__tstate);
9569 if (PyErr_Occurred()) SWIG_fail;
9570 }
9571 Py_INCREF(Py_None); resultobj = Py_None;
9572 return resultobj;
9573 fail:
9574 return NULL;
9575 }
9576
9577
9578 static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9579 PyObject *resultobj;
9580 wxJoystick *arg1 = (wxJoystick *) 0 ;
9581 wxPoint result;
9582 PyObject * obj0 = 0 ;
9583 char *kwnames[] = {
9584 (char *) "self", NULL
9585 };
9586
9587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
9588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9590 {
9591 PyThreadState* __tstate = wxPyBeginAllowThreads();
9592 result = (arg1)->GetPosition();
9593
9594 wxPyEndAllowThreads(__tstate);
9595 if (PyErr_Occurred()) SWIG_fail;
9596 }
9597 {
9598 wxPoint * resultptr;
9599 resultptr = new wxPoint((wxPoint &) result);
9600 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
9601 }
9602 return resultobj;
9603 fail:
9604 return NULL;
9605 }
9606
9607
9608 static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9609 PyObject *resultobj;
9610 wxJoystick *arg1 = (wxJoystick *) 0 ;
9611 int result;
9612 PyObject * obj0 = 0 ;
9613 char *kwnames[] = {
9614 (char *) "self", NULL
9615 };
9616
9617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
9618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9620 {
9621 PyThreadState* __tstate = wxPyBeginAllowThreads();
9622 result = (int)(arg1)->GetZPosition();
9623
9624 wxPyEndAllowThreads(__tstate);
9625 if (PyErr_Occurred()) SWIG_fail;
9626 }
9627 resultobj = SWIG_FromInt((int)result);
9628 return resultobj;
9629 fail:
9630 return NULL;
9631 }
9632
9633
9634 static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
9635 PyObject *resultobj;
9636 wxJoystick *arg1 = (wxJoystick *) 0 ;
9637 int result;
9638 PyObject * obj0 = 0 ;
9639 char *kwnames[] = {
9640 (char *) "self", NULL
9641 };
9642
9643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
9644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9646 {
9647 PyThreadState* __tstate = wxPyBeginAllowThreads();
9648 result = (int)(arg1)->GetButtonState();
9649
9650 wxPyEndAllowThreads(__tstate);
9651 if (PyErr_Occurred()) SWIG_fail;
9652 }
9653 resultobj = SWIG_FromInt((int)result);
9654 return resultobj;
9655 fail:
9656 return NULL;
9657 }
9658
9659
9660 static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9661 PyObject *resultobj;
9662 wxJoystick *arg1 = (wxJoystick *) 0 ;
9663 int result;
9664 PyObject * obj0 = 0 ;
9665 char *kwnames[] = {
9666 (char *) "self", NULL
9667 };
9668
9669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
9670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9672 {
9673 PyThreadState* __tstate = wxPyBeginAllowThreads();
9674 result = (int)(arg1)->GetPOVPosition();
9675
9676 wxPyEndAllowThreads(__tstate);
9677 if (PyErr_Occurred()) SWIG_fail;
9678 }
9679 resultobj = SWIG_FromInt((int)result);
9680 return resultobj;
9681 fail:
9682 return NULL;
9683 }
9684
9685
9686 static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9687 PyObject *resultobj;
9688 wxJoystick *arg1 = (wxJoystick *) 0 ;
9689 int result;
9690 PyObject * obj0 = 0 ;
9691 char *kwnames[] = {
9692 (char *) "self", NULL
9693 };
9694
9695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
9696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9698 {
9699 PyThreadState* __tstate = wxPyBeginAllowThreads();
9700 result = (int)(arg1)->GetPOVCTSPosition();
9701
9702 wxPyEndAllowThreads(__tstate);
9703 if (PyErr_Occurred()) SWIG_fail;
9704 }
9705 resultobj = SWIG_FromInt((int)result);
9706 return resultobj;
9707 fail:
9708 return NULL;
9709 }
9710
9711
9712 static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9713 PyObject *resultobj;
9714 wxJoystick *arg1 = (wxJoystick *) 0 ;
9715 int result;
9716 PyObject * obj0 = 0 ;
9717 char *kwnames[] = {
9718 (char *) "self", NULL
9719 };
9720
9721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
9722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9724 {
9725 PyThreadState* __tstate = wxPyBeginAllowThreads();
9726 result = (int)(arg1)->GetRudderPosition();
9727
9728 wxPyEndAllowThreads(__tstate);
9729 if (PyErr_Occurred()) SWIG_fail;
9730 }
9731 resultobj = SWIG_FromInt((int)result);
9732 return resultobj;
9733 fail:
9734 return NULL;
9735 }
9736
9737
9738 static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9739 PyObject *resultobj;
9740 wxJoystick *arg1 = (wxJoystick *) 0 ;
9741 int result;
9742 PyObject * obj0 = 0 ;
9743 char *kwnames[] = {
9744 (char *) "self", NULL
9745 };
9746
9747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
9748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9750 {
9751 PyThreadState* __tstate = wxPyBeginAllowThreads();
9752 result = (int)(arg1)->GetUPosition();
9753
9754 wxPyEndAllowThreads(__tstate);
9755 if (PyErr_Occurred()) SWIG_fail;
9756 }
9757 resultobj = SWIG_FromInt((int)result);
9758 return resultobj;
9759 fail:
9760 return NULL;
9761 }
9762
9763
9764 static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9765 PyObject *resultobj;
9766 wxJoystick *arg1 = (wxJoystick *) 0 ;
9767 int result;
9768 PyObject * obj0 = 0 ;
9769 char *kwnames[] = {
9770 (char *) "self", NULL
9771 };
9772
9773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
9774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9776 {
9777 PyThreadState* __tstate = wxPyBeginAllowThreads();
9778 result = (int)(arg1)->GetVPosition();
9779
9780 wxPyEndAllowThreads(__tstate);
9781 if (PyErr_Occurred()) SWIG_fail;
9782 }
9783 resultobj = SWIG_FromInt((int)result);
9784 return resultobj;
9785 fail:
9786 return NULL;
9787 }
9788
9789
9790 static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9791 PyObject *resultobj;
9792 wxJoystick *arg1 = (wxJoystick *) 0 ;
9793 int result;
9794 PyObject * obj0 = 0 ;
9795 char *kwnames[] = {
9796 (char *) "self", NULL
9797 };
9798
9799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
9800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9802 {
9803 PyThreadState* __tstate = wxPyBeginAllowThreads();
9804 result = (int)(arg1)->GetMovementThreshold();
9805
9806 wxPyEndAllowThreads(__tstate);
9807 if (PyErr_Occurred()) SWIG_fail;
9808 }
9809 resultobj = SWIG_FromInt((int)result);
9810 return resultobj;
9811 fail:
9812 return NULL;
9813 }
9814
9815
9816 static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9817 PyObject *resultobj;
9818 wxJoystick *arg1 = (wxJoystick *) 0 ;
9819 int arg2 ;
9820 PyObject * obj0 = 0 ;
9821 PyObject * obj1 = 0 ;
9822 char *kwnames[] = {
9823 (char *) "self",(char *) "threshold", NULL
9824 };
9825
9826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
9827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9829 arg2 = (int) SWIG_AsInt(obj1);
9830 if (PyErr_Occurred()) SWIG_fail;
9831 {
9832 PyThreadState* __tstate = wxPyBeginAllowThreads();
9833 (arg1)->SetMovementThreshold(arg2);
9834
9835 wxPyEndAllowThreads(__tstate);
9836 if (PyErr_Occurred()) SWIG_fail;
9837 }
9838 Py_INCREF(Py_None); resultobj = Py_None;
9839 return resultobj;
9840 fail:
9841 return NULL;
9842 }
9843
9844
9845 static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9846 PyObject *resultobj;
9847 wxJoystick *arg1 = (wxJoystick *) 0 ;
9848 bool result;
9849 PyObject * obj0 = 0 ;
9850 char *kwnames[] = {
9851 (char *) "self", NULL
9852 };
9853
9854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
9855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9857 {
9858 PyThreadState* __tstate = wxPyBeginAllowThreads();
9859 result = (bool)(arg1)->IsOk();
9860
9861 wxPyEndAllowThreads(__tstate);
9862 if (PyErr_Occurred()) SWIG_fail;
9863 }
9864 {
9865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9866 }
9867 return resultobj;
9868 fail:
9869 return NULL;
9870 }
9871
9872
9873 static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) {
9874 PyObject *resultobj;
9875 wxJoystick *arg1 = (wxJoystick *) 0 ;
9876 int result;
9877 PyObject * obj0 = 0 ;
9878 char *kwnames[] = {
9879 (char *) "self", NULL
9880 };
9881
9882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
9883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9885 {
9886 PyThreadState* __tstate = wxPyBeginAllowThreads();
9887 result = (int)(arg1)->GetNumberJoysticks();
9888
9889 wxPyEndAllowThreads(__tstate);
9890 if (PyErr_Occurred()) SWIG_fail;
9891 }
9892 resultobj = SWIG_FromInt((int)result);
9893 return resultobj;
9894 fail:
9895 return NULL;
9896 }
9897
9898
9899 static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) {
9900 PyObject *resultobj;
9901 wxJoystick *arg1 = (wxJoystick *) 0 ;
9902 int result;
9903 PyObject * obj0 = 0 ;
9904 char *kwnames[] = {
9905 (char *) "self", NULL
9906 };
9907
9908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
9909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9911 {
9912 PyThreadState* __tstate = wxPyBeginAllowThreads();
9913 result = (int)(arg1)->GetManufacturerId();
9914
9915 wxPyEndAllowThreads(__tstate);
9916 if (PyErr_Occurred()) SWIG_fail;
9917 }
9918 resultobj = SWIG_FromInt((int)result);
9919 return resultobj;
9920 fail:
9921 return NULL;
9922 }
9923
9924
9925 static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) {
9926 PyObject *resultobj;
9927 wxJoystick *arg1 = (wxJoystick *) 0 ;
9928 int result;
9929 PyObject * obj0 = 0 ;
9930 char *kwnames[] = {
9931 (char *) "self", NULL
9932 };
9933
9934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
9935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9937 {
9938 PyThreadState* __tstate = wxPyBeginAllowThreads();
9939 result = (int)(arg1)->GetProductId();
9940
9941 wxPyEndAllowThreads(__tstate);
9942 if (PyErr_Occurred()) SWIG_fail;
9943 }
9944 resultobj = SWIG_FromInt((int)result);
9945 return resultobj;
9946 fail:
9947 return NULL;
9948 }
9949
9950
9951 static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) {
9952 PyObject *resultobj;
9953 wxJoystick *arg1 = (wxJoystick *) 0 ;
9954 wxString result;
9955 PyObject * obj0 = 0 ;
9956 char *kwnames[] = {
9957 (char *) "self", NULL
9958 };
9959
9960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
9961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9963 {
9964 PyThreadState* __tstate = wxPyBeginAllowThreads();
9965 result = (arg1)->GetProductName();
9966
9967 wxPyEndAllowThreads(__tstate);
9968 if (PyErr_Occurred()) SWIG_fail;
9969 }
9970 {
9971 #if wxUSE_UNICODE
9972 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9973 #else
9974 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9975 #endif
9976 }
9977 return resultobj;
9978 fail:
9979 return NULL;
9980 }
9981
9982
9983 static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9984 PyObject *resultobj;
9985 wxJoystick *arg1 = (wxJoystick *) 0 ;
9986 int result;
9987 PyObject * obj0 = 0 ;
9988 char *kwnames[] = {
9989 (char *) "self", NULL
9990 };
9991
9992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
9993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9995 {
9996 PyThreadState* __tstate = wxPyBeginAllowThreads();
9997 result = (int)(arg1)->GetXMin();
9998
9999 wxPyEndAllowThreads(__tstate);
10000 if (PyErr_Occurred()) SWIG_fail;
10001 }
10002 resultobj = SWIG_FromInt((int)result);
10003 return resultobj;
10004 fail:
10005 return NULL;
10006 }
10007
10008
10009 static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10010 PyObject *resultobj;
10011 wxJoystick *arg1 = (wxJoystick *) 0 ;
10012 int result;
10013 PyObject * obj0 = 0 ;
10014 char *kwnames[] = {
10015 (char *) "self", NULL
10016 };
10017
10018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
10019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10021 {
10022 PyThreadState* __tstate = wxPyBeginAllowThreads();
10023 result = (int)(arg1)->GetYMin();
10024
10025 wxPyEndAllowThreads(__tstate);
10026 if (PyErr_Occurred()) SWIG_fail;
10027 }
10028 resultobj = SWIG_FromInt((int)result);
10029 return resultobj;
10030 fail:
10031 return NULL;
10032 }
10033
10034
10035 static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10036 PyObject *resultobj;
10037 wxJoystick *arg1 = (wxJoystick *) 0 ;
10038 int result;
10039 PyObject * obj0 = 0 ;
10040 char *kwnames[] = {
10041 (char *) "self", NULL
10042 };
10043
10044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
10045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10047 {
10048 PyThreadState* __tstate = wxPyBeginAllowThreads();
10049 result = (int)(arg1)->GetZMin();
10050
10051 wxPyEndAllowThreads(__tstate);
10052 if (PyErr_Occurred()) SWIG_fail;
10053 }
10054 resultobj = SWIG_FromInt((int)result);
10055 return resultobj;
10056 fail:
10057 return NULL;
10058 }
10059
10060
10061 static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10062 PyObject *resultobj;
10063 wxJoystick *arg1 = (wxJoystick *) 0 ;
10064 int result;
10065 PyObject * obj0 = 0 ;
10066 char *kwnames[] = {
10067 (char *) "self", NULL
10068 };
10069
10070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
10071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10073 {
10074 PyThreadState* __tstate = wxPyBeginAllowThreads();
10075 result = (int)(arg1)->GetXMax();
10076
10077 wxPyEndAllowThreads(__tstate);
10078 if (PyErr_Occurred()) SWIG_fail;
10079 }
10080 resultobj = SWIG_FromInt((int)result);
10081 return resultobj;
10082 fail:
10083 return NULL;
10084 }
10085
10086
10087 static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10088 PyObject *resultobj;
10089 wxJoystick *arg1 = (wxJoystick *) 0 ;
10090 int result;
10091 PyObject * obj0 = 0 ;
10092 char *kwnames[] = {
10093 (char *) "self", NULL
10094 };
10095
10096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
10097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10099 {
10100 PyThreadState* __tstate = wxPyBeginAllowThreads();
10101 result = (int)(arg1)->GetYMax();
10102
10103 wxPyEndAllowThreads(__tstate);
10104 if (PyErr_Occurred()) SWIG_fail;
10105 }
10106 resultobj = SWIG_FromInt((int)result);
10107 return resultobj;
10108 fail:
10109 return NULL;
10110 }
10111
10112
10113 static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10114 PyObject *resultobj;
10115 wxJoystick *arg1 = (wxJoystick *) 0 ;
10116 int result;
10117 PyObject * obj0 = 0 ;
10118 char *kwnames[] = {
10119 (char *) "self", NULL
10120 };
10121
10122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
10123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10125 {
10126 PyThreadState* __tstate = wxPyBeginAllowThreads();
10127 result = (int)(arg1)->GetZMax();
10128
10129 wxPyEndAllowThreads(__tstate);
10130 if (PyErr_Occurred()) SWIG_fail;
10131 }
10132 resultobj = SWIG_FromInt((int)result);
10133 return resultobj;
10134 fail:
10135 return NULL;
10136 }
10137
10138
10139 static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10140 PyObject *resultobj;
10141 wxJoystick *arg1 = (wxJoystick *) 0 ;
10142 int result;
10143 PyObject * obj0 = 0 ;
10144 char *kwnames[] = {
10145 (char *) "self", NULL
10146 };
10147
10148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
10149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10151 {
10152 PyThreadState* __tstate = wxPyBeginAllowThreads();
10153 result = (int)(arg1)->GetNumberButtons();
10154
10155 wxPyEndAllowThreads(__tstate);
10156 if (PyErr_Occurred()) SWIG_fail;
10157 }
10158 resultobj = SWIG_FromInt((int)result);
10159 return resultobj;
10160 fail:
10161 return NULL;
10162 }
10163
10164
10165 static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10166 PyObject *resultobj;
10167 wxJoystick *arg1 = (wxJoystick *) 0 ;
10168 int result;
10169 PyObject * obj0 = 0 ;
10170 char *kwnames[] = {
10171 (char *) "self", NULL
10172 };
10173
10174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
10175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10177 {
10178 PyThreadState* __tstate = wxPyBeginAllowThreads();
10179 result = (int)(arg1)->GetNumberAxes();
10180
10181 wxPyEndAllowThreads(__tstate);
10182 if (PyErr_Occurred()) SWIG_fail;
10183 }
10184 resultobj = SWIG_FromInt((int)result);
10185 return resultobj;
10186 fail:
10187 return NULL;
10188 }
10189
10190
10191 static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10192 PyObject *resultobj;
10193 wxJoystick *arg1 = (wxJoystick *) 0 ;
10194 int result;
10195 PyObject * obj0 = 0 ;
10196 char *kwnames[] = {
10197 (char *) "self", NULL
10198 };
10199
10200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
10201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10203 {
10204 PyThreadState* __tstate = wxPyBeginAllowThreads();
10205 result = (int)(arg1)->GetMaxButtons();
10206
10207 wxPyEndAllowThreads(__tstate);
10208 if (PyErr_Occurred()) SWIG_fail;
10209 }
10210 resultobj = SWIG_FromInt((int)result);
10211 return resultobj;
10212 fail:
10213 return NULL;
10214 }
10215
10216
10217 static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10218 PyObject *resultobj;
10219 wxJoystick *arg1 = (wxJoystick *) 0 ;
10220 int result;
10221 PyObject * obj0 = 0 ;
10222 char *kwnames[] = {
10223 (char *) "self", NULL
10224 };
10225
10226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
10227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10229 {
10230 PyThreadState* __tstate = wxPyBeginAllowThreads();
10231 result = (int)(arg1)->GetMaxAxes();
10232
10233 wxPyEndAllowThreads(__tstate);
10234 if (PyErr_Occurred()) SWIG_fail;
10235 }
10236 resultobj = SWIG_FromInt((int)result);
10237 return resultobj;
10238 fail:
10239 return NULL;
10240 }
10241
10242
10243 static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10244 PyObject *resultobj;
10245 wxJoystick *arg1 = (wxJoystick *) 0 ;
10246 int result;
10247 PyObject * obj0 = 0 ;
10248 char *kwnames[] = {
10249 (char *) "self", NULL
10250 };
10251
10252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
10253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10255 {
10256 PyThreadState* __tstate = wxPyBeginAllowThreads();
10257 result = (int)(arg1)->GetPollingMin();
10258
10259 wxPyEndAllowThreads(__tstate);
10260 if (PyErr_Occurred()) SWIG_fail;
10261 }
10262 resultobj = SWIG_FromInt((int)result);
10263 return resultobj;
10264 fail:
10265 return NULL;
10266 }
10267
10268
10269 static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10270 PyObject *resultobj;
10271 wxJoystick *arg1 = (wxJoystick *) 0 ;
10272 int result;
10273 PyObject * obj0 = 0 ;
10274 char *kwnames[] = {
10275 (char *) "self", NULL
10276 };
10277
10278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
10279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10281 {
10282 PyThreadState* __tstate = wxPyBeginAllowThreads();
10283 result = (int)(arg1)->GetPollingMax();
10284
10285 wxPyEndAllowThreads(__tstate);
10286 if (PyErr_Occurred()) SWIG_fail;
10287 }
10288 resultobj = SWIG_FromInt((int)result);
10289 return resultobj;
10290 fail:
10291 return NULL;
10292 }
10293
10294
10295 static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10296 PyObject *resultobj;
10297 wxJoystick *arg1 = (wxJoystick *) 0 ;
10298 int result;
10299 PyObject * obj0 = 0 ;
10300 char *kwnames[] = {
10301 (char *) "self", NULL
10302 };
10303
10304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
10305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10307 {
10308 PyThreadState* __tstate = wxPyBeginAllowThreads();
10309 result = (int)(arg1)->GetRudderMin();
10310
10311 wxPyEndAllowThreads(__tstate);
10312 if (PyErr_Occurred()) SWIG_fail;
10313 }
10314 resultobj = SWIG_FromInt((int)result);
10315 return resultobj;
10316 fail:
10317 return NULL;
10318 }
10319
10320
10321 static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10322 PyObject *resultobj;
10323 wxJoystick *arg1 = (wxJoystick *) 0 ;
10324 int result;
10325 PyObject * obj0 = 0 ;
10326 char *kwnames[] = {
10327 (char *) "self", NULL
10328 };
10329
10330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
10331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10333 {
10334 PyThreadState* __tstate = wxPyBeginAllowThreads();
10335 result = (int)(arg1)->GetRudderMax();
10336
10337 wxPyEndAllowThreads(__tstate);
10338 if (PyErr_Occurred()) SWIG_fail;
10339 }
10340 resultobj = SWIG_FromInt((int)result);
10341 return resultobj;
10342 fail:
10343 return NULL;
10344 }
10345
10346
10347 static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10348 PyObject *resultobj;
10349 wxJoystick *arg1 = (wxJoystick *) 0 ;
10350 int result;
10351 PyObject * obj0 = 0 ;
10352 char *kwnames[] = {
10353 (char *) "self", NULL
10354 };
10355
10356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
10357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10359 {
10360 PyThreadState* __tstate = wxPyBeginAllowThreads();
10361 result = (int)(arg1)->GetUMin();
10362
10363 wxPyEndAllowThreads(__tstate);
10364 if (PyErr_Occurred()) SWIG_fail;
10365 }
10366 resultobj = SWIG_FromInt((int)result);
10367 return resultobj;
10368 fail:
10369 return NULL;
10370 }
10371
10372
10373 static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10374 PyObject *resultobj;
10375 wxJoystick *arg1 = (wxJoystick *) 0 ;
10376 int result;
10377 PyObject * obj0 = 0 ;
10378 char *kwnames[] = {
10379 (char *) "self", NULL
10380 };
10381
10382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
10383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10385 {
10386 PyThreadState* __tstate = wxPyBeginAllowThreads();
10387 result = (int)(arg1)->GetUMax();
10388
10389 wxPyEndAllowThreads(__tstate);
10390 if (PyErr_Occurred()) SWIG_fail;
10391 }
10392 resultobj = SWIG_FromInt((int)result);
10393 return resultobj;
10394 fail:
10395 return NULL;
10396 }
10397
10398
10399 static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10400 PyObject *resultobj;
10401 wxJoystick *arg1 = (wxJoystick *) 0 ;
10402 int result;
10403 PyObject * obj0 = 0 ;
10404 char *kwnames[] = {
10405 (char *) "self", NULL
10406 };
10407
10408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
10409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10411 {
10412 PyThreadState* __tstate = wxPyBeginAllowThreads();
10413 result = (int)(arg1)->GetVMin();
10414
10415 wxPyEndAllowThreads(__tstate);
10416 if (PyErr_Occurred()) SWIG_fail;
10417 }
10418 resultobj = SWIG_FromInt((int)result);
10419 return resultobj;
10420 fail:
10421 return NULL;
10422 }
10423
10424
10425 static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10426 PyObject *resultobj;
10427 wxJoystick *arg1 = (wxJoystick *) 0 ;
10428 int result;
10429 PyObject * obj0 = 0 ;
10430 char *kwnames[] = {
10431 (char *) "self", NULL
10432 };
10433
10434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
10435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10437 {
10438 PyThreadState* __tstate = wxPyBeginAllowThreads();
10439 result = (int)(arg1)->GetVMax();
10440
10441 wxPyEndAllowThreads(__tstate);
10442 if (PyErr_Occurred()) SWIG_fail;
10443 }
10444 resultobj = SWIG_FromInt((int)result);
10445 return resultobj;
10446 fail:
10447 return NULL;
10448 }
10449
10450
10451 static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) {
10452 PyObject *resultobj;
10453 wxJoystick *arg1 = (wxJoystick *) 0 ;
10454 bool result;
10455 PyObject * obj0 = 0 ;
10456 char *kwnames[] = {
10457 (char *) "self", NULL
10458 };
10459
10460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
10461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10463 {
10464 PyThreadState* __tstate = wxPyBeginAllowThreads();
10465 result = (bool)(arg1)->HasRudder();
10466
10467 wxPyEndAllowThreads(__tstate);
10468 if (PyErr_Occurred()) SWIG_fail;
10469 }
10470 {
10471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10472 }
10473 return resultobj;
10474 fail:
10475 return NULL;
10476 }
10477
10478
10479 static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) {
10480 PyObject *resultobj;
10481 wxJoystick *arg1 = (wxJoystick *) 0 ;
10482 bool result;
10483 PyObject * obj0 = 0 ;
10484 char *kwnames[] = {
10485 (char *) "self", NULL
10486 };
10487
10488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
10489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10491 {
10492 PyThreadState* __tstate = wxPyBeginAllowThreads();
10493 result = (bool)(arg1)->HasZ();
10494
10495 wxPyEndAllowThreads(__tstate);
10496 if (PyErr_Occurred()) SWIG_fail;
10497 }
10498 {
10499 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10500 }
10501 return resultobj;
10502 fail:
10503 return NULL;
10504 }
10505
10506
10507 static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) {
10508 PyObject *resultobj;
10509 wxJoystick *arg1 = (wxJoystick *) 0 ;
10510 bool result;
10511 PyObject * obj0 = 0 ;
10512 char *kwnames[] = {
10513 (char *) "self", NULL
10514 };
10515
10516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
10517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10519 {
10520 PyThreadState* __tstate = wxPyBeginAllowThreads();
10521 result = (bool)(arg1)->HasU();
10522
10523 wxPyEndAllowThreads(__tstate);
10524 if (PyErr_Occurred()) SWIG_fail;
10525 }
10526 {
10527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10528 }
10529 return resultobj;
10530 fail:
10531 return NULL;
10532 }
10533
10534
10535 static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) {
10536 PyObject *resultobj;
10537 wxJoystick *arg1 = (wxJoystick *) 0 ;
10538 bool result;
10539 PyObject * obj0 = 0 ;
10540 char *kwnames[] = {
10541 (char *) "self", NULL
10542 };
10543
10544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
10545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10547 {
10548 PyThreadState* __tstate = wxPyBeginAllowThreads();
10549 result = (bool)(arg1)->HasV();
10550
10551 wxPyEndAllowThreads(__tstate);
10552 if (PyErr_Occurred()) SWIG_fail;
10553 }
10554 {
10555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10556 }
10557 return resultobj;
10558 fail:
10559 return NULL;
10560 }
10561
10562
10563 static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) {
10564 PyObject *resultobj;
10565 wxJoystick *arg1 = (wxJoystick *) 0 ;
10566 bool result;
10567 PyObject * obj0 = 0 ;
10568 char *kwnames[] = {
10569 (char *) "self", NULL
10570 };
10571
10572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
10573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10575 {
10576 PyThreadState* __tstate = wxPyBeginAllowThreads();
10577 result = (bool)(arg1)->HasPOV();
10578
10579 wxPyEndAllowThreads(__tstate);
10580 if (PyErr_Occurred()) SWIG_fail;
10581 }
10582 {
10583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10584 }
10585 return resultobj;
10586 fail:
10587 return NULL;
10588 }
10589
10590
10591 static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) {
10592 PyObject *resultobj;
10593 wxJoystick *arg1 = (wxJoystick *) 0 ;
10594 bool result;
10595 PyObject * obj0 = 0 ;
10596 char *kwnames[] = {
10597 (char *) "self", NULL
10598 };
10599
10600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
10601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10603 {
10604 PyThreadState* __tstate = wxPyBeginAllowThreads();
10605 result = (bool)(arg1)->HasPOV4Dir();
10606
10607 wxPyEndAllowThreads(__tstate);
10608 if (PyErr_Occurred()) SWIG_fail;
10609 }
10610 {
10611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10612 }
10613 return resultobj;
10614 fail:
10615 return NULL;
10616 }
10617
10618
10619 static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) {
10620 PyObject *resultobj;
10621 wxJoystick *arg1 = (wxJoystick *) 0 ;
10622 bool result;
10623 PyObject * obj0 = 0 ;
10624 char *kwnames[] = {
10625 (char *) "self", NULL
10626 };
10627
10628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
10629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10631 {
10632 PyThreadState* __tstate = wxPyBeginAllowThreads();
10633 result = (bool)(arg1)->HasPOVCTS();
10634
10635 wxPyEndAllowThreads(__tstate);
10636 if (PyErr_Occurred()) SWIG_fail;
10637 }
10638 {
10639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10640 }
10641 return resultobj;
10642 fail:
10643 return NULL;
10644 }
10645
10646
10647 static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10648 PyObject *resultobj;
10649 wxJoystick *arg1 = (wxJoystick *) 0 ;
10650 wxWindow *arg2 = (wxWindow *) 0 ;
10651 int arg3 = (int) 0 ;
10652 bool result;
10653 PyObject * obj0 = 0 ;
10654 PyObject * obj1 = 0 ;
10655 PyObject * obj2 = 0 ;
10656 char *kwnames[] = {
10657 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
10658 };
10659
10660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
10661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10663 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10665 if (obj2) {
10666 arg3 = (int) SWIG_AsInt(obj2);
10667 if (PyErr_Occurred()) SWIG_fail;
10668 }
10669 {
10670 PyThreadState* __tstate = wxPyBeginAllowThreads();
10671 result = (bool)(arg1)->SetCapture(arg2,arg3);
10672
10673 wxPyEndAllowThreads(__tstate);
10674 if (PyErr_Occurred()) SWIG_fail;
10675 }
10676 {
10677 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10678 }
10679 return resultobj;
10680 fail:
10681 return NULL;
10682 }
10683
10684
10685 static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10686 PyObject *resultobj;
10687 wxJoystick *arg1 = (wxJoystick *) 0 ;
10688 bool result;
10689 PyObject * obj0 = 0 ;
10690 char *kwnames[] = {
10691 (char *) "self", NULL
10692 };
10693
10694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
10695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10697 {
10698 PyThreadState* __tstate = wxPyBeginAllowThreads();
10699 result = (bool)(arg1)->ReleaseCapture();
10700
10701 wxPyEndAllowThreads(__tstate);
10702 if (PyErr_Occurred()) SWIG_fail;
10703 }
10704 {
10705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10706 }
10707 return resultobj;
10708 fail:
10709 return NULL;
10710 }
10711
10712
10713 static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) {
10714 PyObject *obj;
10715 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10716 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
10717 Py_INCREF(obj);
10718 return Py_BuildValue((char *)"");
10719 }
10720 static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10721 PyObject *resultobj;
10722 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10723 wxPoint *arg2 = (wxPoint *) 0 ;
10724 PyObject * obj0 = 0 ;
10725 PyObject * obj1 = 0 ;
10726 char *kwnames[] = {
10727 (char *) "self",(char *) "m_pos", NULL
10728 };
10729
10730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
10731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10733 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
10734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10735 if (arg1) (arg1)->m_pos = *arg2;
10736
10737 Py_INCREF(Py_None); resultobj = Py_None;
10738 return resultobj;
10739 fail:
10740 return NULL;
10741 }
10742
10743
10744 static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10745 PyObject *resultobj;
10746 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10747 wxPoint *result;
10748 PyObject * obj0 = 0 ;
10749 char *kwnames[] = {
10750 (char *) "self", NULL
10751 };
10752
10753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
10754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10756 result = (wxPoint *)& ((arg1)->m_pos);
10757
10758 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
10759 return resultobj;
10760 fail:
10761 return NULL;
10762 }
10763
10764
10765 static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10766 PyObject *resultobj;
10767 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10768 int arg2 ;
10769 PyObject * obj0 = 0 ;
10770 PyObject * obj1 = 0 ;
10771 char *kwnames[] = {
10772 (char *) "self",(char *) "m_zPosition", NULL
10773 };
10774
10775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail;
10776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10778 arg2 = (int) SWIG_AsInt(obj1);
10779 if (PyErr_Occurred()) SWIG_fail;
10780 if (arg1) (arg1)->m_zPosition = arg2;
10781
10782 Py_INCREF(Py_None); resultobj = Py_None;
10783 return resultobj;
10784 fail:
10785 return NULL;
10786 }
10787
10788
10789 static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10790 PyObject *resultobj;
10791 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10792 int result;
10793 PyObject * obj0 = 0 ;
10794 char *kwnames[] = {
10795 (char *) "self", NULL
10796 };
10797
10798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
10799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10801 result = (int) ((arg1)->m_zPosition);
10802
10803 resultobj = SWIG_FromInt((int)result);
10804 return resultobj;
10805 fail:
10806 return NULL;
10807 }
10808
10809
10810 static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10811 PyObject *resultobj;
10812 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10813 int arg2 ;
10814 PyObject * obj0 = 0 ;
10815 PyObject * obj1 = 0 ;
10816 char *kwnames[] = {
10817 (char *) "self",(char *) "m_buttonChange", NULL
10818 };
10819
10820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail;
10821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10823 arg2 = (int) SWIG_AsInt(obj1);
10824 if (PyErr_Occurred()) SWIG_fail;
10825 if (arg1) (arg1)->m_buttonChange = arg2;
10826
10827 Py_INCREF(Py_None); resultobj = Py_None;
10828 return resultobj;
10829 fail:
10830 return NULL;
10831 }
10832
10833
10834 static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10835 PyObject *resultobj;
10836 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10837 int result;
10838 PyObject * obj0 = 0 ;
10839 char *kwnames[] = {
10840 (char *) "self", NULL
10841 };
10842
10843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
10844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10846 result = (int) ((arg1)->m_buttonChange);
10847
10848 resultobj = SWIG_FromInt((int)result);
10849 return resultobj;
10850 fail:
10851 return NULL;
10852 }
10853
10854
10855 static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10856 PyObject *resultobj;
10857 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10858 int arg2 ;
10859 PyObject * obj0 = 0 ;
10860 PyObject * obj1 = 0 ;
10861 char *kwnames[] = {
10862 (char *) "self",(char *) "m_buttonState", NULL
10863 };
10864
10865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail;
10866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10868 arg2 = (int) SWIG_AsInt(obj1);
10869 if (PyErr_Occurred()) SWIG_fail;
10870 if (arg1) (arg1)->m_buttonState = arg2;
10871
10872 Py_INCREF(Py_None); resultobj = Py_None;
10873 return resultobj;
10874 fail:
10875 return NULL;
10876 }
10877
10878
10879 static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10880 PyObject *resultobj;
10881 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10882 int result;
10883 PyObject * obj0 = 0 ;
10884 char *kwnames[] = {
10885 (char *) "self", NULL
10886 };
10887
10888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
10889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10891 result = (int) ((arg1)->m_buttonState);
10892
10893 resultobj = SWIG_FromInt((int)result);
10894 return resultobj;
10895 fail:
10896 return NULL;
10897 }
10898
10899
10900 static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10901 PyObject *resultobj;
10902 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10903 int arg2 ;
10904 PyObject * obj0 = 0 ;
10905 PyObject * obj1 = 0 ;
10906 char *kwnames[] = {
10907 (char *) "self",(char *) "m_joyStick", NULL
10908 };
10909
10910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail;
10911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10913 arg2 = (int) SWIG_AsInt(obj1);
10914 if (PyErr_Occurred()) SWIG_fail;
10915 if (arg1) (arg1)->m_joyStick = arg2;
10916
10917 Py_INCREF(Py_None); resultobj = Py_None;
10918 return resultobj;
10919 fail:
10920 return NULL;
10921 }
10922
10923
10924 static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10925 PyObject *resultobj;
10926 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10927 int result;
10928 PyObject * obj0 = 0 ;
10929 char *kwnames[] = {
10930 (char *) "self", NULL
10931 };
10932
10933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
10934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10936 result = (int) ((arg1)->m_joyStick);
10937
10938 resultobj = SWIG_FromInt((int)result);
10939 return resultobj;
10940 fail:
10941 return NULL;
10942 }
10943
10944
10945 static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
10946 PyObject *resultobj;
10947 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
10948 int arg2 = (int) 0 ;
10949 int arg3 = (int) wxJOYSTICK1 ;
10950 int arg4 = (int) 0 ;
10951 wxJoystickEvent *result;
10952 PyObject * obj0 = 0 ;
10953 PyObject * obj1 = 0 ;
10954 PyObject * obj2 = 0 ;
10955 PyObject * obj3 = 0 ;
10956 char *kwnames[] = {
10957 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
10958 };
10959
10960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10961 if (obj0) {
10962 arg1 = (wxEventType) SWIG_AsInt(obj0);
10963 if (PyErr_Occurred()) SWIG_fail;
10964 }
10965 if (obj1) {
10966 arg2 = (int) SWIG_AsInt(obj1);
10967 if (PyErr_Occurred()) SWIG_fail;
10968 }
10969 if (obj2) {
10970 arg3 = (int) SWIG_AsInt(obj2);
10971 if (PyErr_Occurred()) SWIG_fail;
10972 }
10973 if (obj3) {
10974 arg4 = (int) SWIG_AsInt(obj3);
10975 if (PyErr_Occurred()) SWIG_fail;
10976 }
10977 {
10978 PyThreadState* __tstate = wxPyBeginAllowThreads();
10979 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
10980
10981 wxPyEndAllowThreads(__tstate);
10982 if (PyErr_Occurred()) SWIG_fail;
10983 }
10984 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
10985 return resultobj;
10986 fail:
10987 return NULL;
10988 }
10989
10990
10991 static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10992 PyObject *resultobj;
10993 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10994 wxPoint result;
10995 PyObject * obj0 = 0 ;
10996 char *kwnames[] = {
10997 (char *) "self", NULL
10998 };
10999
11000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
11001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11003 {
11004 PyThreadState* __tstate = wxPyBeginAllowThreads();
11005 result = ((wxJoystickEvent const *)arg1)->GetPosition();
11006
11007 wxPyEndAllowThreads(__tstate);
11008 if (PyErr_Occurred()) SWIG_fail;
11009 }
11010 {
11011 wxPoint * resultptr;
11012 resultptr = new wxPoint((wxPoint &) result);
11013 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
11014 }
11015 return resultobj;
11016 fail:
11017 return NULL;
11018 }
11019
11020
11021 static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11022 PyObject *resultobj;
11023 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11024 int result;
11025 PyObject * obj0 = 0 ;
11026 char *kwnames[] = {
11027 (char *) "self", NULL
11028 };
11029
11030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
11031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11033 {
11034 PyThreadState* __tstate = wxPyBeginAllowThreads();
11035 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
11036
11037 wxPyEndAllowThreads(__tstate);
11038 if (PyErr_Occurred()) SWIG_fail;
11039 }
11040 resultobj = SWIG_FromInt((int)result);
11041 return resultobj;
11042 fail:
11043 return NULL;
11044 }
11045
11046
11047 static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
11048 PyObject *resultobj;
11049 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11050 int result;
11051 PyObject * obj0 = 0 ;
11052 char *kwnames[] = {
11053 (char *) "self", NULL
11054 };
11055
11056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
11057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11059 {
11060 PyThreadState* __tstate = wxPyBeginAllowThreads();
11061 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
11062
11063 wxPyEndAllowThreads(__tstate);
11064 if (PyErr_Occurred()) SWIG_fail;
11065 }
11066 resultobj = SWIG_FromInt((int)result);
11067 return resultobj;
11068 fail:
11069 return NULL;
11070 }
11071
11072
11073 static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
11074 PyObject *resultobj;
11075 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11076 int result;
11077 PyObject * obj0 = 0 ;
11078 char *kwnames[] = {
11079 (char *) "self", NULL
11080 };
11081
11082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
11083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11085 {
11086 PyThreadState* __tstate = wxPyBeginAllowThreads();
11087 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
11088
11089 wxPyEndAllowThreads(__tstate);
11090 if (PyErr_Occurred()) SWIG_fail;
11091 }
11092 resultobj = SWIG_FromInt((int)result);
11093 return resultobj;
11094 fail:
11095 return NULL;
11096 }
11097
11098
11099 static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
11100 PyObject *resultobj;
11101 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11102 int result;
11103 PyObject * obj0 = 0 ;
11104 char *kwnames[] = {
11105 (char *) "self", NULL
11106 };
11107
11108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
11109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11111 {
11112 PyThreadState* __tstate = wxPyBeginAllowThreads();
11113 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
11114
11115 wxPyEndAllowThreads(__tstate);
11116 if (PyErr_Occurred()) SWIG_fail;
11117 }
11118 resultobj = SWIG_FromInt((int)result);
11119 return resultobj;
11120 fail:
11121 return NULL;
11122 }
11123
11124
11125 static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
11126 PyObject *resultobj;
11127 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11128 int arg2 ;
11129 PyObject * obj0 = 0 ;
11130 PyObject * obj1 = 0 ;
11131 char *kwnames[] = {
11132 (char *) "self",(char *) "stick", NULL
11133 };
11134
11135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
11136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11138 arg2 = (int) SWIG_AsInt(obj1);
11139 if (PyErr_Occurred()) SWIG_fail;
11140 {
11141 PyThreadState* __tstate = wxPyBeginAllowThreads();
11142 (arg1)->SetJoystick(arg2);
11143
11144 wxPyEndAllowThreads(__tstate);
11145 if (PyErr_Occurred()) SWIG_fail;
11146 }
11147 Py_INCREF(Py_None); resultobj = Py_None;
11148 return resultobj;
11149 fail:
11150 return NULL;
11151 }
11152
11153
11154 static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
11155 PyObject *resultobj;
11156 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11157 int arg2 ;
11158 PyObject * obj0 = 0 ;
11159 PyObject * obj1 = 0 ;
11160 char *kwnames[] = {
11161 (char *) "self",(char *) "state", NULL
11162 };
11163
11164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
11165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11167 arg2 = (int) SWIG_AsInt(obj1);
11168 if (PyErr_Occurred()) SWIG_fail;
11169 {
11170 PyThreadState* __tstate = wxPyBeginAllowThreads();
11171 (arg1)->SetButtonState(arg2);
11172
11173 wxPyEndAllowThreads(__tstate);
11174 if (PyErr_Occurred()) SWIG_fail;
11175 }
11176 Py_INCREF(Py_None); resultobj = Py_None;
11177 return resultobj;
11178 fail:
11179 return NULL;
11180 }
11181
11182
11183 static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
11184 PyObject *resultobj;
11185 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11186 int arg2 ;
11187 PyObject * obj0 = 0 ;
11188 PyObject * obj1 = 0 ;
11189 char *kwnames[] = {
11190 (char *) "self",(char *) "change", NULL
11191 };
11192
11193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
11194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11196 arg2 = (int) SWIG_AsInt(obj1);
11197 if (PyErr_Occurred()) SWIG_fail;
11198 {
11199 PyThreadState* __tstate = wxPyBeginAllowThreads();
11200 (arg1)->SetButtonChange(arg2);
11201
11202 wxPyEndAllowThreads(__tstate);
11203 if (PyErr_Occurred()) SWIG_fail;
11204 }
11205 Py_INCREF(Py_None); resultobj = Py_None;
11206 return resultobj;
11207 fail:
11208 return NULL;
11209 }
11210
11211
11212 static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11213 PyObject *resultobj;
11214 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11215 wxPoint *arg2 = 0 ;
11216 wxPoint temp2 ;
11217 PyObject * obj0 = 0 ;
11218 PyObject * obj1 = 0 ;
11219 char *kwnames[] = {
11220 (char *) "self",(char *) "pos", NULL
11221 };
11222
11223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11226 {
11227 arg2 = &temp2;
11228 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11229 }
11230 {
11231 PyThreadState* __tstate = wxPyBeginAllowThreads();
11232 (arg1)->SetPosition((wxPoint const &)*arg2);
11233
11234 wxPyEndAllowThreads(__tstate);
11235 if (PyErr_Occurred()) SWIG_fail;
11236 }
11237 Py_INCREF(Py_None); resultobj = Py_None;
11238 return resultobj;
11239 fail:
11240 return NULL;
11241 }
11242
11243
11244 static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11245 PyObject *resultobj;
11246 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11247 int arg2 ;
11248 PyObject * obj0 = 0 ;
11249 PyObject * obj1 = 0 ;
11250 char *kwnames[] = {
11251 (char *) "self",(char *) "zPos", NULL
11252 };
11253
11254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
11255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11257 arg2 = (int) SWIG_AsInt(obj1);
11258 if (PyErr_Occurred()) SWIG_fail;
11259 {
11260 PyThreadState* __tstate = wxPyBeginAllowThreads();
11261 (arg1)->SetZPosition(arg2);
11262
11263 wxPyEndAllowThreads(__tstate);
11264 if (PyErr_Occurred()) SWIG_fail;
11265 }
11266 Py_INCREF(Py_None); resultobj = Py_None;
11267 return resultobj;
11268 fail:
11269 return NULL;
11270 }
11271
11272
11273 static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11274 PyObject *resultobj;
11275 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11276 bool result;
11277 PyObject * obj0 = 0 ;
11278 char *kwnames[] = {
11279 (char *) "self", NULL
11280 };
11281
11282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
11283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11285 {
11286 PyThreadState* __tstate = wxPyBeginAllowThreads();
11287 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
11288
11289 wxPyEndAllowThreads(__tstate);
11290 if (PyErr_Occurred()) SWIG_fail;
11291 }
11292 {
11293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11294 }
11295 return resultobj;
11296 fail:
11297 return NULL;
11298 }
11299
11300
11301 static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11302 PyObject *resultobj;
11303 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11304 bool result;
11305 PyObject * obj0 = 0 ;
11306 char *kwnames[] = {
11307 (char *) "self", NULL
11308 };
11309
11310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
11311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11313 {
11314 PyThreadState* __tstate = wxPyBeginAllowThreads();
11315 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
11316
11317 wxPyEndAllowThreads(__tstate);
11318 if (PyErr_Occurred()) SWIG_fail;
11319 }
11320 {
11321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11322 }
11323 return resultobj;
11324 fail:
11325 return NULL;
11326 }
11327
11328
11329 static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11330 PyObject *resultobj;
11331 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11332 bool result;
11333 PyObject * obj0 = 0 ;
11334 char *kwnames[] = {
11335 (char *) "self", NULL
11336 };
11337
11338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
11339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11341 {
11342 PyThreadState* __tstate = wxPyBeginAllowThreads();
11343 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
11344
11345 wxPyEndAllowThreads(__tstate);
11346 if (PyErr_Occurred()) SWIG_fail;
11347 }
11348 {
11349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11350 }
11351 return resultobj;
11352 fail:
11353 return NULL;
11354 }
11355
11356
11357 static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11358 PyObject *resultobj;
11359 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11360 int arg2 = (int) wxJOY_BUTTON_ANY ;
11361 bool result;
11362 PyObject * obj0 = 0 ;
11363 PyObject * obj1 = 0 ;
11364 char *kwnames[] = {
11365 (char *) "self",(char *) "but", NULL
11366 };
11367
11368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
11369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11371 if (obj1) {
11372 arg2 = (int) SWIG_AsInt(obj1);
11373 if (PyErr_Occurred()) SWIG_fail;
11374 }
11375 {
11376 PyThreadState* __tstate = wxPyBeginAllowThreads();
11377 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
11378
11379 wxPyEndAllowThreads(__tstate);
11380 if (PyErr_Occurred()) SWIG_fail;
11381 }
11382 {
11383 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11384 }
11385 return resultobj;
11386 fail:
11387 return NULL;
11388 }
11389
11390
11391 static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) {
11392 PyObject *resultobj;
11393 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11394 int arg2 = (int) wxJOY_BUTTON_ANY ;
11395 bool result;
11396 PyObject * obj0 = 0 ;
11397 PyObject * obj1 = 0 ;
11398 char *kwnames[] = {
11399 (char *) "self",(char *) "but", NULL
11400 };
11401
11402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
11403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11405 if (obj1) {
11406 arg2 = (int) SWIG_AsInt(obj1);
11407 if (PyErr_Occurred()) SWIG_fail;
11408 }
11409 {
11410 PyThreadState* __tstate = wxPyBeginAllowThreads();
11411 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
11412
11413 wxPyEndAllowThreads(__tstate);
11414 if (PyErr_Occurred()) SWIG_fail;
11415 }
11416 {
11417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11418 }
11419 return resultobj;
11420 fail:
11421 return NULL;
11422 }
11423
11424
11425 static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11426 PyObject *resultobj;
11427 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11428 int arg2 = (int) wxJOY_BUTTON_ANY ;
11429 bool result;
11430 PyObject * obj0 = 0 ;
11431 PyObject * obj1 = 0 ;
11432 char *kwnames[] = {
11433 (char *) "self",(char *) "but", NULL
11434 };
11435
11436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
11437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11439 if (obj1) {
11440 arg2 = (int) SWIG_AsInt(obj1);
11441 if (PyErr_Occurred()) SWIG_fail;
11442 }
11443 {
11444 PyThreadState* __tstate = wxPyBeginAllowThreads();
11445 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
11446
11447 wxPyEndAllowThreads(__tstate);
11448 if (PyErr_Occurred()) SWIG_fail;
11449 }
11450 {
11451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11452 }
11453 return resultobj;
11454 fail:
11455 return NULL;
11456 }
11457
11458
11459 static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) {
11460 PyObject *obj;
11461 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11462 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
11463 Py_INCREF(obj);
11464 return Py_BuildValue((char *)"");
11465 }
11466 static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
11467 PyObject *resultobj;
11468 wxString const &arg1_defvalue = wxPyEmptyString ;
11469 wxString *arg1 = (wxString *) &arg1_defvalue ;
11470 wxSound *result;
11471 bool temp1 = False ;
11472 PyObject * obj0 = 0 ;
11473 char *kwnames[] = {
11474 (char *) "fileName", NULL
11475 };
11476
11477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail;
11478 if (obj0) {
11479 {
11480 arg1 = wxString_in_helper(obj0);
11481 if (arg1 == NULL) SWIG_fail;
11482 temp1 = True;
11483 }
11484 }
11485 {
11486 PyThreadState* __tstate = wxPyBeginAllowThreads();
11487 result = (wxSound *)new_wxSound((wxString const &)*arg1);
11488
11489 wxPyEndAllowThreads(__tstate);
11490 if (PyErr_Occurred()) SWIG_fail;
11491 }
11492 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11493 {
11494 if (temp1)
11495 delete arg1;
11496 }
11497 return resultobj;
11498 fail:
11499 {
11500 if (temp1)
11501 delete arg1;
11502 }
11503 return NULL;
11504 }
11505
11506
11507 static PyObject *_wrap_new_SoundFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
11508 PyObject *resultobj;
11509 PyObject *arg1 = (PyObject *) 0 ;
11510 wxSound *result;
11511 PyObject * obj0 = 0 ;
11512 char *kwnames[] = {
11513 (char *) "data", NULL
11514 };
11515
11516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail;
11517 arg1 = obj0;
11518 {
11519 PyThreadState* __tstate = wxPyBeginAllowThreads();
11520 result = (wxSound *)new_wxSound(arg1);
11521
11522 wxPyEndAllowThreads(__tstate);
11523 if (PyErr_Occurred()) SWIG_fail;
11524 }
11525 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11526 return resultobj;
11527 fail:
11528 return NULL;
11529 }
11530
11531
11532 static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
11533 PyObject *resultobj;
11534 wxSound *arg1 = (wxSound *) 0 ;
11535 PyObject * obj0 = 0 ;
11536 char *kwnames[] = {
11537 (char *) "self", NULL
11538 };
11539
11540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
11541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11543 {
11544 PyThreadState* __tstate = wxPyBeginAllowThreads();
11545 delete arg1;
11546
11547 wxPyEndAllowThreads(__tstate);
11548 if (PyErr_Occurred()) SWIG_fail;
11549 }
11550 Py_INCREF(Py_None); resultobj = Py_None;
11551 return resultobj;
11552 fail:
11553 return NULL;
11554 }
11555
11556
11557 static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11558 PyObject *resultobj;
11559 wxSound *arg1 = (wxSound *) 0 ;
11560 wxString *arg2 = 0 ;
11561 bool result;
11562 bool temp2 = False ;
11563 PyObject * obj0 = 0 ;
11564 PyObject * obj1 = 0 ;
11565 char *kwnames[] = {
11566 (char *) "self",(char *) "fileName", NULL
11567 };
11568
11569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail;
11570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11572 {
11573 arg2 = wxString_in_helper(obj1);
11574 if (arg2 == NULL) SWIG_fail;
11575 temp2 = True;
11576 }
11577 {
11578 PyThreadState* __tstate = wxPyBeginAllowThreads();
11579 result = (bool)(arg1)->Create((wxString const &)*arg2);
11580
11581 wxPyEndAllowThreads(__tstate);
11582 if (PyErr_Occurred()) SWIG_fail;
11583 }
11584 {
11585 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11586 }
11587 {
11588 if (temp2)
11589 delete arg2;
11590 }
11591 return resultobj;
11592 fail:
11593 {
11594 if (temp2)
11595 delete arg2;
11596 }
11597 return NULL;
11598 }
11599
11600
11601 static PyObject *_wrap_Sound_CreateFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
11602 PyObject *resultobj;
11603 wxSound *arg1 = (wxSound *) 0 ;
11604 PyObject *arg2 = (PyObject *) 0 ;
11605 bool result;
11606 PyObject * obj0 = 0 ;
11607 PyObject * obj1 = 0 ;
11608 char *kwnames[] = {
11609 (char *) "self",(char *) "data", NULL
11610 };
11611
11612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail;
11613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11615 arg2 = obj1;
11616 {
11617 PyThreadState* __tstate = wxPyBeginAllowThreads();
11618 result = (bool)wxSound_CreateFromData(arg1,arg2);
11619
11620 wxPyEndAllowThreads(__tstate);
11621 if (PyErr_Occurred()) SWIG_fail;
11622 }
11623 {
11624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11625 }
11626 return resultobj;
11627 fail:
11628 return NULL;
11629 }
11630
11631
11632 static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
11633 PyObject *resultobj;
11634 wxSound *arg1 = (wxSound *) 0 ;
11635 bool result;
11636 PyObject * obj0 = 0 ;
11637 char *kwnames[] = {
11638 (char *) "self", NULL
11639 };
11640
11641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
11642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11644 {
11645 PyThreadState* __tstate = wxPyBeginAllowThreads();
11646 result = (bool)(arg1)->IsOk();
11647
11648 wxPyEndAllowThreads(__tstate);
11649 if (PyErr_Occurred()) SWIG_fail;
11650 }
11651 {
11652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11653 }
11654 return resultobj;
11655 fail:
11656 return NULL;
11657 }
11658
11659
11660 static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args, PyObject *kwargs) {
11661 PyObject *resultobj;
11662 wxSound *arg1 = (wxSound *) 0 ;
11663 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11664 bool result;
11665 PyObject * obj0 = 0 ;
11666 PyObject * obj1 = 0 ;
11667 char *kwnames[] = {
11668 (char *) "self",(char *) "flags", NULL
11669 };
11670
11671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail;
11672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11674 if (obj1) {
11675 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11676 if (PyErr_Occurred()) SWIG_fail;
11677 }
11678 {
11679 PyThreadState* __tstate = wxPyBeginAllowThreads();
11680 result = (bool)((wxSound const *)arg1)->Play(arg2);
11681
11682 wxPyEndAllowThreads(__tstate);
11683 if (PyErr_Occurred()) SWIG_fail;
11684 }
11685 {
11686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11687 }
11688 return resultobj;
11689 fail:
11690 return NULL;
11691 }
11692
11693
11694 static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args, PyObject *kwargs) {
11695 PyObject *resultobj;
11696 wxString *arg1 = 0 ;
11697 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11698 bool result;
11699 bool temp1 = False ;
11700 PyObject * obj0 = 0 ;
11701 PyObject * obj1 = 0 ;
11702 char *kwnames[] = {
11703 (char *) "filename",(char *) "flags", NULL
11704 };
11705
11706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail;
11707 {
11708 arg1 = wxString_in_helper(obj0);
11709 if (arg1 == NULL) SWIG_fail;
11710 temp1 = True;
11711 }
11712 if (obj1) {
11713 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11714 if (PyErr_Occurred()) SWIG_fail;
11715 }
11716 {
11717 PyThreadState* __tstate = wxPyBeginAllowThreads();
11718 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
11719
11720 wxPyEndAllowThreads(__tstate);
11721 if (PyErr_Occurred()) SWIG_fail;
11722 }
11723 {
11724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11725 }
11726 {
11727 if (temp1)
11728 delete arg1;
11729 }
11730 return resultobj;
11731 fail:
11732 {
11733 if (temp1)
11734 delete arg1;
11735 }
11736 return NULL;
11737 }
11738
11739
11740 static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
11741 PyObject *resultobj;
11742 char *kwnames[] = {
11743 NULL
11744 };
11745
11746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
11747 {
11748 PyThreadState* __tstate = wxPyBeginAllowThreads();
11749 wxSound::Stop();
11750
11751 wxPyEndAllowThreads(__tstate);
11752 if (PyErr_Occurred()) SWIG_fail;
11753 }
11754 Py_INCREF(Py_None); resultobj = Py_None;
11755 return resultobj;
11756 fail:
11757 return NULL;
11758 }
11759
11760
11761 static PyObject * Sound_swigregister(PyObject *self, PyObject *args) {
11762 PyObject *obj;
11763 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11764 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
11765 Py_INCREF(obj);
11766 return Py_BuildValue((char *)"");
11767 }
11768 static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11769 PyObject *resultobj;
11770 wxString *arg1 = 0 ;
11771 wxString *arg2 = 0 ;
11772 wxString *arg3 = 0 ;
11773 wxString *arg4 = 0 ;
11774 wxFileTypeInfo *result;
11775 bool temp1 = False ;
11776 bool temp2 = False ;
11777 bool temp3 = False ;
11778 bool temp4 = False ;
11779 PyObject * obj0 = 0 ;
11780 PyObject * obj1 = 0 ;
11781 PyObject * obj2 = 0 ;
11782 PyObject * obj3 = 0 ;
11783 char *kwnames[] = {
11784 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
11785 };
11786
11787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11788 {
11789 arg1 = wxString_in_helper(obj0);
11790 if (arg1 == NULL) SWIG_fail;
11791 temp1 = True;
11792 }
11793 {
11794 arg2 = wxString_in_helper(obj1);
11795 if (arg2 == NULL) SWIG_fail;
11796 temp2 = True;
11797 }
11798 {
11799 arg3 = wxString_in_helper(obj2);
11800 if (arg3 == NULL) SWIG_fail;
11801 temp3 = True;
11802 }
11803 {
11804 arg4 = wxString_in_helper(obj3);
11805 if (arg4 == NULL) SWIG_fail;
11806 temp4 = True;
11807 }
11808 {
11809 PyThreadState* __tstate = wxPyBeginAllowThreads();
11810 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
11811
11812 wxPyEndAllowThreads(__tstate);
11813 if (PyErr_Occurred()) SWIG_fail;
11814 }
11815 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11816 {
11817 if (temp1)
11818 delete arg1;
11819 }
11820 {
11821 if (temp2)
11822 delete arg2;
11823 }
11824 {
11825 if (temp3)
11826 delete arg3;
11827 }
11828 {
11829 if (temp4)
11830 delete arg4;
11831 }
11832 return resultobj;
11833 fail:
11834 {
11835 if (temp1)
11836 delete arg1;
11837 }
11838 {
11839 if (temp2)
11840 delete arg2;
11841 }
11842 {
11843 if (temp3)
11844 delete arg3;
11845 }
11846 {
11847 if (temp4)
11848 delete arg4;
11849 }
11850 return NULL;
11851 }
11852
11853
11854 static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) {
11855 PyObject *resultobj;
11856 wxArrayString *arg1 = 0 ;
11857 wxFileTypeInfo *result;
11858 bool temp1 = False ;
11859 PyObject * obj0 = 0 ;
11860 char *kwnames[] = {
11861 (char *) "sArray", NULL
11862 };
11863
11864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
11865 {
11866 if (! PySequence_Check(obj0)) {
11867 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11868 SWIG_fail;
11869 }
11870 arg1 = new wxArrayString;
11871 temp1 = True;
11872 int i, len=PySequence_Length(obj0);
11873 for (i=0; i<len; i++) {
11874 PyObject* item = PySequence_GetItem(obj0, i);
11875 #if wxUSE_UNICODE
11876 PyObject* str = PyObject_Unicode(item);
11877 #else
11878 PyObject* str = PyObject_Str(item);
11879 #endif
11880 if (PyErr_Occurred()) SWIG_fail;
11881 arg1->Add(Py2wxString(str));
11882 Py_DECREF(item);
11883 Py_DECREF(str);
11884 }
11885 }
11886 {
11887 PyThreadState* __tstate = wxPyBeginAllowThreads();
11888 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
11889
11890 wxPyEndAllowThreads(__tstate);
11891 if (PyErr_Occurred()) SWIG_fail;
11892 }
11893 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11894 {
11895 if (temp1) delete arg1;
11896 }
11897 return resultobj;
11898 fail:
11899 {
11900 if (temp1) delete arg1;
11901 }
11902 return NULL;
11903 }
11904
11905
11906 static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11907 PyObject *resultobj;
11908 wxFileTypeInfo *result;
11909 char *kwnames[] = {
11910 NULL
11911 };
11912
11913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
11914 {
11915 PyThreadState* __tstate = wxPyBeginAllowThreads();
11916 result = (wxFileTypeInfo *)new wxFileTypeInfo();
11917
11918 wxPyEndAllowThreads(__tstate);
11919 if (PyErr_Occurred()) SWIG_fail;
11920 }
11921 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11922 return resultobj;
11923 fail:
11924 return NULL;
11925 }
11926
11927
11928 static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
11929 PyObject *resultobj;
11930 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11931 bool result;
11932 PyObject * obj0 = 0 ;
11933 char *kwnames[] = {
11934 (char *) "self", NULL
11935 };
11936
11937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
11938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
11939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11940 {
11941 PyThreadState* __tstate = wxPyBeginAllowThreads();
11942 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
11943
11944 wxPyEndAllowThreads(__tstate);
11945 if (PyErr_Occurred()) SWIG_fail;
11946 }
11947 {
11948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11949 }
11950 return resultobj;
11951 fail:
11952 return NULL;
11953 }
11954
11955
11956 static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11957 PyObject *resultobj;
11958 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11959 wxString *arg2 = 0 ;
11960 int arg3 = (int) 0 ;
11961 bool temp2 = False ;
11962 PyObject * obj0 = 0 ;
11963 PyObject * obj1 = 0 ;
11964 PyObject * obj2 = 0 ;
11965 char *kwnames[] = {
11966 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
11967 };
11968
11969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
11970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
11971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11972 {
11973 arg2 = wxString_in_helper(obj1);
11974 if (arg2 == NULL) SWIG_fail;
11975 temp2 = True;
11976 }
11977 if (obj2) {
11978 arg3 = (int) SWIG_AsInt(obj2);
11979 if (PyErr_Occurred()) SWIG_fail;
11980 }
11981 {
11982 PyThreadState* __tstate = wxPyBeginAllowThreads();
11983 (arg1)->SetIcon((wxString const &)*arg2,arg3);
11984
11985 wxPyEndAllowThreads(__tstate);
11986 if (PyErr_Occurred()) SWIG_fail;
11987 }
11988 Py_INCREF(Py_None); resultobj = Py_None;
11989 {
11990 if (temp2)
11991 delete arg2;
11992 }
11993 return resultobj;
11994 fail:
11995 {
11996 if (temp2)
11997 delete arg2;
11998 }
11999 return NULL;
12000 }
12001
12002
12003 static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12004 PyObject *resultobj;
12005 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12006 wxString *arg2 = 0 ;
12007 bool temp2 = False ;
12008 PyObject * obj0 = 0 ;
12009 PyObject * obj1 = 0 ;
12010 char *kwnames[] = {
12011 (char *) "self",(char *) "shortDesc", NULL
12012 };
12013
12014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
12015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12017 {
12018 arg2 = wxString_in_helper(obj1);
12019 if (arg2 == NULL) SWIG_fail;
12020 temp2 = True;
12021 }
12022 {
12023 PyThreadState* __tstate = wxPyBeginAllowThreads();
12024 (arg1)->SetShortDesc((wxString const &)*arg2);
12025
12026 wxPyEndAllowThreads(__tstate);
12027 if (PyErr_Occurred()) SWIG_fail;
12028 }
12029 Py_INCREF(Py_None); resultobj = Py_None;
12030 {
12031 if (temp2)
12032 delete arg2;
12033 }
12034 return resultobj;
12035 fail:
12036 {
12037 if (temp2)
12038 delete arg2;
12039 }
12040 return NULL;
12041 }
12042
12043
12044 static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12045 PyObject *resultobj;
12046 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12047 wxString *result;
12048 PyObject * obj0 = 0 ;
12049 char *kwnames[] = {
12050 (char *) "self", NULL
12051 };
12052
12053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
12054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12056 {
12057 PyThreadState* __tstate = wxPyBeginAllowThreads();
12058 {
12059 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
12060 result = (wxString *) &_result_ref;
12061 }
12062
12063 wxPyEndAllowThreads(__tstate);
12064 if (PyErr_Occurred()) SWIG_fail;
12065 }
12066 {
12067 #if wxUSE_UNICODE
12068 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12069 #else
12070 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12071 #endif
12072 }
12073 return resultobj;
12074 fail:
12075 return NULL;
12076 }
12077
12078
12079 static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12080 PyObject *resultobj;
12081 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12082 wxString *result;
12083 PyObject * obj0 = 0 ;
12084 char *kwnames[] = {
12085 (char *) "self", NULL
12086 };
12087
12088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
12089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12091 {
12092 PyThreadState* __tstate = wxPyBeginAllowThreads();
12093 {
12094 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
12095 result = (wxString *) &_result_ref;
12096 }
12097
12098 wxPyEndAllowThreads(__tstate);
12099 if (PyErr_Occurred()) SWIG_fail;
12100 }
12101 {
12102 #if wxUSE_UNICODE
12103 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12104 #else
12105 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12106 #endif
12107 }
12108 return resultobj;
12109 fail:
12110 return NULL;
12111 }
12112
12113
12114 static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12115 PyObject *resultobj;
12116 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12117 wxString *result;
12118 PyObject * obj0 = 0 ;
12119 char *kwnames[] = {
12120 (char *) "self", NULL
12121 };
12122
12123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
12124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12126 {
12127 PyThreadState* __tstate = wxPyBeginAllowThreads();
12128 {
12129 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
12130 result = (wxString *) &_result_ref;
12131 }
12132
12133 wxPyEndAllowThreads(__tstate);
12134 if (PyErr_Occurred()) SWIG_fail;
12135 }
12136 {
12137 #if wxUSE_UNICODE
12138 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12139 #else
12140 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12141 #endif
12142 }
12143 return resultobj;
12144 fail:
12145 return NULL;
12146 }
12147
12148
12149 static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12150 PyObject *resultobj;
12151 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12152 wxString *result;
12153 PyObject * obj0 = 0 ;
12154 char *kwnames[] = {
12155 (char *) "self", NULL
12156 };
12157
12158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
12159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12161 {
12162 PyThreadState* __tstate = wxPyBeginAllowThreads();
12163 {
12164 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
12165 result = (wxString *) &_result_ref;
12166 }
12167
12168 wxPyEndAllowThreads(__tstate);
12169 if (PyErr_Occurred()) SWIG_fail;
12170 }
12171 {
12172 #if wxUSE_UNICODE
12173 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12174 #else
12175 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12176 #endif
12177 }
12178 return resultobj;
12179 fail:
12180 return NULL;
12181 }
12182
12183
12184 static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12185 PyObject *resultobj;
12186 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12187 wxString *result;
12188 PyObject * obj0 = 0 ;
12189 char *kwnames[] = {
12190 (char *) "self", NULL
12191 };
12192
12193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
12194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12196 {
12197 PyThreadState* __tstate = wxPyBeginAllowThreads();
12198 {
12199 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
12200 result = (wxString *) &_result_ref;
12201 }
12202
12203 wxPyEndAllowThreads(__tstate);
12204 if (PyErr_Occurred()) SWIG_fail;
12205 }
12206 {
12207 #if wxUSE_UNICODE
12208 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12209 #else
12210 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12211 #endif
12212 }
12213 return resultobj;
12214 fail:
12215 return NULL;
12216 }
12217
12218
12219 static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12220 PyObject *resultobj;
12221 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12222 wxArrayString *result;
12223 PyObject * obj0 = 0 ;
12224 char *kwnames[] = {
12225 (char *) "self", NULL
12226 };
12227
12228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
12229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12231 {
12232 PyThreadState* __tstate = wxPyBeginAllowThreads();
12233 {
12234 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
12235 result = (wxArrayString *) &_result_ref;
12236 }
12237
12238 wxPyEndAllowThreads(__tstate);
12239 if (PyErr_Occurred()) SWIG_fail;
12240 }
12241 {
12242 resultobj = wxArrayString2PyList_helper(*result);
12243 }
12244 return resultobj;
12245 fail:
12246 return NULL;
12247 }
12248
12249
12250 static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12251 PyObject *resultobj;
12252 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12253 int result;
12254 PyObject * obj0 = 0 ;
12255 char *kwnames[] = {
12256 (char *) "self", NULL
12257 };
12258
12259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
12260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12262 {
12263 PyThreadState* __tstate = wxPyBeginAllowThreads();
12264 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
12265
12266 wxPyEndAllowThreads(__tstate);
12267 if (PyErr_Occurred()) SWIG_fail;
12268 }
12269 resultobj = SWIG_FromInt((int)result);
12270 return resultobj;
12271 fail:
12272 return NULL;
12273 }
12274
12275
12276 static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) {
12277 PyObject *resultobj;
12278 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12279 wxString *result;
12280 PyObject * obj0 = 0 ;
12281 char *kwnames[] = {
12282 (char *) "self", NULL
12283 };
12284
12285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
12286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12288 {
12289 PyThreadState* __tstate = wxPyBeginAllowThreads();
12290 {
12291 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
12292 result = (wxString *) &_result_ref;
12293 }
12294
12295 wxPyEndAllowThreads(__tstate);
12296 if (PyErr_Occurred()) SWIG_fail;
12297 }
12298 {
12299 #if wxUSE_UNICODE
12300 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12301 #else
12302 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12303 #endif
12304 }
12305 return resultobj;
12306 fail:
12307 return NULL;
12308 }
12309
12310
12311 static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
12312 PyObject *resultobj;
12313 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12314 int result;
12315 PyObject * obj0 = 0 ;
12316 char *kwnames[] = {
12317 (char *) "self", NULL
12318 };
12319
12320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
12321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12323 {
12324 PyThreadState* __tstate = wxPyBeginAllowThreads();
12325 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
12326
12327 wxPyEndAllowThreads(__tstate);
12328 if (PyErr_Occurred()) SWIG_fail;
12329 }
12330 resultobj = SWIG_FromInt((int)result);
12331 return resultobj;
12332 fail:
12333 return NULL;
12334 }
12335
12336
12337 static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) {
12338 PyObject *obj;
12339 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12340 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
12341 Py_INCREF(obj);
12342 return Py_BuildValue((char *)"");
12343 }
12344 static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12345 PyObject *resultobj;
12346 wxFileTypeInfo *arg1 = 0 ;
12347 wxFileType *result;
12348 PyObject * obj0 = 0 ;
12349 char *kwnames[] = {
12350 (char *) "ftInfo", NULL
12351 };
12352
12353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
12354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12355 SWIG_POINTER_EXCEPTION | 0)) == -1)
12356 SWIG_fail;
12357 if (arg1 == NULL) {
12358 PyErr_SetString(PyExc_TypeError,"null reference");
12359 SWIG_fail;
12360 }
12361 {
12362 PyThreadState* __tstate = wxPyBeginAllowThreads();
12363 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
12364
12365 wxPyEndAllowThreads(__tstate);
12366 if (PyErr_Occurred()) SWIG_fail;
12367 }
12368 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
12369 return resultobj;
12370 fail:
12371 return NULL;
12372 }
12373
12374
12375 static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12376 PyObject *resultobj;
12377 wxFileType *arg1 = (wxFileType *) 0 ;
12378 PyObject * obj0 = 0 ;
12379 char *kwnames[] = {
12380 (char *) "self", NULL
12381 };
12382
12383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
12384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12386 {
12387 PyThreadState* __tstate = wxPyBeginAllowThreads();
12388 delete arg1;
12389
12390 wxPyEndAllowThreads(__tstate);
12391 if (PyErr_Occurred()) SWIG_fail;
12392 }
12393 Py_INCREF(Py_None); resultobj = Py_None;
12394 return resultobj;
12395 fail:
12396 return NULL;
12397 }
12398
12399
12400 static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12401 PyObject *resultobj;
12402 wxFileType *arg1 = (wxFileType *) 0 ;
12403 PyObject *result;
12404 PyObject * obj0 = 0 ;
12405 char *kwnames[] = {
12406 (char *) "self", NULL
12407 };
12408
12409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
12410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12412 {
12413 PyThreadState* __tstate = wxPyBeginAllowThreads();
12414 result = (PyObject *)wxFileType_GetMimeType(arg1);
12415
12416 wxPyEndAllowThreads(__tstate);
12417 if (PyErr_Occurred()) SWIG_fail;
12418 }
12419 resultobj = result;
12420 return resultobj;
12421 fail:
12422 return NULL;
12423 }
12424
12425
12426 static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
12427 PyObject *resultobj;
12428 wxFileType *arg1 = (wxFileType *) 0 ;
12429 PyObject *result;
12430 PyObject * obj0 = 0 ;
12431 char *kwnames[] = {
12432 (char *) "self", NULL
12433 };
12434
12435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
12436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12438 {
12439 PyThreadState* __tstate = wxPyBeginAllowThreads();
12440 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
12441
12442 wxPyEndAllowThreads(__tstate);
12443 if (PyErr_Occurred()) SWIG_fail;
12444 }
12445 resultobj = result;
12446 return resultobj;
12447 fail:
12448 return NULL;
12449 }
12450
12451
12452 static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12453 PyObject *resultobj;
12454 wxFileType *arg1 = (wxFileType *) 0 ;
12455 PyObject *result;
12456 PyObject * obj0 = 0 ;
12457 char *kwnames[] = {
12458 (char *) "self", NULL
12459 };
12460
12461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
12462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12464 {
12465 PyThreadState* __tstate = wxPyBeginAllowThreads();
12466 result = (PyObject *)wxFileType_GetExtensions(arg1);
12467
12468 wxPyEndAllowThreads(__tstate);
12469 if (PyErr_Occurred()) SWIG_fail;
12470 }
12471 resultobj = result;
12472 return resultobj;
12473 fail:
12474 return NULL;
12475 }
12476
12477
12478 static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12479 PyObject *resultobj;
12480 wxFileType *arg1 = (wxFileType *) 0 ;
12481 wxIcon *result;
12482 PyObject * obj0 = 0 ;
12483 char *kwnames[] = {
12484 (char *) "self", NULL
12485 };
12486
12487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
12488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12490 {
12491 PyThreadState* __tstate = wxPyBeginAllowThreads();
12492 result = (wxIcon *)wxFileType_GetIcon(arg1);
12493
12494 wxPyEndAllowThreads(__tstate);
12495 if (PyErr_Occurred()) SWIG_fail;
12496 }
12497 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
12498 return resultobj;
12499 fail:
12500 return NULL;
12501 }
12502
12503
12504 static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12505 PyObject *resultobj;
12506 wxFileType *arg1 = (wxFileType *) 0 ;
12507 PyObject *result;
12508 PyObject * obj0 = 0 ;
12509 char *kwnames[] = {
12510 (char *) "self", NULL
12511 };
12512
12513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",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 result = (PyObject *)wxFileType_GetIconInfo(arg1);
12519
12520 wxPyEndAllowThreads(__tstate);
12521 if (PyErr_Occurred()) SWIG_fail;
12522 }
12523 resultobj = result;
12524 return resultobj;
12525 fail:
12526 return NULL;
12527 }
12528
12529
12530 static PyObject *_wrap_FileType_GetDescription(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_GetDescription",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_GetDescription(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_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12557 PyObject *resultobj;
12558 wxFileType *arg1 = (wxFileType *) 0 ;
12559 wxString *arg2 = 0 ;
12560 wxString const &arg3_defvalue = wxPyEmptyString ;
12561 wxString *arg3 = (wxString *) &arg3_defvalue ;
12562 PyObject *result;
12563 bool temp2 = False ;
12564 bool temp3 = False ;
12565 PyObject * obj0 = 0 ;
12566 PyObject * obj1 = 0 ;
12567 PyObject * obj2 = 0 ;
12568 char *kwnames[] = {
12569 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12570 };
12571
12572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12575 {
12576 arg2 = wxString_in_helper(obj1);
12577 if (arg2 == NULL) SWIG_fail;
12578 temp2 = True;
12579 }
12580 if (obj2) {
12581 {
12582 arg3 = wxString_in_helper(obj2);
12583 if (arg3 == NULL) SWIG_fail;
12584 temp3 = True;
12585 }
12586 }
12587 {
12588 PyThreadState* __tstate = wxPyBeginAllowThreads();
12589 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12590
12591 wxPyEndAllowThreads(__tstate);
12592 if (PyErr_Occurred()) SWIG_fail;
12593 }
12594 resultobj = result;
12595 {
12596 if (temp2)
12597 delete arg2;
12598 }
12599 {
12600 if (temp3)
12601 delete arg3;
12602 }
12603 return resultobj;
12604 fail:
12605 {
12606 if (temp2)
12607 delete arg2;
12608 }
12609 {
12610 if (temp3)
12611 delete arg3;
12612 }
12613 return NULL;
12614 }
12615
12616
12617 static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12618 PyObject *resultobj;
12619 wxFileType *arg1 = (wxFileType *) 0 ;
12620 wxString *arg2 = 0 ;
12621 wxString const &arg3_defvalue = wxPyEmptyString ;
12622 wxString *arg3 = (wxString *) &arg3_defvalue ;
12623 PyObject *result;
12624 bool temp2 = False ;
12625 bool temp3 = False ;
12626 PyObject * obj0 = 0 ;
12627 PyObject * obj1 = 0 ;
12628 PyObject * obj2 = 0 ;
12629 char *kwnames[] = {
12630 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12631 };
12632
12633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12636 {
12637 arg2 = wxString_in_helper(obj1);
12638 if (arg2 == NULL) SWIG_fail;
12639 temp2 = True;
12640 }
12641 if (obj2) {
12642 {
12643 arg3 = wxString_in_helper(obj2);
12644 if (arg3 == NULL) SWIG_fail;
12645 temp3 = True;
12646 }
12647 }
12648 {
12649 PyThreadState* __tstate = wxPyBeginAllowThreads();
12650 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12651
12652 wxPyEndAllowThreads(__tstate);
12653 if (PyErr_Occurred()) SWIG_fail;
12654 }
12655 resultobj = result;
12656 {
12657 if (temp2)
12658 delete arg2;
12659 }
12660 {
12661 if (temp3)
12662 delete arg3;
12663 }
12664 return resultobj;
12665 fail:
12666 {
12667 if (temp2)
12668 delete arg2;
12669 }
12670 {
12671 if (temp3)
12672 delete arg3;
12673 }
12674 return NULL;
12675 }
12676
12677
12678 static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) {
12679 PyObject *resultobj;
12680 wxFileType *arg1 = (wxFileType *) 0 ;
12681 wxString *arg2 = 0 ;
12682 wxString const &arg3_defvalue = wxPyEmptyString ;
12683 wxString *arg3 = (wxString *) &arg3_defvalue ;
12684 PyObject *result;
12685 bool temp2 = False ;
12686 bool temp3 = False ;
12687 PyObject * obj0 = 0 ;
12688 PyObject * obj1 = 0 ;
12689 PyObject * obj2 = 0 ;
12690 char *kwnames[] = {
12691 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12692 };
12693
12694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
12695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12697 {
12698 arg2 = wxString_in_helper(obj1);
12699 if (arg2 == NULL) SWIG_fail;
12700 temp2 = True;
12701 }
12702 if (obj2) {
12703 {
12704 arg3 = wxString_in_helper(obj2);
12705 if (arg3 == NULL) SWIG_fail;
12706 temp3 = True;
12707 }
12708 }
12709 {
12710 PyThreadState* __tstate = wxPyBeginAllowThreads();
12711 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12712
12713 wxPyEndAllowThreads(__tstate);
12714 if (PyErr_Occurred()) SWIG_fail;
12715 }
12716 resultobj = result;
12717 {
12718 if (temp2)
12719 delete arg2;
12720 }
12721 {
12722 if (temp3)
12723 delete arg3;
12724 }
12725 return resultobj;
12726 fail:
12727 {
12728 if (temp2)
12729 delete arg2;
12730 }
12731 {
12732 if (temp3)
12733 delete arg3;
12734 }
12735 return NULL;
12736 }
12737
12738
12739 static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12740 PyObject *resultobj;
12741 wxFileType *arg1 = (wxFileType *) 0 ;
12742 wxString *arg2 = 0 ;
12743 wxString *arg3 = 0 ;
12744 bool arg4 = (bool) True ;
12745 bool result;
12746 bool temp2 = False ;
12747 bool temp3 = False ;
12748 PyObject * obj0 = 0 ;
12749 PyObject * obj1 = 0 ;
12750 PyObject * obj2 = 0 ;
12751 PyObject * obj3 = 0 ;
12752 char *kwnames[] = {
12753 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
12754 };
12755
12756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12759 {
12760 arg2 = wxString_in_helper(obj1);
12761 if (arg2 == NULL) SWIG_fail;
12762 temp2 = True;
12763 }
12764 {
12765 arg3 = wxString_in_helper(obj2);
12766 if (arg3 == NULL) SWIG_fail;
12767 temp3 = True;
12768 }
12769 if (obj3) {
12770 arg4 = (bool) SWIG_AsBool(obj3);
12771 if (PyErr_Occurred()) SWIG_fail;
12772 }
12773 {
12774 PyThreadState* __tstate = wxPyBeginAllowThreads();
12775 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
12776
12777 wxPyEndAllowThreads(__tstate);
12778 if (PyErr_Occurred()) SWIG_fail;
12779 }
12780 {
12781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12782 }
12783 {
12784 if (temp2)
12785 delete arg2;
12786 }
12787 {
12788 if (temp3)
12789 delete arg3;
12790 }
12791 return resultobj;
12792 fail:
12793 {
12794 if (temp2)
12795 delete arg2;
12796 }
12797 {
12798 if (temp3)
12799 delete arg3;
12800 }
12801 return NULL;
12802 }
12803
12804
12805 static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12806 PyObject *resultobj;
12807 wxFileType *arg1 = (wxFileType *) 0 ;
12808 wxString const &arg2_defvalue = wxPyEmptyString ;
12809 wxString *arg2 = (wxString *) &arg2_defvalue ;
12810 int arg3 = (int) 0 ;
12811 bool result;
12812 bool temp2 = False ;
12813 PyObject * obj0 = 0 ;
12814 PyObject * obj1 = 0 ;
12815 PyObject * obj2 = 0 ;
12816 char *kwnames[] = {
12817 (char *) "self",(char *) "cmd",(char *) "index", NULL
12818 };
12819
12820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12823 if (obj1) {
12824 {
12825 arg2 = wxString_in_helper(obj1);
12826 if (arg2 == NULL) SWIG_fail;
12827 temp2 = True;
12828 }
12829 }
12830 if (obj2) {
12831 arg3 = (int) SWIG_AsInt(obj2);
12832 if (PyErr_Occurred()) SWIG_fail;
12833 }
12834 {
12835 PyThreadState* __tstate = wxPyBeginAllowThreads();
12836 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
12837
12838 wxPyEndAllowThreads(__tstate);
12839 if (PyErr_Occurred()) SWIG_fail;
12840 }
12841 {
12842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12843 }
12844 {
12845 if (temp2)
12846 delete arg2;
12847 }
12848 return resultobj;
12849 fail:
12850 {
12851 if (temp2)
12852 delete arg2;
12853 }
12854 return NULL;
12855 }
12856
12857
12858 static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
12859 PyObject *resultobj;
12860 wxFileType *arg1 = (wxFileType *) 0 ;
12861 bool result;
12862 PyObject * obj0 = 0 ;
12863 char *kwnames[] = {
12864 (char *) "self", NULL
12865 };
12866
12867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
12868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12870 {
12871 PyThreadState* __tstate = wxPyBeginAllowThreads();
12872 result = (bool)(arg1)->Unassociate();
12873
12874 wxPyEndAllowThreads(__tstate);
12875 if (PyErr_Occurred()) SWIG_fail;
12876 }
12877 {
12878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12879 }
12880 return resultobj;
12881 fail:
12882 return NULL;
12883 }
12884
12885
12886 static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12887 PyObject *resultobj;
12888 wxString *arg1 = 0 ;
12889 wxString *arg2 = 0 ;
12890 wxString const &arg3_defvalue = wxPyEmptyString ;
12891 wxString *arg3 = (wxString *) &arg3_defvalue ;
12892 wxString result;
12893 bool temp1 = False ;
12894 bool temp2 = False ;
12895 bool temp3 = False ;
12896 PyObject * obj0 = 0 ;
12897 PyObject * obj1 = 0 ;
12898 PyObject * obj2 = 0 ;
12899 char *kwnames[] = {
12900 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
12901 };
12902
12903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12904 {
12905 arg1 = wxString_in_helper(obj0);
12906 if (arg1 == NULL) SWIG_fail;
12907 temp1 = True;
12908 }
12909 {
12910 arg2 = wxString_in_helper(obj1);
12911 if (arg2 == NULL) SWIG_fail;
12912 temp2 = True;
12913 }
12914 if (obj2) {
12915 {
12916 arg3 = wxString_in_helper(obj2);
12917 if (arg3 == NULL) SWIG_fail;
12918 temp3 = True;
12919 }
12920 }
12921 {
12922 PyThreadState* __tstate = wxPyBeginAllowThreads();
12923 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12924
12925 wxPyEndAllowThreads(__tstate);
12926 if (PyErr_Occurred()) SWIG_fail;
12927 }
12928 {
12929 #if wxUSE_UNICODE
12930 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12931 #else
12932 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12933 #endif
12934 }
12935 {
12936 if (temp1)
12937 delete arg1;
12938 }
12939 {
12940 if (temp2)
12941 delete arg2;
12942 }
12943 {
12944 if (temp3)
12945 delete arg3;
12946 }
12947 return resultobj;
12948 fail:
12949 {
12950 if (temp1)
12951 delete arg1;
12952 }
12953 {
12954 if (temp2)
12955 delete arg2;
12956 }
12957 {
12958 if (temp3)
12959 delete arg3;
12960 }
12961 return NULL;
12962 }
12963
12964
12965 static PyObject * FileType_swigregister(PyObject *self, PyObject *args) {
12966 PyObject *obj;
12967 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12968 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
12969 Py_INCREF(obj);
12970 return Py_BuildValue((char *)"");
12971 }
12972 static int _wrap_TheMimeTypesManager_set(PyObject *_val) {
12973 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
12974 return 1;
12975 }
12976
12977
12978 static PyObject *_wrap_TheMimeTypesManager_get() {
12979 PyObject *pyobj;
12980
12981 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
12982 return pyobj;
12983 }
12984
12985
12986 static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) {
12987 PyObject *resultobj;
12988 wxString *arg1 = 0 ;
12989 wxString *arg2 = 0 ;
12990 bool result;
12991 bool temp1 = False ;
12992 bool temp2 = False ;
12993 PyObject * obj0 = 0 ;
12994 PyObject * obj1 = 0 ;
12995 char *kwnames[] = {
12996 (char *) "mimeType",(char *) "wildcard", NULL
12997 };
12998
12999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
13000 {
13001 arg1 = wxString_in_helper(obj0);
13002 if (arg1 == NULL) SWIG_fail;
13003 temp1 = True;
13004 }
13005 {
13006 arg2 = wxString_in_helper(obj1);
13007 if (arg2 == NULL) SWIG_fail;
13008 temp2 = True;
13009 }
13010 {
13011 PyThreadState* __tstate = wxPyBeginAllowThreads();
13012 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
13013
13014 wxPyEndAllowThreads(__tstate);
13015 if (PyErr_Occurred()) SWIG_fail;
13016 }
13017 {
13018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13019 }
13020 {
13021 if (temp1)
13022 delete arg1;
13023 }
13024 {
13025 if (temp2)
13026 delete arg2;
13027 }
13028 return resultobj;
13029 fail:
13030 {
13031 if (temp1)
13032 delete arg1;
13033 }
13034 {
13035 if (temp2)
13036 delete arg2;
13037 }
13038 return NULL;
13039 }
13040
13041
13042 static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13043 PyObject *resultobj;
13044 wxMimeTypesManager *result;
13045 char *kwnames[] = {
13046 NULL
13047 };
13048
13049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
13050 {
13051 PyThreadState* __tstate = wxPyBeginAllowThreads();
13052 result = (wxMimeTypesManager *)new wxMimeTypesManager();
13053
13054 wxPyEndAllowThreads(__tstate);
13055 if (PyErr_Occurred()) SWIG_fail;
13056 }
13057 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
13058 return resultobj;
13059 fail:
13060 return NULL;
13061 }
13062
13063
13064 static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
13065 PyObject *resultobj;
13066 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13067 int arg2 = (int) wxMAILCAP_ALL ;
13068 wxString const &arg3_defvalue = wxPyEmptyString ;
13069 wxString *arg3 = (wxString *) &arg3_defvalue ;
13070 bool temp3 = False ;
13071 PyObject * obj0 = 0 ;
13072 PyObject * obj1 = 0 ;
13073 PyObject * obj2 = 0 ;
13074 char *kwnames[] = {
13075 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
13076 };
13077
13078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13081 if (obj1) {
13082 arg2 = (int) SWIG_AsInt(obj1);
13083 if (PyErr_Occurred()) SWIG_fail;
13084 }
13085 if (obj2) {
13086 {
13087 arg3 = wxString_in_helper(obj2);
13088 if (arg3 == NULL) SWIG_fail;
13089 temp3 = True;
13090 }
13091 }
13092 {
13093 PyThreadState* __tstate = wxPyBeginAllowThreads();
13094 (arg1)->Initialize(arg2,(wxString const &)*arg3);
13095
13096 wxPyEndAllowThreads(__tstate);
13097 if (PyErr_Occurred()) SWIG_fail;
13098 }
13099 Py_INCREF(Py_None); resultobj = Py_None;
13100 {
13101 if (temp3)
13102 delete arg3;
13103 }
13104 return resultobj;
13105 fail:
13106 {
13107 if (temp3)
13108 delete arg3;
13109 }
13110 return NULL;
13111 }
13112
13113
13114 static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) {
13115 PyObject *resultobj;
13116 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13117 PyObject * obj0 = 0 ;
13118 char *kwnames[] = {
13119 (char *) "self", NULL
13120 };
13121
13122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
13123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13125 {
13126 PyThreadState* __tstate = wxPyBeginAllowThreads();
13127 (arg1)->ClearData();
13128
13129 wxPyEndAllowThreads(__tstate);
13130 if (PyErr_Occurred()) SWIG_fail;
13131 }
13132 Py_INCREF(Py_None); resultobj = Py_None;
13133 return resultobj;
13134 fail:
13135 return NULL;
13136 }
13137
13138
13139 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
13140 PyObject *resultobj;
13141 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13142 wxString *arg2 = 0 ;
13143 wxFileType *result;
13144 bool temp2 = False ;
13145 PyObject * obj0 = 0 ;
13146 PyObject * obj1 = 0 ;
13147 char *kwnames[] = {
13148 (char *) "self",(char *) "ext", NULL
13149 };
13150
13151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
13152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13154 {
13155 arg2 = wxString_in_helper(obj1);
13156 if (arg2 == NULL) SWIG_fail;
13157 temp2 = True;
13158 }
13159 {
13160 PyThreadState* __tstate = wxPyBeginAllowThreads();
13161 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
13162
13163 wxPyEndAllowThreads(__tstate);
13164 if (PyErr_Occurred()) SWIG_fail;
13165 }
13166 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13167 {
13168 if (temp2)
13169 delete arg2;
13170 }
13171 return resultobj;
13172 fail:
13173 {
13174 if (temp2)
13175 delete arg2;
13176 }
13177 return NULL;
13178 }
13179
13180
13181 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
13182 PyObject *resultobj;
13183 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13184 wxString *arg2 = 0 ;
13185 wxFileType *result;
13186 bool temp2 = False ;
13187 PyObject * obj0 = 0 ;
13188 PyObject * obj1 = 0 ;
13189 char *kwnames[] = {
13190 (char *) "self",(char *) "mimeType", NULL
13191 };
13192
13193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
13194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13196 {
13197 arg2 = wxString_in_helper(obj1);
13198 if (arg2 == NULL) SWIG_fail;
13199 temp2 = True;
13200 }
13201 {
13202 PyThreadState* __tstate = wxPyBeginAllowThreads();
13203 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
13204
13205 wxPyEndAllowThreads(__tstate);
13206 if (PyErr_Occurred()) SWIG_fail;
13207 }
13208 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13209 {
13210 if (temp2)
13211 delete arg2;
13212 }
13213 return resultobj;
13214 fail:
13215 {
13216 if (temp2)
13217 delete arg2;
13218 }
13219 return NULL;
13220 }
13221
13222
13223 static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) {
13224 PyObject *resultobj;
13225 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13226 wxString *arg2 = 0 ;
13227 bool arg3 = (bool) False ;
13228 bool result;
13229 bool temp2 = False ;
13230 PyObject * obj0 = 0 ;
13231 PyObject * obj1 = 0 ;
13232 PyObject * obj2 = 0 ;
13233 char *kwnames[] = {
13234 (char *) "self",(char *) "filename",(char *) "fallback", NULL
13235 };
13236
13237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
13238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13240 {
13241 arg2 = wxString_in_helper(obj1);
13242 if (arg2 == NULL) SWIG_fail;
13243 temp2 = True;
13244 }
13245 if (obj2) {
13246 arg3 = (bool) SWIG_AsBool(obj2);
13247 if (PyErr_Occurred()) SWIG_fail;
13248 }
13249 {
13250 PyThreadState* __tstate = wxPyBeginAllowThreads();
13251 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
13252
13253 wxPyEndAllowThreads(__tstate);
13254 if (PyErr_Occurred()) SWIG_fail;
13255 }
13256 {
13257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13258 }
13259 {
13260 if (temp2)
13261 delete arg2;
13262 }
13263 return resultobj;
13264 fail:
13265 {
13266 if (temp2)
13267 delete arg2;
13268 }
13269 return NULL;
13270 }
13271
13272
13273 static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13274 PyObject *resultobj;
13275 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13276 wxString *arg2 = 0 ;
13277 bool result;
13278 bool temp2 = False ;
13279 PyObject * obj0 = 0 ;
13280 PyObject * obj1 = 0 ;
13281 char *kwnames[] = {
13282 (char *) "self",(char *) "filename", NULL
13283 };
13284
13285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
13286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13288 {
13289 arg2 = wxString_in_helper(obj1);
13290 if (arg2 == NULL) SWIG_fail;
13291 temp2 = True;
13292 }
13293 {
13294 PyThreadState* __tstate = wxPyBeginAllowThreads();
13295 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
13296
13297 wxPyEndAllowThreads(__tstate);
13298 if (PyErr_Occurred()) SWIG_fail;
13299 }
13300 {
13301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13302 }
13303 {
13304 if (temp2)
13305 delete arg2;
13306 }
13307 return resultobj;
13308 fail:
13309 {
13310 if (temp2)
13311 delete arg2;
13312 }
13313 return NULL;
13314 }
13315
13316
13317 static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13318 PyObject *resultobj;
13319 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13320 PyObject *result;
13321 PyObject * obj0 = 0 ;
13322 char *kwnames[] = {
13323 (char *) "self", NULL
13324 };
13325
13326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
13327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13329 {
13330 PyThreadState* __tstate = wxPyBeginAllowThreads();
13331 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
13332
13333 wxPyEndAllowThreads(__tstate);
13334 if (PyErr_Occurred()) SWIG_fail;
13335 }
13336 resultobj = result;
13337 return resultobj;
13338 fail:
13339 return NULL;
13340 }
13341
13342
13343 static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) {
13344 PyObject *resultobj;
13345 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13346 wxFileTypeInfo *arg2 = 0 ;
13347 PyObject * obj0 = 0 ;
13348 PyObject * obj1 = 0 ;
13349 char *kwnames[] = {
13350 (char *) "self",(char *) "ft", NULL
13351 };
13352
13353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
13354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13356 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13357 SWIG_POINTER_EXCEPTION | 0)) == -1)
13358 SWIG_fail;
13359 if (arg2 == NULL) {
13360 PyErr_SetString(PyExc_TypeError,"null reference");
13361 SWIG_fail;
13362 }
13363 {
13364 PyThreadState* __tstate = wxPyBeginAllowThreads();
13365 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
13366
13367 wxPyEndAllowThreads(__tstate);
13368 if (PyErr_Occurred()) SWIG_fail;
13369 }
13370 Py_INCREF(Py_None); resultobj = Py_None;
13371 return resultobj;
13372 fail:
13373 return NULL;
13374 }
13375
13376
13377 static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) {
13378 PyObject *resultobj;
13379 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13380 wxFileTypeInfo *arg2 = 0 ;
13381 wxFileType *result;
13382 PyObject * obj0 = 0 ;
13383 PyObject * obj1 = 0 ;
13384 char *kwnames[] = {
13385 (char *) "self",(char *) "ftInfo", NULL
13386 };
13387
13388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
13389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13391 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13392 SWIG_POINTER_EXCEPTION | 0)) == -1)
13393 SWIG_fail;
13394 if (arg2 == NULL) {
13395 PyErr_SetString(PyExc_TypeError,"null reference");
13396 SWIG_fail;
13397 }
13398 {
13399 PyThreadState* __tstate = wxPyBeginAllowThreads();
13400 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
13401
13402 wxPyEndAllowThreads(__tstate);
13403 if (PyErr_Occurred()) SWIG_fail;
13404 }
13405 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13406 return resultobj;
13407 fail:
13408 return NULL;
13409 }
13410
13411
13412 static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
13413 PyObject *resultobj;
13414 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13415 wxFileType *arg2 = (wxFileType *) 0 ;
13416 bool result;
13417 PyObject * obj0 = 0 ;
13418 PyObject * obj1 = 0 ;
13419 char *kwnames[] = {
13420 (char *) "self",(char *) "ft", NULL
13421 };
13422
13423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
13424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13426 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType,
13427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13428 {
13429 PyThreadState* __tstate = wxPyBeginAllowThreads();
13430 result = (bool)(arg1)->Unassociate(arg2);
13431
13432 wxPyEndAllowThreads(__tstate);
13433 if (PyErr_Occurred()) SWIG_fail;
13434 }
13435 {
13436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13437 }
13438 return resultobj;
13439 fail:
13440 return NULL;
13441 }
13442
13443
13444 static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13445 PyObject *resultobj;
13446 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13447 PyObject * obj0 = 0 ;
13448 char *kwnames[] = {
13449 (char *) "self", NULL
13450 };
13451
13452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
13453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13455 {
13456 PyThreadState* __tstate = wxPyBeginAllowThreads();
13457 delete arg1;
13458
13459 wxPyEndAllowThreads(__tstate);
13460 if (PyErr_Occurred()) SWIG_fail;
13461 }
13462 Py_INCREF(Py_None); resultobj = Py_None;
13463 return resultobj;
13464 fail:
13465 return NULL;
13466 }
13467
13468
13469 static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) {
13470 PyObject *obj;
13471 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13472 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
13473 Py_INCREF(obj);
13474 return Py_BuildValue((char *)"");
13475 }
13476 static int _wrap_ART_TOOLBAR_set(PyObject *_val) {
13477 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
13478 return 1;
13479 }
13480
13481
13482 static PyObject *_wrap_ART_TOOLBAR_get() {
13483 PyObject *pyobj;
13484
13485 {
13486 #if wxUSE_UNICODE
13487 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13488 #else
13489 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13490 #endif
13491 }
13492 return pyobj;
13493 }
13494
13495
13496 static int _wrap_ART_MENU_set(PyObject *_val) {
13497 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
13498 return 1;
13499 }
13500
13501
13502 static PyObject *_wrap_ART_MENU_get() {
13503 PyObject *pyobj;
13504
13505 {
13506 #if wxUSE_UNICODE
13507 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13508 #else
13509 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13510 #endif
13511 }
13512 return pyobj;
13513 }
13514
13515
13516 static int _wrap_ART_FRAME_ICON_set(PyObject *_val) {
13517 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
13518 return 1;
13519 }
13520
13521
13522 static PyObject *_wrap_ART_FRAME_ICON_get() {
13523 PyObject *pyobj;
13524
13525 {
13526 #if wxUSE_UNICODE
13527 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13528 #else
13529 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13530 #endif
13531 }
13532 return pyobj;
13533 }
13534
13535
13536 static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) {
13537 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
13538 return 1;
13539 }
13540
13541
13542 static PyObject *_wrap_ART_CMN_DIALOG_get() {
13543 PyObject *pyobj;
13544
13545 {
13546 #if wxUSE_UNICODE
13547 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13548 #else
13549 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13550 #endif
13551 }
13552 return pyobj;
13553 }
13554
13555
13556 static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) {
13557 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
13558 return 1;
13559 }
13560
13561
13562 static PyObject *_wrap_ART_HELP_BROWSER_get() {
13563 PyObject *pyobj;
13564
13565 {
13566 #if wxUSE_UNICODE
13567 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13568 #else
13569 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13570 #endif
13571 }
13572 return pyobj;
13573 }
13574
13575
13576 static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) {
13577 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
13578 return 1;
13579 }
13580
13581
13582 static PyObject *_wrap_ART_MESSAGE_BOX_get() {
13583 PyObject *pyobj;
13584
13585 {
13586 #if wxUSE_UNICODE
13587 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13588 #else
13589 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13590 #endif
13591 }
13592 return pyobj;
13593 }
13594
13595
13596 static int _wrap_ART_OTHER_set(PyObject *_val) {
13597 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
13598 return 1;
13599 }
13600
13601
13602 static PyObject *_wrap_ART_OTHER_get() {
13603 PyObject *pyobj;
13604
13605 {
13606 #if wxUSE_UNICODE
13607 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13608 #else
13609 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13610 #endif
13611 }
13612 return pyobj;
13613 }
13614
13615
13616 static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) {
13617 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
13618 return 1;
13619 }
13620
13621
13622 static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
13623 PyObject *pyobj;
13624
13625 {
13626 #if wxUSE_UNICODE
13627 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13628 #else
13629 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13630 #endif
13631 }
13632 return pyobj;
13633 }
13634
13635
13636 static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) {
13637 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
13638 return 1;
13639 }
13640
13641
13642 static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
13643 PyObject *pyobj;
13644
13645 {
13646 #if wxUSE_UNICODE
13647 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13648 #else
13649 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13650 #endif
13651 }
13652 return pyobj;
13653 }
13654
13655
13656 static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) {
13657 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
13658 return 1;
13659 }
13660
13661
13662 static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
13663 PyObject *pyobj;
13664
13665 {
13666 #if wxUSE_UNICODE
13667 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13668 #else
13669 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13670 #endif
13671 }
13672 return pyobj;
13673 }
13674
13675
13676 static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) {
13677 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
13678 return 1;
13679 }
13680
13681
13682 static PyObject *_wrap_ART_HELP_SETTINGS_get() {
13683 PyObject *pyobj;
13684
13685 {
13686 #if wxUSE_UNICODE
13687 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13688 #else
13689 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13690 #endif
13691 }
13692 return pyobj;
13693 }
13694
13695
13696 static int _wrap_ART_HELP_BOOK_set(PyObject *_val) {
13697 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
13698 return 1;
13699 }
13700
13701
13702 static PyObject *_wrap_ART_HELP_BOOK_get() {
13703 PyObject *pyobj;
13704
13705 {
13706 #if wxUSE_UNICODE
13707 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13708 #else
13709 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13710 #endif
13711 }
13712 return pyobj;
13713 }
13714
13715
13716 static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) {
13717 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
13718 return 1;
13719 }
13720
13721
13722 static PyObject *_wrap_ART_HELP_FOLDER_get() {
13723 PyObject *pyobj;
13724
13725 {
13726 #if wxUSE_UNICODE
13727 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13728 #else
13729 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13730 #endif
13731 }
13732 return pyobj;
13733 }
13734
13735
13736 static int _wrap_ART_HELP_PAGE_set(PyObject *_val) {
13737 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
13738 return 1;
13739 }
13740
13741
13742 static PyObject *_wrap_ART_HELP_PAGE_get() {
13743 PyObject *pyobj;
13744
13745 {
13746 #if wxUSE_UNICODE
13747 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13748 #else
13749 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13750 #endif
13751 }
13752 return pyobj;
13753 }
13754
13755
13756 static int _wrap_ART_GO_BACK_set(PyObject *_val) {
13757 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
13758 return 1;
13759 }
13760
13761
13762 static PyObject *_wrap_ART_GO_BACK_get() {
13763 PyObject *pyobj;
13764
13765 {
13766 #if wxUSE_UNICODE
13767 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13768 #else
13769 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13770 #endif
13771 }
13772 return pyobj;
13773 }
13774
13775
13776 static int _wrap_ART_GO_FORWARD_set(PyObject *_val) {
13777 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
13778 return 1;
13779 }
13780
13781
13782 static PyObject *_wrap_ART_GO_FORWARD_get() {
13783 PyObject *pyobj;
13784
13785 {
13786 #if wxUSE_UNICODE
13787 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13788 #else
13789 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13790 #endif
13791 }
13792 return pyobj;
13793 }
13794
13795
13796 static int _wrap_ART_GO_UP_set(PyObject *_val) {
13797 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
13798 return 1;
13799 }
13800
13801
13802 static PyObject *_wrap_ART_GO_UP_get() {
13803 PyObject *pyobj;
13804
13805 {
13806 #if wxUSE_UNICODE
13807 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13808 #else
13809 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13810 #endif
13811 }
13812 return pyobj;
13813 }
13814
13815
13816 static int _wrap_ART_GO_DOWN_set(PyObject *_val) {
13817 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
13818 return 1;
13819 }
13820
13821
13822 static PyObject *_wrap_ART_GO_DOWN_get() {
13823 PyObject *pyobj;
13824
13825 {
13826 #if wxUSE_UNICODE
13827 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13828 #else
13829 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13830 #endif
13831 }
13832 return pyobj;
13833 }
13834
13835
13836 static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) {
13837 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
13838 return 1;
13839 }
13840
13841
13842 static PyObject *_wrap_ART_GO_TO_PARENT_get() {
13843 PyObject *pyobj;
13844
13845 {
13846 #if wxUSE_UNICODE
13847 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
13848 #else
13849 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
13850 #endif
13851 }
13852 return pyobj;
13853 }
13854
13855
13856 static int _wrap_ART_GO_HOME_set(PyObject *_val) {
13857 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
13858 return 1;
13859 }
13860
13861
13862 static PyObject *_wrap_ART_GO_HOME_get() {
13863 PyObject *pyobj;
13864
13865 {
13866 #if wxUSE_UNICODE
13867 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
13868 #else
13869 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
13870 #endif
13871 }
13872 return pyobj;
13873 }
13874
13875
13876 static int _wrap_ART_FILE_OPEN_set(PyObject *_val) {
13877 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
13878 return 1;
13879 }
13880
13881
13882 static PyObject *_wrap_ART_FILE_OPEN_get() {
13883 PyObject *pyobj;
13884
13885 {
13886 #if wxUSE_UNICODE
13887 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
13888 #else
13889 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
13890 #endif
13891 }
13892 return pyobj;
13893 }
13894
13895
13896 static int _wrap_ART_PRINT_set(PyObject *_val) {
13897 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
13898 return 1;
13899 }
13900
13901
13902 static PyObject *_wrap_ART_PRINT_get() {
13903 PyObject *pyobj;
13904
13905 {
13906 #if wxUSE_UNICODE
13907 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
13908 #else
13909 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
13910 #endif
13911 }
13912 return pyobj;
13913 }
13914
13915
13916 static int _wrap_ART_HELP_set(PyObject *_val) {
13917 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
13918 return 1;
13919 }
13920
13921
13922 static PyObject *_wrap_ART_HELP_get() {
13923 PyObject *pyobj;
13924
13925 {
13926 #if wxUSE_UNICODE
13927 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
13928 #else
13929 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
13930 #endif
13931 }
13932 return pyobj;
13933 }
13934
13935
13936 static int _wrap_ART_TIP_set(PyObject *_val) {
13937 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
13938 return 1;
13939 }
13940
13941
13942 static PyObject *_wrap_ART_TIP_get() {
13943 PyObject *pyobj;
13944
13945 {
13946 #if wxUSE_UNICODE
13947 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
13948 #else
13949 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
13950 #endif
13951 }
13952 return pyobj;
13953 }
13954
13955
13956 static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) {
13957 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
13958 return 1;
13959 }
13960
13961
13962 static PyObject *_wrap_ART_REPORT_VIEW_get() {
13963 PyObject *pyobj;
13964
13965 {
13966 #if wxUSE_UNICODE
13967 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
13968 #else
13969 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
13970 #endif
13971 }
13972 return pyobj;
13973 }
13974
13975
13976 static int _wrap_ART_LIST_VIEW_set(PyObject *_val) {
13977 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
13978 return 1;
13979 }
13980
13981
13982 static PyObject *_wrap_ART_LIST_VIEW_get() {
13983 PyObject *pyobj;
13984
13985 {
13986 #if wxUSE_UNICODE
13987 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
13988 #else
13989 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
13990 #endif
13991 }
13992 return pyobj;
13993 }
13994
13995
13996 static int _wrap_ART_NEW_DIR_set(PyObject *_val) {
13997 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
13998 return 1;
13999 }
14000
14001
14002 static PyObject *_wrap_ART_NEW_DIR_get() {
14003 PyObject *pyobj;
14004
14005 {
14006 #if wxUSE_UNICODE
14007 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14008 #else
14009 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14010 #endif
14011 }
14012 return pyobj;
14013 }
14014
14015
14016 static int _wrap_ART_FOLDER_set(PyObject *_val) {
14017 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
14018 return 1;
14019 }
14020
14021
14022 static PyObject *_wrap_ART_FOLDER_get() {
14023 PyObject *pyobj;
14024
14025 {
14026 #if wxUSE_UNICODE
14027 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14028 #else
14029 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14030 #endif
14031 }
14032 return pyobj;
14033 }
14034
14035
14036 static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) {
14037 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
14038 return 1;
14039 }
14040
14041
14042 static PyObject *_wrap_ART_GO_DIR_UP_get() {
14043 PyObject *pyobj;
14044
14045 {
14046 #if wxUSE_UNICODE
14047 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14048 #else
14049 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14050 #endif
14051 }
14052 return pyobj;
14053 }
14054
14055
14056 static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) {
14057 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
14058 return 1;
14059 }
14060
14061
14062 static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
14063 PyObject *pyobj;
14064
14065 {
14066 #if wxUSE_UNICODE
14067 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14068 #else
14069 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14070 #endif
14071 }
14072 return pyobj;
14073 }
14074
14075
14076 static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) {
14077 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
14078 return 1;
14079 }
14080
14081
14082 static PyObject *_wrap_ART_NORMAL_FILE_get() {
14083 PyObject *pyobj;
14084
14085 {
14086 #if wxUSE_UNICODE
14087 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14088 #else
14089 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14090 #endif
14091 }
14092 return pyobj;
14093 }
14094
14095
14096 static int _wrap_ART_TICK_MARK_set(PyObject *_val) {
14097 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
14098 return 1;
14099 }
14100
14101
14102 static PyObject *_wrap_ART_TICK_MARK_get() {
14103 PyObject *pyobj;
14104
14105 {
14106 #if wxUSE_UNICODE
14107 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14108 #else
14109 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14110 #endif
14111 }
14112 return pyobj;
14113 }
14114
14115
14116 static int _wrap_ART_CROSS_MARK_set(PyObject *_val) {
14117 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
14118 return 1;
14119 }
14120
14121
14122 static PyObject *_wrap_ART_CROSS_MARK_get() {
14123 PyObject *pyobj;
14124
14125 {
14126 #if wxUSE_UNICODE
14127 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14128 #else
14129 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14130 #endif
14131 }
14132 return pyobj;
14133 }
14134
14135
14136 static int _wrap_ART_ERROR_set(PyObject *_val) {
14137 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
14138 return 1;
14139 }
14140
14141
14142 static PyObject *_wrap_ART_ERROR_get() {
14143 PyObject *pyobj;
14144
14145 {
14146 #if wxUSE_UNICODE
14147 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14148 #else
14149 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14150 #endif
14151 }
14152 return pyobj;
14153 }
14154
14155
14156 static int _wrap_ART_QUESTION_set(PyObject *_val) {
14157 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
14158 return 1;
14159 }
14160
14161
14162 static PyObject *_wrap_ART_QUESTION_get() {
14163 PyObject *pyobj;
14164
14165 {
14166 #if wxUSE_UNICODE
14167 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14168 #else
14169 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14170 #endif
14171 }
14172 return pyobj;
14173 }
14174
14175
14176 static int _wrap_ART_WARNING_set(PyObject *_val) {
14177 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
14178 return 1;
14179 }
14180
14181
14182 static PyObject *_wrap_ART_WARNING_get() {
14183 PyObject *pyobj;
14184
14185 {
14186 #if wxUSE_UNICODE
14187 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14188 #else
14189 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14190 #endif
14191 }
14192 return pyobj;
14193 }
14194
14195
14196 static int _wrap_ART_INFORMATION_set(PyObject *_val) {
14197 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
14198 return 1;
14199 }
14200
14201
14202 static PyObject *_wrap_ART_INFORMATION_get() {
14203 PyObject *pyobj;
14204
14205 {
14206 #if wxUSE_UNICODE
14207 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14208 #else
14209 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14210 #endif
14211 }
14212 return pyobj;
14213 }
14214
14215
14216 static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) {
14217 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
14218 return 1;
14219 }
14220
14221
14222 static PyObject *_wrap_ART_MISSING_IMAGE_get() {
14223 PyObject *pyobj;
14224
14225 {
14226 #if wxUSE_UNICODE
14227 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14228 #else
14229 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14230 #endif
14231 }
14232 return pyobj;
14233 }
14234
14235
14236 static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14237 PyObject *resultobj;
14238 wxPyArtProvider *result;
14239 char *kwnames[] = {
14240 NULL
14241 };
14242
14243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
14244 {
14245 PyThreadState* __tstate = wxPyBeginAllowThreads();
14246 result = (wxPyArtProvider *)new wxPyArtProvider();
14247
14248 wxPyEndAllowThreads(__tstate);
14249 if (PyErr_Occurred()) SWIG_fail;
14250 }
14251 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
14252 return resultobj;
14253 fail:
14254 return NULL;
14255 }
14256
14257
14258 static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
14259 PyObject *resultobj;
14260 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14261 PyObject *arg2 = (PyObject *) 0 ;
14262 PyObject *arg3 = (PyObject *) 0 ;
14263 PyObject * obj0 = 0 ;
14264 PyObject * obj1 = 0 ;
14265 PyObject * obj2 = 0 ;
14266 char *kwnames[] = {
14267 (char *) "self",(char *) "self",(char *) "_class", NULL
14268 };
14269
14270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
14271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14273 arg2 = obj1;
14274 arg3 = obj2;
14275 {
14276 PyThreadState* __tstate = wxPyBeginAllowThreads();
14277 (arg1)->_setCallbackInfo(arg2,arg3);
14278
14279 wxPyEndAllowThreads(__tstate);
14280 if (PyErr_Occurred()) SWIG_fail;
14281 }
14282 Py_INCREF(Py_None); resultobj = Py_None;
14283 return resultobj;
14284 fail:
14285 return NULL;
14286 }
14287
14288
14289 static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14290 PyObject *resultobj;
14291 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14292 PyObject * obj0 = 0 ;
14293 char *kwnames[] = {
14294 (char *) "provider", NULL
14295 };
14296
14297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
14298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14300 {
14301 PyThreadState* __tstate = wxPyBeginAllowThreads();
14302 wxPyArtProvider::PushProvider(arg1);
14303
14304 wxPyEndAllowThreads(__tstate);
14305 if (PyErr_Occurred()) SWIG_fail;
14306 }
14307 Py_INCREF(Py_None); resultobj = Py_None;
14308 return resultobj;
14309 fail:
14310 return NULL;
14311 }
14312
14313
14314 static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14315 PyObject *resultobj;
14316 bool result;
14317 char *kwnames[] = {
14318 NULL
14319 };
14320
14321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
14322 {
14323 PyThreadState* __tstate = wxPyBeginAllowThreads();
14324 result = (bool)wxPyArtProvider::PopProvider();
14325
14326 wxPyEndAllowThreads(__tstate);
14327 if (PyErr_Occurred()) SWIG_fail;
14328 }
14329 {
14330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14331 }
14332 return resultobj;
14333 fail:
14334 return NULL;
14335 }
14336
14337
14338 static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14339 PyObject *resultobj;
14340 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14341 bool result;
14342 PyObject * obj0 = 0 ;
14343 char *kwnames[] = {
14344 (char *) "provider", NULL
14345 };
14346
14347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
14348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14350 {
14351 PyThreadState* __tstate = wxPyBeginAllowThreads();
14352 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
14353
14354 wxPyEndAllowThreads(__tstate);
14355 if (PyErr_Occurred()) SWIG_fail;
14356 }
14357 {
14358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14359 }
14360 return resultobj;
14361 fail:
14362 return NULL;
14363 }
14364
14365
14366 static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
14367 PyObject *resultobj;
14368 wxString *arg1 = 0 ;
14369 wxString const &arg2_defvalue = wxPyART_OTHER ;
14370 wxString *arg2 = (wxString *) &arg2_defvalue ;
14371 wxSize const &arg3_defvalue = wxDefaultSize ;
14372 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14373 wxBitmap result;
14374 bool temp1 = False ;
14375 bool temp2 = False ;
14376 wxSize temp3 ;
14377 PyObject * obj0 = 0 ;
14378 PyObject * obj1 = 0 ;
14379 PyObject * obj2 = 0 ;
14380 char *kwnames[] = {
14381 (char *) "id",(char *) "client",(char *) "size", NULL
14382 };
14383
14384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
14385 {
14386 arg1 = wxString_in_helper(obj0);
14387 if (arg1 == NULL) SWIG_fail;
14388 temp1 = True;
14389 }
14390 if (obj1) {
14391 {
14392 arg2 = wxString_in_helper(obj1);
14393 if (arg2 == NULL) SWIG_fail;
14394 temp2 = True;
14395 }
14396 }
14397 if (obj2) {
14398 {
14399 arg3 = &temp3;
14400 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14401 }
14402 }
14403 {
14404 PyThreadState* __tstate = wxPyBeginAllowThreads();
14405 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14406
14407 wxPyEndAllowThreads(__tstate);
14408 if (PyErr_Occurred()) SWIG_fail;
14409 }
14410 {
14411 wxBitmap * resultptr;
14412 resultptr = new wxBitmap((wxBitmap &) result);
14413 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
14414 }
14415 {
14416 if (temp1)
14417 delete arg1;
14418 }
14419 {
14420 if (temp2)
14421 delete arg2;
14422 }
14423 return resultobj;
14424 fail:
14425 {
14426 if (temp1)
14427 delete arg1;
14428 }
14429 {
14430 if (temp2)
14431 delete arg2;
14432 }
14433 return NULL;
14434 }
14435
14436
14437 static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
14438 PyObject *resultobj;
14439 wxString *arg1 = 0 ;
14440 wxString const &arg2_defvalue = wxPyART_OTHER ;
14441 wxString *arg2 = (wxString *) &arg2_defvalue ;
14442 wxSize const &arg3_defvalue = wxDefaultSize ;
14443 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14444 wxIcon result;
14445 bool temp1 = False ;
14446 bool temp2 = False ;
14447 wxSize temp3 ;
14448 PyObject * obj0 = 0 ;
14449 PyObject * obj1 = 0 ;
14450 PyObject * obj2 = 0 ;
14451 char *kwnames[] = {
14452 (char *) "id",(char *) "client",(char *) "size", NULL
14453 };
14454
14455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
14456 {
14457 arg1 = wxString_in_helper(obj0);
14458 if (arg1 == NULL) SWIG_fail;
14459 temp1 = True;
14460 }
14461 if (obj1) {
14462 {
14463 arg2 = wxString_in_helper(obj1);
14464 if (arg2 == NULL) SWIG_fail;
14465 temp2 = True;
14466 }
14467 }
14468 if (obj2) {
14469 {
14470 arg3 = &temp3;
14471 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14472 }
14473 }
14474 {
14475 PyThreadState* __tstate = wxPyBeginAllowThreads();
14476 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14477
14478 wxPyEndAllowThreads(__tstate);
14479 if (PyErr_Occurred()) SWIG_fail;
14480 }
14481 {
14482 wxIcon * resultptr;
14483 resultptr = new wxIcon((wxIcon &) result);
14484 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
14485 }
14486 {
14487 if (temp1)
14488 delete arg1;
14489 }
14490 {
14491 if (temp2)
14492 delete arg2;
14493 }
14494 return resultobj;
14495 fail:
14496 {
14497 if (temp1)
14498 delete arg1;
14499 }
14500 {
14501 if (temp2)
14502 delete arg2;
14503 }
14504 return NULL;
14505 }
14506
14507
14508 static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
14509 PyObject *resultobj;
14510 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14511 PyObject * obj0 = 0 ;
14512 char *kwnames[] = {
14513 (char *) "self", NULL
14514 };
14515
14516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
14517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14519 {
14520 PyThreadState* __tstate = wxPyBeginAllowThreads();
14521 wxPyArtProvider_Destroy(arg1);
14522
14523 wxPyEndAllowThreads(__tstate);
14524 if (PyErr_Occurred()) SWIG_fail;
14525 }
14526 Py_INCREF(Py_None); resultobj = Py_None;
14527 return resultobj;
14528 fail:
14529 return NULL;
14530 }
14531
14532
14533 static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) {
14534 PyObject *obj;
14535 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14536 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
14537 Py_INCREF(obj);
14538 return Py_BuildValue((char *)"");
14539 }
14540 static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) {
14541 PyObject *resultobj;
14542 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14543 PyObject * obj0 = 0 ;
14544 char *kwnames[] = {
14545 (char *) "self", NULL
14546 };
14547
14548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
14549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14551 {
14552 PyThreadState* __tstate = wxPyBeginAllowThreads();
14553 delete arg1;
14554
14555 wxPyEndAllowThreads(__tstate);
14556 if (PyErr_Occurred()) SWIG_fail;
14557 }
14558 Py_INCREF(Py_None); resultobj = Py_None;
14559 return resultobj;
14560 fail:
14561 return NULL;
14562 }
14563
14564
14565 static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
14566 PyObject *resultobj;
14567 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14568 wxConfigBase *result;
14569 PyObject * obj0 = 0 ;
14570 char *kwnames[] = {
14571 (char *) "config", NULL
14572 };
14573
14574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
14575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14577 {
14578 PyThreadState* __tstate = wxPyBeginAllowThreads();
14579 result = (wxConfigBase *)wxConfigBase::Set(arg1);
14580
14581 wxPyEndAllowThreads(__tstate);
14582 if (PyErr_Occurred()) SWIG_fail;
14583 }
14584 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14585 return resultobj;
14586 fail:
14587 return NULL;
14588 }
14589
14590
14591 static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
14592 PyObject *resultobj;
14593 bool arg1 = (bool) True ;
14594 wxConfigBase *result;
14595 PyObject * obj0 = 0 ;
14596 char *kwnames[] = {
14597 (char *) "createOnDemand", NULL
14598 };
14599
14600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
14601 if (obj0) {
14602 arg1 = (bool) SWIG_AsBool(obj0);
14603 if (PyErr_Occurred()) SWIG_fail;
14604 }
14605 {
14606 PyThreadState* __tstate = wxPyBeginAllowThreads();
14607 result = (wxConfigBase *)wxConfigBase::Get(arg1);
14608
14609 wxPyEndAllowThreads(__tstate);
14610 if (PyErr_Occurred()) SWIG_fail;
14611 }
14612 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14613 return resultobj;
14614 fail:
14615 return NULL;
14616 }
14617
14618
14619 static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14620 PyObject *resultobj;
14621 wxConfigBase *result;
14622 char *kwnames[] = {
14623 NULL
14624 };
14625
14626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
14627 {
14628 PyThreadState* __tstate = wxPyBeginAllowThreads();
14629 result = (wxConfigBase *)wxConfigBase::Create();
14630
14631 wxPyEndAllowThreads(__tstate);
14632 if (PyErr_Occurred()) SWIG_fail;
14633 }
14634 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14635 return resultobj;
14636 fail:
14637 return NULL;
14638 }
14639
14640
14641 static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
14642 PyObject *resultobj;
14643 char *kwnames[] = {
14644 NULL
14645 };
14646
14647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
14648 {
14649 PyThreadState* __tstate = wxPyBeginAllowThreads();
14650 wxConfigBase::DontCreateOnDemand();
14651
14652 wxPyEndAllowThreads(__tstate);
14653 if (PyErr_Occurred()) SWIG_fail;
14654 }
14655 Py_INCREF(Py_None); resultobj = Py_None;
14656 return resultobj;
14657 fail:
14658 return NULL;
14659 }
14660
14661
14662 static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14663 PyObject *resultobj;
14664 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14665 wxString *arg2 = 0 ;
14666 bool temp2 = False ;
14667 PyObject * obj0 = 0 ;
14668 PyObject * obj1 = 0 ;
14669 char *kwnames[] = {
14670 (char *) "self",(char *) "path", NULL
14671 };
14672
14673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
14674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14676 {
14677 arg2 = wxString_in_helper(obj1);
14678 if (arg2 == NULL) SWIG_fail;
14679 temp2 = True;
14680 }
14681 {
14682 PyThreadState* __tstate = wxPyBeginAllowThreads();
14683 (arg1)->SetPath((wxString const &)*arg2);
14684
14685 wxPyEndAllowThreads(__tstate);
14686 if (PyErr_Occurred()) SWIG_fail;
14687 }
14688 Py_INCREF(Py_None); resultobj = Py_None;
14689 {
14690 if (temp2)
14691 delete arg2;
14692 }
14693 return resultobj;
14694 fail:
14695 {
14696 if (temp2)
14697 delete arg2;
14698 }
14699 return NULL;
14700 }
14701
14702
14703 static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14704 PyObject *resultobj;
14705 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14706 wxString *result;
14707 PyObject * obj0 = 0 ;
14708 char *kwnames[] = {
14709 (char *) "self", NULL
14710 };
14711
14712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
14713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14715 {
14716 PyThreadState* __tstate = wxPyBeginAllowThreads();
14717 {
14718 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
14719 result = (wxString *) &_result_ref;
14720 }
14721
14722 wxPyEndAllowThreads(__tstate);
14723 if (PyErr_Occurred()) SWIG_fail;
14724 }
14725 {
14726 #if wxUSE_UNICODE
14727 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14728 #else
14729 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14730 #endif
14731 }
14732 return resultobj;
14733 fail:
14734 return NULL;
14735 }
14736
14737
14738 static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14739 PyObject *resultobj;
14740 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14741 PyObject *result;
14742 PyObject * obj0 = 0 ;
14743 char *kwnames[] = {
14744 (char *) "self", NULL
14745 };
14746
14747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
14748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14750 {
14751 PyThreadState* __tstate = wxPyBeginAllowThreads();
14752 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
14753
14754 wxPyEndAllowThreads(__tstate);
14755 if (PyErr_Occurred()) SWIG_fail;
14756 }
14757 resultobj = result;
14758 return resultobj;
14759 fail:
14760 return NULL;
14761 }
14762
14763
14764 static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14765 PyObject *resultobj;
14766 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14767 long arg2 ;
14768 PyObject *result;
14769 PyObject * obj0 = 0 ;
14770 PyObject * obj1 = 0 ;
14771 char *kwnames[] = {
14772 (char *) "self",(char *) "index", NULL
14773 };
14774
14775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
14776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14778 arg2 = (long) SWIG_AsLong(obj1);
14779 if (PyErr_Occurred()) SWIG_fail;
14780 {
14781 PyThreadState* __tstate = wxPyBeginAllowThreads();
14782 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
14783
14784 wxPyEndAllowThreads(__tstate);
14785 if (PyErr_Occurred()) SWIG_fail;
14786 }
14787 resultobj = result;
14788 return resultobj;
14789 fail:
14790 return NULL;
14791 }
14792
14793
14794 static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14795 PyObject *resultobj;
14796 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14797 PyObject *result;
14798 PyObject * obj0 = 0 ;
14799 char *kwnames[] = {
14800 (char *) "self", NULL
14801 };
14802
14803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
14804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14806 {
14807 PyThreadState* __tstate = wxPyBeginAllowThreads();
14808 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
14809
14810 wxPyEndAllowThreads(__tstate);
14811 if (PyErr_Occurred()) SWIG_fail;
14812 }
14813 resultobj = result;
14814 return resultobj;
14815 fail:
14816 return NULL;
14817 }
14818
14819
14820 static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14821 PyObject *resultobj;
14822 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14823 long arg2 ;
14824 PyObject *result;
14825 PyObject * obj0 = 0 ;
14826 PyObject * obj1 = 0 ;
14827 char *kwnames[] = {
14828 (char *) "self",(char *) "index", NULL
14829 };
14830
14831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
14832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14834 arg2 = (long) SWIG_AsLong(obj1);
14835 if (PyErr_Occurred()) SWIG_fail;
14836 {
14837 PyThreadState* __tstate = wxPyBeginAllowThreads();
14838 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
14839
14840 wxPyEndAllowThreads(__tstate);
14841 if (PyErr_Occurred()) SWIG_fail;
14842 }
14843 resultobj = result;
14844 return resultobj;
14845 fail:
14846 return NULL;
14847 }
14848
14849
14850 static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) {
14851 PyObject *resultobj;
14852 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14853 bool arg2 = (bool) False ;
14854 size_t result;
14855 PyObject * obj0 = 0 ;
14856 PyObject * obj1 = 0 ;
14857 char *kwnames[] = {
14858 (char *) "self",(char *) "recursive", NULL
14859 };
14860
14861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
14862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14864 if (obj1) {
14865 arg2 = (bool) SWIG_AsBool(obj1);
14866 if (PyErr_Occurred()) SWIG_fail;
14867 }
14868 {
14869 PyThreadState* __tstate = wxPyBeginAllowThreads();
14870 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
14871
14872 wxPyEndAllowThreads(__tstate);
14873 if (PyErr_Occurred()) SWIG_fail;
14874 }
14875 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
14876 return resultobj;
14877 fail:
14878 return NULL;
14879 }
14880
14881
14882 static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) {
14883 PyObject *resultobj;
14884 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14885 bool arg2 = (bool) False ;
14886 size_t result;
14887 PyObject * obj0 = 0 ;
14888 PyObject * obj1 = 0 ;
14889 char *kwnames[] = {
14890 (char *) "self",(char *) "recursive", NULL
14891 };
14892
14893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
14894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14896 if (obj1) {
14897 arg2 = (bool) SWIG_AsBool(obj1);
14898 if (PyErr_Occurred()) SWIG_fail;
14899 }
14900 {
14901 PyThreadState* __tstate = wxPyBeginAllowThreads();
14902 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
14903
14904 wxPyEndAllowThreads(__tstate);
14905 if (PyErr_Occurred()) SWIG_fail;
14906 }
14907 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
14908 return resultobj;
14909 fail:
14910 return NULL;
14911 }
14912
14913
14914 static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14915 PyObject *resultobj;
14916 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14917 wxString *arg2 = 0 ;
14918 bool result;
14919 bool temp2 = False ;
14920 PyObject * obj0 = 0 ;
14921 PyObject * obj1 = 0 ;
14922 char *kwnames[] = {
14923 (char *) "self",(char *) "name", NULL
14924 };
14925
14926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
14927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14929 {
14930 arg2 = wxString_in_helper(obj1);
14931 if (arg2 == NULL) SWIG_fail;
14932 temp2 = True;
14933 }
14934 {
14935 PyThreadState* __tstate = wxPyBeginAllowThreads();
14936 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
14937
14938 wxPyEndAllowThreads(__tstate);
14939 if (PyErr_Occurred()) SWIG_fail;
14940 }
14941 {
14942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14943 }
14944 {
14945 if (temp2)
14946 delete arg2;
14947 }
14948 return resultobj;
14949 fail:
14950 {
14951 if (temp2)
14952 delete arg2;
14953 }
14954 return NULL;
14955 }
14956
14957
14958 static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14959 PyObject *resultobj;
14960 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14961 wxString *arg2 = 0 ;
14962 bool result;
14963 bool temp2 = False ;
14964 PyObject * obj0 = 0 ;
14965 PyObject * obj1 = 0 ;
14966 char *kwnames[] = {
14967 (char *) "self",(char *) "name", NULL
14968 };
14969
14970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
14971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14973 {
14974 arg2 = wxString_in_helper(obj1);
14975 if (arg2 == NULL) SWIG_fail;
14976 temp2 = True;
14977 }
14978 {
14979 PyThreadState* __tstate = wxPyBeginAllowThreads();
14980 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
14981
14982 wxPyEndAllowThreads(__tstate);
14983 if (PyErr_Occurred()) SWIG_fail;
14984 }
14985 {
14986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14987 }
14988 {
14989 if (temp2)
14990 delete arg2;
14991 }
14992 return resultobj;
14993 fail:
14994 {
14995 if (temp2)
14996 delete arg2;
14997 }
14998 return NULL;
14999 }
15000
15001
15002 static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
15003 PyObject *resultobj;
15004 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15005 wxString *arg2 = 0 ;
15006 bool result;
15007 bool temp2 = False ;
15008 PyObject * obj0 = 0 ;
15009 PyObject * obj1 = 0 ;
15010 char *kwnames[] = {
15011 (char *) "self",(char *) "name", NULL
15012 };
15013
15014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
15015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15017 {
15018 arg2 = wxString_in_helper(obj1);
15019 if (arg2 == NULL) SWIG_fail;
15020 temp2 = True;
15021 }
15022 {
15023 PyThreadState* __tstate = wxPyBeginAllowThreads();
15024 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
15025
15026 wxPyEndAllowThreads(__tstate);
15027 if (PyErr_Occurred()) SWIG_fail;
15028 }
15029 {
15030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15031 }
15032 {
15033 if (temp2)
15034 delete arg2;
15035 }
15036 return resultobj;
15037 fail:
15038 {
15039 if (temp2)
15040 delete arg2;
15041 }
15042 return NULL;
15043 }
15044
15045
15046 static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) {
15047 PyObject *resultobj;
15048 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15049 wxString *arg2 = 0 ;
15050 int result;
15051 bool temp2 = False ;
15052 PyObject * obj0 = 0 ;
15053 PyObject * obj1 = 0 ;
15054 char *kwnames[] = {
15055 (char *) "self",(char *) "name", NULL
15056 };
15057
15058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
15059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15061 {
15062 arg2 = wxString_in_helper(obj1);
15063 if (arg2 == NULL) SWIG_fail;
15064 temp2 = True;
15065 }
15066 {
15067 PyThreadState* __tstate = wxPyBeginAllowThreads();
15068 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
15069
15070 wxPyEndAllowThreads(__tstate);
15071 if (PyErr_Occurred()) SWIG_fail;
15072 }
15073 resultobj = SWIG_FromInt((int)result);
15074 {
15075 if (temp2)
15076 delete arg2;
15077 }
15078 return resultobj;
15079 fail:
15080 {
15081 if (temp2)
15082 delete arg2;
15083 }
15084 return NULL;
15085 }
15086
15087
15088 static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) {
15089 PyObject *resultobj;
15090 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15091 wxString *arg2 = 0 ;
15092 wxString const &arg3_defvalue = wxPyEmptyString ;
15093 wxString *arg3 = (wxString *) &arg3_defvalue ;
15094 wxString result;
15095 bool temp2 = False ;
15096 bool temp3 = False ;
15097 PyObject * obj0 = 0 ;
15098 PyObject * obj1 = 0 ;
15099 PyObject * obj2 = 0 ;
15100 char *kwnames[] = {
15101 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15102 };
15103
15104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
15105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15107 {
15108 arg2 = wxString_in_helper(obj1);
15109 if (arg2 == NULL) SWIG_fail;
15110 temp2 = True;
15111 }
15112 if (obj2) {
15113 {
15114 arg3 = wxString_in_helper(obj2);
15115 if (arg3 == NULL) SWIG_fail;
15116 temp3 = True;
15117 }
15118 }
15119 {
15120 PyThreadState* __tstate = wxPyBeginAllowThreads();
15121 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
15122
15123 wxPyEndAllowThreads(__tstate);
15124 if (PyErr_Occurred()) SWIG_fail;
15125 }
15126 {
15127 #if wxUSE_UNICODE
15128 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15129 #else
15130 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15131 #endif
15132 }
15133 {
15134 if (temp2)
15135 delete arg2;
15136 }
15137 {
15138 if (temp3)
15139 delete arg3;
15140 }
15141 return resultobj;
15142 fail:
15143 {
15144 if (temp2)
15145 delete arg2;
15146 }
15147 {
15148 if (temp3)
15149 delete arg3;
15150 }
15151 return NULL;
15152 }
15153
15154
15155 static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15156 PyObject *resultobj;
15157 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15158 wxString *arg2 = 0 ;
15159 long arg3 = (long) 0 ;
15160 long result;
15161 bool temp2 = False ;
15162 PyObject * obj0 = 0 ;
15163 PyObject * obj1 = 0 ;
15164 PyObject * obj2 = 0 ;
15165 char *kwnames[] = {
15166 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15167 };
15168
15169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15172 {
15173 arg2 = wxString_in_helper(obj1);
15174 if (arg2 == NULL) SWIG_fail;
15175 temp2 = True;
15176 }
15177 if (obj2) {
15178 arg3 = (long) SWIG_AsLong(obj2);
15179 if (PyErr_Occurred()) SWIG_fail;
15180 }
15181 {
15182 PyThreadState* __tstate = wxPyBeginAllowThreads();
15183 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
15184
15185 wxPyEndAllowThreads(__tstate);
15186 if (PyErr_Occurred()) SWIG_fail;
15187 }
15188 resultobj = SWIG_FromLong((long)result);
15189 {
15190 if (temp2)
15191 delete arg2;
15192 }
15193 return resultobj;
15194 fail:
15195 {
15196 if (temp2)
15197 delete arg2;
15198 }
15199 return NULL;
15200 }
15201
15202
15203 static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15204 PyObject *resultobj;
15205 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15206 wxString *arg2 = 0 ;
15207 double arg3 = (double) 0.0 ;
15208 double result;
15209 bool temp2 = False ;
15210 PyObject * obj0 = 0 ;
15211 PyObject * obj1 = 0 ;
15212 PyObject * obj2 = 0 ;
15213 char *kwnames[] = {
15214 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15215 };
15216
15217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15220 {
15221 arg2 = wxString_in_helper(obj1);
15222 if (arg2 == NULL) SWIG_fail;
15223 temp2 = True;
15224 }
15225 if (obj2) {
15226 arg3 = (double) SWIG_AsDouble(obj2);
15227 if (PyErr_Occurred()) SWIG_fail;
15228 }
15229 {
15230 PyThreadState* __tstate = wxPyBeginAllowThreads();
15231 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
15232
15233 wxPyEndAllowThreads(__tstate);
15234 if (PyErr_Occurred()) SWIG_fail;
15235 }
15236 resultobj = SWIG_FromDouble((double)result);
15237 {
15238 if (temp2)
15239 delete arg2;
15240 }
15241 return resultobj;
15242 fail:
15243 {
15244 if (temp2)
15245 delete arg2;
15246 }
15247 return NULL;
15248 }
15249
15250
15251 static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15252 PyObject *resultobj;
15253 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15254 wxString *arg2 = 0 ;
15255 bool arg3 = (bool) False ;
15256 bool result;
15257 bool temp2 = False ;
15258 PyObject * obj0 = 0 ;
15259 PyObject * obj1 = 0 ;
15260 PyObject * obj2 = 0 ;
15261 char *kwnames[] = {
15262 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15263 };
15264
15265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15268 {
15269 arg2 = wxString_in_helper(obj1);
15270 if (arg2 == NULL) SWIG_fail;
15271 temp2 = True;
15272 }
15273 if (obj2) {
15274 arg3 = (bool) SWIG_AsBool(obj2);
15275 if (PyErr_Occurred()) SWIG_fail;
15276 }
15277 {
15278 PyThreadState* __tstate = wxPyBeginAllowThreads();
15279 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
15280
15281 wxPyEndAllowThreads(__tstate);
15282 if (PyErr_Occurred()) SWIG_fail;
15283 }
15284 {
15285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15286 }
15287 {
15288 if (temp2)
15289 delete arg2;
15290 }
15291 return resultobj;
15292 fail:
15293 {
15294 if (temp2)
15295 delete arg2;
15296 }
15297 return NULL;
15298 }
15299
15300
15301 static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) {
15302 PyObject *resultobj;
15303 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15304 wxString *arg2 = 0 ;
15305 wxString *arg3 = 0 ;
15306 bool result;
15307 bool temp2 = False ;
15308 bool temp3 = False ;
15309 PyObject * obj0 = 0 ;
15310 PyObject * obj1 = 0 ;
15311 PyObject * obj2 = 0 ;
15312 char *kwnames[] = {
15313 (char *) "self",(char *) "key",(char *) "value", NULL
15314 };
15315
15316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
15317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15319 {
15320 arg2 = wxString_in_helper(obj1);
15321 if (arg2 == NULL) SWIG_fail;
15322 temp2 = True;
15323 }
15324 {
15325 arg3 = wxString_in_helper(obj2);
15326 if (arg3 == NULL) SWIG_fail;
15327 temp3 = True;
15328 }
15329 {
15330 PyThreadState* __tstate = wxPyBeginAllowThreads();
15331 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
15332
15333 wxPyEndAllowThreads(__tstate);
15334 if (PyErr_Occurred()) SWIG_fail;
15335 }
15336 {
15337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15338 }
15339 {
15340 if (temp2)
15341 delete arg2;
15342 }
15343 {
15344 if (temp3)
15345 delete arg3;
15346 }
15347 return resultobj;
15348 fail:
15349 {
15350 if (temp2)
15351 delete arg2;
15352 }
15353 {
15354 if (temp3)
15355 delete arg3;
15356 }
15357 return NULL;
15358 }
15359
15360
15361 static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15362 PyObject *resultobj;
15363 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15364 wxString *arg2 = 0 ;
15365 long arg3 ;
15366 bool result;
15367 bool temp2 = False ;
15368 PyObject * obj0 = 0 ;
15369 PyObject * obj1 = 0 ;
15370 PyObject * obj2 = 0 ;
15371 char *kwnames[] = {
15372 (char *) "self",(char *) "key",(char *) "value", NULL
15373 };
15374
15375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15378 {
15379 arg2 = wxString_in_helper(obj1);
15380 if (arg2 == NULL) SWIG_fail;
15381 temp2 = True;
15382 }
15383 arg3 = (long) SWIG_AsLong(obj2);
15384 if (PyErr_Occurred()) SWIG_fail;
15385 {
15386 PyThreadState* __tstate = wxPyBeginAllowThreads();
15387 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15388
15389 wxPyEndAllowThreads(__tstate);
15390 if (PyErr_Occurred()) SWIG_fail;
15391 }
15392 {
15393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15394 }
15395 {
15396 if (temp2)
15397 delete arg2;
15398 }
15399 return resultobj;
15400 fail:
15401 {
15402 if (temp2)
15403 delete arg2;
15404 }
15405 return NULL;
15406 }
15407
15408
15409 static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15410 PyObject *resultobj;
15411 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15412 wxString *arg2 = 0 ;
15413 double arg3 ;
15414 bool result;
15415 bool temp2 = False ;
15416 PyObject * obj0 = 0 ;
15417 PyObject * obj1 = 0 ;
15418 PyObject * obj2 = 0 ;
15419 char *kwnames[] = {
15420 (char *) "self",(char *) "key",(char *) "value", NULL
15421 };
15422
15423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15426 {
15427 arg2 = wxString_in_helper(obj1);
15428 if (arg2 == NULL) SWIG_fail;
15429 temp2 = True;
15430 }
15431 arg3 = (double) SWIG_AsDouble(obj2);
15432 if (PyErr_Occurred()) SWIG_fail;
15433 {
15434 PyThreadState* __tstate = wxPyBeginAllowThreads();
15435 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15436
15437 wxPyEndAllowThreads(__tstate);
15438 if (PyErr_Occurred()) SWIG_fail;
15439 }
15440 {
15441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15442 }
15443 {
15444 if (temp2)
15445 delete arg2;
15446 }
15447 return resultobj;
15448 fail:
15449 {
15450 if (temp2)
15451 delete arg2;
15452 }
15453 return NULL;
15454 }
15455
15456
15457 static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15458 PyObject *resultobj;
15459 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15460 wxString *arg2 = 0 ;
15461 bool arg3 ;
15462 bool result;
15463 bool temp2 = False ;
15464 PyObject * obj0 = 0 ;
15465 PyObject * obj1 = 0 ;
15466 PyObject * obj2 = 0 ;
15467 char *kwnames[] = {
15468 (char *) "self",(char *) "key",(char *) "value", NULL
15469 };
15470
15471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15474 {
15475 arg2 = wxString_in_helper(obj1);
15476 if (arg2 == NULL) SWIG_fail;
15477 temp2 = True;
15478 }
15479 arg3 = (bool) SWIG_AsBool(obj2);
15480 if (PyErr_Occurred()) SWIG_fail;
15481 {
15482 PyThreadState* __tstate = wxPyBeginAllowThreads();
15483 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15484
15485 wxPyEndAllowThreads(__tstate);
15486 if (PyErr_Occurred()) SWIG_fail;
15487 }
15488 {
15489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15490 }
15491 {
15492 if (temp2)
15493 delete arg2;
15494 }
15495 return resultobj;
15496 fail:
15497 {
15498 if (temp2)
15499 delete arg2;
15500 }
15501 return NULL;
15502 }
15503
15504
15505 static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
15506 PyObject *resultobj;
15507 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15508 bool arg2 = (bool) False ;
15509 bool result;
15510 PyObject * obj0 = 0 ;
15511 PyObject * obj1 = 0 ;
15512 char *kwnames[] = {
15513 (char *) "self",(char *) "currentOnly", NULL
15514 };
15515
15516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
15517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15519 if (obj1) {
15520 arg2 = (bool) SWIG_AsBool(obj1);
15521 if (PyErr_Occurred()) SWIG_fail;
15522 }
15523 {
15524 PyThreadState* __tstate = wxPyBeginAllowThreads();
15525 result = (bool)(arg1)->Flush(arg2);
15526
15527 wxPyEndAllowThreads(__tstate);
15528 if (PyErr_Occurred()) SWIG_fail;
15529 }
15530 {
15531 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15532 }
15533 return resultobj;
15534 fail:
15535 return NULL;
15536 }
15537
15538
15539 static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15540 PyObject *resultobj;
15541 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15542 wxString *arg2 = 0 ;
15543 wxString *arg3 = 0 ;
15544 bool result;
15545 bool temp2 = False ;
15546 bool temp3 = False ;
15547 PyObject * obj0 = 0 ;
15548 PyObject * obj1 = 0 ;
15549 PyObject * obj2 = 0 ;
15550 char *kwnames[] = {
15551 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15552 };
15553
15554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15557 {
15558 arg2 = wxString_in_helper(obj1);
15559 if (arg2 == NULL) SWIG_fail;
15560 temp2 = True;
15561 }
15562 {
15563 arg3 = wxString_in_helper(obj2);
15564 if (arg3 == NULL) SWIG_fail;
15565 temp3 = True;
15566 }
15567 {
15568 PyThreadState* __tstate = wxPyBeginAllowThreads();
15569 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
15570
15571 wxPyEndAllowThreads(__tstate);
15572 if (PyErr_Occurred()) SWIG_fail;
15573 }
15574 {
15575 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15576 }
15577 {
15578 if (temp2)
15579 delete arg2;
15580 }
15581 {
15582 if (temp3)
15583 delete arg3;
15584 }
15585 return resultobj;
15586 fail:
15587 {
15588 if (temp2)
15589 delete arg2;
15590 }
15591 {
15592 if (temp3)
15593 delete arg3;
15594 }
15595 return NULL;
15596 }
15597
15598
15599 static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15600 PyObject *resultobj;
15601 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15602 wxString *arg2 = 0 ;
15603 wxString *arg3 = 0 ;
15604 bool result;
15605 bool temp2 = False ;
15606 bool temp3 = False ;
15607 PyObject * obj0 = 0 ;
15608 PyObject * obj1 = 0 ;
15609 PyObject * obj2 = 0 ;
15610 char *kwnames[] = {
15611 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15612 };
15613
15614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
15615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15617 {
15618 arg2 = wxString_in_helper(obj1);
15619 if (arg2 == NULL) SWIG_fail;
15620 temp2 = True;
15621 }
15622 {
15623 arg3 = wxString_in_helper(obj2);
15624 if (arg3 == NULL) SWIG_fail;
15625 temp3 = True;
15626 }
15627 {
15628 PyThreadState* __tstate = wxPyBeginAllowThreads();
15629 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
15630
15631 wxPyEndAllowThreads(__tstate);
15632 if (PyErr_Occurred()) SWIG_fail;
15633 }
15634 {
15635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15636 }
15637 {
15638 if (temp2)
15639 delete arg2;
15640 }
15641 {
15642 if (temp3)
15643 delete arg3;
15644 }
15645 return resultobj;
15646 fail:
15647 {
15648 if (temp2)
15649 delete arg2;
15650 }
15651 {
15652 if (temp3)
15653 delete arg3;
15654 }
15655 return NULL;
15656 }
15657
15658
15659 static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15660 PyObject *resultobj;
15661 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15662 wxString *arg2 = 0 ;
15663 bool arg3 = (bool) True ;
15664 bool result;
15665 bool temp2 = False ;
15666 PyObject * obj0 = 0 ;
15667 PyObject * obj1 = 0 ;
15668 PyObject * obj2 = 0 ;
15669 char *kwnames[] = {
15670 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
15671 };
15672
15673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15676 {
15677 arg2 = wxString_in_helper(obj1);
15678 if (arg2 == NULL) SWIG_fail;
15679 temp2 = True;
15680 }
15681 if (obj2) {
15682 arg3 = (bool) SWIG_AsBool(obj2);
15683 if (PyErr_Occurred()) SWIG_fail;
15684 }
15685 {
15686 PyThreadState* __tstate = wxPyBeginAllowThreads();
15687 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
15688
15689 wxPyEndAllowThreads(__tstate);
15690 if (PyErr_Occurred()) SWIG_fail;
15691 }
15692 {
15693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15694 }
15695 {
15696 if (temp2)
15697 delete arg2;
15698 }
15699 return resultobj;
15700 fail:
15701 {
15702 if (temp2)
15703 delete arg2;
15704 }
15705 return NULL;
15706 }
15707
15708
15709 static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15710 PyObject *resultobj;
15711 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15712 wxString *arg2 = 0 ;
15713 bool result;
15714 bool temp2 = False ;
15715 PyObject * obj0 = 0 ;
15716 PyObject * obj1 = 0 ;
15717 char *kwnames[] = {
15718 (char *) "self",(char *) "key", NULL
15719 };
15720
15721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
15722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15724 {
15725 arg2 = wxString_in_helper(obj1);
15726 if (arg2 == NULL) SWIG_fail;
15727 temp2 = True;
15728 }
15729 {
15730 PyThreadState* __tstate = wxPyBeginAllowThreads();
15731 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
15732
15733 wxPyEndAllowThreads(__tstate);
15734 if (PyErr_Occurred()) SWIG_fail;
15735 }
15736 {
15737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15738 }
15739 {
15740 if (temp2)
15741 delete arg2;
15742 }
15743 return resultobj;
15744 fail:
15745 {
15746 if (temp2)
15747 delete arg2;
15748 }
15749 return NULL;
15750 }
15751
15752
15753 static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) {
15754 PyObject *resultobj;
15755 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15756 bool result;
15757 PyObject * obj0 = 0 ;
15758 char *kwnames[] = {
15759 (char *) "self", NULL
15760 };
15761
15762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
15763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15765 {
15766 PyThreadState* __tstate = wxPyBeginAllowThreads();
15767 result = (bool)(arg1)->DeleteAll();
15768
15769 wxPyEndAllowThreads(__tstate);
15770 if (PyErr_Occurred()) SWIG_fail;
15771 }
15772 {
15773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15774 }
15775 return resultobj;
15776 fail:
15777 return NULL;
15778 }
15779
15780
15781 static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15782 PyObject *resultobj;
15783 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15784 bool arg2 = (bool) True ;
15785 PyObject * obj0 = 0 ;
15786 PyObject * obj1 = 0 ;
15787 char *kwnames[] = {
15788 (char *) "self",(char *) "doIt", NULL
15789 };
15790
15791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
15792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15794 if (obj1) {
15795 arg2 = (bool) SWIG_AsBool(obj1);
15796 if (PyErr_Occurred()) SWIG_fail;
15797 }
15798 {
15799 PyThreadState* __tstate = wxPyBeginAllowThreads();
15800 (arg1)->SetExpandEnvVars(arg2);
15801
15802 wxPyEndAllowThreads(__tstate);
15803 if (PyErr_Occurred()) SWIG_fail;
15804 }
15805 Py_INCREF(Py_None); resultobj = Py_None;
15806 return resultobj;
15807 fail:
15808 return NULL;
15809 }
15810
15811
15812 static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15813 PyObject *resultobj;
15814 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15815 bool result;
15816 PyObject * obj0 = 0 ;
15817 char *kwnames[] = {
15818 (char *) "self", NULL
15819 };
15820
15821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
15822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15824 {
15825 PyThreadState* __tstate = wxPyBeginAllowThreads();
15826 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
15827
15828 wxPyEndAllowThreads(__tstate);
15829 if (PyErr_Occurred()) SWIG_fail;
15830 }
15831 {
15832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15833 }
15834 return resultobj;
15835 fail:
15836 return NULL;
15837 }
15838
15839
15840 static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
15841 PyObject *resultobj;
15842 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15843 bool arg2 = (bool) True ;
15844 PyObject * obj0 = 0 ;
15845 PyObject * obj1 = 0 ;
15846 char *kwnames[] = {
15847 (char *) "self",(char *) "doIt", NULL
15848 };
15849
15850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
15851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15853 if (obj1) {
15854 arg2 = (bool) SWIG_AsBool(obj1);
15855 if (PyErr_Occurred()) SWIG_fail;
15856 }
15857 {
15858 PyThreadState* __tstate = wxPyBeginAllowThreads();
15859 (arg1)->SetRecordDefaults(arg2);
15860
15861 wxPyEndAllowThreads(__tstate);
15862 if (PyErr_Occurred()) SWIG_fail;
15863 }
15864 Py_INCREF(Py_None); resultobj = Py_None;
15865 return resultobj;
15866 fail:
15867 return NULL;
15868 }
15869
15870
15871 static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
15872 PyObject *resultobj;
15873 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15874 bool result;
15875 PyObject * obj0 = 0 ;
15876 char *kwnames[] = {
15877 (char *) "self", NULL
15878 };
15879
15880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
15881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15883 {
15884 PyThreadState* __tstate = wxPyBeginAllowThreads();
15885 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
15886
15887 wxPyEndAllowThreads(__tstate);
15888 if (PyErr_Occurred()) SWIG_fail;
15889 }
15890 {
15891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15892 }
15893 return resultobj;
15894 fail:
15895 return NULL;
15896 }
15897
15898
15899 static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15900 PyObject *resultobj;
15901 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15902 wxString *arg2 = 0 ;
15903 wxString result;
15904 bool temp2 = False ;
15905 PyObject * obj0 = 0 ;
15906 PyObject * obj1 = 0 ;
15907 char *kwnames[] = {
15908 (char *) "self",(char *) "str", NULL
15909 };
15910
15911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
15912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15914 {
15915 arg2 = wxString_in_helper(obj1);
15916 if (arg2 == NULL) SWIG_fail;
15917 temp2 = True;
15918 }
15919 {
15920 PyThreadState* __tstate = wxPyBeginAllowThreads();
15921 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
15922
15923 wxPyEndAllowThreads(__tstate);
15924 if (PyErr_Occurred()) SWIG_fail;
15925 }
15926 {
15927 #if wxUSE_UNICODE
15928 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15929 #else
15930 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15931 #endif
15932 }
15933 {
15934 if (temp2)
15935 delete arg2;
15936 }
15937 return resultobj;
15938 fail:
15939 {
15940 if (temp2)
15941 delete arg2;
15942 }
15943 return NULL;
15944 }
15945
15946
15947 static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
15948 PyObject *resultobj;
15949 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15950 wxString result;
15951 PyObject * obj0 = 0 ;
15952 char *kwnames[] = {
15953 (char *) "self", NULL
15954 };
15955
15956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
15957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15959 {
15960 PyThreadState* __tstate = wxPyBeginAllowThreads();
15961 result = ((wxConfigBase const *)arg1)->GetAppName();
15962
15963 wxPyEndAllowThreads(__tstate);
15964 if (PyErr_Occurred()) SWIG_fail;
15965 }
15966 {
15967 #if wxUSE_UNICODE
15968 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15969 #else
15970 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15971 #endif
15972 }
15973 return resultobj;
15974 fail:
15975 return NULL;
15976 }
15977
15978
15979 static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
15980 PyObject *resultobj;
15981 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15982 wxString result;
15983 PyObject * obj0 = 0 ;
15984 char *kwnames[] = {
15985 (char *) "self", NULL
15986 };
15987
15988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
15989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15991 {
15992 PyThreadState* __tstate = wxPyBeginAllowThreads();
15993 result = ((wxConfigBase const *)arg1)->GetVendorName();
15994
15995 wxPyEndAllowThreads(__tstate);
15996 if (PyErr_Occurred()) SWIG_fail;
15997 }
15998 {
15999 #if wxUSE_UNICODE
16000 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16001 #else
16002 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16003 #endif
16004 }
16005 return resultobj;
16006 fail:
16007 return NULL;
16008 }
16009
16010
16011 static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
16012 PyObject *resultobj;
16013 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16014 wxString *arg2 = 0 ;
16015 bool temp2 = False ;
16016 PyObject * obj0 = 0 ;
16017 PyObject * obj1 = 0 ;
16018 char *kwnames[] = {
16019 (char *) "self",(char *) "appName", NULL
16020 };
16021
16022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
16023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16025 {
16026 arg2 = wxString_in_helper(obj1);
16027 if (arg2 == NULL) SWIG_fail;
16028 temp2 = True;
16029 }
16030 {
16031 PyThreadState* __tstate = wxPyBeginAllowThreads();
16032 (arg1)->SetAppName((wxString const &)*arg2);
16033
16034 wxPyEndAllowThreads(__tstate);
16035 if (PyErr_Occurred()) SWIG_fail;
16036 }
16037 Py_INCREF(Py_None); resultobj = Py_None;
16038 {
16039 if (temp2)
16040 delete arg2;
16041 }
16042 return resultobj;
16043 fail:
16044 {
16045 if (temp2)
16046 delete arg2;
16047 }
16048 return NULL;
16049 }
16050
16051
16052 static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
16053 PyObject *resultobj;
16054 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16055 wxString *arg2 = 0 ;
16056 bool temp2 = False ;
16057 PyObject * obj0 = 0 ;
16058 PyObject * obj1 = 0 ;
16059 char *kwnames[] = {
16060 (char *) "self",(char *) "vendorName", NULL
16061 };
16062
16063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
16064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16066 {
16067 arg2 = wxString_in_helper(obj1);
16068 if (arg2 == NULL) SWIG_fail;
16069 temp2 = True;
16070 }
16071 {
16072 PyThreadState* __tstate = wxPyBeginAllowThreads();
16073 (arg1)->SetVendorName((wxString const &)*arg2);
16074
16075 wxPyEndAllowThreads(__tstate);
16076 if (PyErr_Occurred()) SWIG_fail;
16077 }
16078 Py_INCREF(Py_None); resultobj = Py_None;
16079 {
16080 if (temp2)
16081 delete arg2;
16082 }
16083 return resultobj;
16084 fail:
16085 {
16086 if (temp2)
16087 delete arg2;
16088 }
16089 return NULL;
16090 }
16091
16092
16093 static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16094 PyObject *resultobj;
16095 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16096 long arg2 ;
16097 PyObject * obj0 = 0 ;
16098 PyObject * obj1 = 0 ;
16099 char *kwnames[] = {
16100 (char *) "self",(char *) "style", NULL
16101 };
16102
16103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
16104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16106 arg2 = (long) SWIG_AsLong(obj1);
16107 if (PyErr_Occurred()) SWIG_fail;
16108 {
16109 PyThreadState* __tstate = wxPyBeginAllowThreads();
16110 (arg1)->SetStyle(arg2);
16111
16112 wxPyEndAllowThreads(__tstate);
16113 if (PyErr_Occurred()) SWIG_fail;
16114 }
16115 Py_INCREF(Py_None); resultobj = Py_None;
16116 return resultobj;
16117 fail:
16118 return NULL;
16119 }
16120
16121
16122 static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16123 PyObject *resultobj;
16124 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16125 long result;
16126 PyObject * obj0 = 0 ;
16127 char *kwnames[] = {
16128 (char *) "self", NULL
16129 };
16130
16131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
16132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16134 {
16135 PyThreadState* __tstate = wxPyBeginAllowThreads();
16136 result = (long)((wxConfigBase const *)arg1)->GetStyle();
16137
16138 wxPyEndAllowThreads(__tstate);
16139 if (PyErr_Occurred()) SWIG_fail;
16140 }
16141 resultobj = SWIG_FromLong((long)result);
16142 return resultobj;
16143 fail:
16144 return NULL;
16145 }
16146
16147
16148 static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) {
16149 PyObject *obj;
16150 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16151 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
16152 Py_INCREF(obj);
16153 return Py_BuildValue((char *)"");
16154 }
16155 static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16156 PyObject *resultobj;
16157 wxString const &arg1_defvalue = wxPyEmptyString ;
16158 wxString *arg1 = (wxString *) &arg1_defvalue ;
16159 wxString const &arg2_defvalue = wxPyEmptyString ;
16160 wxString *arg2 = (wxString *) &arg2_defvalue ;
16161 wxString const &arg3_defvalue = wxPyEmptyString ;
16162 wxString *arg3 = (wxString *) &arg3_defvalue ;
16163 wxString const &arg4_defvalue = wxPyEmptyString ;
16164 wxString *arg4 = (wxString *) &arg4_defvalue ;
16165 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16166 wxConfig *result;
16167 bool temp1 = False ;
16168 bool temp2 = False ;
16169 bool temp3 = False ;
16170 bool temp4 = False ;
16171 PyObject * obj0 = 0 ;
16172 PyObject * obj1 = 0 ;
16173 PyObject * obj2 = 0 ;
16174 PyObject * obj3 = 0 ;
16175 PyObject * obj4 = 0 ;
16176 char *kwnames[] = {
16177 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16178 };
16179
16180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16181 if (obj0) {
16182 {
16183 arg1 = wxString_in_helper(obj0);
16184 if (arg1 == NULL) SWIG_fail;
16185 temp1 = True;
16186 }
16187 }
16188 if (obj1) {
16189 {
16190 arg2 = wxString_in_helper(obj1);
16191 if (arg2 == NULL) SWIG_fail;
16192 temp2 = True;
16193 }
16194 }
16195 if (obj2) {
16196 {
16197 arg3 = wxString_in_helper(obj2);
16198 if (arg3 == NULL) SWIG_fail;
16199 temp3 = True;
16200 }
16201 }
16202 if (obj3) {
16203 {
16204 arg4 = wxString_in_helper(obj3);
16205 if (arg4 == NULL) SWIG_fail;
16206 temp4 = True;
16207 }
16208 }
16209 if (obj4) {
16210 arg5 = (long) SWIG_AsLong(obj4);
16211 if (PyErr_Occurred()) SWIG_fail;
16212 }
16213 {
16214 PyThreadState* __tstate = wxPyBeginAllowThreads();
16215 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16216
16217 wxPyEndAllowThreads(__tstate);
16218 if (PyErr_Occurred()) SWIG_fail;
16219 }
16220 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
16221 {
16222 if (temp1)
16223 delete arg1;
16224 }
16225 {
16226 if (temp2)
16227 delete arg2;
16228 }
16229 {
16230 if (temp3)
16231 delete arg3;
16232 }
16233 {
16234 if (temp4)
16235 delete arg4;
16236 }
16237 return resultobj;
16238 fail:
16239 {
16240 if (temp1)
16241 delete arg1;
16242 }
16243 {
16244 if (temp2)
16245 delete arg2;
16246 }
16247 {
16248 if (temp3)
16249 delete arg3;
16250 }
16251 {
16252 if (temp4)
16253 delete arg4;
16254 }
16255 return NULL;
16256 }
16257
16258
16259 static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16260 PyObject *resultobj;
16261 wxConfig *arg1 = (wxConfig *) 0 ;
16262 PyObject * obj0 = 0 ;
16263 char *kwnames[] = {
16264 (char *) "self", NULL
16265 };
16266
16267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
16268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig,
16269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16270 {
16271 PyThreadState* __tstate = wxPyBeginAllowThreads();
16272 delete arg1;
16273
16274 wxPyEndAllowThreads(__tstate);
16275 if (PyErr_Occurred()) SWIG_fail;
16276 }
16277 Py_INCREF(Py_None); resultobj = Py_None;
16278 return resultobj;
16279 fail:
16280 return NULL;
16281 }
16282
16283
16284 static PyObject * Config_swigregister(PyObject *self, PyObject *args) {
16285 PyObject *obj;
16286 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16287 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
16288 Py_INCREF(obj);
16289 return Py_BuildValue((char *)"");
16290 }
16291 static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16292 PyObject *resultobj;
16293 wxString const &arg1_defvalue = wxPyEmptyString ;
16294 wxString *arg1 = (wxString *) &arg1_defvalue ;
16295 wxString const &arg2_defvalue = wxPyEmptyString ;
16296 wxString *arg2 = (wxString *) &arg2_defvalue ;
16297 wxString const &arg3_defvalue = wxPyEmptyString ;
16298 wxString *arg3 = (wxString *) &arg3_defvalue ;
16299 wxString const &arg4_defvalue = wxPyEmptyString ;
16300 wxString *arg4 = (wxString *) &arg4_defvalue ;
16301 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16302 wxFileConfig *result;
16303 bool temp1 = False ;
16304 bool temp2 = False ;
16305 bool temp3 = False ;
16306 bool temp4 = False ;
16307 PyObject * obj0 = 0 ;
16308 PyObject * obj1 = 0 ;
16309 PyObject * obj2 = 0 ;
16310 PyObject * obj3 = 0 ;
16311 PyObject * obj4 = 0 ;
16312 char *kwnames[] = {
16313 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16314 };
16315
16316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16317 if (obj0) {
16318 {
16319 arg1 = wxString_in_helper(obj0);
16320 if (arg1 == NULL) SWIG_fail;
16321 temp1 = True;
16322 }
16323 }
16324 if (obj1) {
16325 {
16326 arg2 = wxString_in_helper(obj1);
16327 if (arg2 == NULL) SWIG_fail;
16328 temp2 = True;
16329 }
16330 }
16331 if (obj2) {
16332 {
16333 arg3 = wxString_in_helper(obj2);
16334 if (arg3 == NULL) SWIG_fail;
16335 temp3 = True;
16336 }
16337 }
16338 if (obj3) {
16339 {
16340 arg4 = wxString_in_helper(obj3);
16341 if (arg4 == NULL) SWIG_fail;
16342 temp4 = True;
16343 }
16344 }
16345 if (obj4) {
16346 arg5 = (long) SWIG_AsLong(obj4);
16347 if (PyErr_Occurred()) SWIG_fail;
16348 }
16349 {
16350 PyThreadState* __tstate = wxPyBeginAllowThreads();
16351 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16352
16353 wxPyEndAllowThreads(__tstate);
16354 if (PyErr_Occurred()) SWIG_fail;
16355 }
16356 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
16357 {
16358 if (temp1)
16359 delete arg1;
16360 }
16361 {
16362 if (temp2)
16363 delete arg2;
16364 }
16365 {
16366 if (temp3)
16367 delete arg3;
16368 }
16369 {
16370 if (temp4)
16371 delete arg4;
16372 }
16373 return resultobj;
16374 fail:
16375 {
16376 if (temp1)
16377 delete arg1;
16378 }
16379 {
16380 if (temp2)
16381 delete arg2;
16382 }
16383 {
16384 if (temp3)
16385 delete arg3;
16386 }
16387 {
16388 if (temp4)
16389 delete arg4;
16390 }
16391 return NULL;
16392 }
16393
16394
16395 static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16396 PyObject *resultobj;
16397 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
16398 PyObject * obj0 = 0 ;
16399 char *kwnames[] = {
16400 (char *) "self", NULL
16401 };
16402
16403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
16404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig,
16405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16406 {
16407 PyThreadState* __tstate = wxPyBeginAllowThreads();
16408 delete arg1;
16409
16410 wxPyEndAllowThreads(__tstate);
16411 if (PyErr_Occurred()) SWIG_fail;
16412 }
16413 Py_INCREF(Py_None); resultobj = Py_None;
16414 return resultobj;
16415 fail:
16416 return NULL;
16417 }
16418
16419
16420 static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) {
16421 PyObject *obj;
16422 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16423 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
16424 Py_INCREF(obj);
16425 return Py_BuildValue((char *)"");
16426 }
16427 static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16428 PyObject *resultobj;
16429 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16430 wxString *arg2 = 0 ;
16431 wxConfigPathChanger *result;
16432 bool temp2 = False ;
16433 PyObject * obj0 = 0 ;
16434 PyObject * obj1 = 0 ;
16435 char *kwnames[] = {
16436 (char *) "config",(char *) "entry", NULL
16437 };
16438
16439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
16440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16442 {
16443 arg2 = wxString_in_helper(obj1);
16444 if (arg2 == NULL) SWIG_fail;
16445 temp2 = True;
16446 }
16447 {
16448 PyThreadState* __tstate = wxPyBeginAllowThreads();
16449 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
16450
16451 wxPyEndAllowThreads(__tstate);
16452 if (PyErr_Occurred()) SWIG_fail;
16453 }
16454 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
16455 {
16456 if (temp2)
16457 delete arg2;
16458 }
16459 return resultobj;
16460 fail:
16461 {
16462 if (temp2)
16463 delete arg2;
16464 }
16465 return NULL;
16466 }
16467
16468
16469 static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16470 PyObject *resultobj;
16471 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16472 PyObject * obj0 = 0 ;
16473 char *kwnames[] = {
16474 (char *) "self", NULL
16475 };
16476
16477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
16478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16480 {
16481 PyThreadState* __tstate = wxPyBeginAllowThreads();
16482 delete arg1;
16483
16484 wxPyEndAllowThreads(__tstate);
16485 if (PyErr_Occurred()) SWIG_fail;
16486 }
16487 Py_INCREF(Py_None); resultobj = Py_None;
16488 return resultobj;
16489 fail:
16490 return NULL;
16491 }
16492
16493
16494 static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) {
16495 PyObject *resultobj;
16496 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16497 wxString *result;
16498 PyObject * obj0 = 0 ;
16499 char *kwnames[] = {
16500 (char *) "self", NULL
16501 };
16502
16503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
16504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16506 {
16507 PyThreadState* __tstate = wxPyBeginAllowThreads();
16508 {
16509 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
16510 result = (wxString *) &_result_ref;
16511 }
16512
16513 wxPyEndAllowThreads(__tstate);
16514 if (PyErr_Occurred()) SWIG_fail;
16515 }
16516 {
16517 #if wxUSE_UNICODE
16518 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16519 #else
16520 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16521 #endif
16522 }
16523 return resultobj;
16524 fail:
16525 return NULL;
16526 }
16527
16528
16529 static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) {
16530 PyObject *obj;
16531 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16532 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
16533 Py_INCREF(obj);
16534 return Py_BuildValue((char *)"");
16535 }
16536 static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16537 PyObject *resultobj;
16538 wxString *arg1 = 0 ;
16539 wxString result;
16540 bool temp1 = False ;
16541 PyObject * obj0 = 0 ;
16542 char *kwnames[] = {
16543 (char *) "sz", NULL
16544 };
16545
16546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
16547 {
16548 arg1 = wxString_in_helper(obj0);
16549 if (arg1 == NULL) SWIG_fail;
16550 temp1 = True;
16551 }
16552 {
16553 PyThreadState* __tstate = wxPyBeginAllowThreads();
16554 result = wxExpandEnvVars((wxString const &)*arg1);
16555
16556 wxPyEndAllowThreads(__tstate);
16557 if (PyErr_Occurred()) SWIG_fail;
16558 }
16559 {
16560 #if wxUSE_UNICODE
16561 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16562 #else
16563 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16564 #endif
16565 }
16566 {
16567 if (temp1)
16568 delete arg1;
16569 }
16570 return resultobj;
16571 fail:
16572 {
16573 if (temp1)
16574 delete arg1;
16575 }
16576 return NULL;
16577 }
16578
16579
16580 static int _wrap_DateFormatStr_set(PyObject *_val) {
16581 PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only.");
16582 return 1;
16583 }
16584
16585
16586 static PyObject *_wrap_DateFormatStr_get() {
16587 PyObject *pyobj;
16588
16589 {
16590 #if wxUSE_UNICODE
16591 pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16592 #else
16593 pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16594 #endif
16595 }
16596 return pyobj;
16597 }
16598
16599
16600 static int _wrap_TimeSpanFormatStr_set(PyObject *_val) {
16601 PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only.");
16602 return 1;
16603 }
16604
16605
16606 static PyObject *_wrap_TimeSpanFormatStr_get() {
16607 PyObject *pyobj;
16608
16609 {
16610 #if wxUSE_UNICODE
16611 pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16612 #else
16613 pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16614 #endif
16615 }
16616 return pyobj;
16617 }
16618
16619
16620 static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16621 PyObject *resultobj;
16622 int arg1 ;
16623 PyObject * obj0 = 0 ;
16624 char *kwnames[] = {
16625 (char *) "country", NULL
16626 };
16627
16628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
16629 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16630 if (PyErr_Occurred()) SWIG_fail;
16631 {
16632 PyThreadState* __tstate = wxPyBeginAllowThreads();
16633 wxDateTime::SetCountry((wxDateTime::Country )arg1);
16634
16635 wxPyEndAllowThreads(__tstate);
16636 if (PyErr_Occurred()) SWIG_fail;
16637 }
16638 Py_INCREF(Py_None); resultobj = Py_None;
16639 return resultobj;
16640 fail:
16641 return NULL;
16642 }
16643
16644
16645 static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16646 PyObject *resultobj;
16647 int result;
16648 char *kwnames[] = {
16649 NULL
16650 };
16651
16652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
16653 {
16654 PyThreadState* __tstate = wxPyBeginAllowThreads();
16655 result = (int)wxDateTime::GetCountry();
16656
16657 wxPyEndAllowThreads(__tstate);
16658 if (PyErr_Occurred()) SWIG_fail;
16659 }
16660 resultobj = SWIG_FromInt((int)result);
16661 return resultobj;
16662 fail:
16663 return NULL;
16664 }
16665
16666
16667 static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16668 PyObject *resultobj;
16669 int arg1 = (int) wxDateTime::Country_Default ;
16670 bool result;
16671 PyObject * obj0 = 0 ;
16672 char *kwnames[] = {
16673 (char *) "country", NULL
16674 };
16675
16676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
16677 if (obj0) {
16678 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16679 if (PyErr_Occurred()) SWIG_fail;
16680 }
16681 {
16682 PyThreadState* __tstate = wxPyBeginAllowThreads();
16683 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
16684
16685 wxPyEndAllowThreads(__tstate);
16686 if (PyErr_Occurred()) SWIG_fail;
16687 }
16688 {
16689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16690 }
16691 return resultobj;
16692 fail:
16693 return NULL;
16694 }
16695
16696
16697 static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16698 PyObject *resultobj;
16699 int arg1 = (int) wxDateTime::Gregorian ;
16700 int result;
16701 PyObject * obj0 = 0 ;
16702 char *kwnames[] = {
16703 (char *) "cal", NULL
16704 };
16705
16706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
16707 if (obj0) {
16708 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16709 if (PyErr_Occurred()) SWIG_fail;
16710 }
16711 {
16712 PyThreadState* __tstate = wxPyBeginAllowThreads();
16713 result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1);
16714
16715 wxPyEndAllowThreads(__tstate);
16716 if (PyErr_Occurred()) SWIG_fail;
16717 }
16718 resultobj = SWIG_FromInt((int)result);
16719 return resultobj;
16720 fail:
16721 return NULL;
16722 }
16723
16724
16725 static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) {
16726 PyObject *resultobj;
16727 int arg1 ;
16728 int result;
16729 PyObject * obj0 = 0 ;
16730 char *kwnames[] = {
16731 (char *) "year", NULL
16732 };
16733
16734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
16735 arg1 = (int) SWIG_AsInt(obj0);
16736 if (PyErr_Occurred()) SWIG_fail;
16737 {
16738 PyThreadState* __tstate = wxPyBeginAllowThreads();
16739 result = (int)wxDateTime::ConvertYearToBC(arg1);
16740
16741 wxPyEndAllowThreads(__tstate);
16742 if (PyErr_Occurred()) SWIG_fail;
16743 }
16744 resultobj = SWIG_FromInt((int)result);
16745 return resultobj;
16746 fail:
16747 return NULL;
16748 }
16749
16750
16751 static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16752 PyObject *resultobj;
16753 int arg1 = (int) wxDateTime::Gregorian ;
16754 int result;
16755 PyObject * obj0 = 0 ;
16756 char *kwnames[] = {
16757 (char *) "cal", NULL
16758 };
16759
16760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
16761 if (obj0) {
16762 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16763 if (PyErr_Occurred()) SWIG_fail;
16764 }
16765 {
16766 PyThreadState* __tstate = wxPyBeginAllowThreads();
16767 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
16768
16769 wxPyEndAllowThreads(__tstate);
16770 if (PyErr_Occurred()) SWIG_fail;
16771 }
16772 resultobj = SWIG_FromInt((int)result);
16773 return resultobj;
16774 fail:
16775 return NULL;
16776 }
16777
16778
16779 static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16780 PyObject *resultobj;
16781 int arg1 = (int) wxDateTime::Inv_Year ;
16782 int arg2 = (int) wxDateTime::Gregorian ;
16783 bool result;
16784 PyObject * obj0 = 0 ;
16785 PyObject * obj1 = 0 ;
16786 char *kwnames[] = {
16787 (char *) "year",(char *) "cal", NULL
16788 };
16789
16790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
16791 if (obj0) {
16792 arg1 = (int) SWIG_AsInt(obj0);
16793 if (PyErr_Occurred()) SWIG_fail;
16794 }
16795 if (obj1) {
16796 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
16797 if (PyErr_Occurred()) SWIG_fail;
16798 }
16799 {
16800 PyThreadState* __tstate = wxPyBeginAllowThreads();
16801 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
16802
16803 wxPyEndAllowThreads(__tstate);
16804 if (PyErr_Occurred()) SWIG_fail;
16805 }
16806 {
16807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16808 }
16809 return resultobj;
16810 fail:
16811 return NULL;
16812 }
16813
16814
16815 static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) {
16816 PyObject *resultobj;
16817 int arg1 = (int) wxDateTime::Inv_Year ;
16818 int result;
16819 PyObject * obj0 = 0 ;
16820 char *kwnames[] = {
16821 (char *) "year", NULL
16822 };
16823
16824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
16825 if (obj0) {
16826 arg1 = (int) SWIG_AsInt(obj0);
16827 if (PyErr_Occurred()) SWIG_fail;
16828 }
16829 {
16830 PyThreadState* __tstate = wxPyBeginAllowThreads();
16831 result = (int)wxDateTime::GetCentury(arg1);
16832
16833 wxPyEndAllowThreads(__tstate);
16834 if (PyErr_Occurred()) SWIG_fail;
16835 }
16836 resultobj = SWIG_FromInt((int)result);
16837 return resultobj;
16838 fail:
16839 return NULL;
16840 }
16841
16842
16843 static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16844 PyObject *resultobj;
16845 int arg1 ;
16846 int arg2 = (int) wxDateTime::Gregorian ;
16847 int result;
16848 PyObject * obj0 = 0 ;
16849 PyObject * obj1 = 0 ;
16850 char *kwnames[] = {
16851 (char *) "year",(char *) "cal", NULL
16852 };
16853
16854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
16855 arg1 = (int) SWIG_AsInt(obj0);
16856 if (PyErr_Occurred()) SWIG_fail;
16857 if (obj1) {
16858 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
16859 if (PyErr_Occurred()) SWIG_fail;
16860 }
16861 {
16862 PyThreadState* __tstate = wxPyBeginAllowThreads();
16863 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
16864
16865 wxPyEndAllowThreads(__tstate);
16866 if (PyErr_Occurred()) SWIG_fail;
16867 }
16868 resultobj = SWIG_FromInt((int)result);
16869 return resultobj;
16870 fail:
16871 return NULL;
16872 }
16873
16874
16875 static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16876 PyObject *resultobj;
16877 int arg1 ;
16878 int arg2 = (int) wxDateTime::Inv_Year ;
16879 int arg3 = (int) wxDateTime::Gregorian ;
16880 int result;
16881 PyObject * obj0 = 0 ;
16882 PyObject * obj1 = 0 ;
16883 PyObject * obj2 = 0 ;
16884 char *kwnames[] = {
16885 (char *) "month",(char *) "year",(char *) "cal", NULL
16886 };
16887
16888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
16889 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
16890 if (PyErr_Occurred()) SWIG_fail;
16891 if (obj1) {
16892 arg2 = (int) SWIG_AsInt(obj1);
16893 if (PyErr_Occurred()) SWIG_fail;
16894 }
16895 if (obj2) {
16896 arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2);
16897 if (PyErr_Occurred()) SWIG_fail;
16898 }
16899 {
16900 PyThreadState* __tstate = wxPyBeginAllowThreads();
16901 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
16902
16903 wxPyEndAllowThreads(__tstate);
16904 if (PyErr_Occurred()) SWIG_fail;
16905 }
16906 resultobj = SWIG_FromInt((int)result);
16907 return resultobj;
16908 fail:
16909 return NULL;
16910 }
16911
16912
16913 static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) {
16914 PyObject *resultobj;
16915 int arg1 ;
16916 int arg2 = (int) wxDateTime::Name_Full ;
16917 wxString result;
16918 PyObject * obj0 = 0 ;
16919 PyObject * obj1 = 0 ;
16920 char *kwnames[] = {
16921 (char *) "month",(char *) "flags", NULL
16922 };
16923
16924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
16925 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
16926 if (PyErr_Occurred()) SWIG_fail;
16927 if (obj1) {
16928 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
16929 if (PyErr_Occurred()) SWIG_fail;
16930 }
16931 {
16932 PyThreadState* __tstate = wxPyBeginAllowThreads();
16933 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
16934
16935 wxPyEndAllowThreads(__tstate);
16936 if (PyErr_Occurred()) SWIG_fail;
16937 }
16938 {
16939 #if wxUSE_UNICODE
16940 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16941 #else
16942 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16943 #endif
16944 }
16945 return resultobj;
16946 fail:
16947 return NULL;
16948 }
16949
16950
16951 static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) {
16952 PyObject *resultobj;
16953 int arg1 ;
16954 int arg2 = (int) wxDateTime::Name_Full ;
16955 wxString result;
16956 PyObject * obj0 = 0 ;
16957 PyObject * obj1 = 0 ;
16958 char *kwnames[] = {
16959 (char *) "weekday",(char *) "flags", NULL
16960 };
16961
16962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
16963 arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0);
16964 if (PyErr_Occurred()) SWIG_fail;
16965 if (obj1) {
16966 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
16967 if (PyErr_Occurred()) SWIG_fail;
16968 }
16969 {
16970 PyThreadState* __tstate = wxPyBeginAllowThreads();
16971 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
16972
16973 wxPyEndAllowThreads(__tstate);
16974 if (PyErr_Occurred()) SWIG_fail;
16975 }
16976 {
16977 #if wxUSE_UNICODE
16978 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16979 #else
16980 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16981 #endif
16982 }
16983 return resultobj;
16984 fail:
16985 return NULL;
16986 }
16987
16988
16989 static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
16990 PyObject *resultobj;
16991 wxString *arg1 = (wxString *) 0 ;
16992 wxString *arg2 = (wxString *) 0 ;
16993 bool temp1 = False ;
16994 bool temp2 = False ;
16995 PyObject * obj0 = 0 ;
16996 PyObject * obj1 = 0 ;
16997 char *kwnames[] = {
16998 (char *) "OUTPUT",(char *) "OUTPUT", NULL
16999 };
17000
17001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
17002 {
17003 arg1 = wxString_in_helper(obj0);
17004 if (arg1 == NULL) SWIG_fail;
17005 temp1 = True;
17006 }
17007 {
17008 arg2 = wxString_in_helper(obj1);
17009 if (arg2 == NULL) SWIG_fail;
17010 temp2 = True;
17011 }
17012 {
17013 PyThreadState* __tstate = wxPyBeginAllowThreads();
17014 wxDateTime::GetAmPmStrings(arg1,arg2);
17015
17016 wxPyEndAllowThreads(__tstate);
17017 if (PyErr_Occurred()) SWIG_fail;
17018 }
17019 Py_INCREF(Py_None); resultobj = Py_None;
17020 {
17021 if (temp1)
17022 delete arg1;
17023 }
17024 {
17025 if (temp2)
17026 delete arg2;
17027 }
17028 return resultobj;
17029 fail:
17030 {
17031 if (temp1)
17032 delete arg1;
17033 }
17034 {
17035 if (temp2)
17036 delete arg2;
17037 }
17038 return NULL;
17039 }
17040
17041
17042 static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) {
17043 PyObject *resultobj;
17044 int arg1 = (int) wxDateTime::Inv_Year ;
17045 int arg2 = (int) wxDateTime::Country_Default ;
17046 bool result;
17047 PyObject * obj0 = 0 ;
17048 PyObject * obj1 = 0 ;
17049 char *kwnames[] = {
17050 (char *) "year",(char *) "country", NULL
17051 };
17052
17053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
17054 if (obj0) {
17055 arg1 = (int) SWIG_AsInt(obj0);
17056 if (PyErr_Occurred()) SWIG_fail;
17057 }
17058 if (obj1) {
17059 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17060 if (PyErr_Occurred()) SWIG_fail;
17061 }
17062 {
17063 PyThreadState* __tstate = wxPyBeginAllowThreads();
17064 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
17065
17066 wxPyEndAllowThreads(__tstate);
17067 if (PyErr_Occurred()) SWIG_fail;
17068 }
17069 {
17070 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17071 }
17072 return resultobj;
17073 fail:
17074 return NULL;
17075 }
17076
17077
17078 static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17079 PyObject *resultobj;
17080 int arg1 = (int) wxDateTime::Inv_Year ;
17081 int arg2 = (int) wxDateTime::Country_Default ;
17082 wxDateTime result;
17083 PyObject * obj0 = 0 ;
17084 PyObject * obj1 = 0 ;
17085 char *kwnames[] = {
17086 (char *) "year",(char *) "country", NULL
17087 };
17088
17089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
17090 if (obj0) {
17091 arg1 = (int) SWIG_AsInt(obj0);
17092 if (PyErr_Occurred()) SWIG_fail;
17093 }
17094 if (obj1) {
17095 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17096 if (PyErr_Occurred()) SWIG_fail;
17097 }
17098 {
17099 PyThreadState* __tstate = wxPyBeginAllowThreads();
17100 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
17101
17102 wxPyEndAllowThreads(__tstate);
17103 if (PyErr_Occurred()) SWIG_fail;
17104 }
17105 {
17106 wxDateTime * resultptr;
17107 resultptr = new wxDateTime((wxDateTime &) result);
17108 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17109 }
17110 return resultobj;
17111 fail:
17112 return NULL;
17113 }
17114
17115
17116 static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17117 PyObject *resultobj;
17118 int arg1 = (int) wxDateTime::Inv_Year ;
17119 int arg2 = (int) wxDateTime::Country_Default ;
17120 wxDateTime result;
17121 PyObject * obj0 = 0 ;
17122 PyObject * obj1 = 0 ;
17123 char *kwnames[] = {
17124 (char *) "year",(char *) "country", NULL
17125 };
17126
17127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
17128 if (obj0) {
17129 arg1 = (int) SWIG_AsInt(obj0);
17130 if (PyErr_Occurred()) SWIG_fail;
17131 }
17132 if (obj1) {
17133 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17134 if (PyErr_Occurred()) SWIG_fail;
17135 }
17136 {
17137 PyThreadState* __tstate = wxPyBeginAllowThreads();
17138 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
17139
17140 wxPyEndAllowThreads(__tstate);
17141 if (PyErr_Occurred()) SWIG_fail;
17142 }
17143 {
17144 wxDateTime * resultptr;
17145 resultptr = new wxDateTime((wxDateTime &) result);
17146 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17147 }
17148 return resultobj;
17149 fail:
17150 return NULL;
17151 }
17152
17153
17154 static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
17155 PyObject *resultobj;
17156 wxDateTime result;
17157 char *kwnames[] = {
17158 NULL
17159 };
17160
17161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
17162 {
17163 PyThreadState* __tstate = wxPyBeginAllowThreads();
17164 result = wxDateTime::Now();
17165
17166 wxPyEndAllowThreads(__tstate);
17167 if (PyErr_Occurred()) SWIG_fail;
17168 }
17169 {
17170 wxDateTime * resultptr;
17171 resultptr = new wxDateTime((wxDateTime &) result);
17172 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17173 }
17174 return resultobj;
17175 fail:
17176 return NULL;
17177 }
17178
17179
17180 static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) {
17181 PyObject *resultobj;
17182 wxDateTime result;
17183 char *kwnames[] = {
17184 NULL
17185 };
17186
17187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
17188 {
17189 PyThreadState* __tstate = wxPyBeginAllowThreads();
17190 result = wxDateTime::UNow();
17191
17192 wxPyEndAllowThreads(__tstate);
17193 if (PyErr_Occurred()) SWIG_fail;
17194 }
17195 {
17196 wxDateTime * resultptr;
17197 resultptr = new wxDateTime((wxDateTime &) result);
17198 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17199 }
17200 return resultobj;
17201 fail:
17202 return NULL;
17203 }
17204
17205
17206 static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) {
17207 PyObject *resultobj;
17208 wxDateTime result;
17209 char *kwnames[] = {
17210 NULL
17211 };
17212
17213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
17214 {
17215 PyThreadState* __tstate = wxPyBeginAllowThreads();
17216 result = wxDateTime::Today();
17217
17218 wxPyEndAllowThreads(__tstate);
17219 if (PyErr_Occurred()) SWIG_fail;
17220 }
17221 {
17222 wxDateTime * resultptr;
17223 resultptr = new wxDateTime((wxDateTime &) result);
17224 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17225 }
17226 return resultobj;
17227 fail:
17228 return NULL;
17229 }
17230
17231
17232 static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17233 PyObject *resultobj;
17234 wxDateTime *result;
17235 char *kwnames[] = {
17236 NULL
17237 };
17238
17239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
17240 {
17241 PyThreadState* __tstate = wxPyBeginAllowThreads();
17242 result = (wxDateTime *)new wxDateTime();
17243
17244 wxPyEndAllowThreads(__tstate);
17245 if (PyErr_Occurred()) SWIG_fail;
17246 }
17247 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17248 return resultobj;
17249 fail:
17250 return NULL;
17251 }
17252
17253
17254 static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17255 PyObject *resultobj;
17256 time_t arg1 ;
17257 wxDateTime *result;
17258 PyObject * obj0 = 0 ;
17259 char *kwnames[] = {
17260 (char *) "timet", NULL
17261 };
17262
17263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
17264 arg1 = (time_t) SWIG_AsUnsignedInt(obj0);
17265 if (PyErr_Occurred()) SWIG_fail;
17266 {
17267 PyThreadState* __tstate = wxPyBeginAllowThreads();
17268 result = (wxDateTime *)new wxDateTime(arg1);
17269
17270 wxPyEndAllowThreads(__tstate);
17271 if (PyErr_Occurred()) SWIG_fail;
17272 }
17273 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17274 return resultobj;
17275 fail:
17276 return NULL;
17277 }
17278
17279
17280 static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17281 PyObject *resultobj;
17282 double arg1 ;
17283 wxDateTime *result;
17284 PyObject * obj0 = 0 ;
17285 char *kwnames[] = {
17286 (char *) "jdn", NULL
17287 };
17288
17289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
17290 arg1 = (double) SWIG_AsDouble(obj0);
17291 if (PyErr_Occurred()) SWIG_fail;
17292 {
17293 PyThreadState* __tstate = wxPyBeginAllowThreads();
17294 result = (wxDateTime *)new wxDateTime(arg1);
17295
17296 wxPyEndAllowThreads(__tstate);
17297 if (PyErr_Occurred()) SWIG_fail;
17298 }
17299 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17300 return resultobj;
17301 fail:
17302 return NULL;
17303 }
17304
17305
17306 static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17307 PyObject *resultobj;
17308 int arg1 ;
17309 int arg2 = (int) 0 ;
17310 int arg3 = (int) 0 ;
17311 int arg4 = (int) 0 ;
17312 wxDateTime *result;
17313 PyObject * obj0 = 0 ;
17314 PyObject * obj1 = 0 ;
17315 PyObject * obj2 = 0 ;
17316 PyObject * obj3 = 0 ;
17317 char *kwnames[] = {
17318 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17319 };
17320
17321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17322 arg1 = (int) SWIG_AsInt(obj0);
17323 if (PyErr_Occurred()) SWIG_fail;
17324 if (obj1) {
17325 arg2 = (int) SWIG_AsInt(obj1);
17326 if (PyErr_Occurred()) SWIG_fail;
17327 }
17328 if (obj2) {
17329 arg3 = (int) SWIG_AsInt(obj2);
17330 if (PyErr_Occurred()) SWIG_fail;
17331 }
17332 if (obj3) {
17333 arg4 = (int) SWIG_AsInt(obj3);
17334 if (PyErr_Occurred()) SWIG_fail;
17335 }
17336 {
17337 PyThreadState* __tstate = wxPyBeginAllowThreads();
17338 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
17339
17340 wxPyEndAllowThreads(__tstate);
17341 if (PyErr_Occurred()) SWIG_fail;
17342 }
17343 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17344 return resultobj;
17345 fail:
17346 return NULL;
17347 }
17348
17349
17350 static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) {
17351 PyObject *resultobj;
17352 int arg1 ;
17353 int arg2 = (int) wxDateTime::Inv_Month ;
17354 int arg3 = (int) wxDateTime::Inv_Year ;
17355 int arg4 = (int) 0 ;
17356 int arg5 = (int) 0 ;
17357 int arg6 = (int) 0 ;
17358 int arg7 = (int) 0 ;
17359 wxDateTime *result;
17360 PyObject * obj0 = 0 ;
17361 PyObject * obj1 = 0 ;
17362 PyObject * obj2 = 0 ;
17363 PyObject * obj3 = 0 ;
17364 PyObject * obj4 = 0 ;
17365 PyObject * obj5 = 0 ;
17366 PyObject * obj6 = 0 ;
17367 char *kwnames[] = {
17368 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17369 };
17370
17371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17372 arg1 = (int) SWIG_AsInt(obj0);
17373 if (PyErr_Occurred()) SWIG_fail;
17374 if (obj1) {
17375 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17376 if (PyErr_Occurred()) SWIG_fail;
17377 }
17378 if (obj2) {
17379 arg3 = (int) SWIG_AsInt(obj2);
17380 if (PyErr_Occurred()) SWIG_fail;
17381 }
17382 if (obj3) {
17383 arg4 = (int) SWIG_AsInt(obj3);
17384 if (PyErr_Occurred()) SWIG_fail;
17385 }
17386 if (obj4) {
17387 arg5 = (int) SWIG_AsInt(obj4);
17388 if (PyErr_Occurred()) SWIG_fail;
17389 }
17390 if (obj5) {
17391 arg6 = (int) SWIG_AsInt(obj5);
17392 if (PyErr_Occurred()) SWIG_fail;
17393 }
17394 if (obj6) {
17395 arg7 = (int) SWIG_AsInt(obj6);
17396 if (PyErr_Occurred()) SWIG_fail;
17397 }
17398 {
17399 PyThreadState* __tstate = wxPyBeginAllowThreads();
17400 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
17401
17402 wxPyEndAllowThreads(__tstate);
17403 if (PyErr_Occurred()) SWIG_fail;
17404 }
17405 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17406 return resultobj;
17407 fail:
17408 return NULL;
17409 }
17410
17411
17412 static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17413 PyObject *resultobj;
17414 wxDateTime *arg1 = (wxDateTime *) 0 ;
17415 PyObject * obj0 = 0 ;
17416 char *kwnames[] = {
17417 (char *) "self", NULL
17418 };
17419
17420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
17421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17423 {
17424 PyThreadState* __tstate = wxPyBeginAllowThreads();
17425 delete arg1;
17426
17427 wxPyEndAllowThreads(__tstate);
17428 if (PyErr_Occurred()) SWIG_fail;
17429 }
17430 Py_INCREF(Py_None); resultobj = Py_None;
17431 return resultobj;
17432 fail:
17433 return NULL;
17434 }
17435
17436
17437 static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
17438 PyObject *resultobj;
17439 wxDateTime *arg1 = (wxDateTime *) 0 ;
17440 wxDateTime *result;
17441 PyObject * obj0 = 0 ;
17442 char *kwnames[] = {
17443 (char *) "self", NULL
17444 };
17445
17446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
17447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17449 {
17450 PyThreadState* __tstate = wxPyBeginAllowThreads();
17451 {
17452 wxDateTime &_result_ref = (arg1)->SetToCurrent();
17453 result = (wxDateTime *) &_result_ref;
17454 }
17455
17456 wxPyEndAllowThreads(__tstate);
17457 if (PyErr_Occurred()) SWIG_fail;
17458 }
17459 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17460 return resultobj;
17461 fail:
17462 return NULL;
17463 }
17464
17465
17466 static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17467 PyObject *resultobj;
17468 wxDateTime *arg1 = (wxDateTime *) 0 ;
17469 time_t arg2 ;
17470 wxDateTime *result;
17471 PyObject * obj0 = 0 ;
17472 PyObject * obj1 = 0 ;
17473 char *kwnames[] = {
17474 (char *) "self",(char *) "timet", NULL
17475 };
17476
17477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
17478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17480 arg2 = (time_t) SWIG_AsUnsignedInt(obj1);
17481 if (PyErr_Occurred()) SWIG_fail;
17482 {
17483 PyThreadState* __tstate = wxPyBeginAllowThreads();
17484 {
17485 wxDateTime &_result_ref = (arg1)->Set(arg2);
17486 result = (wxDateTime *) &_result_ref;
17487 }
17488
17489 wxPyEndAllowThreads(__tstate);
17490 if (PyErr_Occurred()) SWIG_fail;
17491 }
17492 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17493 return resultobj;
17494 fail:
17495 return NULL;
17496 }
17497
17498
17499 static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17500 PyObject *resultobj;
17501 wxDateTime *arg1 = (wxDateTime *) 0 ;
17502 double arg2 ;
17503 wxDateTime *result;
17504 PyObject * obj0 = 0 ;
17505 PyObject * obj1 = 0 ;
17506 char *kwnames[] = {
17507 (char *) "self",(char *) "jdn", NULL
17508 };
17509
17510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
17511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17513 arg2 = (double) SWIG_AsDouble(obj1);
17514 if (PyErr_Occurred()) SWIG_fail;
17515 {
17516 PyThreadState* __tstate = wxPyBeginAllowThreads();
17517 {
17518 wxDateTime &_result_ref = (arg1)->Set(arg2);
17519 result = (wxDateTime *) &_result_ref;
17520 }
17521
17522 wxPyEndAllowThreads(__tstate);
17523 if (PyErr_Occurred()) SWIG_fail;
17524 }
17525 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17526 return resultobj;
17527 fail:
17528 return NULL;
17529 }
17530
17531
17532 static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17533 PyObject *resultobj;
17534 wxDateTime *arg1 = (wxDateTime *) 0 ;
17535 int arg2 ;
17536 int arg3 = (int) 0 ;
17537 int arg4 = (int) 0 ;
17538 int arg5 = (int) 0 ;
17539 wxDateTime *result;
17540 PyObject * obj0 = 0 ;
17541 PyObject * obj1 = 0 ;
17542 PyObject * obj2 = 0 ;
17543 PyObject * obj3 = 0 ;
17544 PyObject * obj4 = 0 ;
17545 char *kwnames[] = {
17546 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17547 };
17548
17549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17552 arg2 = (int) SWIG_AsInt(obj1);
17553 if (PyErr_Occurred()) SWIG_fail;
17554 if (obj2) {
17555 arg3 = (int) SWIG_AsInt(obj2);
17556 if (PyErr_Occurred()) SWIG_fail;
17557 }
17558 if (obj3) {
17559 arg4 = (int) SWIG_AsInt(obj3);
17560 if (PyErr_Occurred()) SWIG_fail;
17561 }
17562 if (obj4) {
17563 arg5 = (int) SWIG_AsInt(obj4);
17564 if (PyErr_Occurred()) SWIG_fail;
17565 }
17566 {
17567 PyThreadState* __tstate = wxPyBeginAllowThreads();
17568 {
17569 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
17570 result = (wxDateTime *) &_result_ref;
17571 }
17572
17573 wxPyEndAllowThreads(__tstate);
17574 if (PyErr_Occurred()) SWIG_fail;
17575 }
17576 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17577 return resultobj;
17578 fail:
17579 return NULL;
17580 }
17581
17582
17583 static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17584 PyObject *resultobj;
17585 wxDateTime *arg1 = (wxDateTime *) 0 ;
17586 int arg2 ;
17587 int arg3 = (int) wxDateTime::Inv_Month ;
17588 int arg4 = (int) wxDateTime::Inv_Year ;
17589 int arg5 = (int) 0 ;
17590 int arg6 = (int) 0 ;
17591 int arg7 = (int) 0 ;
17592 int arg8 = (int) 0 ;
17593 wxDateTime *result;
17594 PyObject * obj0 = 0 ;
17595 PyObject * obj1 = 0 ;
17596 PyObject * obj2 = 0 ;
17597 PyObject * obj3 = 0 ;
17598 PyObject * obj4 = 0 ;
17599 PyObject * obj5 = 0 ;
17600 PyObject * obj6 = 0 ;
17601 PyObject * obj7 = 0 ;
17602 char *kwnames[] = {
17603 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17604 };
17605
17606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17609 arg2 = (int) SWIG_AsInt(obj1);
17610 if (PyErr_Occurred()) SWIG_fail;
17611 if (obj2) {
17612 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
17613 if (PyErr_Occurred()) SWIG_fail;
17614 }
17615 if (obj3) {
17616 arg4 = (int) SWIG_AsInt(obj3);
17617 if (PyErr_Occurred()) SWIG_fail;
17618 }
17619 if (obj4) {
17620 arg5 = (int) SWIG_AsInt(obj4);
17621 if (PyErr_Occurred()) SWIG_fail;
17622 }
17623 if (obj5) {
17624 arg6 = (int) SWIG_AsInt(obj5);
17625 if (PyErr_Occurred()) SWIG_fail;
17626 }
17627 if (obj6) {
17628 arg7 = (int) SWIG_AsInt(obj6);
17629 if (PyErr_Occurred()) SWIG_fail;
17630 }
17631 if (obj7) {
17632 arg8 = (int) SWIG_AsInt(obj7);
17633 if (PyErr_Occurred()) SWIG_fail;
17634 }
17635 {
17636 PyThreadState* __tstate = wxPyBeginAllowThreads();
17637 {
17638 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
17639 result = (wxDateTime *) &_result_ref;
17640 }
17641
17642 wxPyEndAllowThreads(__tstate);
17643 if (PyErr_Occurred()) SWIG_fail;
17644 }
17645 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17646 return resultobj;
17647 fail:
17648 return NULL;
17649 }
17650
17651
17652 static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17653 PyObject *resultobj;
17654 wxDateTime *arg1 = (wxDateTime *) 0 ;
17655 wxDateTime *result;
17656 PyObject * obj0 = 0 ;
17657 char *kwnames[] = {
17658 (char *) "self", NULL
17659 };
17660
17661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
17662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17664 {
17665 PyThreadState* __tstate = wxPyBeginAllowThreads();
17666 {
17667 wxDateTime &_result_ref = (arg1)->ResetTime();
17668 result = (wxDateTime *) &_result_ref;
17669 }
17670
17671 wxPyEndAllowThreads(__tstate);
17672 if (PyErr_Occurred()) SWIG_fail;
17673 }
17674 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17675 return resultobj;
17676 fail:
17677 return NULL;
17678 }
17679
17680
17681 static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17682 PyObject *resultobj;
17683 wxDateTime *arg1 = (wxDateTime *) 0 ;
17684 int arg2 ;
17685 wxDateTime *result;
17686 PyObject * obj0 = 0 ;
17687 PyObject * obj1 = 0 ;
17688 char *kwnames[] = {
17689 (char *) "self",(char *) "year", NULL
17690 };
17691
17692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
17693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17695 arg2 = (int) SWIG_AsInt(obj1);
17696 if (PyErr_Occurred()) SWIG_fail;
17697 {
17698 PyThreadState* __tstate = wxPyBeginAllowThreads();
17699 {
17700 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
17701 result = (wxDateTime *) &_result_ref;
17702 }
17703
17704 wxPyEndAllowThreads(__tstate);
17705 if (PyErr_Occurred()) SWIG_fail;
17706 }
17707 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17708 return resultobj;
17709 fail:
17710 return NULL;
17711 }
17712
17713
17714 static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17715 PyObject *resultobj;
17716 wxDateTime *arg1 = (wxDateTime *) 0 ;
17717 int arg2 ;
17718 wxDateTime *result;
17719 PyObject * obj0 = 0 ;
17720 PyObject * obj1 = 0 ;
17721 char *kwnames[] = {
17722 (char *) "self",(char *) "month", NULL
17723 };
17724
17725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
17726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17728 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17729 if (PyErr_Occurred()) SWIG_fail;
17730 {
17731 PyThreadState* __tstate = wxPyBeginAllowThreads();
17732 {
17733 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
17734 result = (wxDateTime *) &_result_ref;
17735 }
17736
17737 wxPyEndAllowThreads(__tstate);
17738 if (PyErr_Occurred()) SWIG_fail;
17739 }
17740 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17741 return resultobj;
17742 fail:
17743 return NULL;
17744 }
17745
17746
17747 static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17748 PyObject *resultobj;
17749 wxDateTime *arg1 = (wxDateTime *) 0 ;
17750 int arg2 ;
17751 wxDateTime *result;
17752 PyObject * obj0 = 0 ;
17753 PyObject * obj1 = 0 ;
17754 char *kwnames[] = {
17755 (char *) "self",(char *) "day", NULL
17756 };
17757
17758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
17759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17761 arg2 = (int) SWIG_AsInt(obj1);
17762 if (PyErr_Occurred()) SWIG_fail;
17763 {
17764 PyThreadState* __tstate = wxPyBeginAllowThreads();
17765 {
17766 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
17767 result = (wxDateTime *) &_result_ref;
17768 }
17769
17770 wxPyEndAllowThreads(__tstate);
17771 if (PyErr_Occurred()) SWIG_fail;
17772 }
17773 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17774 return resultobj;
17775 fail:
17776 return NULL;
17777 }
17778
17779
17780 static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
17781 PyObject *resultobj;
17782 wxDateTime *arg1 = (wxDateTime *) 0 ;
17783 int arg2 ;
17784 wxDateTime *result;
17785 PyObject * obj0 = 0 ;
17786 PyObject * obj1 = 0 ;
17787 char *kwnames[] = {
17788 (char *) "self",(char *) "hour", NULL
17789 };
17790
17791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
17792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17794 arg2 = (int) SWIG_AsInt(obj1);
17795 if (PyErr_Occurred()) SWIG_fail;
17796 {
17797 PyThreadState* __tstate = wxPyBeginAllowThreads();
17798 {
17799 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
17800 result = (wxDateTime *) &_result_ref;
17801 }
17802
17803 wxPyEndAllowThreads(__tstate);
17804 if (PyErr_Occurred()) SWIG_fail;
17805 }
17806 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17807 return resultobj;
17808 fail:
17809 return NULL;
17810 }
17811
17812
17813 static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
17814 PyObject *resultobj;
17815 wxDateTime *arg1 = (wxDateTime *) 0 ;
17816 int arg2 ;
17817 wxDateTime *result;
17818 PyObject * obj0 = 0 ;
17819 PyObject * obj1 = 0 ;
17820 char *kwnames[] = {
17821 (char *) "self",(char *) "minute", NULL
17822 };
17823
17824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
17825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17827 arg2 = (int) SWIG_AsInt(obj1);
17828 if (PyErr_Occurred()) SWIG_fail;
17829 {
17830 PyThreadState* __tstate = wxPyBeginAllowThreads();
17831 {
17832 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
17833 result = (wxDateTime *) &_result_ref;
17834 }
17835
17836 wxPyEndAllowThreads(__tstate);
17837 if (PyErr_Occurred()) SWIG_fail;
17838 }
17839 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17840 return resultobj;
17841 fail:
17842 return NULL;
17843 }
17844
17845
17846 static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
17847 PyObject *resultobj;
17848 wxDateTime *arg1 = (wxDateTime *) 0 ;
17849 int arg2 ;
17850 wxDateTime *result;
17851 PyObject * obj0 = 0 ;
17852 PyObject * obj1 = 0 ;
17853 char *kwnames[] = {
17854 (char *) "self",(char *) "second", NULL
17855 };
17856
17857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
17858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17860 arg2 = (int) SWIG_AsInt(obj1);
17861 if (PyErr_Occurred()) SWIG_fail;
17862 {
17863 PyThreadState* __tstate = wxPyBeginAllowThreads();
17864 {
17865 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
17866 result = (wxDateTime *) &_result_ref;
17867 }
17868
17869 wxPyEndAllowThreads(__tstate);
17870 if (PyErr_Occurred()) SWIG_fail;
17871 }
17872 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17873 return resultobj;
17874 fail:
17875 return NULL;
17876 }
17877
17878
17879 static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
17880 PyObject *resultobj;
17881 wxDateTime *arg1 = (wxDateTime *) 0 ;
17882 int arg2 ;
17883 wxDateTime *result;
17884 PyObject * obj0 = 0 ;
17885 PyObject * obj1 = 0 ;
17886 char *kwnames[] = {
17887 (char *) "self",(char *) "millisecond", NULL
17888 };
17889
17890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
17891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17893 arg2 = (int) SWIG_AsInt(obj1);
17894 if (PyErr_Occurred()) SWIG_fail;
17895 {
17896 PyThreadState* __tstate = wxPyBeginAllowThreads();
17897 {
17898 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
17899 result = (wxDateTime *) &_result_ref;
17900 }
17901
17902 wxPyEndAllowThreads(__tstate);
17903 if (PyErr_Occurred()) SWIG_fail;
17904 }
17905 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17906 return resultobj;
17907 fail:
17908 return NULL;
17909 }
17910
17911
17912 static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
17913 PyObject *resultobj;
17914 wxDateTime *arg1 = (wxDateTime *) 0 ;
17915 int arg2 ;
17916 int arg3 = (int) wxDateTime::Monday_First ;
17917 wxDateTime *result;
17918 PyObject * obj0 = 0 ;
17919 PyObject * obj1 = 0 ;
17920 PyObject * obj2 = 0 ;
17921 char *kwnames[] = {
17922 (char *) "self",(char *) "weekday",(char *) "flags", NULL
17923 };
17924
17925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
17926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17928 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17929 if (PyErr_Occurred()) SWIG_fail;
17930 if (obj2) {
17931 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
17932 if (PyErr_Occurred()) SWIG_fail;
17933 }
17934 {
17935 PyThreadState* __tstate = wxPyBeginAllowThreads();
17936 {
17937 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
17938 result = (wxDateTime *) &_result_ref;
17939 }
17940
17941 wxPyEndAllowThreads(__tstate);
17942 if (PyErr_Occurred()) SWIG_fail;
17943 }
17944 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17945 return resultobj;
17946 fail:
17947 return NULL;
17948 }
17949
17950
17951 static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
17952 PyObject *resultobj;
17953 wxDateTime *arg1 = (wxDateTime *) 0 ;
17954 int arg2 ;
17955 int arg3 = (int) wxDateTime::Monday_First ;
17956 wxDateTime result;
17957 PyObject * obj0 = 0 ;
17958 PyObject * obj1 = 0 ;
17959 PyObject * obj2 = 0 ;
17960 char *kwnames[] = {
17961 (char *) "self",(char *) "weekday",(char *) "flags", NULL
17962 };
17963
17964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
17965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17967 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17968 if (PyErr_Occurred()) SWIG_fail;
17969 if (obj2) {
17970 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
17971 if (PyErr_Occurred()) SWIG_fail;
17972 }
17973 {
17974 PyThreadState* __tstate = wxPyBeginAllowThreads();
17975 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
17976
17977 wxPyEndAllowThreads(__tstate);
17978 if (PyErr_Occurred()) SWIG_fail;
17979 }
17980 {
17981 wxDateTime * resultptr;
17982 resultptr = new wxDateTime((wxDateTime &) result);
17983 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17984 }
17985 return resultobj;
17986 fail:
17987 return NULL;
17988 }
17989
17990
17991 static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17992 PyObject *resultobj;
17993 wxDateTime *arg1 = (wxDateTime *) 0 ;
17994 int arg2 ;
17995 wxDateTime *result;
17996 PyObject * obj0 = 0 ;
17997 PyObject * obj1 = 0 ;
17998 char *kwnames[] = {
17999 (char *) "self",(char *) "weekday", NULL
18000 };
18001
18002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18005 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18006 if (PyErr_Occurred()) SWIG_fail;
18007 {
18008 PyThreadState* __tstate = wxPyBeginAllowThreads();
18009 {
18010 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
18011 result = (wxDateTime *) &_result_ref;
18012 }
18013
18014 wxPyEndAllowThreads(__tstate);
18015 if (PyErr_Occurred()) SWIG_fail;
18016 }
18017 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18018 return resultobj;
18019 fail:
18020 return NULL;
18021 }
18022
18023
18024 static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18025 PyObject *resultobj;
18026 wxDateTime *arg1 = (wxDateTime *) 0 ;
18027 int arg2 ;
18028 wxDateTime result;
18029 PyObject * obj0 = 0 ;
18030 PyObject * obj1 = 0 ;
18031 char *kwnames[] = {
18032 (char *) "self",(char *) "weekday", NULL
18033 };
18034
18035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18038 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18039 if (PyErr_Occurred()) SWIG_fail;
18040 {
18041 PyThreadState* __tstate = wxPyBeginAllowThreads();
18042 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
18043
18044 wxPyEndAllowThreads(__tstate);
18045 if (PyErr_Occurred()) SWIG_fail;
18046 }
18047 {
18048 wxDateTime * resultptr;
18049 resultptr = new wxDateTime((wxDateTime &) result);
18050 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18051 }
18052 return resultobj;
18053 fail:
18054 return NULL;
18055 }
18056
18057
18058 static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18059 PyObject *resultobj;
18060 wxDateTime *arg1 = (wxDateTime *) 0 ;
18061 int arg2 ;
18062 wxDateTime *result;
18063 PyObject * obj0 = 0 ;
18064 PyObject * obj1 = 0 ;
18065 char *kwnames[] = {
18066 (char *) "self",(char *) "weekday", NULL
18067 };
18068
18069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18072 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18073 if (PyErr_Occurred()) SWIG_fail;
18074 {
18075 PyThreadState* __tstate = wxPyBeginAllowThreads();
18076 {
18077 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
18078 result = (wxDateTime *) &_result_ref;
18079 }
18080
18081 wxPyEndAllowThreads(__tstate);
18082 if (PyErr_Occurred()) SWIG_fail;
18083 }
18084 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18085 return resultobj;
18086 fail:
18087 return NULL;
18088 }
18089
18090
18091 static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18092 PyObject *resultobj;
18093 wxDateTime *arg1 = (wxDateTime *) 0 ;
18094 int arg2 ;
18095 wxDateTime result;
18096 PyObject * obj0 = 0 ;
18097 PyObject * obj1 = 0 ;
18098 char *kwnames[] = {
18099 (char *) "self",(char *) "weekday", NULL
18100 };
18101
18102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18105 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18106 if (PyErr_Occurred()) SWIG_fail;
18107 {
18108 PyThreadState* __tstate = wxPyBeginAllowThreads();
18109 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2);
18110
18111 wxPyEndAllowThreads(__tstate);
18112 if (PyErr_Occurred()) SWIG_fail;
18113 }
18114 {
18115 wxDateTime * resultptr;
18116 resultptr = new wxDateTime((wxDateTime &) result);
18117 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18118 }
18119 return resultobj;
18120 fail:
18121 return NULL;
18122 }
18123
18124
18125 static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18126 PyObject *resultobj;
18127 wxDateTime *arg1 = (wxDateTime *) 0 ;
18128 int arg2 ;
18129 int arg3 = (int) 1 ;
18130 int arg4 = (int) wxDateTime::Inv_Month ;
18131 int arg5 = (int) wxDateTime::Inv_Year ;
18132 bool result;
18133 PyObject * obj0 = 0 ;
18134 PyObject * obj1 = 0 ;
18135 PyObject * obj2 = 0 ;
18136 PyObject * obj3 = 0 ;
18137 PyObject * obj4 = 0 ;
18138 char *kwnames[] = {
18139 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
18140 };
18141
18142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18145 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18146 if (PyErr_Occurred()) SWIG_fail;
18147 if (obj2) {
18148 arg3 = (int) SWIG_AsInt(obj2);
18149 if (PyErr_Occurred()) SWIG_fail;
18150 }
18151 if (obj3) {
18152 arg4 = (wxDateTime::Month) SWIG_AsInt(obj3);
18153 if (PyErr_Occurred()) SWIG_fail;
18154 }
18155 if (obj4) {
18156 arg5 = (int) SWIG_AsInt(obj4);
18157 if (PyErr_Occurred()) SWIG_fail;
18158 }
18159 {
18160 PyThreadState* __tstate = wxPyBeginAllowThreads();
18161 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
18162
18163 wxPyEndAllowThreads(__tstate);
18164 if (PyErr_Occurred()) SWIG_fail;
18165 }
18166 {
18167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18168 }
18169 return resultobj;
18170 fail:
18171 return NULL;
18172 }
18173
18174
18175 static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18176 PyObject *resultobj;
18177 wxDateTime *arg1 = (wxDateTime *) 0 ;
18178 int arg2 ;
18179 int arg3 = (int) wxDateTime::Inv_Month ;
18180 int arg4 = (int) wxDateTime::Inv_Year ;
18181 bool result;
18182 PyObject * obj0 = 0 ;
18183 PyObject * obj1 = 0 ;
18184 PyObject * obj2 = 0 ;
18185 PyObject * obj3 = 0 ;
18186 char *kwnames[] = {
18187 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18188 };
18189
18190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18193 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18194 if (PyErr_Occurred()) SWIG_fail;
18195 if (obj2) {
18196 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18197 if (PyErr_Occurred()) SWIG_fail;
18198 }
18199 if (obj3) {
18200 arg4 = (int) SWIG_AsInt(obj3);
18201 if (PyErr_Occurred()) SWIG_fail;
18202 }
18203 {
18204 PyThreadState* __tstate = wxPyBeginAllowThreads();
18205 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18206
18207 wxPyEndAllowThreads(__tstate);
18208 if (PyErr_Occurred()) SWIG_fail;
18209 }
18210 {
18211 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18212 }
18213 return resultobj;
18214 fail:
18215 return NULL;
18216 }
18217
18218
18219 static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18220 PyObject *resultobj;
18221 wxDateTime *arg1 = (wxDateTime *) 0 ;
18222 int arg2 ;
18223 int arg3 = (int) wxDateTime::Inv_Month ;
18224 int arg4 = (int) wxDateTime::Inv_Year ;
18225 wxDateTime result;
18226 PyObject * obj0 = 0 ;
18227 PyObject * obj1 = 0 ;
18228 PyObject * obj2 = 0 ;
18229 PyObject * obj3 = 0 ;
18230 char *kwnames[] = {
18231 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18232 };
18233
18234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18237 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18238 if (PyErr_Occurred()) SWIG_fail;
18239 if (obj2) {
18240 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18241 if (PyErr_Occurred()) SWIG_fail;
18242 }
18243 if (obj3) {
18244 arg4 = (int) SWIG_AsInt(obj3);
18245 if (PyErr_Occurred()) SWIG_fail;
18246 }
18247 {
18248 PyThreadState* __tstate = wxPyBeginAllowThreads();
18249 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18250
18251 wxPyEndAllowThreads(__tstate);
18252 if (PyErr_Occurred()) SWIG_fail;
18253 }
18254 {
18255 wxDateTime * resultptr;
18256 resultptr = new wxDateTime((wxDateTime &) result);
18257 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18258 }
18259 return resultobj;
18260 fail:
18261 return NULL;
18262 }
18263
18264
18265 static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18266 PyObject *resultobj;
18267 wxDateTime *arg1 = (wxDateTime *) 0 ;
18268 int arg2 ;
18269 int arg3 = (int) wxDateTime::Mon ;
18270 int arg4 = (int) wxDateTime::Monday_First ;
18271 bool result;
18272 PyObject * obj0 = 0 ;
18273 PyObject * obj1 = 0 ;
18274 PyObject * obj2 = 0 ;
18275 PyObject * obj3 = 0 ;
18276 char *kwnames[] = {
18277 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18278 };
18279
18280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18283 arg2 = (int) SWIG_AsInt(obj1);
18284 if (PyErr_Occurred()) SWIG_fail;
18285 if (obj2) {
18286 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18287 if (PyErr_Occurred()) SWIG_fail;
18288 }
18289 if (obj3) {
18290 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18291 if (PyErr_Occurred()) SWIG_fail;
18292 }
18293 {
18294 PyThreadState* __tstate = wxPyBeginAllowThreads();
18295 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18296
18297 wxPyEndAllowThreads(__tstate);
18298 if (PyErr_Occurred()) SWIG_fail;
18299 }
18300 {
18301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18302 }
18303 return resultobj;
18304 fail:
18305 return NULL;
18306 }
18307
18308
18309 static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18310 PyObject *resultobj;
18311 wxDateTime *arg1 = (wxDateTime *) 0 ;
18312 int arg2 ;
18313 int arg3 = (int) wxDateTime::Mon ;
18314 int arg4 = (int) wxDateTime::Monday_First ;
18315 wxDateTime result;
18316 PyObject * obj0 = 0 ;
18317 PyObject * obj1 = 0 ;
18318 PyObject * obj2 = 0 ;
18319 PyObject * obj3 = 0 ;
18320 char *kwnames[] = {
18321 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18322 };
18323
18324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18327 arg2 = (int) SWIG_AsInt(obj1);
18328 if (PyErr_Occurred()) SWIG_fail;
18329 if (obj2) {
18330 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18331 if (PyErr_Occurred()) SWIG_fail;
18332 }
18333 if (obj3) {
18334 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18335 if (PyErr_Occurred()) SWIG_fail;
18336 }
18337 {
18338 PyThreadState* __tstate = wxPyBeginAllowThreads();
18339 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18340
18341 wxPyEndAllowThreads(__tstate);
18342 if (PyErr_Occurred()) SWIG_fail;
18343 }
18344 {
18345 wxDateTime * resultptr;
18346 resultptr = new wxDateTime((wxDateTime &) result);
18347 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18348 }
18349 return resultobj;
18350 fail:
18351 return NULL;
18352 }
18353
18354
18355 static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18356 PyObject *resultobj;
18357 wxDateTime *arg1 = (wxDateTime *) 0 ;
18358 int arg2 = (int) wxDateTime::Inv_Month ;
18359 int arg3 = (int) wxDateTime::Inv_Year ;
18360 wxDateTime *result;
18361 PyObject * obj0 = 0 ;
18362 PyObject * obj1 = 0 ;
18363 PyObject * obj2 = 0 ;
18364 char *kwnames[] = {
18365 (char *) "self",(char *) "month",(char *) "year", NULL
18366 };
18367
18368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18371 if (obj1) {
18372 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18373 if (PyErr_Occurred()) SWIG_fail;
18374 }
18375 if (obj2) {
18376 arg3 = (int) SWIG_AsInt(obj2);
18377 if (PyErr_Occurred()) SWIG_fail;
18378 }
18379 {
18380 PyThreadState* __tstate = wxPyBeginAllowThreads();
18381 {
18382 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
18383 result = (wxDateTime *) &_result_ref;
18384 }
18385
18386 wxPyEndAllowThreads(__tstate);
18387 if (PyErr_Occurred()) SWIG_fail;
18388 }
18389 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18390 return resultobj;
18391 fail:
18392 return NULL;
18393 }
18394
18395
18396 static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18397 PyObject *resultobj;
18398 wxDateTime *arg1 = (wxDateTime *) 0 ;
18399 int arg2 = (int) wxDateTime::Inv_Month ;
18400 int arg3 = (int) wxDateTime::Inv_Year ;
18401 wxDateTime result;
18402 PyObject * obj0 = 0 ;
18403 PyObject * obj1 = 0 ;
18404 PyObject * obj2 = 0 ;
18405 char *kwnames[] = {
18406 (char *) "self",(char *) "month",(char *) "year", NULL
18407 };
18408
18409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18412 if (obj1) {
18413 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18414 if (PyErr_Occurred()) SWIG_fail;
18415 }
18416 if (obj2) {
18417 arg3 = (int) SWIG_AsInt(obj2);
18418 if (PyErr_Occurred()) SWIG_fail;
18419 }
18420 {
18421 PyThreadState* __tstate = wxPyBeginAllowThreads();
18422 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
18423
18424 wxPyEndAllowThreads(__tstate);
18425 if (PyErr_Occurred()) SWIG_fail;
18426 }
18427 {
18428 wxDateTime * resultptr;
18429 resultptr = new wxDateTime((wxDateTime &) result);
18430 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18431 }
18432 return resultobj;
18433 fail:
18434 return NULL;
18435 }
18436
18437
18438 static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18439 PyObject *resultobj;
18440 wxDateTime *arg1 = (wxDateTime *) 0 ;
18441 int arg2 ;
18442 wxDateTime *result;
18443 PyObject * obj0 = 0 ;
18444 PyObject * obj1 = 0 ;
18445 char *kwnames[] = {
18446 (char *) "self",(char *) "yday", NULL
18447 };
18448
18449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
18450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18452 arg2 = (int) SWIG_AsInt(obj1);
18453 if (PyErr_Occurred()) SWIG_fail;
18454 {
18455 PyThreadState* __tstate = wxPyBeginAllowThreads();
18456 {
18457 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
18458 result = (wxDateTime *) &_result_ref;
18459 }
18460
18461 wxPyEndAllowThreads(__tstate);
18462 if (PyErr_Occurred()) SWIG_fail;
18463 }
18464 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18465 return resultobj;
18466 fail:
18467 return NULL;
18468 }
18469
18470
18471 static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18472 PyObject *resultobj;
18473 wxDateTime *arg1 = (wxDateTime *) 0 ;
18474 int arg2 ;
18475 wxDateTime result;
18476 PyObject * obj0 = 0 ;
18477 PyObject * obj1 = 0 ;
18478 char *kwnames[] = {
18479 (char *) "self",(char *) "yday", NULL
18480 };
18481
18482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
18483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18485 arg2 = (int) SWIG_AsInt(obj1);
18486 if (PyErr_Occurred()) SWIG_fail;
18487 {
18488 PyThreadState* __tstate = wxPyBeginAllowThreads();
18489 result = (arg1)->GetYearDay(arg2);
18490
18491 wxPyEndAllowThreads(__tstate);
18492 if (PyErr_Occurred()) SWIG_fail;
18493 }
18494 {
18495 wxDateTime * resultptr;
18496 resultptr = new wxDateTime((wxDateTime &) result);
18497 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18498 }
18499 return resultobj;
18500 fail:
18501 return NULL;
18502 }
18503
18504
18505 static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18506 PyObject *resultobj;
18507 wxDateTime *arg1 = (wxDateTime *) 0 ;
18508 double result;
18509 PyObject * obj0 = 0 ;
18510 char *kwnames[] = {
18511 (char *) "self", NULL
18512 };
18513
18514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
18515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18517 {
18518 PyThreadState* __tstate = wxPyBeginAllowThreads();
18519 result = (double)(arg1)->GetJulianDayNumber();
18520
18521 wxPyEndAllowThreads(__tstate);
18522 if (PyErr_Occurred()) SWIG_fail;
18523 }
18524 resultobj = SWIG_FromDouble((double)result);
18525 return resultobj;
18526 fail:
18527 return NULL;
18528 }
18529
18530
18531 static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
18532 PyObject *resultobj;
18533 wxDateTime *arg1 = (wxDateTime *) 0 ;
18534 double result;
18535 PyObject * obj0 = 0 ;
18536 char *kwnames[] = {
18537 (char *) "self", NULL
18538 };
18539
18540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
18541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18543 {
18544 PyThreadState* __tstate = wxPyBeginAllowThreads();
18545 result = (double)(arg1)->GetJDN();
18546
18547 wxPyEndAllowThreads(__tstate);
18548 if (PyErr_Occurred()) SWIG_fail;
18549 }
18550 resultobj = SWIG_FromDouble((double)result);
18551 return resultobj;
18552 fail:
18553 return NULL;
18554 }
18555
18556
18557 static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18558 PyObject *resultobj;
18559 wxDateTime *arg1 = (wxDateTime *) 0 ;
18560 double result;
18561 PyObject * obj0 = 0 ;
18562 char *kwnames[] = {
18563 (char *) "self", NULL
18564 };
18565
18566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
18567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18569 {
18570 PyThreadState* __tstate = wxPyBeginAllowThreads();
18571 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
18572
18573 wxPyEndAllowThreads(__tstate);
18574 if (PyErr_Occurred()) SWIG_fail;
18575 }
18576 resultobj = SWIG_FromDouble((double)result);
18577 return resultobj;
18578 fail:
18579 return NULL;
18580 }
18581
18582
18583 static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) {
18584 PyObject *resultobj;
18585 wxDateTime *arg1 = (wxDateTime *) 0 ;
18586 double result;
18587 PyObject * obj0 = 0 ;
18588 char *kwnames[] = {
18589 (char *) "self", NULL
18590 };
18591
18592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
18593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18595 {
18596 PyThreadState* __tstate = wxPyBeginAllowThreads();
18597 result = (double)(arg1)->GetMJD();
18598
18599 wxPyEndAllowThreads(__tstate);
18600 if (PyErr_Occurred()) SWIG_fail;
18601 }
18602 resultobj = SWIG_FromDouble((double)result);
18603 return resultobj;
18604 fail:
18605 return NULL;
18606 }
18607
18608
18609 static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) {
18610 PyObject *resultobj;
18611 wxDateTime *arg1 = (wxDateTime *) 0 ;
18612 double result;
18613 PyObject * obj0 = 0 ;
18614 char *kwnames[] = {
18615 (char *) "self", NULL
18616 };
18617
18618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
18619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18621 {
18622 PyThreadState* __tstate = wxPyBeginAllowThreads();
18623 result = (double)(arg1)->GetRataDie();
18624
18625 wxPyEndAllowThreads(__tstate);
18626 if (PyErr_Occurred()) SWIG_fail;
18627 }
18628 resultobj = SWIG_FromDouble((double)result);
18629 return resultobj;
18630 fail:
18631 return NULL;
18632 }
18633
18634
18635 static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18636 PyObject *resultobj;
18637 wxDateTime *arg1 = (wxDateTime *) 0 ;
18638 wxDateTime::TimeZone *arg2 = 0 ;
18639 bool arg3 = (bool) False ;
18640 wxDateTime result;
18641 bool temp2 = False ;
18642 PyObject * obj0 = 0 ;
18643 PyObject * obj1 = 0 ;
18644 PyObject * obj2 = 0 ;
18645 char *kwnames[] = {
18646 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18647 };
18648
18649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18652 {
18653 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18654 temp2 = True;
18655 }
18656 if (obj2) {
18657 arg3 = (bool) SWIG_AsBool(obj2);
18658 if (PyErr_Occurred()) SWIG_fail;
18659 }
18660 {
18661 PyThreadState* __tstate = wxPyBeginAllowThreads();
18662 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18663
18664 wxPyEndAllowThreads(__tstate);
18665 if (PyErr_Occurred()) SWIG_fail;
18666 }
18667 {
18668 wxDateTime * resultptr;
18669 resultptr = new wxDateTime((wxDateTime &) result);
18670 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18671 }
18672 {
18673 if (temp2) delete arg2;
18674 }
18675 return resultobj;
18676 fail:
18677 {
18678 if (temp2) delete arg2;
18679 }
18680 return NULL;
18681 }
18682
18683
18684 static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18685 PyObject *resultobj;
18686 wxDateTime *arg1 = (wxDateTime *) 0 ;
18687 wxDateTime::TimeZone *arg2 = 0 ;
18688 bool arg3 = (bool) False ;
18689 wxDateTime *result;
18690 bool temp2 = False ;
18691 PyObject * obj0 = 0 ;
18692 PyObject * obj1 = 0 ;
18693 PyObject * obj2 = 0 ;
18694 char *kwnames[] = {
18695 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18696 };
18697
18698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18701 {
18702 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18703 temp2 = True;
18704 }
18705 if (obj2) {
18706 arg3 = (bool) SWIG_AsBool(obj2);
18707 if (PyErr_Occurred()) SWIG_fail;
18708 }
18709 {
18710 PyThreadState* __tstate = wxPyBeginAllowThreads();
18711 {
18712 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18713 result = (wxDateTime *) &_result_ref;
18714 }
18715
18716 wxPyEndAllowThreads(__tstate);
18717 if (PyErr_Occurred()) SWIG_fail;
18718 }
18719 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18720 {
18721 if (temp2) delete arg2;
18722 }
18723 return resultobj;
18724 fail:
18725 {
18726 if (temp2) delete arg2;
18727 }
18728 return NULL;
18729 }
18730
18731
18732 static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18733 PyObject *resultobj;
18734 wxDateTime *arg1 = (wxDateTime *) 0 ;
18735 bool arg2 = (bool) False ;
18736 wxDateTime result;
18737 PyObject * obj0 = 0 ;
18738 PyObject * obj1 = 0 ;
18739 char *kwnames[] = {
18740 (char *) "self",(char *) "noDST", NULL
18741 };
18742
18743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
18744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18746 if (obj1) {
18747 arg2 = (bool) SWIG_AsBool(obj1);
18748 if (PyErr_Occurred()) SWIG_fail;
18749 }
18750 {
18751 PyThreadState* __tstate = wxPyBeginAllowThreads();
18752 result = (arg1)->ToGMT(arg2);
18753
18754 wxPyEndAllowThreads(__tstate);
18755 if (PyErr_Occurred()) SWIG_fail;
18756 }
18757 {
18758 wxDateTime * resultptr;
18759 resultptr = new wxDateTime((wxDateTime &) result);
18760 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18761 }
18762 return resultobj;
18763 fail:
18764 return NULL;
18765 }
18766
18767
18768 static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18769 PyObject *resultobj;
18770 wxDateTime *arg1 = (wxDateTime *) 0 ;
18771 bool arg2 = (bool) False ;
18772 wxDateTime *result;
18773 PyObject * obj0 = 0 ;
18774 PyObject * obj1 = 0 ;
18775 char *kwnames[] = {
18776 (char *) "self",(char *) "noDST", NULL
18777 };
18778
18779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
18780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18782 if (obj1) {
18783 arg2 = (bool) SWIG_AsBool(obj1);
18784 if (PyErr_Occurred()) SWIG_fail;
18785 }
18786 {
18787 PyThreadState* __tstate = wxPyBeginAllowThreads();
18788 {
18789 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
18790 result = (wxDateTime *) &_result_ref;
18791 }
18792
18793 wxPyEndAllowThreads(__tstate);
18794 if (PyErr_Occurred()) SWIG_fail;
18795 }
18796 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18797 return resultobj;
18798 fail:
18799 return NULL;
18800 }
18801
18802
18803 static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) {
18804 PyObject *resultobj;
18805 wxDateTime *arg1 = (wxDateTime *) 0 ;
18806 int arg2 = (int) wxDateTime::Country_Default ;
18807 int result;
18808 PyObject * obj0 = 0 ;
18809 PyObject * obj1 = 0 ;
18810 char *kwnames[] = {
18811 (char *) "self",(char *) "country", NULL
18812 };
18813
18814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
18815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18817 if (obj1) {
18818 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
18819 if (PyErr_Occurred()) SWIG_fail;
18820 }
18821 {
18822 PyThreadState* __tstate = wxPyBeginAllowThreads();
18823 result = (int)(arg1)->IsDST((wxDateTime::Country )arg2);
18824
18825 wxPyEndAllowThreads(__tstate);
18826 if (PyErr_Occurred()) SWIG_fail;
18827 }
18828 resultobj = SWIG_FromInt((int)result);
18829 return resultobj;
18830 fail:
18831 return NULL;
18832 }
18833
18834
18835 static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
18836 PyObject *resultobj;
18837 wxDateTime *arg1 = (wxDateTime *) 0 ;
18838 bool result;
18839 PyObject * obj0 = 0 ;
18840 char *kwnames[] = {
18841 (char *) "self", NULL
18842 };
18843
18844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
18845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18847 {
18848 PyThreadState* __tstate = wxPyBeginAllowThreads();
18849 result = (bool)((wxDateTime const *)arg1)->IsValid();
18850
18851 wxPyEndAllowThreads(__tstate);
18852 if (PyErr_Occurred()) SWIG_fail;
18853 }
18854 {
18855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18856 }
18857 return resultobj;
18858 fail:
18859 return NULL;
18860 }
18861
18862
18863 static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
18864 PyObject *resultobj;
18865 wxDateTime *arg1 = (wxDateTime *) 0 ;
18866 time_t result;
18867 PyObject * obj0 = 0 ;
18868 char *kwnames[] = {
18869 (char *) "self", NULL
18870 };
18871
18872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
18873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18875 {
18876 PyThreadState* __tstate = wxPyBeginAllowThreads();
18877 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
18878
18879 wxPyEndAllowThreads(__tstate);
18880 if (PyErr_Occurred()) SWIG_fail;
18881 }
18882 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
18883 return resultobj;
18884 fail:
18885 return NULL;
18886 }
18887
18888
18889 static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
18890 PyObject *resultobj;
18891 wxDateTime *arg1 = (wxDateTime *) 0 ;
18892 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18893 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18894 int result;
18895 bool temp2 = False ;
18896 PyObject * obj0 = 0 ;
18897 PyObject * obj1 = 0 ;
18898 char *kwnames[] = {
18899 (char *) "self",(char *) "tz", NULL
18900 };
18901
18902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
18903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18905 if (obj1) {
18906 {
18907 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18908 temp2 = True;
18909 }
18910 }
18911 {
18912 PyThreadState* __tstate = wxPyBeginAllowThreads();
18913 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
18914
18915 wxPyEndAllowThreads(__tstate);
18916 if (PyErr_Occurred()) SWIG_fail;
18917 }
18918 resultobj = SWIG_FromInt((int)result);
18919 {
18920 if (temp2) delete arg2;
18921 }
18922 return resultobj;
18923 fail:
18924 {
18925 if (temp2) delete arg2;
18926 }
18927 return NULL;
18928 }
18929
18930
18931 static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
18932 PyObject *resultobj;
18933 wxDateTime *arg1 = (wxDateTime *) 0 ;
18934 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18935 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18936 int result;
18937 bool temp2 = False ;
18938 PyObject * obj0 = 0 ;
18939 PyObject * obj1 = 0 ;
18940 char *kwnames[] = {
18941 (char *) "self",(char *) "tz", NULL
18942 };
18943
18944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
18945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18947 if (obj1) {
18948 {
18949 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18950 temp2 = True;
18951 }
18952 }
18953 {
18954 PyThreadState* __tstate = wxPyBeginAllowThreads();
18955 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
18956
18957 wxPyEndAllowThreads(__tstate);
18958 if (PyErr_Occurred()) SWIG_fail;
18959 }
18960 resultobj = SWIG_FromInt((int)result);
18961 {
18962 if (temp2) delete arg2;
18963 }
18964 return resultobj;
18965 fail:
18966 {
18967 if (temp2) delete arg2;
18968 }
18969 return NULL;
18970 }
18971
18972
18973 static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18974 PyObject *resultobj;
18975 wxDateTime *arg1 = (wxDateTime *) 0 ;
18976 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18977 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18978 int result;
18979 bool temp2 = False ;
18980 PyObject * obj0 = 0 ;
18981 PyObject * obj1 = 0 ;
18982 char *kwnames[] = {
18983 (char *) "self",(char *) "tz", NULL
18984 };
18985
18986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
18987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18989 if (obj1) {
18990 {
18991 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18992 temp2 = True;
18993 }
18994 }
18995 {
18996 PyThreadState* __tstate = wxPyBeginAllowThreads();
18997 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
18998
18999 wxPyEndAllowThreads(__tstate);
19000 if (PyErr_Occurred()) SWIG_fail;
19001 }
19002 resultobj = SWIG_FromInt((int)result);
19003 {
19004 if (temp2) delete arg2;
19005 }
19006 return resultobj;
19007 fail:
19008 {
19009 if (temp2) delete arg2;
19010 }
19011 return NULL;
19012 }
19013
19014
19015 static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19016 PyObject *resultobj;
19017 wxDateTime *arg1 = (wxDateTime *) 0 ;
19018 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19019 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19020 int result;
19021 bool temp2 = False ;
19022 PyObject * obj0 = 0 ;
19023 PyObject * obj1 = 0 ;
19024 char *kwnames[] = {
19025 (char *) "self",(char *) "tz", NULL
19026 };
19027
19028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
19029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19031 if (obj1) {
19032 {
19033 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19034 temp2 = True;
19035 }
19036 }
19037 {
19038 PyThreadState* __tstate = wxPyBeginAllowThreads();
19039 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
19040
19041 wxPyEndAllowThreads(__tstate);
19042 if (PyErr_Occurred()) SWIG_fail;
19043 }
19044 resultobj = SWIG_FromInt((int)result);
19045 {
19046 if (temp2) delete arg2;
19047 }
19048 return resultobj;
19049 fail:
19050 {
19051 if (temp2) delete arg2;
19052 }
19053 return NULL;
19054 }
19055
19056
19057 static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
19058 PyObject *resultobj;
19059 wxDateTime *arg1 = (wxDateTime *) 0 ;
19060 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19061 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19062 int result;
19063 bool temp2 = False ;
19064 PyObject * obj0 = 0 ;
19065 PyObject * obj1 = 0 ;
19066 char *kwnames[] = {
19067 (char *) "self",(char *) "tz", NULL
19068 };
19069
19070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
19071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19073 if (obj1) {
19074 {
19075 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19076 temp2 = True;
19077 }
19078 }
19079 {
19080 PyThreadState* __tstate = wxPyBeginAllowThreads();
19081 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
19082
19083 wxPyEndAllowThreads(__tstate);
19084 if (PyErr_Occurred()) SWIG_fail;
19085 }
19086 resultobj = SWIG_FromInt((int)result);
19087 {
19088 if (temp2) delete arg2;
19089 }
19090 return resultobj;
19091 fail:
19092 {
19093 if (temp2) delete arg2;
19094 }
19095 return NULL;
19096 }
19097
19098
19099 static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
19100 PyObject *resultobj;
19101 wxDateTime *arg1 = (wxDateTime *) 0 ;
19102 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19103 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19104 int result;
19105 bool temp2 = False ;
19106 PyObject * obj0 = 0 ;
19107 PyObject * obj1 = 0 ;
19108 char *kwnames[] = {
19109 (char *) "self",(char *) "tz", NULL
19110 };
19111
19112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
19113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19115 if (obj1) {
19116 {
19117 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19118 temp2 = True;
19119 }
19120 }
19121 {
19122 PyThreadState* __tstate = wxPyBeginAllowThreads();
19123 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
19124
19125 wxPyEndAllowThreads(__tstate);
19126 if (PyErr_Occurred()) SWIG_fail;
19127 }
19128 resultobj = SWIG_FromInt((int)result);
19129 {
19130 if (temp2) delete arg2;
19131 }
19132 return resultobj;
19133 fail:
19134 {
19135 if (temp2) delete arg2;
19136 }
19137 return NULL;
19138 }
19139
19140
19141 static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19142 PyObject *resultobj;
19143 wxDateTime *arg1 = (wxDateTime *) 0 ;
19144 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19145 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19146 int result;
19147 bool temp2 = False ;
19148 PyObject * obj0 = 0 ;
19149 PyObject * obj1 = 0 ;
19150 char *kwnames[] = {
19151 (char *) "self",(char *) "tz", NULL
19152 };
19153
19154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
19155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19157 if (obj1) {
19158 {
19159 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19160 temp2 = True;
19161 }
19162 }
19163 {
19164 PyThreadState* __tstate = wxPyBeginAllowThreads();
19165 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
19166
19167 wxPyEndAllowThreads(__tstate);
19168 if (PyErr_Occurred()) SWIG_fail;
19169 }
19170 resultobj = SWIG_FromInt((int)result);
19171 {
19172 if (temp2) delete arg2;
19173 }
19174 return resultobj;
19175 fail:
19176 {
19177 if (temp2) delete arg2;
19178 }
19179 return NULL;
19180 }
19181
19182
19183 static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19184 PyObject *resultobj;
19185 wxDateTime *arg1 = (wxDateTime *) 0 ;
19186 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19187 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19188 int result;
19189 bool temp2 = False ;
19190 PyObject * obj0 = 0 ;
19191 PyObject * obj1 = 0 ;
19192 char *kwnames[] = {
19193 (char *) "self",(char *) "tz", NULL
19194 };
19195
19196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
19197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19199 if (obj1) {
19200 {
19201 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19202 temp2 = True;
19203 }
19204 }
19205 {
19206 PyThreadState* __tstate = wxPyBeginAllowThreads();
19207 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
19208
19209 wxPyEndAllowThreads(__tstate);
19210 if (PyErr_Occurred()) SWIG_fail;
19211 }
19212 resultobj = SWIG_FromInt((int)result);
19213 {
19214 if (temp2) delete arg2;
19215 }
19216 return resultobj;
19217 fail:
19218 {
19219 if (temp2) delete arg2;
19220 }
19221 return NULL;
19222 }
19223
19224
19225 static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19226 PyObject *resultobj;
19227 wxDateTime *arg1 = (wxDateTime *) 0 ;
19228 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19229 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19230 int result;
19231 bool temp2 = False ;
19232 PyObject * obj0 = 0 ;
19233 PyObject * obj1 = 0 ;
19234 char *kwnames[] = {
19235 (char *) "self",(char *) "tz", NULL
19236 };
19237
19238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
19239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19241 if (obj1) {
19242 {
19243 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19244 temp2 = True;
19245 }
19246 }
19247 {
19248 PyThreadState* __tstate = wxPyBeginAllowThreads();
19249 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
19250
19251 wxPyEndAllowThreads(__tstate);
19252 if (PyErr_Occurred()) SWIG_fail;
19253 }
19254 resultobj = SWIG_FromInt((int)result);
19255 {
19256 if (temp2) delete arg2;
19257 }
19258 return resultobj;
19259 fail:
19260 {
19261 if (temp2) delete arg2;
19262 }
19263 return NULL;
19264 }
19265
19266
19267 static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19268 PyObject *resultobj;
19269 wxDateTime *arg1 = (wxDateTime *) 0 ;
19270 int arg2 = (int) wxDateTime::Monday_First ;
19271 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19272 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19273 int result;
19274 bool temp3 = False ;
19275 PyObject * obj0 = 0 ;
19276 PyObject * obj1 = 0 ;
19277 PyObject * obj2 = 0 ;
19278 char *kwnames[] = {
19279 (char *) "self",(char *) "flags",(char *) "tz", NULL
19280 };
19281
19282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
19283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19285 if (obj1) {
19286 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19287 if (PyErr_Occurred()) SWIG_fail;
19288 }
19289 if (obj2) {
19290 {
19291 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19292 temp3 = True;
19293 }
19294 }
19295 {
19296 PyThreadState* __tstate = wxPyBeginAllowThreads();
19297 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19298
19299 wxPyEndAllowThreads(__tstate);
19300 if (PyErr_Occurred()) SWIG_fail;
19301 }
19302 resultobj = SWIG_FromInt((int)result);
19303 {
19304 if (temp3) delete arg3;
19305 }
19306 return resultobj;
19307 fail:
19308 {
19309 if (temp3) delete arg3;
19310 }
19311 return NULL;
19312 }
19313
19314
19315 static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
19316 PyObject *resultobj;
19317 wxDateTime *arg1 = (wxDateTime *) 0 ;
19318 int arg2 = (int) wxDateTime::Monday_First ;
19319 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19320 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19321 int result;
19322 bool temp3 = False ;
19323 PyObject * obj0 = 0 ;
19324 PyObject * obj1 = 0 ;
19325 PyObject * obj2 = 0 ;
19326 char *kwnames[] = {
19327 (char *) "self",(char *) "flags",(char *) "tz", NULL
19328 };
19329
19330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
19331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19333 if (obj1) {
19334 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19335 if (PyErr_Occurred()) SWIG_fail;
19336 }
19337 if (obj2) {
19338 {
19339 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19340 temp3 = True;
19341 }
19342 }
19343 {
19344 PyThreadState* __tstate = wxPyBeginAllowThreads();
19345 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19346
19347 wxPyEndAllowThreads(__tstate);
19348 if (PyErr_Occurred()) SWIG_fail;
19349 }
19350 resultobj = SWIG_FromInt((int)result);
19351 {
19352 if (temp3) delete arg3;
19353 }
19354 return resultobj;
19355 fail:
19356 {
19357 if (temp3) delete arg3;
19358 }
19359 return NULL;
19360 }
19361
19362
19363 static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19364 PyObject *resultobj;
19365 wxDateTime *arg1 = (wxDateTime *) 0 ;
19366 int arg2 = (int) wxDateTime::Country_Default ;
19367 bool result;
19368 PyObject * obj0 = 0 ;
19369 PyObject * obj1 = 0 ;
19370 char *kwnames[] = {
19371 (char *) "self",(char *) "country", NULL
19372 };
19373
19374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail;
19375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19377 if (obj1) {
19378 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
19379 if (PyErr_Occurred()) SWIG_fail;
19380 }
19381 {
19382 PyThreadState* __tstate = wxPyBeginAllowThreads();
19383 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
19384
19385 wxPyEndAllowThreads(__tstate);
19386 if (PyErr_Occurred()) SWIG_fail;
19387 }
19388 {
19389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19390 }
19391 return resultobj;
19392 fail:
19393 return NULL;
19394 }
19395
19396
19397 static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19398 PyObject *resultobj;
19399 wxDateTime *arg1 = (wxDateTime *) 0 ;
19400 wxDateTime *arg2 = 0 ;
19401 bool result;
19402 PyObject * obj0 = 0 ;
19403 PyObject * obj1 = 0 ;
19404 char *kwnames[] = {
19405 (char *) "self",(char *) "datetime", NULL
19406 };
19407
19408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
19409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19411 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19412 SWIG_POINTER_EXCEPTION | 0)) == -1)
19413 SWIG_fail;
19414 if (arg2 == NULL) {
19415 PyErr_SetString(PyExc_TypeError,"null reference");
19416 SWIG_fail;
19417 }
19418 {
19419 PyThreadState* __tstate = wxPyBeginAllowThreads();
19420 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
19421
19422 wxPyEndAllowThreads(__tstate);
19423 if (PyErr_Occurred()) SWIG_fail;
19424 }
19425 {
19426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19427 }
19428 return resultobj;
19429 fail:
19430 return NULL;
19431 }
19432
19433
19434 static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19435 PyObject *resultobj;
19436 wxDateTime *arg1 = (wxDateTime *) 0 ;
19437 wxDateTime *arg2 = 0 ;
19438 bool result;
19439 PyObject * obj0 = 0 ;
19440 PyObject * obj1 = 0 ;
19441 char *kwnames[] = {
19442 (char *) "self",(char *) "datetime", NULL
19443 };
19444
19445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
19446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19448 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19449 SWIG_POINTER_EXCEPTION | 0)) == -1)
19450 SWIG_fail;
19451 if (arg2 == NULL) {
19452 PyErr_SetString(PyExc_TypeError,"null reference");
19453 SWIG_fail;
19454 }
19455 {
19456 PyThreadState* __tstate = wxPyBeginAllowThreads();
19457 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
19458
19459 wxPyEndAllowThreads(__tstate);
19460 if (PyErr_Occurred()) SWIG_fail;
19461 }
19462 {
19463 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19464 }
19465 return resultobj;
19466 fail:
19467 return NULL;
19468 }
19469
19470
19471 static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19472 PyObject *resultobj;
19473 wxDateTime *arg1 = (wxDateTime *) 0 ;
19474 wxDateTime *arg2 = 0 ;
19475 bool result;
19476 PyObject * obj0 = 0 ;
19477 PyObject * obj1 = 0 ;
19478 char *kwnames[] = {
19479 (char *) "self",(char *) "datetime", NULL
19480 };
19481
19482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
19483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19485 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19486 SWIG_POINTER_EXCEPTION | 0)) == -1)
19487 SWIG_fail;
19488 if (arg2 == NULL) {
19489 PyErr_SetString(PyExc_TypeError,"null reference");
19490 SWIG_fail;
19491 }
19492 {
19493 PyThreadState* __tstate = wxPyBeginAllowThreads();
19494 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
19495
19496 wxPyEndAllowThreads(__tstate);
19497 if (PyErr_Occurred()) SWIG_fail;
19498 }
19499 {
19500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19501 }
19502 return resultobj;
19503 fail:
19504 return NULL;
19505 }
19506
19507
19508 static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19509 PyObject *resultobj;
19510 wxDateTime *arg1 = (wxDateTime *) 0 ;
19511 wxDateTime *arg2 = 0 ;
19512 wxDateTime *arg3 = 0 ;
19513 bool result;
19514 PyObject * obj0 = 0 ;
19515 PyObject * obj1 = 0 ;
19516 PyObject * obj2 = 0 ;
19517 char *kwnames[] = {
19518 (char *) "self",(char *) "t1",(char *) "t2", NULL
19519 };
19520
19521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19524 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19525 SWIG_POINTER_EXCEPTION | 0)) == -1)
19526 SWIG_fail;
19527 if (arg2 == NULL) {
19528 PyErr_SetString(PyExc_TypeError,"null reference");
19529 SWIG_fail;
19530 }
19531 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19532 SWIG_POINTER_EXCEPTION | 0)) == -1)
19533 SWIG_fail;
19534 if (arg3 == NULL) {
19535 PyErr_SetString(PyExc_TypeError,"null reference");
19536 SWIG_fail;
19537 }
19538 {
19539 PyThreadState* __tstate = wxPyBeginAllowThreads();
19540 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19541
19542 wxPyEndAllowThreads(__tstate);
19543 if (PyErr_Occurred()) SWIG_fail;
19544 }
19545 {
19546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19547 }
19548 return resultobj;
19549 fail:
19550 return NULL;
19551 }
19552
19553
19554 static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19555 PyObject *resultobj;
19556 wxDateTime *arg1 = (wxDateTime *) 0 ;
19557 wxDateTime *arg2 = 0 ;
19558 wxDateTime *arg3 = 0 ;
19559 bool result;
19560 PyObject * obj0 = 0 ;
19561 PyObject * obj1 = 0 ;
19562 PyObject * obj2 = 0 ;
19563 char *kwnames[] = {
19564 (char *) "self",(char *) "t1",(char *) "t2", NULL
19565 };
19566
19567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19570 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19571 SWIG_POINTER_EXCEPTION | 0)) == -1)
19572 SWIG_fail;
19573 if (arg2 == NULL) {
19574 PyErr_SetString(PyExc_TypeError,"null reference");
19575 SWIG_fail;
19576 }
19577 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19578 SWIG_POINTER_EXCEPTION | 0)) == -1)
19579 SWIG_fail;
19580 if (arg3 == NULL) {
19581 PyErr_SetString(PyExc_TypeError,"null reference");
19582 SWIG_fail;
19583 }
19584 {
19585 PyThreadState* __tstate = wxPyBeginAllowThreads();
19586 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19587
19588 wxPyEndAllowThreads(__tstate);
19589 if (PyErr_Occurred()) SWIG_fail;
19590 }
19591 {
19592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19593 }
19594 return resultobj;
19595 fail:
19596 return NULL;
19597 }
19598
19599
19600 static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) {
19601 PyObject *resultobj;
19602 wxDateTime *arg1 = (wxDateTime *) 0 ;
19603 wxDateTime *arg2 = 0 ;
19604 bool result;
19605 PyObject * obj0 = 0 ;
19606 PyObject * obj1 = 0 ;
19607 char *kwnames[] = {
19608 (char *) "self",(char *) "dt", NULL
19609 };
19610
19611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
19612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19614 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19615 SWIG_POINTER_EXCEPTION | 0)) == -1)
19616 SWIG_fail;
19617 if (arg2 == NULL) {
19618 PyErr_SetString(PyExc_TypeError,"null reference");
19619 SWIG_fail;
19620 }
19621 {
19622 PyThreadState* __tstate = wxPyBeginAllowThreads();
19623 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
19624
19625 wxPyEndAllowThreads(__tstate);
19626 if (PyErr_Occurred()) SWIG_fail;
19627 }
19628 {
19629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19630 }
19631 return resultobj;
19632 fail:
19633 return NULL;
19634 }
19635
19636
19637 static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) {
19638 PyObject *resultobj;
19639 wxDateTime *arg1 = (wxDateTime *) 0 ;
19640 wxDateTime *arg2 = 0 ;
19641 bool result;
19642 PyObject * obj0 = 0 ;
19643 PyObject * obj1 = 0 ;
19644 char *kwnames[] = {
19645 (char *) "self",(char *) "dt", NULL
19646 };
19647
19648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
19649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19651 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19652 SWIG_POINTER_EXCEPTION | 0)) == -1)
19653 SWIG_fail;
19654 if (arg2 == NULL) {
19655 PyErr_SetString(PyExc_TypeError,"null reference");
19656 SWIG_fail;
19657 }
19658 {
19659 PyThreadState* __tstate = wxPyBeginAllowThreads();
19660 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
19661
19662 wxPyEndAllowThreads(__tstate);
19663 if (PyErr_Occurred()) SWIG_fail;
19664 }
19665 {
19666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19667 }
19668 return resultobj;
19669 fail:
19670 return NULL;
19671 }
19672
19673
19674 static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19675 PyObject *resultobj;
19676 wxDateTime *arg1 = (wxDateTime *) 0 ;
19677 wxDateTime *arg2 = 0 ;
19678 wxTimeSpan *arg3 = 0 ;
19679 bool result;
19680 PyObject * obj0 = 0 ;
19681 PyObject * obj1 = 0 ;
19682 PyObject * obj2 = 0 ;
19683 char *kwnames[] = {
19684 (char *) "self",(char *) "dt",(char *) "ts", NULL
19685 };
19686
19687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
19688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19690 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19691 SWIG_POINTER_EXCEPTION | 0)) == -1)
19692 SWIG_fail;
19693 if (arg2 == NULL) {
19694 PyErr_SetString(PyExc_TypeError,"null reference");
19695 SWIG_fail;
19696 }
19697 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan,
19698 SWIG_POINTER_EXCEPTION | 0)) == -1)
19699 SWIG_fail;
19700 if (arg3 == NULL) {
19701 PyErr_SetString(PyExc_TypeError,"null reference");
19702 SWIG_fail;
19703 }
19704 {
19705 PyThreadState* __tstate = wxPyBeginAllowThreads();
19706 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
19707
19708 wxPyEndAllowThreads(__tstate);
19709 if (PyErr_Occurred()) SWIG_fail;
19710 }
19711 {
19712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19713 }
19714 return resultobj;
19715 fail:
19716 return NULL;
19717 }
19718
19719
19720 static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19721 PyObject *resultobj;
19722 wxDateTime *arg1 = (wxDateTime *) 0 ;
19723 wxTimeSpan *arg2 = 0 ;
19724 wxDateTime *result;
19725 PyObject * obj0 = 0 ;
19726 PyObject * obj1 = 0 ;
19727 char *kwnames[] = {
19728 (char *) "self",(char *) "diff", NULL
19729 };
19730
19731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
19732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19734 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19735 SWIG_POINTER_EXCEPTION | 0)) == -1)
19736 SWIG_fail;
19737 if (arg2 == NULL) {
19738 PyErr_SetString(PyExc_TypeError,"null reference");
19739 SWIG_fail;
19740 }
19741 {
19742 PyThreadState* __tstate = wxPyBeginAllowThreads();
19743 {
19744 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
19745 result = (wxDateTime *) &_result_ref;
19746 }
19747
19748 wxPyEndAllowThreads(__tstate);
19749 if (PyErr_Occurred()) SWIG_fail;
19750 }
19751 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19752 return resultobj;
19753 fail:
19754 return NULL;
19755 }
19756
19757
19758 static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) {
19759 PyObject *resultobj;
19760 wxDateTime *arg1 = (wxDateTime *) 0 ;
19761 wxDateSpan *arg2 = 0 ;
19762 wxDateTime *result;
19763 PyObject * obj0 = 0 ;
19764 PyObject * obj1 = 0 ;
19765 char *kwnames[] = {
19766 (char *) "self",(char *) "diff", NULL
19767 };
19768
19769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
19770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19772 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19773 SWIG_POINTER_EXCEPTION | 0)) == -1)
19774 SWIG_fail;
19775 if (arg2 == NULL) {
19776 PyErr_SetString(PyExc_TypeError,"null reference");
19777 SWIG_fail;
19778 }
19779 {
19780 PyThreadState* __tstate = wxPyBeginAllowThreads();
19781 {
19782 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
19783 result = (wxDateTime *) &_result_ref;
19784 }
19785
19786 wxPyEndAllowThreads(__tstate);
19787 if (PyErr_Occurred()) SWIG_fail;
19788 }
19789 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19790 return resultobj;
19791 fail:
19792 return NULL;
19793 }
19794
19795
19796 static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19797 PyObject *resultobj;
19798 wxDateTime *arg1 = (wxDateTime *) 0 ;
19799 wxTimeSpan *arg2 = 0 ;
19800 wxDateTime *result;
19801 PyObject * obj0 = 0 ;
19802 PyObject * obj1 = 0 ;
19803 char *kwnames[] = {
19804 (char *) "self",(char *) "diff", NULL
19805 };
19806
19807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
19808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19810 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19811 SWIG_POINTER_EXCEPTION | 0)) == -1)
19812 SWIG_fail;
19813 if (arg2 == NULL) {
19814 PyErr_SetString(PyExc_TypeError,"null reference");
19815 SWIG_fail;
19816 }
19817 {
19818 PyThreadState* __tstate = wxPyBeginAllowThreads();
19819 {
19820 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
19821 result = (wxDateTime *) &_result_ref;
19822 }
19823
19824 wxPyEndAllowThreads(__tstate);
19825 if (PyErr_Occurred()) SWIG_fail;
19826 }
19827 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19828 return resultobj;
19829 fail:
19830 return NULL;
19831 }
19832
19833
19834 static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) {
19835 PyObject *resultobj;
19836 wxDateTime *arg1 = (wxDateTime *) 0 ;
19837 wxDateSpan *arg2 = 0 ;
19838 wxDateTime *result;
19839 PyObject * obj0 = 0 ;
19840 PyObject * obj1 = 0 ;
19841 char *kwnames[] = {
19842 (char *) "self",(char *) "diff", NULL
19843 };
19844
19845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
19846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19848 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19849 SWIG_POINTER_EXCEPTION | 0)) == -1)
19850 SWIG_fail;
19851 if (arg2 == NULL) {
19852 PyErr_SetString(PyExc_TypeError,"null reference");
19853 SWIG_fail;
19854 }
19855 {
19856 PyThreadState* __tstate = wxPyBeginAllowThreads();
19857 {
19858 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
19859 result = (wxDateTime *) &_result_ref;
19860 }
19861
19862 wxPyEndAllowThreads(__tstate);
19863 if (PyErr_Occurred()) SWIG_fail;
19864 }
19865 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19866 return resultobj;
19867 fail:
19868 return NULL;
19869 }
19870
19871
19872 static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
19873 PyObject *resultobj;
19874 wxDateTime *arg1 = (wxDateTime *) 0 ;
19875 wxDateTime *arg2 = 0 ;
19876 wxTimeSpan result;
19877 PyObject * obj0 = 0 ;
19878 PyObject * obj1 = 0 ;
19879 char *kwnames[] = {
19880 (char *) "self",(char *) "dt", NULL
19881 };
19882
19883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
19884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19886 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19887 SWIG_POINTER_EXCEPTION | 0)) == -1)
19888 SWIG_fail;
19889 if (arg2 == NULL) {
19890 PyErr_SetString(PyExc_TypeError,"null reference");
19891 SWIG_fail;
19892 }
19893 {
19894 PyThreadState* __tstate = wxPyBeginAllowThreads();
19895 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
19896
19897 wxPyEndAllowThreads(__tstate);
19898 if (PyErr_Occurred()) SWIG_fail;
19899 }
19900 {
19901 wxTimeSpan * resultptr;
19902 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19903 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
19904 }
19905 return resultobj;
19906 fail:
19907 return NULL;
19908 }
19909
19910
19911 static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) {
19912 PyObject *resultobj;
19913 wxDateTime *arg1 = (wxDateTime *) 0 ;
19914 wxTimeSpan *arg2 = 0 ;
19915 wxDateTime *result;
19916 PyObject * obj0 = 0 ;
19917 PyObject * obj1 = 0 ;
19918
19919 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
19920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19922 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19923 SWIG_POINTER_EXCEPTION | 0)) == -1)
19924 SWIG_fail;
19925 if (arg2 == NULL) {
19926 PyErr_SetString(PyExc_TypeError,"null reference");
19927 SWIG_fail;
19928 }
19929 {
19930 PyThreadState* __tstate = wxPyBeginAllowThreads();
19931 {
19932 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
19933 result = (wxDateTime *) &_result_ref;
19934 }
19935
19936 wxPyEndAllowThreads(__tstate);
19937 if (PyErr_Occurred()) SWIG_fail;
19938 }
19939 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19940 return resultobj;
19941 fail:
19942 return NULL;
19943 }
19944
19945
19946 static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) {
19947 PyObject *resultobj;
19948 wxDateTime *arg1 = (wxDateTime *) 0 ;
19949 wxDateSpan *arg2 = 0 ;
19950 wxDateTime *result;
19951 PyObject * obj0 = 0 ;
19952 PyObject * obj1 = 0 ;
19953
19954 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
19955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19957 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19958 SWIG_POINTER_EXCEPTION | 0)) == -1)
19959 SWIG_fail;
19960 if (arg2 == NULL) {
19961 PyErr_SetString(PyExc_TypeError,"null reference");
19962 SWIG_fail;
19963 }
19964 {
19965 PyThreadState* __tstate = wxPyBeginAllowThreads();
19966 {
19967 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
19968 result = (wxDateTime *) &_result_ref;
19969 }
19970
19971 wxPyEndAllowThreads(__tstate);
19972 if (PyErr_Occurred()) SWIG_fail;
19973 }
19974 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19975 return resultobj;
19976 fail:
19977 return NULL;
19978 }
19979
19980
19981 static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
19982 int argc;
19983 PyObject *argv[3];
19984 int ii;
19985
19986 argc = PyObject_Length(args);
19987 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
19988 argv[ii] = PyTuple_GetItem(args,ii);
19989 }
19990 if (argc == 2) {
19991 int _v;
19992 {
19993 void *ptr;
19994 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
19995 _v = 0;
19996 PyErr_Clear();
19997 } else {
19998 _v = 1;
19999 }
20000 }
20001 if (_v) {
20002 {
20003 void *ptr;
20004 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20005 _v = 0;
20006 PyErr_Clear();
20007 } else {
20008 _v = 1;
20009 }
20010 }
20011 if (_v) {
20012 return _wrap_DateTime___iadd____SWIG_0(self,args);
20013 }
20014 }
20015 }
20016 if (argc == 2) {
20017 int _v;
20018 {
20019 void *ptr;
20020 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20021 _v = 0;
20022 PyErr_Clear();
20023 } else {
20024 _v = 1;
20025 }
20026 }
20027 if (_v) {
20028 {
20029 void *ptr;
20030 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20031 _v = 0;
20032 PyErr_Clear();
20033 } else {
20034 _v = 1;
20035 }
20036 }
20037 if (_v) {
20038 return _wrap_DateTime___iadd____SWIG_1(self,args);
20039 }
20040 }
20041 }
20042
20043 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
20044 return NULL;
20045 }
20046
20047
20048 static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) {
20049 PyObject *resultobj;
20050 wxDateTime *arg1 = (wxDateTime *) 0 ;
20051 wxTimeSpan *arg2 = 0 ;
20052 wxDateTime *result;
20053 PyObject * obj0 = 0 ;
20054 PyObject * obj1 = 0 ;
20055
20056 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20059 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20060 SWIG_POINTER_EXCEPTION | 0)) == -1)
20061 SWIG_fail;
20062 if (arg2 == NULL) {
20063 PyErr_SetString(PyExc_TypeError,"null reference");
20064 SWIG_fail;
20065 }
20066 {
20067 PyThreadState* __tstate = wxPyBeginAllowThreads();
20068 {
20069 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
20070 result = (wxDateTime *) &_result_ref;
20071 }
20072
20073 wxPyEndAllowThreads(__tstate);
20074 if (PyErr_Occurred()) SWIG_fail;
20075 }
20076 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20077 return resultobj;
20078 fail:
20079 return NULL;
20080 }
20081
20082
20083 static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) {
20084 PyObject *resultobj;
20085 wxDateTime *arg1 = (wxDateTime *) 0 ;
20086 wxDateSpan *arg2 = 0 ;
20087 wxDateTime *result;
20088 PyObject * obj0 = 0 ;
20089 PyObject * obj1 = 0 ;
20090
20091 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20094 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20095 SWIG_POINTER_EXCEPTION | 0)) == -1)
20096 SWIG_fail;
20097 if (arg2 == NULL) {
20098 PyErr_SetString(PyExc_TypeError,"null reference");
20099 SWIG_fail;
20100 }
20101 {
20102 PyThreadState* __tstate = wxPyBeginAllowThreads();
20103 {
20104 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
20105 result = (wxDateTime *) &_result_ref;
20106 }
20107
20108 wxPyEndAllowThreads(__tstate);
20109 if (PyErr_Occurred()) SWIG_fail;
20110 }
20111 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20112 return resultobj;
20113 fail:
20114 return NULL;
20115 }
20116
20117
20118 static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
20119 int argc;
20120 PyObject *argv[3];
20121 int ii;
20122
20123 argc = PyObject_Length(args);
20124 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20125 argv[ii] = PyTuple_GetItem(args,ii);
20126 }
20127 if (argc == 2) {
20128 int _v;
20129 {
20130 void *ptr;
20131 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20132 _v = 0;
20133 PyErr_Clear();
20134 } else {
20135 _v = 1;
20136 }
20137 }
20138 if (_v) {
20139 {
20140 void *ptr;
20141 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20142 _v = 0;
20143 PyErr_Clear();
20144 } else {
20145 _v = 1;
20146 }
20147 }
20148 if (_v) {
20149 return _wrap_DateTime___isub____SWIG_0(self,args);
20150 }
20151 }
20152 }
20153 if (argc == 2) {
20154 int _v;
20155 {
20156 void *ptr;
20157 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20158 _v = 0;
20159 PyErr_Clear();
20160 } else {
20161 _v = 1;
20162 }
20163 }
20164 if (_v) {
20165 {
20166 void *ptr;
20167 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20168 _v = 0;
20169 PyErr_Clear();
20170 } else {
20171 _v = 1;
20172 }
20173 }
20174 if (_v) {
20175 return _wrap_DateTime___isub____SWIG_1(self,args);
20176 }
20177 }
20178 }
20179
20180 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
20181 return NULL;
20182 }
20183
20184
20185 static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) {
20186 PyObject *resultobj;
20187 wxDateTime *arg1 = (wxDateTime *) 0 ;
20188 wxTimeSpan *arg2 = 0 ;
20189 wxDateTime result;
20190 PyObject * obj0 = 0 ;
20191 PyObject * obj1 = 0 ;
20192
20193 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20196 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20197 SWIG_POINTER_EXCEPTION | 0)) == -1)
20198 SWIG_fail;
20199 if (arg2 == NULL) {
20200 PyErr_SetString(PyExc_TypeError,"null reference");
20201 SWIG_fail;
20202 }
20203 {
20204 PyThreadState* __tstate = wxPyBeginAllowThreads();
20205 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
20206
20207 wxPyEndAllowThreads(__tstate);
20208 if (PyErr_Occurred()) SWIG_fail;
20209 }
20210 {
20211 wxDateTime * resultptr;
20212 resultptr = new wxDateTime((wxDateTime &) result);
20213 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20214 }
20215 return resultobj;
20216 fail:
20217 return NULL;
20218 }
20219
20220
20221 static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) {
20222 PyObject *resultobj;
20223 wxDateTime *arg1 = (wxDateTime *) 0 ;
20224 wxDateSpan *arg2 = 0 ;
20225 wxDateTime result;
20226 PyObject * obj0 = 0 ;
20227 PyObject * obj1 = 0 ;
20228
20229 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20232 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20233 SWIG_POINTER_EXCEPTION | 0)) == -1)
20234 SWIG_fail;
20235 if (arg2 == NULL) {
20236 PyErr_SetString(PyExc_TypeError,"null reference");
20237 SWIG_fail;
20238 }
20239 {
20240 PyThreadState* __tstate = wxPyBeginAllowThreads();
20241 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
20242
20243 wxPyEndAllowThreads(__tstate);
20244 if (PyErr_Occurred()) SWIG_fail;
20245 }
20246 {
20247 wxDateTime * resultptr;
20248 resultptr = new wxDateTime((wxDateTime &) result);
20249 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20250 }
20251 return resultobj;
20252 fail:
20253 return NULL;
20254 }
20255
20256
20257 static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
20258 int argc;
20259 PyObject *argv[3];
20260 int ii;
20261
20262 argc = PyObject_Length(args);
20263 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20264 argv[ii] = PyTuple_GetItem(args,ii);
20265 }
20266 if (argc == 2) {
20267 int _v;
20268 {
20269 void *ptr;
20270 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20271 _v = 0;
20272 PyErr_Clear();
20273 } else {
20274 _v = 1;
20275 }
20276 }
20277 if (_v) {
20278 {
20279 void *ptr;
20280 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20281 _v = 0;
20282 PyErr_Clear();
20283 } else {
20284 _v = 1;
20285 }
20286 }
20287 if (_v) {
20288 return _wrap_DateTime___add____SWIG_0(self,args);
20289 }
20290 }
20291 }
20292 if (argc == 2) {
20293 int _v;
20294 {
20295 void *ptr;
20296 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20297 _v = 0;
20298 PyErr_Clear();
20299 } else {
20300 _v = 1;
20301 }
20302 }
20303 if (_v) {
20304 {
20305 void *ptr;
20306 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20307 _v = 0;
20308 PyErr_Clear();
20309 } else {
20310 _v = 1;
20311 }
20312 }
20313 if (_v) {
20314 return _wrap_DateTime___add____SWIG_1(self,args);
20315 }
20316 }
20317 }
20318
20319 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
20320 return NULL;
20321 }
20322
20323
20324 static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) {
20325 PyObject *resultobj;
20326 wxDateTime *arg1 = (wxDateTime *) 0 ;
20327 wxDateTime *arg2 = 0 ;
20328 wxTimeSpan result;
20329 PyObject * obj0 = 0 ;
20330 PyObject * obj1 = 0 ;
20331
20332 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20335 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20336 SWIG_POINTER_EXCEPTION | 0)) == -1)
20337 SWIG_fail;
20338 if (arg2 == NULL) {
20339 PyErr_SetString(PyExc_TypeError,"null reference");
20340 SWIG_fail;
20341 }
20342 {
20343 PyThreadState* __tstate = wxPyBeginAllowThreads();
20344 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
20345
20346 wxPyEndAllowThreads(__tstate);
20347 if (PyErr_Occurred()) SWIG_fail;
20348 }
20349 {
20350 wxTimeSpan * resultptr;
20351 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20352 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20353 }
20354 return resultobj;
20355 fail:
20356 return NULL;
20357 }
20358
20359
20360 static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) {
20361 PyObject *resultobj;
20362 wxDateTime *arg1 = (wxDateTime *) 0 ;
20363 wxTimeSpan *arg2 = 0 ;
20364 wxDateTime result;
20365 PyObject * obj0 = 0 ;
20366 PyObject * obj1 = 0 ;
20367
20368 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20371 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20372 SWIG_POINTER_EXCEPTION | 0)) == -1)
20373 SWIG_fail;
20374 if (arg2 == NULL) {
20375 PyErr_SetString(PyExc_TypeError,"null reference");
20376 SWIG_fail;
20377 }
20378 {
20379 PyThreadState* __tstate = wxPyBeginAllowThreads();
20380 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
20381
20382 wxPyEndAllowThreads(__tstate);
20383 if (PyErr_Occurred()) SWIG_fail;
20384 }
20385 {
20386 wxDateTime * resultptr;
20387 resultptr = new wxDateTime((wxDateTime &) result);
20388 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20389 }
20390 return resultobj;
20391 fail:
20392 return NULL;
20393 }
20394
20395
20396 static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) {
20397 PyObject *resultobj;
20398 wxDateTime *arg1 = (wxDateTime *) 0 ;
20399 wxDateSpan *arg2 = 0 ;
20400 wxDateTime result;
20401 PyObject * obj0 = 0 ;
20402 PyObject * obj1 = 0 ;
20403
20404 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20407 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20408 SWIG_POINTER_EXCEPTION | 0)) == -1)
20409 SWIG_fail;
20410 if (arg2 == NULL) {
20411 PyErr_SetString(PyExc_TypeError,"null reference");
20412 SWIG_fail;
20413 }
20414 {
20415 PyThreadState* __tstate = wxPyBeginAllowThreads();
20416 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
20417
20418 wxPyEndAllowThreads(__tstate);
20419 if (PyErr_Occurred()) SWIG_fail;
20420 }
20421 {
20422 wxDateTime * resultptr;
20423 resultptr = new wxDateTime((wxDateTime &) result);
20424 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20425 }
20426 return resultobj;
20427 fail:
20428 return NULL;
20429 }
20430
20431
20432 static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
20433 int argc;
20434 PyObject *argv[3];
20435 int ii;
20436
20437 argc = PyObject_Length(args);
20438 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20439 argv[ii] = PyTuple_GetItem(args,ii);
20440 }
20441 if (argc == 2) {
20442 int _v;
20443 {
20444 void *ptr;
20445 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20446 _v = 0;
20447 PyErr_Clear();
20448 } else {
20449 _v = 1;
20450 }
20451 }
20452 if (_v) {
20453 {
20454 void *ptr;
20455 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20456 _v = 0;
20457 PyErr_Clear();
20458 } else {
20459 _v = 1;
20460 }
20461 }
20462 if (_v) {
20463 return _wrap_DateTime___sub____SWIG_0(self,args);
20464 }
20465 }
20466 }
20467 if (argc == 2) {
20468 int _v;
20469 {
20470 void *ptr;
20471 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20472 _v = 0;
20473 PyErr_Clear();
20474 } else {
20475 _v = 1;
20476 }
20477 }
20478 if (_v) {
20479 {
20480 void *ptr;
20481 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20482 _v = 0;
20483 PyErr_Clear();
20484 } else {
20485 _v = 1;
20486 }
20487 }
20488 if (_v) {
20489 return _wrap_DateTime___sub____SWIG_1(self,args);
20490 }
20491 }
20492 }
20493 if (argc == 2) {
20494 int _v;
20495 {
20496 void *ptr;
20497 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20498 _v = 0;
20499 PyErr_Clear();
20500 } else {
20501 _v = 1;
20502 }
20503 }
20504 if (_v) {
20505 {
20506 void *ptr;
20507 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20508 _v = 0;
20509 PyErr_Clear();
20510 } else {
20511 _v = 1;
20512 }
20513 }
20514 if (_v) {
20515 return _wrap_DateTime___sub____SWIG_2(self,args);
20516 }
20517 }
20518 }
20519
20520 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
20521 return NULL;
20522 }
20523
20524
20525 static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) {
20526 PyObject *resultobj;
20527 wxDateTime *arg1 = (wxDateTime *) 0 ;
20528 wxDateTime *arg2 = (wxDateTime *) 0 ;
20529 bool result;
20530 PyObject * obj0 = 0 ;
20531 PyObject * obj1 = 0 ;
20532
20533 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
20534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20536 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20538 {
20539 PyThreadState* __tstate = wxPyBeginAllowThreads();
20540 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
20541
20542 wxPyEndAllowThreads(__tstate);
20543 if (PyErr_Occurred()) SWIG_fail;
20544 }
20545 {
20546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20547 }
20548 return resultobj;
20549 fail:
20550 return NULL;
20551 }
20552
20553
20554 static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) {
20555 PyObject *resultobj;
20556 wxDateTime *arg1 = (wxDateTime *) 0 ;
20557 wxDateTime *arg2 = (wxDateTime *) 0 ;
20558 bool result;
20559 PyObject * obj0 = 0 ;
20560 PyObject * obj1 = 0 ;
20561
20562 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
20563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20565 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20567 {
20568 PyThreadState* __tstate = wxPyBeginAllowThreads();
20569 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
20570
20571 wxPyEndAllowThreads(__tstate);
20572 if (PyErr_Occurred()) SWIG_fail;
20573 }
20574 {
20575 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20576 }
20577 return resultobj;
20578 fail:
20579 return NULL;
20580 }
20581
20582
20583 static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) {
20584 PyObject *resultobj;
20585 wxDateTime *arg1 = (wxDateTime *) 0 ;
20586 wxDateTime *arg2 = (wxDateTime *) 0 ;
20587 bool result;
20588 PyObject * obj0 = 0 ;
20589 PyObject * obj1 = 0 ;
20590
20591 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
20592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20594 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20596 {
20597 PyThreadState* __tstate = wxPyBeginAllowThreads();
20598 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
20599
20600 wxPyEndAllowThreads(__tstate);
20601 if (PyErr_Occurred()) SWIG_fail;
20602 }
20603 {
20604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20605 }
20606 return resultobj;
20607 fail:
20608 return NULL;
20609 }
20610
20611
20612 static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) {
20613 PyObject *resultobj;
20614 wxDateTime *arg1 = (wxDateTime *) 0 ;
20615 wxDateTime *arg2 = (wxDateTime *) 0 ;
20616 bool result;
20617 PyObject * obj0 = 0 ;
20618 PyObject * obj1 = 0 ;
20619
20620 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail;
20621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20623 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20625 {
20626 PyThreadState* __tstate = wxPyBeginAllowThreads();
20627 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
20628
20629 wxPyEndAllowThreads(__tstate);
20630 if (PyErr_Occurred()) SWIG_fail;
20631 }
20632 {
20633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20634 }
20635 return resultobj;
20636 fail:
20637 return NULL;
20638 }
20639
20640
20641 static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) {
20642 PyObject *resultobj;
20643 wxDateTime *arg1 = (wxDateTime *) 0 ;
20644 wxDateTime *arg2 = (wxDateTime *) 0 ;
20645 bool result;
20646 PyObject * obj0 = 0 ;
20647 PyObject * obj1 = 0 ;
20648
20649 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail;
20650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20652 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20654 {
20655 PyThreadState* __tstate = wxPyBeginAllowThreads();
20656 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
20657
20658 wxPyEndAllowThreads(__tstate);
20659 if (PyErr_Occurred()) SWIG_fail;
20660 }
20661 {
20662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20663 }
20664 return resultobj;
20665 fail:
20666 return NULL;
20667 }
20668
20669
20670 static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) {
20671 PyObject *resultobj;
20672 wxDateTime *arg1 = (wxDateTime *) 0 ;
20673 wxDateTime *arg2 = (wxDateTime *) 0 ;
20674 bool result;
20675 PyObject * obj0 = 0 ;
20676 PyObject * obj1 = 0 ;
20677
20678 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail;
20679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20681 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20683 {
20684 PyThreadState* __tstate = wxPyBeginAllowThreads();
20685 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
20686
20687 wxPyEndAllowThreads(__tstate);
20688 if (PyErr_Occurred()) SWIG_fail;
20689 }
20690 {
20691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20692 }
20693 return resultobj;
20694 fail:
20695 return NULL;
20696 }
20697
20698
20699 static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) {
20700 PyObject *resultobj;
20701 wxDateTime *arg1 = (wxDateTime *) 0 ;
20702 wxString *arg2 = 0 ;
20703 int result;
20704 bool temp2 = False ;
20705 PyObject * obj0 = 0 ;
20706 PyObject * obj1 = 0 ;
20707 char *kwnames[] = {
20708 (char *) "self",(char *) "date", NULL
20709 };
20710
20711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
20712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20714 {
20715 arg2 = wxString_in_helper(obj1);
20716 if (arg2 == NULL) SWIG_fail;
20717 temp2 = True;
20718 }
20719 {
20720 PyThreadState* __tstate = wxPyBeginAllowThreads();
20721 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
20722
20723 wxPyEndAllowThreads(__tstate);
20724 if (PyErr_Occurred()) SWIG_fail;
20725 }
20726 resultobj = SWIG_FromInt((int)result);
20727 {
20728 if (temp2)
20729 delete arg2;
20730 }
20731 return resultobj;
20732 fail:
20733 {
20734 if (temp2)
20735 delete arg2;
20736 }
20737 return NULL;
20738 }
20739
20740
20741 static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
20742 PyObject *resultobj;
20743 wxDateTime *arg1 = (wxDateTime *) 0 ;
20744 wxString *arg2 = 0 ;
20745 wxString const &arg3_defvalue = wxPyDateFormatStr ;
20746 wxString *arg3 = (wxString *) &arg3_defvalue ;
20747 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
20748 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
20749 int result;
20750 bool temp2 = False ;
20751 bool temp3 = False ;
20752 PyObject * obj0 = 0 ;
20753 PyObject * obj1 = 0 ;
20754 PyObject * obj2 = 0 ;
20755 PyObject * obj3 = 0 ;
20756 char *kwnames[] = {
20757 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
20758 };
20759
20760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20763 {
20764 arg2 = wxString_in_helper(obj1);
20765 if (arg2 == NULL) SWIG_fail;
20766 temp2 = True;
20767 }
20768 if (obj2) {
20769 {
20770 arg3 = wxString_in_helper(obj2);
20771 if (arg3 == NULL) SWIG_fail;
20772 temp3 = True;
20773 }
20774 }
20775 if (obj3) {
20776 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime,
20777 SWIG_POINTER_EXCEPTION | 0)) == -1)
20778 SWIG_fail;
20779 if (arg4 == NULL) {
20780 PyErr_SetString(PyExc_TypeError,"null reference");
20781 SWIG_fail;
20782 }
20783 }
20784 {
20785 PyThreadState* __tstate = wxPyBeginAllowThreads();
20786 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
20787
20788 wxPyEndAllowThreads(__tstate);
20789 if (PyErr_Occurred()) SWIG_fail;
20790 }
20791 resultobj = SWIG_FromInt((int)result);
20792 {
20793 if (temp2)
20794 delete arg2;
20795 }
20796 {
20797 if (temp3)
20798 delete arg3;
20799 }
20800 return resultobj;
20801 fail:
20802 {
20803 if (temp2)
20804 delete arg2;
20805 }
20806 {
20807 if (temp3)
20808 delete arg3;
20809 }
20810 return NULL;
20811 }
20812
20813
20814 static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20815 PyObject *resultobj;
20816 wxDateTime *arg1 = (wxDateTime *) 0 ;
20817 wxString *arg2 = 0 ;
20818 int result;
20819 bool temp2 = False ;
20820 PyObject * obj0 = 0 ;
20821 PyObject * obj1 = 0 ;
20822 char *kwnames[] = {
20823 (char *) "self",(char *) "datetime", NULL
20824 };
20825
20826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
20827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20829 {
20830 arg2 = wxString_in_helper(obj1);
20831 if (arg2 == NULL) SWIG_fail;
20832 temp2 = True;
20833 }
20834 {
20835 PyThreadState* __tstate = wxPyBeginAllowThreads();
20836 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
20837
20838 wxPyEndAllowThreads(__tstate);
20839 if (PyErr_Occurred()) SWIG_fail;
20840 }
20841 resultobj = SWIG_FromInt((int)result);
20842 {
20843 if (temp2)
20844 delete arg2;
20845 }
20846 return resultobj;
20847 fail:
20848 {
20849 if (temp2)
20850 delete arg2;
20851 }
20852 return NULL;
20853 }
20854
20855
20856 static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) {
20857 PyObject *resultobj;
20858 wxDateTime *arg1 = (wxDateTime *) 0 ;
20859 wxString *arg2 = 0 ;
20860 int result;
20861 bool temp2 = False ;
20862 PyObject * obj0 = 0 ;
20863 PyObject * obj1 = 0 ;
20864 char *kwnames[] = {
20865 (char *) "self",(char *) "date", NULL
20866 };
20867
20868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
20869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20871 {
20872 arg2 = wxString_in_helper(obj1);
20873 if (arg2 == NULL) SWIG_fail;
20874 temp2 = True;
20875 }
20876 {
20877 PyThreadState* __tstate = wxPyBeginAllowThreads();
20878 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
20879
20880 wxPyEndAllowThreads(__tstate);
20881 if (PyErr_Occurred()) SWIG_fail;
20882 }
20883 resultobj = SWIG_FromInt((int)result);
20884 {
20885 if (temp2)
20886 delete arg2;
20887 }
20888 return resultobj;
20889 fail:
20890 {
20891 if (temp2)
20892 delete arg2;
20893 }
20894 return NULL;
20895 }
20896
20897
20898 static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20899 PyObject *resultobj;
20900 wxDateTime *arg1 = (wxDateTime *) 0 ;
20901 wxString *arg2 = 0 ;
20902 int result;
20903 bool temp2 = False ;
20904 PyObject * obj0 = 0 ;
20905 PyObject * obj1 = 0 ;
20906 char *kwnames[] = {
20907 (char *) "self",(char *) "time", NULL
20908 };
20909
20910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
20911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20913 {
20914 arg2 = wxString_in_helper(obj1);
20915 if (arg2 == NULL) SWIG_fail;
20916 temp2 = True;
20917 }
20918 {
20919 PyThreadState* __tstate = wxPyBeginAllowThreads();
20920 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
20921
20922 wxPyEndAllowThreads(__tstate);
20923 if (PyErr_Occurred()) SWIG_fail;
20924 }
20925 resultobj = SWIG_FromInt((int)result);
20926 {
20927 if (temp2)
20928 delete arg2;
20929 }
20930 return resultobj;
20931 fail:
20932 {
20933 if (temp2)
20934 delete arg2;
20935 }
20936 return NULL;
20937 }
20938
20939
20940 static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
20941 PyObject *resultobj;
20942 wxDateTime *arg1 = (wxDateTime *) 0 ;
20943 wxString const &arg2_defvalue = wxPyDateFormatStr ;
20944 wxString *arg2 = (wxString *) &arg2_defvalue ;
20945 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
20946 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
20947 wxString result;
20948 bool temp2 = False ;
20949 bool temp3 = False ;
20950 PyObject * obj0 = 0 ;
20951 PyObject * obj1 = 0 ;
20952 PyObject * obj2 = 0 ;
20953 char *kwnames[] = {
20954 (char *) "self",(char *) "format",(char *) "tz", NULL
20955 };
20956
20957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
20958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20960 if (obj1) {
20961 {
20962 arg2 = wxString_in_helper(obj1);
20963 if (arg2 == NULL) SWIG_fail;
20964 temp2 = True;
20965 }
20966 }
20967 if (obj2) {
20968 {
20969 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
20970 temp3 = True;
20971 }
20972 }
20973 {
20974 PyThreadState* __tstate = wxPyBeginAllowThreads();
20975 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
20976
20977 wxPyEndAllowThreads(__tstate);
20978 if (PyErr_Occurred()) SWIG_fail;
20979 }
20980 {
20981 #if wxUSE_UNICODE
20982 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20983 #else
20984 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20985 #endif
20986 }
20987 {
20988 if (temp2)
20989 delete arg2;
20990 }
20991 {
20992 if (temp3) delete arg3;
20993 }
20994 return resultobj;
20995 fail:
20996 {
20997 if (temp2)
20998 delete arg2;
20999 }
21000 {
21001 if (temp3) delete arg3;
21002 }
21003 return NULL;
21004 }
21005
21006
21007 static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) {
21008 PyObject *resultobj;
21009 wxDateTime *arg1 = (wxDateTime *) 0 ;
21010 wxString result;
21011 PyObject * obj0 = 0 ;
21012 char *kwnames[] = {
21013 (char *) "self", NULL
21014 };
21015
21016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
21017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21019 {
21020 PyThreadState* __tstate = wxPyBeginAllowThreads();
21021 result = ((wxDateTime const *)arg1)->FormatDate();
21022
21023 wxPyEndAllowThreads(__tstate);
21024 if (PyErr_Occurred()) SWIG_fail;
21025 }
21026 {
21027 #if wxUSE_UNICODE
21028 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21029 #else
21030 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21031 #endif
21032 }
21033 return resultobj;
21034 fail:
21035 return NULL;
21036 }
21037
21038
21039 static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21040 PyObject *resultobj;
21041 wxDateTime *arg1 = (wxDateTime *) 0 ;
21042 wxString result;
21043 PyObject * obj0 = 0 ;
21044 char *kwnames[] = {
21045 (char *) "self", NULL
21046 };
21047
21048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
21049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21051 {
21052 PyThreadState* __tstate = wxPyBeginAllowThreads();
21053 result = ((wxDateTime const *)arg1)->FormatTime();
21054
21055 wxPyEndAllowThreads(__tstate);
21056 if (PyErr_Occurred()) SWIG_fail;
21057 }
21058 {
21059 #if wxUSE_UNICODE
21060 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21061 #else
21062 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21063 #endif
21064 }
21065 return resultobj;
21066 fail:
21067 return NULL;
21068 }
21069
21070
21071 static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) {
21072 PyObject *resultobj;
21073 wxDateTime *arg1 = (wxDateTime *) 0 ;
21074 wxString result;
21075 PyObject * obj0 = 0 ;
21076 char *kwnames[] = {
21077 (char *) "self", NULL
21078 };
21079
21080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
21081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21083 {
21084 PyThreadState* __tstate = wxPyBeginAllowThreads();
21085 result = ((wxDateTime const *)arg1)->FormatISODate();
21086
21087 wxPyEndAllowThreads(__tstate);
21088 if (PyErr_Occurred()) SWIG_fail;
21089 }
21090 {
21091 #if wxUSE_UNICODE
21092 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21093 #else
21094 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21095 #endif
21096 }
21097 return resultobj;
21098 fail:
21099 return NULL;
21100 }
21101
21102
21103 static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21104 PyObject *resultobj;
21105 wxDateTime *arg1 = (wxDateTime *) 0 ;
21106 wxString result;
21107 PyObject * obj0 = 0 ;
21108 char *kwnames[] = {
21109 (char *) "self", NULL
21110 };
21111
21112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
21113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21115 {
21116 PyThreadState* __tstate = wxPyBeginAllowThreads();
21117 result = ((wxDateTime const *)arg1)->FormatISOTime();
21118
21119 wxPyEndAllowThreads(__tstate);
21120 if (PyErr_Occurred()) SWIG_fail;
21121 }
21122 {
21123 #if wxUSE_UNICODE
21124 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21125 #else
21126 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21127 #endif
21128 }
21129 return resultobj;
21130 fail:
21131 return NULL;
21132 }
21133
21134
21135 static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) {
21136 PyObject *obj;
21137 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21138 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
21139 Py_INCREF(obj);
21140 return Py_BuildValue((char *)"");
21141 }
21142 static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) {
21143 PyObject *resultobj;
21144 long arg1 ;
21145 wxTimeSpan result;
21146 PyObject * obj0 = 0 ;
21147 char *kwnames[] = {
21148 (char *) "sec", NULL
21149 };
21150
21151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
21152 arg1 = (long) SWIG_AsLong(obj0);
21153 if (PyErr_Occurred()) SWIG_fail;
21154 {
21155 PyThreadState* __tstate = wxPyBeginAllowThreads();
21156 result = wxTimeSpan::Seconds(arg1);
21157
21158 wxPyEndAllowThreads(__tstate);
21159 if (PyErr_Occurred()) SWIG_fail;
21160 }
21161 {
21162 wxTimeSpan * resultptr;
21163 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21164 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21165 }
21166 return resultobj;
21167 fail:
21168 return NULL;
21169 }
21170
21171
21172 static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) {
21173 PyObject *resultobj;
21174 wxTimeSpan result;
21175 char *kwnames[] = {
21176 NULL
21177 };
21178
21179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
21180 {
21181 PyThreadState* __tstate = wxPyBeginAllowThreads();
21182 result = wxTimeSpan::Second();
21183
21184 wxPyEndAllowThreads(__tstate);
21185 if (PyErr_Occurred()) SWIG_fail;
21186 }
21187 {
21188 wxTimeSpan * resultptr;
21189 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21190 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21191 }
21192 return resultobj;
21193 fail:
21194 return NULL;
21195 }
21196
21197
21198 static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) {
21199 PyObject *resultobj;
21200 long arg1 ;
21201 wxTimeSpan result;
21202 PyObject * obj0 = 0 ;
21203 char *kwnames[] = {
21204 (char *) "min", NULL
21205 };
21206
21207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
21208 arg1 = (long) SWIG_AsLong(obj0);
21209 if (PyErr_Occurred()) SWIG_fail;
21210 {
21211 PyThreadState* __tstate = wxPyBeginAllowThreads();
21212 result = wxTimeSpan::Minutes(arg1);
21213
21214 wxPyEndAllowThreads(__tstate);
21215 if (PyErr_Occurred()) SWIG_fail;
21216 }
21217 {
21218 wxTimeSpan * resultptr;
21219 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21220 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21221 }
21222 return resultobj;
21223 fail:
21224 return NULL;
21225 }
21226
21227
21228 static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) {
21229 PyObject *resultobj;
21230 wxTimeSpan result;
21231 char *kwnames[] = {
21232 NULL
21233 };
21234
21235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
21236 {
21237 PyThreadState* __tstate = wxPyBeginAllowThreads();
21238 result = wxTimeSpan::Minute();
21239
21240 wxPyEndAllowThreads(__tstate);
21241 if (PyErr_Occurred()) SWIG_fail;
21242 }
21243 {
21244 wxTimeSpan * resultptr;
21245 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21246 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21247 }
21248 return resultobj;
21249 fail:
21250 return NULL;
21251 }
21252
21253
21254 static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) {
21255 PyObject *resultobj;
21256 long arg1 ;
21257 wxTimeSpan result;
21258 PyObject * obj0 = 0 ;
21259 char *kwnames[] = {
21260 (char *) "hours", NULL
21261 };
21262
21263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
21264 arg1 = (long) SWIG_AsLong(obj0);
21265 if (PyErr_Occurred()) SWIG_fail;
21266 {
21267 PyThreadState* __tstate = wxPyBeginAllowThreads();
21268 result = wxTimeSpan::Hours(arg1);
21269
21270 wxPyEndAllowThreads(__tstate);
21271 if (PyErr_Occurred()) SWIG_fail;
21272 }
21273 {
21274 wxTimeSpan * resultptr;
21275 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21276 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21277 }
21278 return resultobj;
21279 fail:
21280 return NULL;
21281 }
21282
21283
21284 static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) {
21285 PyObject *resultobj;
21286 wxTimeSpan result;
21287 char *kwnames[] = {
21288 NULL
21289 };
21290
21291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
21292 {
21293 PyThreadState* __tstate = wxPyBeginAllowThreads();
21294 result = wxTimeSpan::Hour();
21295
21296 wxPyEndAllowThreads(__tstate);
21297 if (PyErr_Occurred()) SWIG_fail;
21298 }
21299 {
21300 wxTimeSpan * resultptr;
21301 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21302 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21303 }
21304 return resultobj;
21305 fail:
21306 return NULL;
21307 }
21308
21309
21310 static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
21311 PyObject *resultobj;
21312 long arg1 ;
21313 wxTimeSpan result;
21314 PyObject * obj0 = 0 ;
21315 char *kwnames[] = {
21316 (char *) "days", NULL
21317 };
21318
21319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
21320 arg1 = (long) SWIG_AsLong(obj0);
21321 if (PyErr_Occurred()) SWIG_fail;
21322 {
21323 PyThreadState* __tstate = wxPyBeginAllowThreads();
21324 result = wxTimeSpan::Days(arg1);
21325
21326 wxPyEndAllowThreads(__tstate);
21327 if (PyErr_Occurred()) SWIG_fail;
21328 }
21329 {
21330 wxTimeSpan * resultptr;
21331 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21332 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21333 }
21334 return resultobj;
21335 fail:
21336 return NULL;
21337 }
21338
21339
21340 static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
21341 PyObject *resultobj;
21342 wxTimeSpan result;
21343 char *kwnames[] = {
21344 NULL
21345 };
21346
21347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
21348 {
21349 PyThreadState* __tstate = wxPyBeginAllowThreads();
21350 result = wxTimeSpan::Day();
21351
21352 wxPyEndAllowThreads(__tstate);
21353 if (PyErr_Occurred()) SWIG_fail;
21354 }
21355 {
21356 wxTimeSpan * resultptr;
21357 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21358 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21359 }
21360 return resultobj;
21361 fail:
21362 return NULL;
21363 }
21364
21365
21366 static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
21367 PyObject *resultobj;
21368 long arg1 ;
21369 wxTimeSpan result;
21370 PyObject * obj0 = 0 ;
21371 char *kwnames[] = {
21372 (char *) "days", NULL
21373 };
21374
21375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
21376 arg1 = (long) SWIG_AsLong(obj0);
21377 if (PyErr_Occurred()) SWIG_fail;
21378 {
21379 PyThreadState* __tstate = wxPyBeginAllowThreads();
21380 result = wxTimeSpan::Weeks(arg1);
21381
21382 wxPyEndAllowThreads(__tstate);
21383 if (PyErr_Occurred()) SWIG_fail;
21384 }
21385 {
21386 wxTimeSpan * resultptr;
21387 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21388 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21389 }
21390 return resultobj;
21391 fail:
21392 return NULL;
21393 }
21394
21395
21396 static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
21397 PyObject *resultobj;
21398 wxTimeSpan result;
21399 char *kwnames[] = {
21400 NULL
21401 };
21402
21403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
21404 {
21405 PyThreadState* __tstate = wxPyBeginAllowThreads();
21406 result = wxTimeSpan::Week();
21407
21408 wxPyEndAllowThreads(__tstate);
21409 if (PyErr_Occurred()) SWIG_fail;
21410 }
21411 {
21412 wxTimeSpan * resultptr;
21413 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21414 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21415 }
21416 return resultobj;
21417 fail:
21418 return NULL;
21419 }
21420
21421
21422 static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21423 PyObject *resultobj;
21424 long arg1 = (long) 0 ;
21425 long arg2 = (long) 0 ;
21426 long arg3 = (long) 0 ;
21427 long arg4 = (long) 0 ;
21428 wxTimeSpan *result;
21429 PyObject * obj0 = 0 ;
21430 PyObject * obj1 = 0 ;
21431 PyObject * obj2 = 0 ;
21432 PyObject * obj3 = 0 ;
21433 char *kwnames[] = {
21434 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
21435 };
21436
21437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21438 if (obj0) {
21439 arg1 = (long) SWIG_AsLong(obj0);
21440 if (PyErr_Occurred()) SWIG_fail;
21441 }
21442 if (obj1) {
21443 arg2 = (long) SWIG_AsLong(obj1);
21444 if (PyErr_Occurred()) SWIG_fail;
21445 }
21446 if (obj2) {
21447 arg3 = (long) SWIG_AsLong(obj2);
21448 if (PyErr_Occurred()) SWIG_fail;
21449 }
21450 if (obj3) {
21451 arg4 = (long) SWIG_AsLong(obj3);
21452 if (PyErr_Occurred()) SWIG_fail;
21453 }
21454 {
21455 PyThreadState* __tstate = wxPyBeginAllowThreads();
21456 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
21457
21458 wxPyEndAllowThreads(__tstate);
21459 if (PyErr_Occurred()) SWIG_fail;
21460 }
21461 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
21462 return resultobj;
21463 fail:
21464 return NULL;
21465 }
21466
21467
21468 static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21469 PyObject *resultobj;
21470 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21471 PyObject * obj0 = 0 ;
21472 char *kwnames[] = {
21473 (char *) "self", NULL
21474 };
21475
21476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
21477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21479 {
21480 PyThreadState* __tstate = wxPyBeginAllowThreads();
21481 delete arg1;
21482
21483 wxPyEndAllowThreads(__tstate);
21484 if (PyErr_Occurred()) SWIG_fail;
21485 }
21486 Py_INCREF(Py_None); resultobj = Py_None;
21487 return resultobj;
21488 fail:
21489 return NULL;
21490 }
21491
21492
21493 static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
21494 PyObject *resultobj;
21495 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21496 wxTimeSpan *arg2 = 0 ;
21497 wxTimeSpan *result;
21498 PyObject * obj0 = 0 ;
21499 PyObject * obj1 = 0 ;
21500 char *kwnames[] = {
21501 (char *) "self",(char *) "diff", NULL
21502 };
21503
21504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
21505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21507 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21508 SWIG_POINTER_EXCEPTION | 0)) == -1)
21509 SWIG_fail;
21510 if (arg2 == NULL) {
21511 PyErr_SetString(PyExc_TypeError,"null reference");
21512 SWIG_fail;
21513 }
21514 {
21515 PyThreadState* __tstate = wxPyBeginAllowThreads();
21516 {
21517 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
21518 result = (wxTimeSpan *) &_result_ref;
21519 }
21520
21521 wxPyEndAllowThreads(__tstate);
21522 if (PyErr_Occurred()) SWIG_fail;
21523 }
21524 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21525 return resultobj;
21526 fail:
21527 return NULL;
21528 }
21529
21530
21531 static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
21532 PyObject *resultobj;
21533 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21534 wxTimeSpan *arg2 = 0 ;
21535 wxTimeSpan *result;
21536 PyObject * obj0 = 0 ;
21537 PyObject * obj1 = 0 ;
21538 char *kwnames[] = {
21539 (char *) "self",(char *) "diff", NULL
21540 };
21541
21542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
21543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21545 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21546 SWIG_POINTER_EXCEPTION | 0)) == -1)
21547 SWIG_fail;
21548 if (arg2 == NULL) {
21549 PyErr_SetString(PyExc_TypeError,"null reference");
21550 SWIG_fail;
21551 }
21552 {
21553 PyThreadState* __tstate = wxPyBeginAllowThreads();
21554 {
21555 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
21556 result = (wxTimeSpan *) &_result_ref;
21557 }
21558
21559 wxPyEndAllowThreads(__tstate);
21560 if (PyErr_Occurred()) SWIG_fail;
21561 }
21562 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21563 return resultobj;
21564 fail:
21565 return NULL;
21566 }
21567
21568
21569 static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
21570 PyObject *resultobj;
21571 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21572 int arg2 ;
21573 wxTimeSpan *result;
21574 PyObject * obj0 = 0 ;
21575 PyObject * obj1 = 0 ;
21576 char *kwnames[] = {
21577 (char *) "self",(char *) "n", NULL
21578 };
21579
21580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
21581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21583 arg2 = (int) SWIG_AsInt(obj1);
21584 if (PyErr_Occurred()) SWIG_fail;
21585 {
21586 PyThreadState* __tstate = wxPyBeginAllowThreads();
21587 {
21588 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
21589 result = (wxTimeSpan *) &_result_ref;
21590 }
21591
21592 wxPyEndAllowThreads(__tstate);
21593 if (PyErr_Occurred()) SWIG_fail;
21594 }
21595 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21596 return resultobj;
21597 fail:
21598 return NULL;
21599 }
21600
21601
21602 static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
21603 PyObject *resultobj;
21604 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21605 wxTimeSpan *result;
21606 PyObject * obj0 = 0 ;
21607 char *kwnames[] = {
21608 (char *) "self", NULL
21609 };
21610
21611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
21612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21614 {
21615 PyThreadState* __tstate = wxPyBeginAllowThreads();
21616 {
21617 wxTimeSpan &_result_ref = (arg1)->Neg();
21618 result = (wxTimeSpan *) &_result_ref;
21619 }
21620
21621 wxPyEndAllowThreads(__tstate);
21622 if (PyErr_Occurred()) SWIG_fail;
21623 }
21624 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21625 return resultobj;
21626 fail:
21627 return NULL;
21628 }
21629
21630
21631 static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) {
21632 PyObject *resultobj;
21633 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21634 wxTimeSpan result;
21635 PyObject * obj0 = 0 ;
21636 char *kwnames[] = {
21637 (char *) "self", NULL
21638 };
21639
21640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
21641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21643 {
21644 PyThreadState* __tstate = wxPyBeginAllowThreads();
21645 result = ((wxTimeSpan const *)arg1)->Abs();
21646
21647 wxPyEndAllowThreads(__tstate);
21648 if (PyErr_Occurred()) SWIG_fail;
21649 }
21650 {
21651 wxTimeSpan * resultptr;
21652 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21653 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21654 }
21655 return resultobj;
21656 fail:
21657 return NULL;
21658 }
21659
21660
21661 static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
21662 PyObject *resultobj;
21663 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21664 wxTimeSpan *arg2 = 0 ;
21665 wxTimeSpan *result;
21666 PyObject * obj0 = 0 ;
21667 PyObject * obj1 = 0 ;
21668 char *kwnames[] = {
21669 (char *) "self",(char *) "diff", NULL
21670 };
21671
21672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
21673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21675 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21676 SWIG_POINTER_EXCEPTION | 0)) == -1)
21677 SWIG_fail;
21678 if (arg2 == NULL) {
21679 PyErr_SetString(PyExc_TypeError,"null reference");
21680 SWIG_fail;
21681 }
21682 {
21683 PyThreadState* __tstate = wxPyBeginAllowThreads();
21684 {
21685 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
21686 result = (wxTimeSpan *) &_result_ref;
21687 }
21688
21689 wxPyEndAllowThreads(__tstate);
21690 if (PyErr_Occurred()) SWIG_fail;
21691 }
21692 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21693 return resultobj;
21694 fail:
21695 return NULL;
21696 }
21697
21698
21699 static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21700 PyObject *resultobj;
21701 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21702 wxTimeSpan *arg2 = 0 ;
21703 wxTimeSpan *result;
21704 PyObject * obj0 = 0 ;
21705 PyObject * obj1 = 0 ;
21706 char *kwnames[] = {
21707 (char *) "self",(char *) "diff", NULL
21708 };
21709
21710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
21711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21713 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21714 SWIG_POINTER_EXCEPTION | 0)) == -1)
21715 SWIG_fail;
21716 if (arg2 == NULL) {
21717 PyErr_SetString(PyExc_TypeError,"null reference");
21718 SWIG_fail;
21719 }
21720 {
21721 PyThreadState* __tstate = wxPyBeginAllowThreads();
21722 {
21723 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
21724 result = (wxTimeSpan *) &_result_ref;
21725 }
21726
21727 wxPyEndAllowThreads(__tstate);
21728 if (PyErr_Occurred()) SWIG_fail;
21729 }
21730 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21731 return resultobj;
21732 fail:
21733 return NULL;
21734 }
21735
21736
21737 static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21738 PyObject *resultobj;
21739 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21740 int arg2 ;
21741 wxTimeSpan *result;
21742 PyObject * obj0 = 0 ;
21743 PyObject * obj1 = 0 ;
21744 char *kwnames[] = {
21745 (char *) "self",(char *) "n", NULL
21746 };
21747
21748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
21749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21751 arg2 = (int) SWIG_AsInt(obj1);
21752 if (PyErr_Occurred()) SWIG_fail;
21753 {
21754 PyThreadState* __tstate = wxPyBeginAllowThreads();
21755 {
21756 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
21757 result = (wxTimeSpan *) &_result_ref;
21758 }
21759
21760 wxPyEndAllowThreads(__tstate);
21761 if (PyErr_Occurred()) SWIG_fail;
21762 }
21763 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21764 return resultobj;
21765 fail:
21766 return NULL;
21767 }
21768
21769
21770 static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
21771 PyObject *resultobj;
21772 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21773 wxTimeSpan *result;
21774 PyObject * obj0 = 0 ;
21775 char *kwnames[] = {
21776 (char *) "self", NULL
21777 };
21778
21779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
21780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21782 {
21783 PyThreadState* __tstate = wxPyBeginAllowThreads();
21784 {
21785 wxTimeSpan &_result_ref = (arg1)->operator -();
21786 result = (wxTimeSpan *) &_result_ref;
21787 }
21788
21789 wxPyEndAllowThreads(__tstate);
21790 if (PyErr_Occurred()) SWIG_fail;
21791 }
21792 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21793 return resultobj;
21794 fail:
21795 return NULL;
21796 }
21797
21798
21799 static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
21800 PyObject *resultobj;
21801 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21802 wxTimeSpan *arg2 = 0 ;
21803 wxTimeSpan result;
21804 PyObject * obj0 = 0 ;
21805 PyObject * obj1 = 0 ;
21806 char *kwnames[] = {
21807 (char *) "self",(char *) "other", NULL
21808 };
21809
21810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
21811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21813 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21814 SWIG_POINTER_EXCEPTION | 0)) == -1)
21815 SWIG_fail;
21816 if (arg2 == NULL) {
21817 PyErr_SetString(PyExc_TypeError,"null reference");
21818 SWIG_fail;
21819 }
21820 {
21821 PyThreadState* __tstate = wxPyBeginAllowThreads();
21822 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
21823
21824 wxPyEndAllowThreads(__tstate);
21825 if (PyErr_Occurred()) SWIG_fail;
21826 }
21827 {
21828 wxTimeSpan * resultptr;
21829 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21830 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21831 }
21832 return resultobj;
21833 fail:
21834 return NULL;
21835 }
21836
21837
21838 static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21839 PyObject *resultobj;
21840 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21841 wxTimeSpan *arg2 = 0 ;
21842 wxTimeSpan result;
21843 PyObject * obj0 = 0 ;
21844 PyObject * obj1 = 0 ;
21845 char *kwnames[] = {
21846 (char *) "self",(char *) "other", NULL
21847 };
21848
21849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
21850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21852 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21853 SWIG_POINTER_EXCEPTION | 0)) == -1)
21854 SWIG_fail;
21855 if (arg2 == NULL) {
21856 PyErr_SetString(PyExc_TypeError,"null reference");
21857 SWIG_fail;
21858 }
21859 {
21860 PyThreadState* __tstate = wxPyBeginAllowThreads();
21861 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
21862
21863 wxPyEndAllowThreads(__tstate);
21864 if (PyErr_Occurred()) SWIG_fail;
21865 }
21866 {
21867 wxTimeSpan * resultptr;
21868 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21869 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21870 }
21871 return resultobj;
21872 fail:
21873 return NULL;
21874 }
21875
21876
21877 static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21878 PyObject *resultobj;
21879 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21880 int arg2 ;
21881 wxTimeSpan result;
21882 PyObject * obj0 = 0 ;
21883 PyObject * obj1 = 0 ;
21884 char *kwnames[] = {
21885 (char *) "self",(char *) "n", NULL
21886 };
21887
21888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
21889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21891 arg2 = (int) SWIG_AsInt(obj1);
21892 if (PyErr_Occurred()) SWIG_fail;
21893 {
21894 PyThreadState* __tstate = wxPyBeginAllowThreads();
21895 result = wxTimeSpan___mul__(arg1,arg2);
21896
21897 wxPyEndAllowThreads(__tstate);
21898 if (PyErr_Occurred()) SWIG_fail;
21899 }
21900 {
21901 wxTimeSpan * resultptr;
21902 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21903 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21904 }
21905 return resultobj;
21906 fail:
21907 return NULL;
21908 }
21909
21910
21911 static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21912 PyObject *resultobj;
21913 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21914 int arg2 ;
21915 wxTimeSpan result;
21916 PyObject * obj0 = 0 ;
21917 PyObject * obj1 = 0 ;
21918 char *kwnames[] = {
21919 (char *) "self",(char *) "n", NULL
21920 };
21921
21922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
21923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21925 arg2 = (int) SWIG_AsInt(obj1);
21926 if (PyErr_Occurred()) SWIG_fail;
21927 {
21928 PyThreadState* __tstate = wxPyBeginAllowThreads();
21929 result = wxTimeSpan___rmul__(arg1,arg2);
21930
21931 wxPyEndAllowThreads(__tstate);
21932 if (PyErr_Occurred()) SWIG_fail;
21933 }
21934 {
21935 wxTimeSpan * resultptr;
21936 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21937 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21938 }
21939 return resultobj;
21940 fail:
21941 return NULL;
21942 }
21943
21944
21945 static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) {
21946 PyObject *resultobj;
21947 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21948 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
21949 bool result;
21950 PyObject * obj0 = 0 ;
21951 PyObject * obj1 = 0 ;
21952 char *kwnames[] = {
21953 (char *) "self",(char *) "other", NULL
21954 };
21955
21956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
21957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21959 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21961 {
21962 PyThreadState* __tstate = wxPyBeginAllowThreads();
21963 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
21964
21965 wxPyEndAllowThreads(__tstate);
21966 if (PyErr_Occurred()) SWIG_fail;
21967 }
21968 {
21969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21970 }
21971 return resultobj;
21972 fail:
21973 return NULL;
21974 }
21975
21976
21977 static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) {
21978 PyObject *resultobj;
21979 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21980 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
21981 bool result;
21982 PyObject * obj0 = 0 ;
21983 PyObject * obj1 = 0 ;
21984 char *kwnames[] = {
21985 (char *) "self",(char *) "other", NULL
21986 };
21987
21988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
21989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21991 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21993 {
21994 PyThreadState* __tstate = wxPyBeginAllowThreads();
21995 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
21996
21997 wxPyEndAllowThreads(__tstate);
21998 if (PyErr_Occurred()) SWIG_fail;
21999 }
22000 {
22001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22002 }
22003 return resultobj;
22004 fail:
22005 return NULL;
22006 }
22007
22008
22009 static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) {
22010 PyObject *resultobj;
22011 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22012 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22013 bool result;
22014 PyObject * obj0 = 0 ;
22015 PyObject * obj1 = 0 ;
22016 char *kwnames[] = {
22017 (char *) "self",(char *) "other", NULL
22018 };
22019
22020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
22021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22023 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22025 {
22026 PyThreadState* __tstate = wxPyBeginAllowThreads();
22027 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
22028
22029 wxPyEndAllowThreads(__tstate);
22030 if (PyErr_Occurred()) SWIG_fail;
22031 }
22032 {
22033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22034 }
22035 return resultobj;
22036 fail:
22037 return NULL;
22038 }
22039
22040
22041 static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) {
22042 PyObject *resultobj;
22043 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22044 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22045 bool result;
22046 PyObject * obj0 = 0 ;
22047 PyObject * obj1 = 0 ;
22048 char *kwnames[] = {
22049 (char *) "self",(char *) "other", NULL
22050 };
22051
22052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
22053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22055 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22057 {
22058 PyThreadState* __tstate = wxPyBeginAllowThreads();
22059 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
22060
22061 wxPyEndAllowThreads(__tstate);
22062 if (PyErr_Occurred()) SWIG_fail;
22063 }
22064 {
22065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22066 }
22067 return resultobj;
22068 fail:
22069 return NULL;
22070 }
22071
22072
22073 static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
22074 PyObject *resultobj;
22075 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22076 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22077 bool result;
22078 PyObject * obj0 = 0 ;
22079 PyObject * obj1 = 0 ;
22080 char *kwnames[] = {
22081 (char *) "self",(char *) "other", NULL
22082 };
22083
22084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
22085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22087 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22089 {
22090 PyThreadState* __tstate = wxPyBeginAllowThreads();
22091 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
22092
22093 wxPyEndAllowThreads(__tstate);
22094 if (PyErr_Occurred()) SWIG_fail;
22095 }
22096 {
22097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22098 }
22099 return resultobj;
22100 fail:
22101 return NULL;
22102 }
22103
22104
22105 static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
22106 PyObject *resultobj;
22107 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22108 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22109 bool result;
22110 PyObject * obj0 = 0 ;
22111 PyObject * obj1 = 0 ;
22112 char *kwnames[] = {
22113 (char *) "self",(char *) "other", NULL
22114 };
22115
22116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
22117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22119 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22121 {
22122 PyThreadState* __tstate = wxPyBeginAllowThreads();
22123 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
22124
22125 wxPyEndAllowThreads(__tstate);
22126 if (PyErr_Occurred()) SWIG_fail;
22127 }
22128 {
22129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22130 }
22131 return resultobj;
22132 fail:
22133 return NULL;
22134 }
22135
22136
22137 static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
22138 PyObject *resultobj;
22139 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22140 bool result;
22141 PyObject * obj0 = 0 ;
22142 char *kwnames[] = {
22143 (char *) "self", NULL
22144 };
22145
22146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
22147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22149 {
22150 PyThreadState* __tstate = wxPyBeginAllowThreads();
22151 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
22152
22153 wxPyEndAllowThreads(__tstate);
22154 if (PyErr_Occurred()) SWIG_fail;
22155 }
22156 {
22157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22158 }
22159 return resultobj;
22160 fail:
22161 return NULL;
22162 }
22163
22164
22165 static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) {
22166 PyObject *resultobj;
22167 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22168 bool result;
22169 PyObject * obj0 = 0 ;
22170 char *kwnames[] = {
22171 (char *) "self", NULL
22172 };
22173
22174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
22175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22177 {
22178 PyThreadState* __tstate = wxPyBeginAllowThreads();
22179 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
22180
22181 wxPyEndAllowThreads(__tstate);
22182 if (PyErr_Occurred()) SWIG_fail;
22183 }
22184 {
22185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22186 }
22187 return resultobj;
22188 fail:
22189 return NULL;
22190 }
22191
22192
22193 static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) {
22194 PyObject *resultobj;
22195 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22196 bool result;
22197 PyObject * obj0 = 0 ;
22198 char *kwnames[] = {
22199 (char *) "self", NULL
22200 };
22201
22202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
22203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22205 {
22206 PyThreadState* __tstate = wxPyBeginAllowThreads();
22207 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
22208
22209 wxPyEndAllowThreads(__tstate);
22210 if (PyErr_Occurred()) SWIG_fail;
22211 }
22212 {
22213 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22214 }
22215 return resultobj;
22216 fail:
22217 return NULL;
22218 }
22219
22220
22221 static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
22222 PyObject *resultobj;
22223 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22224 wxTimeSpan *arg2 = 0 ;
22225 bool result;
22226 PyObject * obj0 = 0 ;
22227 PyObject * obj1 = 0 ;
22228 char *kwnames[] = {
22229 (char *) "self",(char *) "ts", NULL
22230 };
22231
22232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
22233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22235 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22236 SWIG_POINTER_EXCEPTION | 0)) == -1)
22237 SWIG_fail;
22238 if (arg2 == NULL) {
22239 PyErr_SetString(PyExc_TypeError,"null reference");
22240 SWIG_fail;
22241 }
22242 {
22243 PyThreadState* __tstate = wxPyBeginAllowThreads();
22244 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
22245
22246 wxPyEndAllowThreads(__tstate);
22247 if (PyErr_Occurred()) SWIG_fail;
22248 }
22249 {
22250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22251 }
22252 return resultobj;
22253 fail:
22254 return NULL;
22255 }
22256
22257
22258 static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22259 PyObject *resultobj;
22260 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22261 wxTimeSpan *arg2 = 0 ;
22262 bool result;
22263 PyObject * obj0 = 0 ;
22264 PyObject * obj1 = 0 ;
22265 char *kwnames[] = {
22266 (char *) "self",(char *) "ts", NULL
22267 };
22268
22269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
22270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22272 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22273 SWIG_POINTER_EXCEPTION | 0)) == -1)
22274 SWIG_fail;
22275 if (arg2 == NULL) {
22276 PyErr_SetString(PyExc_TypeError,"null reference");
22277 SWIG_fail;
22278 }
22279 {
22280 PyThreadState* __tstate = wxPyBeginAllowThreads();
22281 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
22282
22283 wxPyEndAllowThreads(__tstate);
22284 if (PyErr_Occurred()) SWIG_fail;
22285 }
22286 {
22287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22288 }
22289 return resultobj;
22290 fail:
22291 return NULL;
22292 }
22293
22294
22295 static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22296 PyObject *resultobj;
22297 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22298 wxTimeSpan *arg2 = 0 ;
22299 bool result;
22300 PyObject * obj0 = 0 ;
22301 PyObject * obj1 = 0 ;
22302 char *kwnames[] = {
22303 (char *) "self",(char *) "t", NULL
22304 };
22305
22306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
22307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22309 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22310 SWIG_POINTER_EXCEPTION | 0)) == -1)
22311 SWIG_fail;
22312 if (arg2 == NULL) {
22313 PyErr_SetString(PyExc_TypeError,"null reference");
22314 SWIG_fail;
22315 }
22316 {
22317 PyThreadState* __tstate = wxPyBeginAllowThreads();
22318 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
22319
22320 wxPyEndAllowThreads(__tstate);
22321 if (PyErr_Occurred()) SWIG_fail;
22322 }
22323 {
22324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22325 }
22326 return resultobj;
22327 fail:
22328 return NULL;
22329 }
22330
22331
22332 static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22333 PyObject *resultobj;
22334 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22335 int result;
22336 PyObject * obj0 = 0 ;
22337 char *kwnames[] = {
22338 (char *) "self", NULL
22339 };
22340
22341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
22342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22344 {
22345 PyThreadState* __tstate = wxPyBeginAllowThreads();
22346 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
22347
22348 wxPyEndAllowThreads(__tstate);
22349 if (PyErr_Occurred()) SWIG_fail;
22350 }
22351 resultobj = SWIG_FromInt((int)result);
22352 return resultobj;
22353 fail:
22354 return NULL;
22355 }
22356
22357
22358 static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22359 PyObject *resultobj;
22360 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22361 int result;
22362 PyObject * obj0 = 0 ;
22363 char *kwnames[] = {
22364 (char *) "self", NULL
22365 };
22366
22367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
22368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22370 {
22371 PyThreadState* __tstate = wxPyBeginAllowThreads();
22372 result = (int)((wxTimeSpan const *)arg1)->GetDays();
22373
22374 wxPyEndAllowThreads(__tstate);
22375 if (PyErr_Occurred()) SWIG_fail;
22376 }
22377 resultobj = SWIG_FromInt((int)result);
22378 return resultobj;
22379 fail:
22380 return NULL;
22381 }
22382
22383
22384 static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) {
22385 PyObject *resultobj;
22386 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22387 int result;
22388 PyObject * obj0 = 0 ;
22389 char *kwnames[] = {
22390 (char *) "self", NULL
22391 };
22392
22393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
22394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22396 {
22397 PyThreadState* __tstate = wxPyBeginAllowThreads();
22398 result = (int)((wxTimeSpan const *)arg1)->GetHours();
22399
22400 wxPyEndAllowThreads(__tstate);
22401 if (PyErr_Occurred()) SWIG_fail;
22402 }
22403 resultobj = SWIG_FromInt((int)result);
22404 return resultobj;
22405 fail:
22406 return NULL;
22407 }
22408
22409
22410 static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) {
22411 PyObject *resultobj;
22412 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22413 int result;
22414 PyObject * obj0 = 0 ;
22415 char *kwnames[] = {
22416 (char *) "self", NULL
22417 };
22418
22419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
22420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22422 {
22423 PyThreadState* __tstate = wxPyBeginAllowThreads();
22424 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
22425
22426 wxPyEndAllowThreads(__tstate);
22427 if (PyErr_Occurred()) SWIG_fail;
22428 }
22429 resultobj = SWIG_FromInt((int)result);
22430 return resultobj;
22431 fail:
22432 return NULL;
22433 }
22434
22435
22436 static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22437 PyObject *resultobj;
22438 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22439 wxLongLong result;
22440 PyObject * obj0 = 0 ;
22441 char *kwnames[] = {
22442 (char *) "self", NULL
22443 };
22444
22445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
22446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22448 {
22449 PyThreadState* __tstate = wxPyBeginAllowThreads();
22450 result = ((wxTimeSpan const *)arg1)->GetSeconds();
22451
22452 wxPyEndAllowThreads(__tstate);
22453 if (PyErr_Occurred()) SWIG_fail;
22454 }
22455 {
22456 PyObject *hi, *lo, *shifter, *shifted;
22457 hi = PyLong_FromLong( (&result)->GetHi() );
22458 lo = PyLong_FromLong( (&result)->GetLo() );
22459 shifter = PyLong_FromLong(32);
22460 shifted = PyNumber_Lshift(hi, shifter);
22461 resultobj = PyNumber_Or(shifted, lo);
22462 Py_DECREF(hi);
22463 Py_DECREF(lo);
22464 Py_DECREF(shifter);
22465 Py_DECREF(shifted);
22466 }
22467 return resultobj;
22468 fail:
22469 return NULL;
22470 }
22471
22472
22473 static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22474 PyObject *resultobj;
22475 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22476 wxLongLong result;
22477 PyObject * obj0 = 0 ;
22478 char *kwnames[] = {
22479 (char *) "self", NULL
22480 };
22481
22482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
22483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22485 {
22486 PyThreadState* __tstate = wxPyBeginAllowThreads();
22487 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
22488
22489 wxPyEndAllowThreads(__tstate);
22490 if (PyErr_Occurred()) SWIG_fail;
22491 }
22492 {
22493 PyObject *hi, *lo, *shifter, *shifted;
22494 hi = PyLong_FromLong( (&result)->GetHi() );
22495 lo = PyLong_FromLong( (&result)->GetLo() );
22496 shifter = PyLong_FromLong(32);
22497 shifted = PyNumber_Lshift(hi, shifter);
22498 resultobj = PyNumber_Or(shifted, lo);
22499 Py_DECREF(hi);
22500 Py_DECREF(lo);
22501 Py_DECREF(shifter);
22502 Py_DECREF(shifted);
22503 }
22504 return resultobj;
22505 fail:
22506 return NULL;
22507 }
22508
22509
22510 static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
22511 PyObject *resultobj;
22512 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22513 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
22514 wxString *arg2 = (wxString *) &arg2_defvalue ;
22515 wxString result;
22516 bool temp2 = False ;
22517 PyObject * obj0 = 0 ;
22518 PyObject * obj1 = 0 ;
22519 char *kwnames[] = {
22520 (char *) "self",(char *) "format", NULL
22521 };
22522
22523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
22524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22526 if (obj1) {
22527 {
22528 arg2 = wxString_in_helper(obj1);
22529 if (arg2 == NULL) SWIG_fail;
22530 temp2 = True;
22531 }
22532 }
22533 {
22534 PyThreadState* __tstate = wxPyBeginAllowThreads();
22535 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
22536
22537 wxPyEndAllowThreads(__tstate);
22538 if (PyErr_Occurred()) SWIG_fail;
22539 }
22540 {
22541 #if wxUSE_UNICODE
22542 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22543 #else
22544 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22545 #endif
22546 }
22547 {
22548 if (temp2)
22549 delete arg2;
22550 }
22551 return resultobj;
22552 fail:
22553 {
22554 if (temp2)
22555 delete arg2;
22556 }
22557 return NULL;
22558 }
22559
22560
22561 static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) {
22562 PyObject *obj;
22563 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22564 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
22565 Py_INCREF(obj);
22566 return Py_BuildValue((char *)"");
22567 }
22568 static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22569 PyObject *resultobj;
22570 int arg1 = (int) 0 ;
22571 int arg2 = (int) 0 ;
22572 int arg3 = (int) 0 ;
22573 int arg4 = (int) 0 ;
22574 wxDateSpan *result;
22575 PyObject * obj0 = 0 ;
22576 PyObject * obj1 = 0 ;
22577 PyObject * obj2 = 0 ;
22578 PyObject * obj3 = 0 ;
22579 char *kwnames[] = {
22580 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
22581 };
22582
22583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22584 if (obj0) {
22585 arg1 = (int) SWIG_AsInt(obj0);
22586 if (PyErr_Occurred()) SWIG_fail;
22587 }
22588 if (obj1) {
22589 arg2 = (int) SWIG_AsInt(obj1);
22590 if (PyErr_Occurred()) SWIG_fail;
22591 }
22592 if (obj2) {
22593 arg3 = (int) SWIG_AsInt(obj2);
22594 if (PyErr_Occurred()) SWIG_fail;
22595 }
22596 if (obj3) {
22597 arg4 = (int) SWIG_AsInt(obj3);
22598 if (PyErr_Occurred()) SWIG_fail;
22599 }
22600 {
22601 PyThreadState* __tstate = wxPyBeginAllowThreads();
22602 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
22603
22604 wxPyEndAllowThreads(__tstate);
22605 if (PyErr_Occurred()) SWIG_fail;
22606 }
22607 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
22608 return resultobj;
22609 fail:
22610 return NULL;
22611 }
22612
22613
22614 static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22615 PyObject *resultobj;
22616 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22617 PyObject * obj0 = 0 ;
22618 char *kwnames[] = {
22619 (char *) "self", NULL
22620 };
22621
22622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
22623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22625 {
22626 PyThreadState* __tstate = wxPyBeginAllowThreads();
22627 delete arg1;
22628
22629 wxPyEndAllowThreads(__tstate);
22630 if (PyErr_Occurred()) SWIG_fail;
22631 }
22632 Py_INCREF(Py_None); resultobj = Py_None;
22633 return resultobj;
22634 fail:
22635 return NULL;
22636 }
22637
22638
22639 static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
22640 PyObject *resultobj;
22641 int arg1 ;
22642 wxDateSpan result;
22643 PyObject * obj0 = 0 ;
22644 char *kwnames[] = {
22645 (char *) "days", NULL
22646 };
22647
22648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
22649 arg1 = (int) SWIG_AsInt(obj0);
22650 if (PyErr_Occurred()) SWIG_fail;
22651 {
22652 PyThreadState* __tstate = wxPyBeginAllowThreads();
22653 result = wxDateSpan::Days(arg1);
22654
22655 wxPyEndAllowThreads(__tstate);
22656 if (PyErr_Occurred()) SWIG_fail;
22657 }
22658 {
22659 wxDateSpan * resultptr;
22660 resultptr = new wxDateSpan((wxDateSpan &) result);
22661 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22662 }
22663 return resultobj;
22664 fail:
22665 return NULL;
22666 }
22667
22668
22669 static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
22670 PyObject *resultobj;
22671 wxDateSpan result;
22672 char *kwnames[] = {
22673 NULL
22674 };
22675
22676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
22677 {
22678 PyThreadState* __tstate = wxPyBeginAllowThreads();
22679 result = wxDateSpan::Day();
22680
22681 wxPyEndAllowThreads(__tstate);
22682 if (PyErr_Occurred()) SWIG_fail;
22683 }
22684 {
22685 wxDateSpan * resultptr;
22686 resultptr = new wxDateSpan((wxDateSpan &) result);
22687 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22688 }
22689 return resultobj;
22690 fail:
22691 return NULL;
22692 }
22693
22694
22695 static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22696 PyObject *resultobj;
22697 int arg1 ;
22698 wxDateSpan result;
22699 PyObject * obj0 = 0 ;
22700 char *kwnames[] = {
22701 (char *) "weeks", NULL
22702 };
22703
22704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
22705 arg1 = (int) SWIG_AsInt(obj0);
22706 if (PyErr_Occurred()) SWIG_fail;
22707 {
22708 PyThreadState* __tstate = wxPyBeginAllowThreads();
22709 result = wxDateSpan::Weeks(arg1);
22710
22711 wxPyEndAllowThreads(__tstate);
22712 if (PyErr_Occurred()) SWIG_fail;
22713 }
22714 {
22715 wxDateSpan * resultptr;
22716 resultptr = new wxDateSpan((wxDateSpan &) result);
22717 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22718 }
22719 return resultobj;
22720 fail:
22721 return NULL;
22722 }
22723
22724
22725 static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
22726 PyObject *resultobj;
22727 wxDateSpan result;
22728 char *kwnames[] = {
22729 NULL
22730 };
22731
22732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
22733 {
22734 PyThreadState* __tstate = wxPyBeginAllowThreads();
22735 result = wxDateSpan::Week();
22736
22737 wxPyEndAllowThreads(__tstate);
22738 if (PyErr_Occurred()) SWIG_fail;
22739 }
22740 {
22741 wxDateSpan * resultptr;
22742 resultptr = new wxDateSpan((wxDateSpan &) result);
22743 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22744 }
22745 return resultobj;
22746 fail:
22747 return NULL;
22748 }
22749
22750
22751 static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) {
22752 PyObject *resultobj;
22753 int arg1 ;
22754 wxDateSpan result;
22755 PyObject * obj0 = 0 ;
22756 char *kwnames[] = {
22757 (char *) "mon", NULL
22758 };
22759
22760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
22761 arg1 = (int) SWIG_AsInt(obj0);
22762 if (PyErr_Occurred()) SWIG_fail;
22763 {
22764 PyThreadState* __tstate = wxPyBeginAllowThreads();
22765 result = wxDateSpan::Months(arg1);
22766
22767 wxPyEndAllowThreads(__tstate);
22768 if (PyErr_Occurred()) SWIG_fail;
22769 }
22770 {
22771 wxDateSpan * resultptr;
22772 resultptr = new wxDateSpan((wxDateSpan &) result);
22773 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22774 }
22775 return resultobj;
22776 fail:
22777 return NULL;
22778 }
22779
22780
22781 static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) {
22782 PyObject *resultobj;
22783 wxDateSpan result;
22784 char *kwnames[] = {
22785 NULL
22786 };
22787
22788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
22789 {
22790 PyThreadState* __tstate = wxPyBeginAllowThreads();
22791 result = wxDateSpan::Month();
22792
22793 wxPyEndAllowThreads(__tstate);
22794 if (PyErr_Occurred()) SWIG_fail;
22795 }
22796 {
22797 wxDateSpan * resultptr;
22798 resultptr = new wxDateSpan((wxDateSpan &) result);
22799 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22800 }
22801 return resultobj;
22802 fail:
22803 return NULL;
22804 }
22805
22806
22807 static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) {
22808 PyObject *resultobj;
22809 int arg1 ;
22810 wxDateSpan result;
22811 PyObject * obj0 = 0 ;
22812 char *kwnames[] = {
22813 (char *) "years", NULL
22814 };
22815
22816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
22817 arg1 = (int) SWIG_AsInt(obj0);
22818 if (PyErr_Occurred()) SWIG_fail;
22819 {
22820 PyThreadState* __tstate = wxPyBeginAllowThreads();
22821 result = wxDateSpan::Years(arg1);
22822
22823 wxPyEndAllowThreads(__tstate);
22824 if (PyErr_Occurred()) SWIG_fail;
22825 }
22826 {
22827 wxDateSpan * resultptr;
22828 resultptr = new wxDateSpan((wxDateSpan &) result);
22829 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22830 }
22831 return resultobj;
22832 fail:
22833 return NULL;
22834 }
22835
22836
22837 static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) {
22838 PyObject *resultobj;
22839 wxDateSpan result;
22840 char *kwnames[] = {
22841 NULL
22842 };
22843
22844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
22845 {
22846 PyThreadState* __tstate = wxPyBeginAllowThreads();
22847 result = wxDateSpan::Year();
22848
22849 wxPyEndAllowThreads(__tstate);
22850 if (PyErr_Occurred()) SWIG_fail;
22851 }
22852 {
22853 wxDateSpan * resultptr;
22854 resultptr = new wxDateSpan((wxDateSpan &) result);
22855 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22856 }
22857 return resultobj;
22858 fail:
22859 return NULL;
22860 }
22861
22862
22863 static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
22864 PyObject *resultobj;
22865 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22866 int arg2 ;
22867 wxDateSpan *result;
22868 PyObject * obj0 = 0 ;
22869 PyObject * obj1 = 0 ;
22870 char *kwnames[] = {
22871 (char *) "self",(char *) "n", NULL
22872 };
22873
22874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
22875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22877 arg2 = (int) SWIG_AsInt(obj1);
22878 if (PyErr_Occurred()) SWIG_fail;
22879 {
22880 PyThreadState* __tstate = wxPyBeginAllowThreads();
22881 {
22882 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
22883 result = (wxDateSpan *) &_result_ref;
22884 }
22885
22886 wxPyEndAllowThreads(__tstate);
22887 if (PyErr_Occurred()) SWIG_fail;
22888 }
22889 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22890 return resultobj;
22891 fail:
22892 return NULL;
22893 }
22894
22895
22896 static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
22897 PyObject *resultobj;
22898 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22899 int arg2 ;
22900 wxDateSpan *result;
22901 PyObject * obj0 = 0 ;
22902 PyObject * obj1 = 0 ;
22903 char *kwnames[] = {
22904 (char *) "self",(char *) "n", NULL
22905 };
22906
22907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
22908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22910 arg2 = (int) SWIG_AsInt(obj1);
22911 if (PyErr_Occurred()) SWIG_fail;
22912 {
22913 PyThreadState* __tstate = wxPyBeginAllowThreads();
22914 {
22915 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
22916 result = (wxDateSpan *) &_result_ref;
22917 }
22918
22919 wxPyEndAllowThreads(__tstate);
22920 if (PyErr_Occurred()) SWIG_fail;
22921 }
22922 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22923 return resultobj;
22924 fail:
22925 return NULL;
22926 }
22927
22928
22929 static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22930 PyObject *resultobj;
22931 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22932 int arg2 ;
22933 wxDateSpan *result;
22934 PyObject * obj0 = 0 ;
22935 PyObject * obj1 = 0 ;
22936 char *kwnames[] = {
22937 (char *) "self",(char *) "n", NULL
22938 };
22939
22940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
22941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22943 arg2 = (int) SWIG_AsInt(obj1);
22944 if (PyErr_Occurred()) SWIG_fail;
22945 {
22946 PyThreadState* __tstate = wxPyBeginAllowThreads();
22947 {
22948 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
22949 result = (wxDateSpan *) &_result_ref;
22950 }
22951
22952 wxPyEndAllowThreads(__tstate);
22953 if (PyErr_Occurred()) SWIG_fail;
22954 }
22955 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22956 return resultobj;
22957 fail:
22958 return NULL;
22959 }
22960
22961
22962 static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22963 PyObject *resultobj;
22964 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22965 int arg2 ;
22966 wxDateSpan *result;
22967 PyObject * obj0 = 0 ;
22968 PyObject * obj1 = 0 ;
22969 char *kwnames[] = {
22970 (char *) "self",(char *) "n", NULL
22971 };
22972
22973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
22974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22976 arg2 = (int) SWIG_AsInt(obj1);
22977 if (PyErr_Occurred()) SWIG_fail;
22978 {
22979 PyThreadState* __tstate = wxPyBeginAllowThreads();
22980 {
22981 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
22982 result = (wxDateSpan *) &_result_ref;
22983 }
22984
22985 wxPyEndAllowThreads(__tstate);
22986 if (PyErr_Occurred()) SWIG_fail;
22987 }
22988 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22989 return resultobj;
22990 fail:
22991 return NULL;
22992 }
22993
22994
22995 static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
22996 PyObject *resultobj;
22997 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22998 int result;
22999 PyObject * obj0 = 0 ;
23000 char *kwnames[] = {
23001 (char *) "self", NULL
23002 };
23003
23004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
23005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23007 {
23008 PyThreadState* __tstate = wxPyBeginAllowThreads();
23009 result = (int)((wxDateSpan const *)arg1)->GetYears();
23010
23011 wxPyEndAllowThreads(__tstate);
23012 if (PyErr_Occurred()) SWIG_fail;
23013 }
23014 resultobj = SWIG_FromInt((int)result);
23015 return resultobj;
23016 fail:
23017 return NULL;
23018 }
23019
23020
23021 static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
23022 PyObject *resultobj;
23023 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23024 int result;
23025 PyObject * obj0 = 0 ;
23026 char *kwnames[] = {
23027 (char *) "self", NULL
23028 };
23029
23030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
23031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23033 {
23034 PyThreadState* __tstate = wxPyBeginAllowThreads();
23035 result = (int)((wxDateSpan const *)arg1)->GetMonths();
23036
23037 wxPyEndAllowThreads(__tstate);
23038 if (PyErr_Occurred()) SWIG_fail;
23039 }
23040 resultobj = SWIG_FromInt((int)result);
23041 return resultobj;
23042 fail:
23043 return NULL;
23044 }
23045
23046
23047 static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
23048 PyObject *resultobj;
23049 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23050 int result;
23051 PyObject * obj0 = 0 ;
23052 char *kwnames[] = {
23053 (char *) "self", NULL
23054 };
23055
23056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
23057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23059 {
23060 PyThreadState* __tstate = wxPyBeginAllowThreads();
23061 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
23062
23063 wxPyEndAllowThreads(__tstate);
23064 if (PyErr_Occurred()) SWIG_fail;
23065 }
23066 resultobj = SWIG_FromInt((int)result);
23067 return resultobj;
23068 fail:
23069 return NULL;
23070 }
23071
23072
23073 static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23074 PyObject *resultobj;
23075 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23076 int result;
23077 PyObject * obj0 = 0 ;
23078 char *kwnames[] = {
23079 (char *) "self", NULL
23080 };
23081
23082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
23083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23085 {
23086 PyThreadState* __tstate = wxPyBeginAllowThreads();
23087 result = (int)((wxDateSpan const *)arg1)->GetDays();
23088
23089 wxPyEndAllowThreads(__tstate);
23090 if (PyErr_Occurred()) SWIG_fail;
23091 }
23092 resultobj = SWIG_FromInt((int)result);
23093 return resultobj;
23094 fail:
23095 return NULL;
23096 }
23097
23098
23099 static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23100 PyObject *resultobj;
23101 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23102 int result;
23103 PyObject * obj0 = 0 ;
23104 char *kwnames[] = {
23105 (char *) "self", NULL
23106 };
23107
23108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
23109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23111 {
23112 PyThreadState* __tstate = wxPyBeginAllowThreads();
23113 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
23114
23115 wxPyEndAllowThreads(__tstate);
23116 if (PyErr_Occurred()) SWIG_fail;
23117 }
23118 resultobj = SWIG_FromInt((int)result);
23119 return resultobj;
23120 fail:
23121 return NULL;
23122 }
23123
23124
23125 static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
23126 PyObject *resultobj;
23127 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23128 wxDateSpan *arg2 = 0 ;
23129 wxDateSpan *result;
23130 PyObject * obj0 = 0 ;
23131 PyObject * obj1 = 0 ;
23132 char *kwnames[] = {
23133 (char *) "self",(char *) "other", NULL
23134 };
23135
23136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
23137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23139 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23140 SWIG_POINTER_EXCEPTION | 0)) == -1)
23141 SWIG_fail;
23142 if (arg2 == NULL) {
23143 PyErr_SetString(PyExc_TypeError,"null reference");
23144 SWIG_fail;
23145 }
23146 {
23147 PyThreadState* __tstate = wxPyBeginAllowThreads();
23148 {
23149 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
23150 result = (wxDateSpan *) &_result_ref;
23151 }
23152
23153 wxPyEndAllowThreads(__tstate);
23154 if (PyErr_Occurred()) SWIG_fail;
23155 }
23156 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23157 return resultobj;
23158 fail:
23159 return NULL;
23160 }
23161
23162
23163 static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
23164 PyObject *resultobj;
23165 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23166 wxDateSpan *arg2 = 0 ;
23167 wxDateSpan *result;
23168 PyObject * obj0 = 0 ;
23169 PyObject * obj1 = 0 ;
23170 char *kwnames[] = {
23171 (char *) "self",(char *) "other", NULL
23172 };
23173
23174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
23175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23177 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23178 SWIG_POINTER_EXCEPTION | 0)) == -1)
23179 SWIG_fail;
23180 if (arg2 == NULL) {
23181 PyErr_SetString(PyExc_TypeError,"null reference");
23182 SWIG_fail;
23183 }
23184 {
23185 PyThreadState* __tstate = wxPyBeginAllowThreads();
23186 {
23187 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
23188 result = (wxDateSpan *) &_result_ref;
23189 }
23190
23191 wxPyEndAllowThreads(__tstate);
23192 if (PyErr_Occurred()) SWIG_fail;
23193 }
23194 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23195 return resultobj;
23196 fail:
23197 return NULL;
23198 }
23199
23200
23201 static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
23202 PyObject *resultobj;
23203 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23204 wxDateSpan *result;
23205 PyObject * obj0 = 0 ;
23206 char *kwnames[] = {
23207 (char *) "self", NULL
23208 };
23209
23210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
23211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23213 {
23214 PyThreadState* __tstate = wxPyBeginAllowThreads();
23215 {
23216 wxDateSpan &_result_ref = (arg1)->Neg();
23217 result = (wxDateSpan *) &_result_ref;
23218 }
23219
23220 wxPyEndAllowThreads(__tstate);
23221 if (PyErr_Occurred()) SWIG_fail;
23222 }
23223 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23224 return resultobj;
23225 fail:
23226 return NULL;
23227 }
23228
23229
23230 static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
23231 PyObject *resultobj;
23232 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23233 int arg2 ;
23234 wxDateSpan *result;
23235 PyObject * obj0 = 0 ;
23236 PyObject * obj1 = 0 ;
23237 char *kwnames[] = {
23238 (char *) "self",(char *) "factor", NULL
23239 };
23240
23241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
23242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23244 arg2 = (int) SWIG_AsInt(obj1);
23245 if (PyErr_Occurred()) SWIG_fail;
23246 {
23247 PyThreadState* __tstate = wxPyBeginAllowThreads();
23248 {
23249 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
23250 result = (wxDateSpan *) &_result_ref;
23251 }
23252
23253 wxPyEndAllowThreads(__tstate);
23254 if (PyErr_Occurred()) SWIG_fail;
23255 }
23256 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23257 return resultobj;
23258 fail:
23259 return NULL;
23260 }
23261
23262
23263 static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
23264 PyObject *resultobj;
23265 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23266 wxDateSpan *arg2 = 0 ;
23267 wxDateSpan *result;
23268 PyObject * obj0 = 0 ;
23269 PyObject * obj1 = 0 ;
23270 char *kwnames[] = {
23271 (char *) "self",(char *) "other", NULL
23272 };
23273
23274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
23275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23277 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23278 SWIG_POINTER_EXCEPTION | 0)) == -1)
23279 SWIG_fail;
23280 if (arg2 == NULL) {
23281 PyErr_SetString(PyExc_TypeError,"null reference");
23282 SWIG_fail;
23283 }
23284 {
23285 PyThreadState* __tstate = wxPyBeginAllowThreads();
23286 {
23287 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
23288 result = (wxDateSpan *) &_result_ref;
23289 }
23290
23291 wxPyEndAllowThreads(__tstate);
23292 if (PyErr_Occurred()) SWIG_fail;
23293 }
23294 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23295 return resultobj;
23296 fail:
23297 return NULL;
23298 }
23299
23300
23301 static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23302 PyObject *resultobj;
23303 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23304 wxDateSpan *arg2 = 0 ;
23305 wxDateSpan *result;
23306 PyObject * obj0 = 0 ;
23307 PyObject * obj1 = 0 ;
23308 char *kwnames[] = {
23309 (char *) "self",(char *) "other", NULL
23310 };
23311
23312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
23313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23315 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23316 SWIG_POINTER_EXCEPTION | 0)) == -1)
23317 SWIG_fail;
23318 if (arg2 == NULL) {
23319 PyErr_SetString(PyExc_TypeError,"null reference");
23320 SWIG_fail;
23321 }
23322 {
23323 PyThreadState* __tstate = wxPyBeginAllowThreads();
23324 {
23325 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
23326 result = (wxDateSpan *) &_result_ref;
23327 }
23328
23329 wxPyEndAllowThreads(__tstate);
23330 if (PyErr_Occurred()) SWIG_fail;
23331 }
23332 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23333 return resultobj;
23334 fail:
23335 return NULL;
23336 }
23337
23338
23339 static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
23340 PyObject *resultobj;
23341 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23342 wxDateSpan *result;
23343 PyObject * obj0 = 0 ;
23344 char *kwnames[] = {
23345 (char *) "self", NULL
23346 };
23347
23348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
23349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23351 {
23352 PyThreadState* __tstate = wxPyBeginAllowThreads();
23353 {
23354 wxDateSpan &_result_ref = (arg1)->operator -();
23355 result = (wxDateSpan *) &_result_ref;
23356 }
23357
23358 wxPyEndAllowThreads(__tstate);
23359 if (PyErr_Occurred()) SWIG_fail;
23360 }
23361 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23362 return resultobj;
23363 fail:
23364 return NULL;
23365 }
23366
23367
23368 static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23369 PyObject *resultobj;
23370 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23371 int arg2 ;
23372 wxDateSpan *result;
23373 PyObject * obj0 = 0 ;
23374 PyObject * obj1 = 0 ;
23375 char *kwnames[] = {
23376 (char *) "self",(char *) "factor", NULL
23377 };
23378
23379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
23380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23382 arg2 = (int) SWIG_AsInt(obj1);
23383 if (PyErr_Occurred()) SWIG_fail;
23384 {
23385 PyThreadState* __tstate = wxPyBeginAllowThreads();
23386 {
23387 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
23388 result = (wxDateSpan *) &_result_ref;
23389 }
23390
23391 wxPyEndAllowThreads(__tstate);
23392 if (PyErr_Occurred()) SWIG_fail;
23393 }
23394 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23395 return resultobj;
23396 fail:
23397 return NULL;
23398 }
23399
23400
23401 static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
23402 PyObject *resultobj;
23403 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23404 wxDateSpan *arg2 = 0 ;
23405 wxDateSpan result;
23406 PyObject * obj0 = 0 ;
23407 PyObject * obj1 = 0 ;
23408 char *kwnames[] = {
23409 (char *) "self",(char *) "other", NULL
23410 };
23411
23412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
23413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23415 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23416 SWIG_POINTER_EXCEPTION | 0)) == -1)
23417 SWIG_fail;
23418 if (arg2 == NULL) {
23419 PyErr_SetString(PyExc_TypeError,"null reference");
23420 SWIG_fail;
23421 }
23422 {
23423 PyThreadState* __tstate = wxPyBeginAllowThreads();
23424 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
23425
23426 wxPyEndAllowThreads(__tstate);
23427 if (PyErr_Occurred()) SWIG_fail;
23428 }
23429 {
23430 wxDateSpan * resultptr;
23431 resultptr = new wxDateSpan((wxDateSpan &) result);
23432 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23433 }
23434 return resultobj;
23435 fail:
23436 return NULL;
23437 }
23438
23439
23440 static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23441 PyObject *resultobj;
23442 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23443 wxDateSpan *arg2 = 0 ;
23444 wxDateSpan result;
23445 PyObject * obj0 = 0 ;
23446 PyObject * obj1 = 0 ;
23447 char *kwnames[] = {
23448 (char *) "self",(char *) "other", NULL
23449 };
23450
23451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
23452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23454 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23455 SWIG_POINTER_EXCEPTION | 0)) == -1)
23456 SWIG_fail;
23457 if (arg2 == NULL) {
23458 PyErr_SetString(PyExc_TypeError,"null reference");
23459 SWIG_fail;
23460 }
23461 {
23462 PyThreadState* __tstate = wxPyBeginAllowThreads();
23463 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
23464
23465 wxPyEndAllowThreads(__tstate);
23466 if (PyErr_Occurred()) SWIG_fail;
23467 }
23468 {
23469 wxDateSpan * resultptr;
23470 resultptr = new wxDateSpan((wxDateSpan &) result);
23471 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23472 }
23473 return resultobj;
23474 fail:
23475 return NULL;
23476 }
23477
23478
23479 static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23480 PyObject *resultobj;
23481 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23482 int arg2 ;
23483 wxDateSpan result;
23484 PyObject * obj0 = 0 ;
23485 PyObject * obj1 = 0 ;
23486 char *kwnames[] = {
23487 (char *) "self",(char *) "n", NULL
23488 };
23489
23490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
23491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23493 arg2 = (int) SWIG_AsInt(obj1);
23494 if (PyErr_Occurred()) SWIG_fail;
23495 {
23496 PyThreadState* __tstate = wxPyBeginAllowThreads();
23497 result = wxDateSpan___mul__(arg1,arg2);
23498
23499 wxPyEndAllowThreads(__tstate);
23500 if (PyErr_Occurred()) SWIG_fail;
23501 }
23502 {
23503 wxDateSpan * resultptr;
23504 resultptr = new wxDateSpan((wxDateSpan &) result);
23505 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23506 }
23507 return resultobj;
23508 fail:
23509 return NULL;
23510 }
23511
23512
23513 static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23514 PyObject *resultobj;
23515 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23516 int arg2 ;
23517 wxDateSpan result;
23518 PyObject * obj0 = 0 ;
23519 PyObject * obj1 = 0 ;
23520 char *kwnames[] = {
23521 (char *) "self",(char *) "n", NULL
23522 };
23523
23524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
23525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23527 arg2 = (int) SWIG_AsInt(obj1);
23528 if (PyErr_Occurred()) SWIG_fail;
23529 {
23530 PyThreadState* __tstate = wxPyBeginAllowThreads();
23531 result = wxDateSpan___rmul__(arg1,arg2);
23532
23533 wxPyEndAllowThreads(__tstate);
23534 if (PyErr_Occurred()) SWIG_fail;
23535 }
23536 {
23537 wxDateSpan * resultptr;
23538 resultptr = new wxDateSpan((wxDateSpan &) result);
23539 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23540 }
23541 return resultobj;
23542 fail:
23543 return NULL;
23544 }
23545
23546
23547 static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
23548 PyObject *resultobj;
23549 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23550 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23551 bool result;
23552 PyObject * obj0 = 0 ;
23553 PyObject * obj1 = 0 ;
23554 char *kwnames[] = {
23555 (char *) "self",(char *) "other", NULL
23556 };
23557
23558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
23559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23561 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23563 {
23564 PyThreadState* __tstate = wxPyBeginAllowThreads();
23565 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
23566
23567 wxPyEndAllowThreads(__tstate);
23568 if (PyErr_Occurred()) SWIG_fail;
23569 }
23570 {
23571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23572 }
23573 return resultobj;
23574 fail:
23575 return NULL;
23576 }
23577
23578
23579 static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
23580 PyObject *resultobj;
23581 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23582 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23583 bool result;
23584 PyObject * obj0 = 0 ;
23585 PyObject * obj1 = 0 ;
23586 char *kwnames[] = {
23587 (char *) "self",(char *) "other", NULL
23588 };
23589
23590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
23591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23593 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23595 {
23596 PyThreadState* __tstate = wxPyBeginAllowThreads();
23597 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
23598
23599 wxPyEndAllowThreads(__tstate);
23600 if (PyErr_Occurred()) SWIG_fail;
23601 }
23602 {
23603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23604 }
23605 return resultobj;
23606 fail:
23607 return NULL;
23608 }
23609
23610
23611 static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) {
23612 PyObject *obj;
23613 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23614 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
23615 Py_INCREF(obj);
23616 return Py_BuildValue((char *)"");
23617 }
23618 static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23619 PyObject *resultobj;
23620 long result;
23621 char *kwnames[] = {
23622 NULL
23623 };
23624
23625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
23626 {
23627 PyThreadState* __tstate = wxPyBeginAllowThreads();
23628 result = (long)wxGetLocalTime();
23629
23630 wxPyEndAllowThreads(__tstate);
23631 if (PyErr_Occurred()) SWIG_fail;
23632 }
23633 resultobj = SWIG_FromLong((long)result);
23634 return resultobj;
23635 fail:
23636 return NULL;
23637 }
23638
23639
23640 static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23641 PyObject *resultobj;
23642 long result;
23643 char *kwnames[] = {
23644 NULL
23645 };
23646
23647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
23648 {
23649 PyThreadState* __tstate = wxPyBeginAllowThreads();
23650 result = (long)wxGetUTCTime();
23651
23652 wxPyEndAllowThreads(__tstate);
23653 if (PyErr_Occurred()) SWIG_fail;
23654 }
23655 resultobj = SWIG_FromLong((long)result);
23656 return resultobj;
23657 fail:
23658 return NULL;
23659 }
23660
23661
23662 static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23663 PyObject *resultobj;
23664 long result;
23665 char *kwnames[] = {
23666 NULL
23667 };
23668
23669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
23670 {
23671 PyThreadState* __tstate = wxPyBeginAllowThreads();
23672 result = (long)wxGetCurrentTime();
23673
23674 wxPyEndAllowThreads(__tstate);
23675 if (PyErr_Occurred()) SWIG_fail;
23676 }
23677 resultobj = SWIG_FromLong((long)result);
23678 return resultobj;
23679 fail:
23680 return NULL;
23681 }
23682
23683
23684 static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) {
23685 PyObject *resultobj;
23686 wxLongLong result;
23687 char *kwnames[] = {
23688 NULL
23689 };
23690
23691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
23692 {
23693 PyThreadState* __tstate = wxPyBeginAllowThreads();
23694 result = wxGetLocalTimeMillis();
23695
23696 wxPyEndAllowThreads(__tstate);
23697 if (PyErr_Occurred()) SWIG_fail;
23698 }
23699 {
23700 PyObject *hi, *lo, *shifter, *shifted;
23701 hi = PyLong_FromLong( (&result)->GetHi() );
23702 lo = PyLong_FromLong( (&result)->GetLo() );
23703 shifter = PyLong_FromLong(32);
23704 shifted = PyNumber_Lshift(hi, shifter);
23705 resultobj = PyNumber_Or(shifted, lo);
23706 Py_DECREF(hi);
23707 Py_DECREF(lo);
23708 Py_DECREF(shifter);
23709 Py_DECREF(shifted);
23710 }
23711 return resultobj;
23712 fail:
23713 return NULL;
23714 }
23715
23716
23717 static int _wrap_DefaultDateTime_set(PyObject *_val) {
23718 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
23719 return 1;
23720 }
23721
23722
23723 static PyObject *_wrap_DefaultDateTime_get() {
23724 PyObject *pyobj;
23725
23726 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
23727 return pyobj;
23728 }
23729
23730
23731 static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23732 PyObject *resultobj;
23733 int arg1 ;
23734 wxDataFormat *result;
23735 PyObject * obj0 = 0 ;
23736 char *kwnames[] = {
23737 (char *) "type", NULL
23738 };
23739
23740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
23741 arg1 = (wxDataFormatId) SWIG_AsInt(obj0);
23742 if (PyErr_Occurred()) SWIG_fail;
23743 {
23744 PyThreadState* __tstate = wxPyBeginAllowThreads();
23745 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
23746
23747 wxPyEndAllowThreads(__tstate);
23748 if (PyErr_Occurred()) SWIG_fail;
23749 }
23750 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23751 return resultobj;
23752 fail:
23753 return NULL;
23754 }
23755
23756
23757 static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23758 PyObject *resultobj;
23759 wxString *arg1 = 0 ;
23760 wxDataFormat *result;
23761 bool temp1 = False ;
23762 PyObject * obj0 = 0 ;
23763 char *kwnames[] = {
23764 (char *) "format", NULL
23765 };
23766
23767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
23768 {
23769 arg1 = wxString_in_helper(obj0);
23770 if (arg1 == NULL) SWIG_fail;
23771 temp1 = True;
23772 }
23773 {
23774 PyThreadState* __tstate = wxPyBeginAllowThreads();
23775 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
23776
23777 wxPyEndAllowThreads(__tstate);
23778 if (PyErr_Occurred()) SWIG_fail;
23779 }
23780 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23781 {
23782 if (temp1)
23783 delete arg1;
23784 }
23785 return resultobj;
23786 fail:
23787 {
23788 if (temp1)
23789 delete arg1;
23790 }
23791 return NULL;
23792 }
23793
23794
23795 static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23796 PyObject *resultobj;
23797 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23798 PyObject * obj0 = 0 ;
23799 char *kwnames[] = {
23800 (char *) "self", NULL
23801 };
23802
23803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
23804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23806 {
23807 PyThreadState* __tstate = wxPyBeginAllowThreads();
23808 delete arg1;
23809
23810 wxPyEndAllowThreads(__tstate);
23811 if (PyErr_Occurred()) SWIG_fail;
23812 }
23813 Py_INCREF(Py_None); resultobj = Py_None;
23814 return resultobj;
23815 fail:
23816 return NULL;
23817 }
23818
23819
23820 static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) {
23821 PyObject *resultobj;
23822 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23823 int arg2 ;
23824 bool result;
23825 PyObject * obj0 = 0 ;
23826 PyObject * obj1 = 0 ;
23827
23828 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
23829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23831 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23832 if (PyErr_Occurred()) SWIG_fail;
23833 {
23834 PyThreadState* __tstate = wxPyBeginAllowThreads();
23835 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
23836
23837 wxPyEndAllowThreads(__tstate);
23838 if (PyErr_Occurred()) SWIG_fail;
23839 }
23840 {
23841 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23842 }
23843 return resultobj;
23844 fail:
23845 return NULL;
23846 }
23847
23848
23849 static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) {
23850 PyObject *resultobj;
23851 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23852 int arg2 ;
23853 bool result;
23854 PyObject * obj0 = 0 ;
23855 PyObject * obj1 = 0 ;
23856
23857 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
23858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23860 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23861 if (PyErr_Occurred()) SWIG_fail;
23862 {
23863 PyThreadState* __tstate = wxPyBeginAllowThreads();
23864 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2);
23865
23866 wxPyEndAllowThreads(__tstate);
23867 if (PyErr_Occurred()) SWIG_fail;
23868 }
23869 {
23870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23871 }
23872 return resultobj;
23873 fail:
23874 return NULL;
23875 }
23876
23877
23878 static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) {
23879 PyObject *resultobj;
23880 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23881 wxDataFormat *arg2 = 0 ;
23882 bool result;
23883 PyObject * obj0 = 0 ;
23884 PyObject * obj1 = 0 ;
23885
23886 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
23887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23889 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
23890 SWIG_POINTER_EXCEPTION | 0)) == -1)
23891 SWIG_fail;
23892 if (arg2 == NULL) {
23893 PyErr_SetString(PyExc_TypeError,"null reference");
23894 SWIG_fail;
23895 }
23896 {
23897 PyThreadState* __tstate = wxPyBeginAllowThreads();
23898 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
23899
23900 wxPyEndAllowThreads(__tstate);
23901 if (PyErr_Occurred()) SWIG_fail;
23902 }
23903 {
23904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23905 }
23906 return resultobj;
23907 fail:
23908 return NULL;
23909 }
23910
23911
23912 static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
23913 int argc;
23914 PyObject *argv[3];
23915 int ii;
23916
23917 argc = PyObject_Length(args);
23918 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
23919 argv[ii] = PyTuple_GetItem(args,ii);
23920 }
23921 if (argc == 2) {
23922 int _v;
23923 {
23924 void *ptr;
23925 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23926 _v = 0;
23927 PyErr_Clear();
23928 } else {
23929 _v = 1;
23930 }
23931 }
23932 if (_v) {
23933 {
23934 void *ptr;
23935 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23936 _v = 0;
23937 PyErr_Clear();
23938 } else {
23939 _v = 1;
23940 }
23941 }
23942 if (_v) {
23943 return _wrap_DataFormat___eq____SWIG_1(self,args);
23944 }
23945 }
23946 }
23947 if (argc == 2) {
23948 int _v;
23949 {
23950 void *ptr;
23951 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23952 _v = 0;
23953 PyErr_Clear();
23954 } else {
23955 _v = 1;
23956 }
23957 }
23958 if (_v) {
23959 _v = SWIG_CheckInt(argv[1]);
23960 if (_v) {
23961 return _wrap_DataFormat___eq____SWIG_0(self,args);
23962 }
23963 }
23964 }
23965
23966 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
23967 return NULL;
23968 }
23969
23970
23971 static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) {
23972 PyObject *resultobj;
23973 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23974 wxDataFormat *arg2 = 0 ;
23975 bool result;
23976 PyObject * obj0 = 0 ;
23977 PyObject * obj1 = 0 ;
23978
23979 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
23980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23982 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
23983 SWIG_POINTER_EXCEPTION | 0)) == -1)
23984 SWIG_fail;
23985 if (arg2 == NULL) {
23986 PyErr_SetString(PyExc_TypeError,"null reference");
23987 SWIG_fail;
23988 }
23989 {
23990 PyThreadState* __tstate = wxPyBeginAllowThreads();
23991 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
23992
23993 wxPyEndAllowThreads(__tstate);
23994 if (PyErr_Occurred()) SWIG_fail;
23995 }
23996 {
23997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23998 }
23999 return resultobj;
24000 fail:
24001 return NULL;
24002 }
24003
24004
24005 static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
24006 int argc;
24007 PyObject *argv[3];
24008 int ii;
24009
24010 argc = PyObject_Length(args);
24011 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24012 argv[ii] = PyTuple_GetItem(args,ii);
24013 }
24014 if (argc == 2) {
24015 int _v;
24016 {
24017 void *ptr;
24018 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24019 _v = 0;
24020 PyErr_Clear();
24021 } else {
24022 _v = 1;
24023 }
24024 }
24025 if (_v) {
24026 {
24027 void *ptr;
24028 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24029 _v = 0;
24030 PyErr_Clear();
24031 } else {
24032 _v = 1;
24033 }
24034 }
24035 if (_v) {
24036 return _wrap_DataFormat___ne____SWIG_1(self,args);
24037 }
24038 }
24039 }
24040 if (argc == 2) {
24041 int _v;
24042 {
24043 void *ptr;
24044 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24045 _v = 0;
24046 PyErr_Clear();
24047 } else {
24048 _v = 1;
24049 }
24050 }
24051 if (_v) {
24052 _v = SWIG_CheckInt(argv[1]);
24053 if (_v) {
24054 return _wrap_DataFormat___ne____SWIG_0(self,args);
24055 }
24056 }
24057 }
24058
24059 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
24060 return NULL;
24061 }
24062
24063
24064 static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24065 PyObject *resultobj;
24066 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24067 int arg2 ;
24068 PyObject * obj0 = 0 ;
24069 PyObject * obj1 = 0 ;
24070 char *kwnames[] = {
24071 (char *) "self",(char *) "format", NULL
24072 };
24073
24074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
24075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24077 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24078 if (PyErr_Occurred()) SWIG_fail;
24079 {
24080 PyThreadState* __tstate = wxPyBeginAllowThreads();
24081 (arg1)->SetType((wxDataFormatId )arg2);
24082
24083 wxPyEndAllowThreads(__tstate);
24084 if (PyErr_Occurred()) SWIG_fail;
24085 }
24086 Py_INCREF(Py_None); resultobj = Py_None;
24087 return resultobj;
24088 fail:
24089 return NULL;
24090 }
24091
24092
24093 static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24094 PyObject *resultobj;
24095 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24096 int result;
24097 PyObject * obj0 = 0 ;
24098 char *kwnames[] = {
24099 (char *) "self", NULL
24100 };
24101
24102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
24103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24105 {
24106 PyThreadState* __tstate = wxPyBeginAllowThreads();
24107 result = (int)((wxDataFormat const *)arg1)->GetType();
24108
24109 wxPyEndAllowThreads(__tstate);
24110 if (PyErr_Occurred()) SWIG_fail;
24111 }
24112 resultobj = SWIG_FromInt((int)result);
24113 return resultobj;
24114 fail:
24115 return NULL;
24116 }
24117
24118
24119 static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24120 PyObject *resultobj;
24121 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24122 wxString result;
24123 PyObject * obj0 = 0 ;
24124 char *kwnames[] = {
24125 (char *) "self", NULL
24126 };
24127
24128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
24129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24131 {
24132 PyThreadState* __tstate = wxPyBeginAllowThreads();
24133 result = ((wxDataFormat const *)arg1)->GetId();
24134
24135 wxPyEndAllowThreads(__tstate);
24136 if (PyErr_Occurred()) SWIG_fail;
24137 }
24138 {
24139 #if wxUSE_UNICODE
24140 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24141 #else
24142 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24143 #endif
24144 }
24145 return resultobj;
24146 fail:
24147 return NULL;
24148 }
24149
24150
24151 static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24152 PyObject *resultobj;
24153 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24154 wxString *arg2 = 0 ;
24155 bool temp2 = False ;
24156 PyObject * obj0 = 0 ;
24157 PyObject * obj1 = 0 ;
24158 char *kwnames[] = {
24159 (char *) "self",(char *) "format", NULL
24160 };
24161
24162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
24163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24165 {
24166 arg2 = wxString_in_helper(obj1);
24167 if (arg2 == NULL) SWIG_fail;
24168 temp2 = True;
24169 }
24170 {
24171 PyThreadState* __tstate = wxPyBeginAllowThreads();
24172 (arg1)->SetId((wxString const &)*arg2);
24173
24174 wxPyEndAllowThreads(__tstate);
24175 if (PyErr_Occurred()) SWIG_fail;
24176 }
24177 Py_INCREF(Py_None); resultobj = Py_None;
24178 {
24179 if (temp2)
24180 delete arg2;
24181 }
24182 return resultobj;
24183 fail:
24184 {
24185 if (temp2)
24186 delete arg2;
24187 }
24188 return NULL;
24189 }
24190
24191
24192 static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) {
24193 PyObject *obj;
24194 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24195 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
24196 Py_INCREF(obj);
24197 return Py_BuildValue((char *)"");
24198 }
24199 static int _wrap_FormatInvalid_set(PyObject *_val) {
24200 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
24201 return 1;
24202 }
24203
24204
24205 static PyObject *_wrap_FormatInvalid_get() {
24206 PyObject *pyobj;
24207
24208 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
24209 return pyobj;
24210 }
24211
24212
24213 static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24214 PyObject *resultobj;
24215 wxDataObject *arg1 = (wxDataObject *) 0 ;
24216 PyObject * obj0 = 0 ;
24217 char *kwnames[] = {
24218 (char *) "self", NULL
24219 };
24220
24221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
24222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24224 {
24225 PyThreadState* __tstate = wxPyBeginAllowThreads();
24226 delete arg1;
24227
24228 wxPyEndAllowThreads(__tstate);
24229 if (PyErr_Occurred()) SWIG_fail;
24230 }
24231 Py_INCREF(Py_None); resultobj = Py_None;
24232 return resultobj;
24233 fail:
24234 return NULL;
24235 }
24236
24237
24238 static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24239 PyObject *resultobj;
24240 wxDataObject *arg1 = (wxDataObject *) 0 ;
24241 int arg2 = (int) wxDataObject::Get ;
24242 SwigValueWrapper< wxDataFormat > result;
24243 PyObject * obj0 = 0 ;
24244 PyObject * obj1 = 0 ;
24245 char *kwnames[] = {
24246 (char *) "self",(char *) "dir", NULL
24247 };
24248
24249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
24250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24252 if (obj1) {
24253 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24254 if (PyErr_Occurred()) SWIG_fail;
24255 }
24256 {
24257 PyThreadState* __tstate = wxPyBeginAllowThreads();
24258 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
24259
24260 wxPyEndAllowThreads(__tstate);
24261 if (PyErr_Occurred()) SWIG_fail;
24262 }
24263 {
24264 wxDataFormat * resultptr;
24265 resultptr = new wxDataFormat((wxDataFormat &) result);
24266 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
24267 }
24268 return resultobj;
24269 fail:
24270 return NULL;
24271 }
24272
24273
24274 static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) {
24275 PyObject *resultobj;
24276 wxDataObject *arg1 = (wxDataObject *) 0 ;
24277 int arg2 = (int) wxDataObject::Get ;
24278 size_t result;
24279 PyObject * obj0 = 0 ;
24280 PyObject * obj1 = 0 ;
24281 char *kwnames[] = {
24282 (char *) "self",(char *) "dir", NULL
24283 };
24284
24285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
24286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24288 if (obj1) {
24289 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24290 if (PyErr_Occurred()) SWIG_fail;
24291 }
24292 {
24293 PyThreadState* __tstate = wxPyBeginAllowThreads();
24294 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
24295
24296 wxPyEndAllowThreads(__tstate);
24297 if (PyErr_Occurred()) SWIG_fail;
24298 }
24299 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24300 return resultobj;
24301 fail:
24302 return NULL;
24303 }
24304
24305
24306 static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
24307 PyObject *resultobj;
24308 wxDataObject *arg1 = (wxDataObject *) 0 ;
24309 wxDataFormat *arg2 = 0 ;
24310 int arg3 = (int) wxDataObject::Get ;
24311 bool result;
24312 PyObject * obj0 = 0 ;
24313 PyObject * obj1 = 0 ;
24314 PyObject * obj2 = 0 ;
24315 char *kwnames[] = {
24316 (char *) "self",(char *) "format",(char *) "dir", NULL
24317 };
24318
24319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
24320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24322 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24323 SWIG_POINTER_EXCEPTION | 0)) == -1)
24324 SWIG_fail;
24325 if (arg2 == NULL) {
24326 PyErr_SetString(PyExc_TypeError,"null reference");
24327 SWIG_fail;
24328 }
24329 if (obj2) {
24330 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24331 if (PyErr_Occurred()) SWIG_fail;
24332 }
24333 {
24334 PyThreadState* __tstate = wxPyBeginAllowThreads();
24335 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
24336
24337 wxPyEndAllowThreads(__tstate);
24338 if (PyErr_Occurred()) SWIG_fail;
24339 }
24340 {
24341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24342 }
24343 return resultobj;
24344 fail:
24345 return NULL;
24346 }
24347
24348
24349 static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24350 PyObject *resultobj;
24351 wxDataObject *arg1 = (wxDataObject *) 0 ;
24352 wxDataFormat *arg2 = 0 ;
24353 size_t result;
24354 PyObject * obj0 = 0 ;
24355 PyObject * obj1 = 0 ;
24356 char *kwnames[] = {
24357 (char *) "self",(char *) "format", NULL
24358 };
24359
24360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
24361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24363 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24364 SWIG_POINTER_EXCEPTION | 0)) == -1)
24365 SWIG_fail;
24366 if (arg2 == NULL) {
24367 PyErr_SetString(PyExc_TypeError,"null reference");
24368 SWIG_fail;
24369 }
24370 {
24371 PyThreadState* __tstate = wxPyBeginAllowThreads();
24372 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
24373
24374 wxPyEndAllowThreads(__tstate);
24375 if (PyErr_Occurred()) SWIG_fail;
24376 }
24377 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24378 return resultobj;
24379 fail:
24380 return NULL;
24381 }
24382
24383
24384 static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) {
24385 PyObject *resultobj;
24386 wxDataObject *arg1 = (wxDataObject *) 0 ;
24387 wxDataFormat *arg2 = (wxDataFormat *) 0 ;
24388 int arg3 = (int) wxDataObject::Get ;
24389 PyObject * obj0 = 0 ;
24390 PyObject * obj1 = 0 ;
24391 PyObject * obj2 = 0 ;
24392 char *kwnames[] = {
24393 (char *) "self",(char *) "formats",(char *) "dir", NULL
24394 };
24395
24396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&obj2)) goto fail;
24397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24399 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24401 if (obj2) {
24402 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24403 if (PyErr_Occurred()) SWIG_fail;
24404 }
24405 {
24406 PyThreadState* __tstate = wxPyBeginAllowThreads();
24407 ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3);
24408
24409 wxPyEndAllowThreads(__tstate);
24410 if (PyErr_Occurred()) SWIG_fail;
24411 }
24412 Py_INCREF(Py_None); resultobj = Py_None;
24413 return resultobj;
24414 fail:
24415 return NULL;
24416 }
24417
24418
24419 static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24420 PyObject *resultobj;
24421 wxDataObject *arg1 = (wxDataObject *) 0 ;
24422 wxDataFormat *arg2 = 0 ;
24423 void *arg3 = (void *) 0 ;
24424 bool result;
24425 PyObject * obj0 = 0 ;
24426 PyObject * obj1 = 0 ;
24427 PyObject * obj2 = 0 ;
24428 char *kwnames[] = {
24429 (char *) "self",(char *) "format",(char *) "buf", NULL
24430 };
24431
24432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail;
24433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24435 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24436 SWIG_POINTER_EXCEPTION | 0)) == -1)
24437 SWIG_fail;
24438 if (arg2 == NULL) {
24439 PyErr_SetString(PyExc_TypeError,"null reference");
24440 SWIG_fail;
24441 }
24442 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24443 {
24444 PyThreadState* __tstate = wxPyBeginAllowThreads();
24445 result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3);
24446
24447 wxPyEndAllowThreads(__tstate);
24448 if (PyErr_Occurred()) SWIG_fail;
24449 }
24450 {
24451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24452 }
24453 return resultobj;
24454 fail:
24455 return NULL;
24456 }
24457
24458
24459 static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24460 PyObject *resultobj;
24461 wxDataObject *arg1 = (wxDataObject *) 0 ;
24462 wxDataFormat *arg2 = 0 ;
24463 size_t arg3 ;
24464 void *arg4 = (void *) 0 ;
24465 bool result;
24466 PyObject * obj0 = 0 ;
24467 PyObject * obj1 = 0 ;
24468 PyObject * obj2 = 0 ;
24469 PyObject * obj3 = 0 ;
24470 char *kwnames[] = {
24471 (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL
24472 };
24473
24474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
24475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24477 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24478 SWIG_POINTER_EXCEPTION | 0)) == -1)
24479 SWIG_fail;
24480 if (arg2 == NULL) {
24481 PyErr_SetString(PyExc_TypeError,"null reference");
24482 SWIG_fail;
24483 }
24484 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
24485 if (PyErr_Occurred()) SWIG_fail;
24486 if ((SWIG_ConvertPtr(obj3,&arg4,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24487 {
24488 PyThreadState* __tstate = wxPyBeginAllowThreads();
24489 result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4);
24490
24491 wxPyEndAllowThreads(__tstate);
24492 if (PyErr_Occurred()) SWIG_fail;
24493 }
24494 {
24495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24496 }
24497 return resultobj;
24498 fail:
24499 return NULL;
24500 }
24501
24502
24503 static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) {
24504 PyObject *obj;
24505 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24506 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
24507 Py_INCREF(obj);
24508 return Py_BuildValue((char *)"");
24509 }
24510 static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24511 PyObject *resultobj;
24512 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24513 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24514 wxDataObjectSimple *result;
24515 PyObject * obj0 = 0 ;
24516 char *kwnames[] = {
24517 (char *) "format", NULL
24518 };
24519
24520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
24521 if (obj0) {
24522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24523 SWIG_POINTER_EXCEPTION | 0)) == -1)
24524 SWIG_fail;
24525 if (arg1 == NULL) {
24526 PyErr_SetString(PyExc_TypeError,"null reference");
24527 SWIG_fail;
24528 }
24529 }
24530 {
24531 PyThreadState* __tstate = wxPyBeginAllowThreads();
24532 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
24533
24534 wxPyEndAllowThreads(__tstate);
24535 if (PyErr_Occurred()) SWIG_fail;
24536 }
24537 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
24538 return resultobj;
24539 fail:
24540 return NULL;
24541 }
24542
24543
24544 static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24545 PyObject *resultobj;
24546 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24547 wxDataFormat *result;
24548 PyObject * obj0 = 0 ;
24549 char *kwnames[] = {
24550 (char *) "self", NULL
24551 };
24552
24553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
24554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24556 {
24557 PyThreadState* __tstate = wxPyBeginAllowThreads();
24558 {
24559 wxDataFormat const &_result_ref = (arg1)->GetFormat();
24560 result = (wxDataFormat *) &_result_ref;
24561 }
24562
24563 wxPyEndAllowThreads(__tstate);
24564 if (PyErr_Occurred()) SWIG_fail;
24565 }
24566 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
24567 return resultobj;
24568 fail:
24569 return NULL;
24570 }
24571
24572
24573 static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24574 PyObject *resultobj;
24575 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24576 wxDataFormat *arg2 = 0 ;
24577 PyObject * obj0 = 0 ;
24578 PyObject * obj1 = 0 ;
24579 char *kwnames[] = {
24580 (char *) "self",(char *) "format", NULL
24581 };
24582
24583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
24584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24586 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24587 SWIG_POINTER_EXCEPTION | 0)) == -1)
24588 SWIG_fail;
24589 if (arg2 == NULL) {
24590 PyErr_SetString(PyExc_TypeError,"null reference");
24591 SWIG_fail;
24592 }
24593 {
24594 PyThreadState* __tstate = wxPyBeginAllowThreads();
24595 (arg1)->SetFormat((wxDataFormat const &)*arg2);
24596
24597 wxPyEndAllowThreads(__tstate);
24598 if (PyErr_Occurred()) SWIG_fail;
24599 }
24600 Py_INCREF(Py_None); resultobj = Py_None;
24601 return resultobj;
24602 fail:
24603 return NULL;
24604 }
24605
24606
24607 static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24608 PyObject *obj;
24609 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24610 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
24611 Py_INCREF(obj);
24612 return Py_BuildValue((char *)"");
24613 }
24614 static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24615 PyObject *resultobj;
24616 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24617 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24618 wxPyDataObjectSimple *result;
24619 PyObject * obj0 = 0 ;
24620 char *kwnames[] = {
24621 (char *) "format", NULL
24622 };
24623
24624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
24625 if (obj0) {
24626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24627 SWIG_POINTER_EXCEPTION | 0)) == -1)
24628 SWIG_fail;
24629 if (arg1 == NULL) {
24630 PyErr_SetString(PyExc_TypeError,"null reference");
24631 SWIG_fail;
24632 }
24633 }
24634 {
24635 PyThreadState* __tstate = wxPyBeginAllowThreads();
24636 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
24637
24638 wxPyEndAllowThreads(__tstate);
24639 if (PyErr_Occurred()) SWIG_fail;
24640 }
24641 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
24642 return resultobj;
24643 fail:
24644 return NULL;
24645 }
24646
24647
24648 static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24649 PyObject *resultobj;
24650 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
24651 PyObject *arg2 = (PyObject *) 0 ;
24652 PyObject *arg3 = (PyObject *) 0 ;
24653 PyObject * obj0 = 0 ;
24654 PyObject * obj1 = 0 ;
24655 PyObject * obj2 = 0 ;
24656 char *kwnames[] = {
24657 (char *) "self",(char *) "self",(char *) "_class", NULL
24658 };
24659
24660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple,
24662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24663 arg2 = obj1;
24664 arg3 = obj2;
24665 {
24666 PyThreadState* __tstate = wxPyBeginAllowThreads();
24667 (arg1)->_setCallbackInfo(arg2,arg3);
24668
24669 wxPyEndAllowThreads(__tstate);
24670 if (PyErr_Occurred()) SWIG_fail;
24671 }
24672 Py_INCREF(Py_None); resultobj = Py_None;
24673 return resultobj;
24674 fail:
24675 return NULL;
24676 }
24677
24678
24679 static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24680 PyObject *obj;
24681 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24682 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
24683 Py_INCREF(obj);
24684 return Py_BuildValue((char *)"");
24685 }
24686 static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) {
24687 PyObject *resultobj;
24688 wxDataObjectComposite *result;
24689 char *kwnames[] = {
24690 NULL
24691 };
24692
24693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
24694 {
24695 PyThreadState* __tstate = wxPyBeginAllowThreads();
24696 result = (wxDataObjectComposite *)new wxDataObjectComposite();
24697
24698 wxPyEndAllowThreads(__tstate);
24699 if (PyErr_Occurred()) SWIG_fail;
24700 }
24701 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
24702 return resultobj;
24703 fail:
24704 return NULL;
24705 }
24706
24707
24708 static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
24709 PyObject *resultobj;
24710 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
24711 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
24712 int arg3 = (int) False ;
24713 PyObject * obj0 = 0 ;
24714 PyObject * obj1 = 0 ;
24715 PyObject * obj2 = 0 ;
24716 char *kwnames[] = {
24717 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
24718 };
24719
24720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
24721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite,
24722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24723 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple,
24724 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24725 if (obj2) {
24726 arg3 = (int) SWIG_AsInt(obj2);
24727 if (PyErr_Occurred()) SWIG_fail;
24728 }
24729 {
24730 PyThreadState* __tstate = wxPyBeginAllowThreads();
24731 (arg1)->Add(arg2,arg3);
24732
24733 wxPyEndAllowThreads(__tstate);
24734 if (PyErr_Occurred()) SWIG_fail;
24735 }
24736 Py_INCREF(Py_None); resultobj = Py_None;
24737 return resultobj;
24738 fail:
24739 return NULL;
24740 }
24741
24742
24743 static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) {
24744 PyObject *obj;
24745 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24746 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
24747 Py_INCREF(obj);
24748 return Py_BuildValue((char *)"");
24749 }
24750 static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24751 PyObject *resultobj;
24752 wxString const &arg1_defvalue = wxPyEmptyString ;
24753 wxString *arg1 = (wxString *) &arg1_defvalue ;
24754 wxTextDataObject *result;
24755 bool temp1 = False ;
24756 PyObject * obj0 = 0 ;
24757 char *kwnames[] = {
24758 (char *) "text", NULL
24759 };
24760
24761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
24762 if (obj0) {
24763 {
24764 arg1 = wxString_in_helper(obj0);
24765 if (arg1 == NULL) SWIG_fail;
24766 temp1 = True;
24767 }
24768 }
24769 {
24770 PyThreadState* __tstate = wxPyBeginAllowThreads();
24771 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
24772
24773 wxPyEndAllowThreads(__tstate);
24774 if (PyErr_Occurred()) SWIG_fail;
24775 }
24776 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
24777 {
24778 if (temp1)
24779 delete arg1;
24780 }
24781 return resultobj;
24782 fail:
24783 {
24784 if (temp1)
24785 delete arg1;
24786 }
24787 return NULL;
24788 }
24789
24790
24791 static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) {
24792 PyObject *resultobj;
24793 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24794 size_t result;
24795 PyObject * obj0 = 0 ;
24796 char *kwnames[] = {
24797 (char *) "self", NULL
24798 };
24799
24800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
24801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24803 {
24804 PyThreadState* __tstate = wxPyBeginAllowThreads();
24805 result = (size_t)(arg1)->GetTextLength();
24806
24807 wxPyEndAllowThreads(__tstate);
24808 if (PyErr_Occurred()) SWIG_fail;
24809 }
24810 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24811 return resultobj;
24812 fail:
24813 return NULL;
24814 }
24815
24816
24817 static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
24818 PyObject *resultobj;
24819 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24820 wxString result;
24821 PyObject * obj0 = 0 ;
24822 char *kwnames[] = {
24823 (char *) "self", NULL
24824 };
24825
24826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
24827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24829 {
24830 PyThreadState* __tstate = wxPyBeginAllowThreads();
24831 result = (arg1)->GetText();
24832
24833 wxPyEndAllowThreads(__tstate);
24834 if (PyErr_Occurred()) SWIG_fail;
24835 }
24836 {
24837 #if wxUSE_UNICODE
24838 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24839 #else
24840 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24841 #endif
24842 }
24843 return resultobj;
24844 fail:
24845 return NULL;
24846 }
24847
24848
24849 static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
24850 PyObject *resultobj;
24851 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24852 wxString *arg2 = 0 ;
24853 bool temp2 = False ;
24854 PyObject * obj0 = 0 ;
24855 PyObject * obj1 = 0 ;
24856 char *kwnames[] = {
24857 (char *) "self",(char *) "text", NULL
24858 };
24859
24860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
24861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24863 {
24864 arg2 = wxString_in_helper(obj1);
24865 if (arg2 == NULL) SWIG_fail;
24866 temp2 = True;
24867 }
24868 {
24869 PyThreadState* __tstate = wxPyBeginAllowThreads();
24870 (arg1)->SetText((wxString const &)*arg2);
24871
24872 wxPyEndAllowThreads(__tstate);
24873 if (PyErr_Occurred()) SWIG_fail;
24874 }
24875 Py_INCREF(Py_None); resultobj = Py_None;
24876 {
24877 if (temp2)
24878 delete arg2;
24879 }
24880 return resultobj;
24881 fail:
24882 {
24883 if (temp2)
24884 delete arg2;
24885 }
24886 return NULL;
24887 }
24888
24889
24890 static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) {
24891 PyObject *obj;
24892 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24893 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
24894 Py_INCREF(obj);
24895 return Py_BuildValue((char *)"");
24896 }
24897 static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24898 PyObject *resultobj;
24899 wxString const &arg1_defvalue = wxPyEmptyString ;
24900 wxString *arg1 = (wxString *) &arg1_defvalue ;
24901 wxPyTextDataObject *result;
24902 bool temp1 = False ;
24903 PyObject * obj0 = 0 ;
24904 char *kwnames[] = {
24905 (char *) "text", NULL
24906 };
24907
24908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
24909 if (obj0) {
24910 {
24911 arg1 = wxString_in_helper(obj0);
24912 if (arg1 == NULL) SWIG_fail;
24913 temp1 = True;
24914 }
24915 }
24916 {
24917 PyThreadState* __tstate = wxPyBeginAllowThreads();
24918 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
24919
24920 wxPyEndAllowThreads(__tstate);
24921 if (PyErr_Occurred()) SWIG_fail;
24922 }
24923 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
24924 {
24925 if (temp1)
24926 delete arg1;
24927 }
24928 return resultobj;
24929 fail:
24930 {
24931 if (temp1)
24932 delete arg1;
24933 }
24934 return NULL;
24935 }
24936
24937
24938 static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24939 PyObject *resultobj;
24940 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
24941 PyObject *arg2 = (PyObject *) 0 ;
24942 PyObject *arg3 = (PyObject *) 0 ;
24943 PyObject * obj0 = 0 ;
24944 PyObject * obj1 = 0 ;
24945 PyObject * obj2 = 0 ;
24946 char *kwnames[] = {
24947 (char *) "self",(char *) "self",(char *) "_class", NULL
24948 };
24949
24950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject,
24952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24953 arg2 = obj1;
24954 arg3 = obj2;
24955 {
24956 PyThreadState* __tstate = wxPyBeginAllowThreads();
24957 (arg1)->_setCallbackInfo(arg2,arg3);
24958
24959 wxPyEndAllowThreads(__tstate);
24960 if (PyErr_Occurred()) SWIG_fail;
24961 }
24962 Py_INCREF(Py_None); resultobj = Py_None;
24963 return resultobj;
24964 fail:
24965 return NULL;
24966 }
24967
24968
24969 static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) {
24970 PyObject *obj;
24971 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24972 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
24973 Py_INCREF(obj);
24974 return Py_BuildValue((char *)"");
24975 }
24976 static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24977 PyObject *resultobj;
24978 wxBitmap const &arg1_defvalue = wxNullBitmap ;
24979 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24980 wxBitmapDataObject *result;
24981 PyObject * obj0 = 0 ;
24982 char *kwnames[] = {
24983 (char *) "bitmap", NULL
24984 };
24985
24986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
24987 if (obj0) {
24988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
24989 SWIG_POINTER_EXCEPTION | 0)) == -1)
24990 SWIG_fail;
24991 if (arg1 == NULL) {
24992 PyErr_SetString(PyExc_TypeError,"null reference");
24993 SWIG_fail;
24994 }
24995 }
24996 {
24997 PyThreadState* __tstate = wxPyBeginAllowThreads();
24998 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
24999
25000 wxPyEndAllowThreads(__tstate);
25001 if (PyErr_Occurred()) SWIG_fail;
25002 }
25003 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
25004 return resultobj;
25005 fail:
25006 return NULL;
25007 }
25008
25009
25010 static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
25011 PyObject *resultobj;
25012 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25013 wxBitmap result;
25014 PyObject * obj0 = 0 ;
25015 char *kwnames[] = {
25016 (char *) "self", NULL
25017 };
25018
25019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
25020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25022 {
25023 PyThreadState* __tstate = wxPyBeginAllowThreads();
25024 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
25025
25026 wxPyEndAllowThreads(__tstate);
25027 if (PyErr_Occurred()) SWIG_fail;
25028 }
25029 {
25030 wxBitmap * resultptr;
25031 resultptr = new wxBitmap((wxBitmap &) result);
25032 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
25033 }
25034 return resultobj;
25035 fail:
25036 return NULL;
25037 }
25038
25039
25040 static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
25041 PyObject *resultobj;
25042 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25043 wxBitmap *arg2 = 0 ;
25044 PyObject * obj0 = 0 ;
25045 PyObject * obj1 = 0 ;
25046 char *kwnames[] = {
25047 (char *) "self",(char *) "bitmap", NULL
25048 };
25049
25050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
25051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25053 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
25054 SWIG_POINTER_EXCEPTION | 0)) == -1)
25055 SWIG_fail;
25056 if (arg2 == NULL) {
25057 PyErr_SetString(PyExc_TypeError,"null reference");
25058 SWIG_fail;
25059 }
25060 {
25061 PyThreadState* __tstate = wxPyBeginAllowThreads();
25062 (arg1)->SetBitmap((wxBitmap const &)*arg2);
25063
25064 wxPyEndAllowThreads(__tstate);
25065 if (PyErr_Occurred()) SWIG_fail;
25066 }
25067 Py_INCREF(Py_None); resultobj = Py_None;
25068 return resultobj;
25069 fail:
25070 return NULL;
25071 }
25072
25073
25074 static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25075 PyObject *obj;
25076 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25077 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
25078 Py_INCREF(obj);
25079 return Py_BuildValue((char *)"");
25080 }
25081 static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25082 PyObject *resultobj;
25083 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25084 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25085 wxPyBitmapDataObject *result;
25086 PyObject * obj0 = 0 ;
25087 char *kwnames[] = {
25088 (char *) "bitmap", NULL
25089 };
25090
25091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
25092 if (obj0) {
25093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25094 SWIG_POINTER_EXCEPTION | 0)) == -1)
25095 SWIG_fail;
25096 if (arg1 == NULL) {
25097 PyErr_SetString(PyExc_TypeError,"null reference");
25098 SWIG_fail;
25099 }
25100 }
25101 {
25102 PyThreadState* __tstate = wxPyBeginAllowThreads();
25103 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
25104
25105 wxPyEndAllowThreads(__tstate);
25106 if (PyErr_Occurred()) SWIG_fail;
25107 }
25108 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
25109 return resultobj;
25110 fail:
25111 return NULL;
25112 }
25113
25114
25115 static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25116 PyObject *resultobj;
25117 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
25118 PyObject *arg2 = (PyObject *) 0 ;
25119 PyObject *arg3 = (PyObject *) 0 ;
25120 PyObject * obj0 = 0 ;
25121 PyObject * obj1 = 0 ;
25122 PyObject * obj2 = 0 ;
25123 char *kwnames[] = {
25124 (char *) "self",(char *) "self",(char *) "_class", NULL
25125 };
25126
25127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject,
25129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25130 arg2 = obj1;
25131 arg3 = obj2;
25132 {
25133 PyThreadState* __tstate = wxPyBeginAllowThreads();
25134 (arg1)->_setCallbackInfo(arg2,arg3);
25135
25136 wxPyEndAllowThreads(__tstate);
25137 if (PyErr_Occurred()) SWIG_fail;
25138 }
25139 Py_INCREF(Py_None); resultobj = Py_None;
25140 return resultobj;
25141 fail:
25142 return NULL;
25143 }
25144
25145
25146 static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25147 PyObject *obj;
25148 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25149 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
25150 Py_INCREF(obj);
25151 return Py_BuildValue((char *)"");
25152 }
25153 static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25154 PyObject *resultobj;
25155 wxFileDataObject *result;
25156 char *kwnames[] = {
25157 NULL
25158 };
25159
25160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
25161 {
25162 PyThreadState* __tstate = wxPyBeginAllowThreads();
25163 result = (wxFileDataObject *)new wxFileDataObject();
25164
25165 wxPyEndAllowThreads(__tstate);
25166 if (PyErr_Occurred()) SWIG_fail;
25167 }
25168 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
25169 return resultobj;
25170 fail:
25171 return NULL;
25172 }
25173
25174
25175 static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) {
25176 PyObject *resultobj;
25177 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25178 wxArrayString *result;
25179 PyObject * obj0 = 0 ;
25180 char *kwnames[] = {
25181 (char *) "self", NULL
25182 };
25183
25184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
25185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25187 {
25188 PyThreadState* __tstate = wxPyBeginAllowThreads();
25189 {
25190 wxArrayString const &_result_ref = (arg1)->GetFilenames();
25191 result = (wxArrayString *) &_result_ref;
25192 }
25193
25194 wxPyEndAllowThreads(__tstate);
25195 if (PyErr_Occurred()) SWIG_fail;
25196 }
25197 {
25198 resultobj = wxArrayString2PyList_helper(*result);
25199 }
25200 return resultobj;
25201 fail:
25202 return NULL;
25203 }
25204
25205
25206 static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) {
25207 PyObject *resultobj;
25208 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25209 wxString *arg2 = 0 ;
25210 bool temp2 = False ;
25211 PyObject * obj0 = 0 ;
25212 PyObject * obj1 = 0 ;
25213 char *kwnames[] = {
25214 (char *) "self",(char *) "filename", NULL
25215 };
25216
25217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
25218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25220 {
25221 arg2 = wxString_in_helper(obj1);
25222 if (arg2 == NULL) SWIG_fail;
25223 temp2 = True;
25224 }
25225 {
25226 PyThreadState* __tstate = wxPyBeginAllowThreads();
25227 (arg1)->AddFile((wxString const &)*arg2);
25228
25229 wxPyEndAllowThreads(__tstate);
25230 if (PyErr_Occurred()) SWIG_fail;
25231 }
25232 Py_INCREF(Py_None); resultobj = Py_None;
25233 {
25234 if (temp2)
25235 delete arg2;
25236 }
25237 return resultobj;
25238 fail:
25239 {
25240 if (temp2)
25241 delete arg2;
25242 }
25243 return NULL;
25244 }
25245
25246
25247 static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) {
25248 PyObject *obj;
25249 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25250 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
25251 Py_INCREF(obj);
25252 return Py_BuildValue((char *)"");
25253 }
25254 static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25255 PyObject *resultobj;
25256 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25257 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25258 wxCustomDataObject *result;
25259 PyObject * obj0 = 0 ;
25260 char *kwnames[] = {
25261 (char *) "format", NULL
25262 };
25263
25264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
25265 if (obj0) {
25266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25267 SWIG_POINTER_EXCEPTION | 0)) == -1)
25268 SWIG_fail;
25269 if (arg1 == NULL) {
25270 PyErr_SetString(PyExc_TypeError,"null reference");
25271 SWIG_fail;
25272 }
25273 }
25274 {
25275 PyThreadState* __tstate = wxPyBeginAllowThreads();
25276 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
25277
25278 wxPyEndAllowThreads(__tstate);
25279 if (PyErr_Occurred()) SWIG_fail;
25280 }
25281 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
25282 return resultobj;
25283 fail:
25284 return NULL;
25285 }
25286
25287
25288 static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) {
25289 PyObject *resultobj;
25290 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25291 PyObject *arg2 = (PyObject *) 0 ;
25292 PyObject * obj0 = 0 ;
25293 PyObject * obj1 = 0 ;
25294 char *kwnames[] = {
25295 (char *) "self",(char *) "data", NULL
25296 };
25297
25298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail;
25299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25301 arg2 = obj1;
25302 {
25303 PyThreadState* __tstate = wxPyBeginAllowThreads();
25304 wxCustomDataObject_TakeData(arg1,arg2);
25305
25306 wxPyEndAllowThreads(__tstate);
25307 if (PyErr_Occurred()) SWIG_fail;
25308 }
25309 Py_INCREF(Py_None); resultobj = Py_None;
25310 return resultobj;
25311 fail:
25312 return NULL;
25313 }
25314
25315
25316 static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25317 PyObject *resultobj;
25318 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25319 PyObject *arg2 = (PyObject *) 0 ;
25320 bool result;
25321 PyObject * obj0 = 0 ;
25322 PyObject * obj1 = 0 ;
25323 char *kwnames[] = {
25324 (char *) "self",(char *) "data", NULL
25325 };
25326
25327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
25328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25330 arg2 = obj1;
25331 {
25332 PyThreadState* __tstate = wxPyBeginAllowThreads();
25333 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
25334
25335 wxPyEndAllowThreads(__tstate);
25336 if (PyErr_Occurred()) SWIG_fail;
25337 }
25338 {
25339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25340 }
25341 return resultobj;
25342 fail:
25343 return NULL;
25344 }
25345
25346
25347 static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
25348 PyObject *resultobj;
25349 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25350 size_t result;
25351 PyObject * obj0 = 0 ;
25352 char *kwnames[] = {
25353 (char *) "self", NULL
25354 };
25355
25356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
25357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25359 {
25360 PyThreadState* __tstate = wxPyBeginAllowThreads();
25361 result = (size_t)(arg1)->GetSize();
25362
25363 wxPyEndAllowThreads(__tstate);
25364 if (PyErr_Occurred()) SWIG_fail;
25365 }
25366 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25367 return resultobj;
25368 fail:
25369 return NULL;
25370 }
25371
25372
25373 static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25374 PyObject *resultobj;
25375 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25376 PyObject *result;
25377 PyObject * obj0 = 0 ;
25378 char *kwnames[] = {
25379 (char *) "self", NULL
25380 };
25381
25382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
25383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25385 {
25386 PyThreadState* __tstate = wxPyBeginAllowThreads();
25387 result = (PyObject *)wxCustomDataObject_GetData(arg1);
25388
25389 wxPyEndAllowThreads(__tstate);
25390 if (PyErr_Occurred()) SWIG_fail;
25391 }
25392 resultobj = result;
25393 return resultobj;
25394 fail:
25395 return NULL;
25396 }
25397
25398
25399 static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) {
25400 PyObject *obj;
25401 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25402 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
25403 Py_INCREF(obj);
25404 return Py_BuildValue((char *)"");
25405 }
25406 static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25407 PyObject *resultobj;
25408 wxURLDataObject *result;
25409 char *kwnames[] = {
25410 NULL
25411 };
25412
25413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
25414 {
25415 PyThreadState* __tstate = wxPyBeginAllowThreads();
25416 result = (wxURLDataObject *)new wxURLDataObject();
25417
25418 wxPyEndAllowThreads(__tstate);
25419 if (PyErr_Occurred()) SWIG_fail;
25420 }
25421 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
25422 return resultobj;
25423 fail:
25424 return NULL;
25425 }
25426
25427
25428 static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25429 PyObject *resultobj;
25430 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25431 wxString result;
25432 PyObject * obj0 = 0 ;
25433 char *kwnames[] = {
25434 (char *) "self", NULL
25435 };
25436
25437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
25438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25440 {
25441 PyThreadState* __tstate = wxPyBeginAllowThreads();
25442 result = (arg1)->GetURL();
25443
25444 wxPyEndAllowThreads(__tstate);
25445 if (PyErr_Occurred()) SWIG_fail;
25446 }
25447 {
25448 #if wxUSE_UNICODE
25449 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25450 #else
25451 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25452 #endif
25453 }
25454 return resultobj;
25455 fail:
25456 return NULL;
25457 }
25458
25459
25460 static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25461 PyObject *resultobj;
25462 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25463 wxString *arg2 = 0 ;
25464 bool temp2 = False ;
25465 PyObject * obj0 = 0 ;
25466 PyObject * obj1 = 0 ;
25467 char *kwnames[] = {
25468 (char *) "self",(char *) "url", NULL
25469 };
25470
25471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
25472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25474 {
25475 arg2 = wxString_in_helper(obj1);
25476 if (arg2 == NULL) SWIG_fail;
25477 temp2 = True;
25478 }
25479 {
25480 PyThreadState* __tstate = wxPyBeginAllowThreads();
25481 (arg1)->SetURL((wxString const &)*arg2);
25482
25483 wxPyEndAllowThreads(__tstate);
25484 if (PyErr_Occurred()) SWIG_fail;
25485 }
25486 Py_INCREF(Py_None); resultobj = Py_None;
25487 {
25488 if (temp2)
25489 delete arg2;
25490 }
25491 return resultobj;
25492 fail:
25493 {
25494 if (temp2)
25495 delete arg2;
25496 }
25497 return NULL;
25498 }
25499
25500
25501 static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) {
25502 PyObject *obj;
25503 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25504 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
25505 Py_INCREF(obj);
25506 return Py_BuildValue((char *)"");
25507 }
25508 static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25509 PyObject *resultobj;
25510 wxMetafileDataObject *result;
25511 char *kwnames[] = {
25512 NULL
25513 };
25514
25515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
25516 {
25517 PyThreadState* __tstate = wxPyBeginAllowThreads();
25518 result = (wxMetafileDataObject *)new wxMetafileDataObject();
25519
25520 wxPyEndAllowThreads(__tstate);
25521 if (PyErr_Occurred()) SWIG_fail;
25522 }
25523 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
25524 return resultobj;
25525 fail:
25526 return NULL;
25527 }
25528
25529
25530 static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) {
25531 PyObject *obj;
25532 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25533 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
25534 Py_INCREF(obj);
25535 return Py_BuildValue((char *)"");
25536 }
25537 static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) {
25538 PyObject *resultobj;
25539 int arg1 ;
25540 bool result;
25541 PyObject * obj0 = 0 ;
25542 char *kwnames[] = {
25543 (char *) "res", NULL
25544 };
25545
25546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
25547 arg1 = (wxDragResult) SWIG_AsInt(obj0);
25548 if (PyErr_Occurred()) SWIG_fail;
25549 {
25550 PyThreadState* __tstate = wxPyBeginAllowThreads();
25551 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
25552
25553 wxPyEndAllowThreads(__tstate);
25554 if (PyErr_Occurred()) SWIG_fail;
25555 }
25556 {
25557 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25558 }
25559 return resultobj;
25560 fail:
25561 return NULL;
25562 }
25563
25564
25565 static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25566 PyObject *resultobj;
25567 wxWindow *arg1 = (wxWindow *) 0 ;
25568 wxIcon const &arg2_defvalue = wxNullIcon ;
25569 wxIcon *arg2 = (wxIcon *) &arg2_defvalue ;
25570 wxIcon const &arg3_defvalue = wxNullIcon ;
25571 wxIcon *arg3 = (wxIcon *) &arg3_defvalue ;
25572 wxIcon const &arg4_defvalue = wxNullIcon ;
25573 wxIcon *arg4 = (wxIcon *) &arg4_defvalue ;
25574 wxPyDropSource *result;
25575 PyObject * obj0 = 0 ;
25576 PyObject * obj1 = 0 ;
25577 PyObject * obj2 = 0 ;
25578 PyObject * obj3 = 0 ;
25579 char *kwnames[] = {
25580 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
25581 };
25582
25583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25586 if (obj1) {
25587 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
25588 SWIG_POINTER_EXCEPTION | 0)) == -1)
25589 SWIG_fail;
25590 if (arg2 == NULL) {
25591 PyErr_SetString(PyExc_TypeError,"null reference");
25592 SWIG_fail;
25593 }
25594 }
25595 if (obj2) {
25596 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIcon,
25597 SWIG_POINTER_EXCEPTION | 0)) == -1)
25598 SWIG_fail;
25599 if (arg3 == NULL) {
25600 PyErr_SetString(PyExc_TypeError,"null reference");
25601 SWIG_fail;
25602 }
25603 }
25604 if (obj3) {
25605 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxIcon,
25606 SWIG_POINTER_EXCEPTION | 0)) == -1)
25607 SWIG_fail;
25608 if (arg4 == NULL) {
25609 PyErr_SetString(PyExc_TypeError,"null reference");
25610 SWIG_fail;
25611 }
25612 }
25613 {
25614 PyThreadState* __tstate = wxPyBeginAllowThreads();
25615 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxIcon const &)*arg2,(wxIcon const &)*arg3,(wxIcon const &)*arg4);
25616
25617 wxPyEndAllowThreads(__tstate);
25618 if (PyErr_Occurred()) SWIG_fail;
25619 }
25620 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
25621 return resultobj;
25622 fail:
25623 return NULL;
25624 }
25625
25626
25627 static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25628 PyObject *resultobj;
25629 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25630 PyObject *arg2 = (PyObject *) 0 ;
25631 PyObject *arg3 = (PyObject *) 0 ;
25632 int arg4 ;
25633 PyObject * obj0 = 0 ;
25634 PyObject * obj1 = 0 ;
25635 PyObject * obj2 = 0 ;
25636 PyObject * obj3 = 0 ;
25637 char *kwnames[] = {
25638 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
25639 };
25640
25641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25644 arg2 = obj1;
25645 arg3 = obj2;
25646 arg4 = (int) SWIG_AsInt(obj3);
25647 if (PyErr_Occurred()) SWIG_fail;
25648 {
25649 PyThreadState* __tstate = wxPyBeginAllowThreads();
25650 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
25651
25652 wxPyEndAllowThreads(__tstate);
25653 if (PyErr_Occurred()) SWIG_fail;
25654 }
25655 Py_INCREF(Py_None); resultobj = Py_None;
25656 return resultobj;
25657 fail:
25658 return NULL;
25659 }
25660
25661
25662 static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25663 PyObject *resultobj;
25664 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25665 PyObject * obj0 = 0 ;
25666 char *kwnames[] = {
25667 (char *) "self", NULL
25668 };
25669
25670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
25671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25673 {
25674 PyThreadState* __tstate = wxPyBeginAllowThreads();
25675 delete arg1;
25676
25677 wxPyEndAllowThreads(__tstate);
25678 if (PyErr_Occurred()) SWIG_fail;
25679 }
25680 Py_INCREF(Py_None); resultobj = Py_None;
25681 return resultobj;
25682 fail:
25683 return NULL;
25684 }
25685
25686
25687 static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25688 PyObject *resultobj;
25689 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25690 wxDataObject *arg2 = 0 ;
25691 PyObject * obj0 = 0 ;
25692 PyObject * obj1 = 0 ;
25693 char *kwnames[] = {
25694 (char *) "self",(char *) "data", NULL
25695 };
25696
25697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
25698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25700 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
25701 SWIG_POINTER_EXCEPTION | 0)) == -1)
25702 SWIG_fail;
25703 if (arg2 == NULL) {
25704 PyErr_SetString(PyExc_TypeError,"null reference");
25705 SWIG_fail;
25706 }
25707 {
25708 PyThreadState* __tstate = wxPyBeginAllowThreads();
25709 (arg1)->SetData(*arg2);
25710
25711 wxPyEndAllowThreads(__tstate);
25712 if (PyErr_Occurred()) SWIG_fail;
25713 }
25714 Py_INCREF(Py_None); resultobj = Py_None;
25715 return resultobj;
25716 fail:
25717 return NULL;
25718 }
25719
25720
25721 static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25722 PyObject *resultobj;
25723 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25724 wxDataObject *result;
25725 PyObject * obj0 = 0 ;
25726 char *kwnames[] = {
25727 (char *) "self", NULL
25728 };
25729
25730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
25731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25733 {
25734 PyThreadState* __tstate = wxPyBeginAllowThreads();
25735 result = (wxDataObject *)(arg1)->GetDataObject();
25736
25737 wxPyEndAllowThreads(__tstate);
25738 if (PyErr_Occurred()) SWIG_fail;
25739 }
25740 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
25741 return resultobj;
25742 fail:
25743 return NULL;
25744 }
25745
25746
25747 static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
25748 PyObject *resultobj;
25749 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25750 int arg2 ;
25751 wxCursor *arg3 = 0 ;
25752 PyObject * obj0 = 0 ;
25753 PyObject * obj1 = 0 ;
25754 PyObject * obj2 = 0 ;
25755 char *kwnames[] = {
25756 (char *) "self",(char *) "res",(char *) "cursor", NULL
25757 };
25758
25759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
25760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25762 arg2 = (wxDragResult) SWIG_AsInt(obj1);
25763 if (PyErr_Occurred()) SWIG_fail;
25764 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
25765 SWIG_POINTER_EXCEPTION | 0)) == -1)
25766 SWIG_fail;
25767 if (arg3 == NULL) {
25768 PyErr_SetString(PyExc_TypeError,"null reference");
25769 SWIG_fail;
25770 }
25771 {
25772 PyThreadState* __tstate = wxPyBeginAllowThreads();
25773 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
25774
25775 wxPyEndAllowThreads(__tstate);
25776 if (PyErr_Occurred()) SWIG_fail;
25777 }
25778 Py_INCREF(Py_None); resultobj = Py_None;
25779 return resultobj;
25780 fail:
25781 return NULL;
25782 }
25783
25784
25785 static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
25786 PyObject *resultobj;
25787 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25788 int arg2 = (int) wxDrag_CopyOnly ;
25789 int result;
25790 PyObject * obj0 = 0 ;
25791 PyObject * obj1 = 0 ;
25792 char *kwnames[] = {
25793 (char *) "self",(char *) "flags", NULL
25794 };
25795
25796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
25797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25799 if (obj1) {
25800 arg2 = (int) SWIG_AsInt(obj1);
25801 if (PyErr_Occurred()) SWIG_fail;
25802 }
25803 {
25804 PyThreadState* __tstate = wxPyBeginAllowThreads();
25805 result = (int)(arg1)->DoDragDrop(arg2);
25806
25807 wxPyEndAllowThreads(__tstate);
25808 if (PyErr_Occurred()) SWIG_fail;
25809 }
25810 resultobj = SWIG_FromInt((int)result);
25811 return resultobj;
25812 fail:
25813 return NULL;
25814 }
25815
25816
25817 static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) {
25818 PyObject *resultobj;
25819 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25820 int arg2 ;
25821 bool result;
25822 PyObject * obj0 = 0 ;
25823 PyObject * obj1 = 0 ;
25824 char *kwnames[] = {
25825 (char *) "self",(char *) "effect", NULL
25826 };
25827
25828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
25829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25831 arg2 = (wxDragResult) SWIG_AsInt(obj1);
25832 if (PyErr_Occurred()) SWIG_fail;
25833 {
25834 PyThreadState* __tstate = wxPyBeginAllowThreads();
25835 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
25836
25837 wxPyEndAllowThreads(__tstate);
25838 if (PyErr_Occurred()) SWIG_fail;
25839 }
25840 {
25841 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25842 }
25843 return resultobj;
25844 fail:
25845 return NULL;
25846 }
25847
25848
25849 static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) {
25850 PyObject *obj;
25851 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25852 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
25853 Py_INCREF(obj);
25854 return Py_BuildValue((char *)"");
25855 }
25856 static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
25857 PyObject *resultobj;
25858 wxDataObject *arg1 = (wxDataObject *) NULL ;
25859 wxPyDropTarget *result;
25860 PyObject * obj0 = 0 ;
25861 char *kwnames[] = {
25862 (char *) "dataObject", NULL
25863 };
25864
25865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
25866 if (obj0) {
25867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
25868 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25869 }
25870 {
25871 PyThreadState* __tstate = wxPyBeginAllowThreads();
25872 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
25873
25874 wxPyEndAllowThreads(__tstate);
25875 if (PyErr_Occurred()) SWIG_fail;
25876 }
25877 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
25878 return resultobj;
25879 fail:
25880 return NULL;
25881 }
25882
25883
25884 static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25885 PyObject *resultobj;
25886 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25887 PyObject *arg2 = (PyObject *) 0 ;
25888 PyObject *arg3 = (PyObject *) 0 ;
25889 PyObject * obj0 = 0 ;
25890 PyObject * obj1 = 0 ;
25891 PyObject * obj2 = 0 ;
25892 char *kwnames[] = {
25893 (char *) "self",(char *) "self",(char *) "_class", NULL
25894 };
25895
25896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25899 arg2 = obj1;
25900 arg3 = obj2;
25901 {
25902 PyThreadState* __tstate = wxPyBeginAllowThreads();
25903 (arg1)->_setCallbackInfo(arg2,arg3);
25904
25905 wxPyEndAllowThreads(__tstate);
25906 if (PyErr_Occurred()) SWIG_fail;
25907 }
25908 Py_INCREF(Py_None); resultobj = Py_None;
25909 return resultobj;
25910 fail:
25911 return NULL;
25912 }
25913
25914
25915 static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
25916 PyObject *resultobj;
25917 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25918 PyObject * obj0 = 0 ;
25919 char *kwnames[] = {
25920 (char *) "self", NULL
25921 };
25922
25923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
25924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25926 {
25927 PyThreadState* __tstate = wxPyBeginAllowThreads();
25928 delete arg1;
25929
25930 wxPyEndAllowThreads(__tstate);
25931 if (PyErr_Occurred()) SWIG_fail;
25932 }
25933 Py_INCREF(Py_None); resultobj = Py_None;
25934 return resultobj;
25935 fail:
25936 return NULL;
25937 }
25938
25939
25940 static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25941 PyObject *resultobj;
25942 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25943 wxDataObject *result;
25944 PyObject * obj0 = 0 ;
25945 char *kwnames[] = {
25946 (char *) "self", NULL
25947 };
25948
25949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
25950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25952 {
25953 PyThreadState* __tstate = wxPyBeginAllowThreads();
25954 result = (wxDataObject *)(arg1)->GetDataObject();
25955
25956 wxPyEndAllowThreads(__tstate);
25957 if (PyErr_Occurred()) SWIG_fail;
25958 }
25959 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
25960 return resultobj;
25961 fail:
25962 return NULL;
25963 }
25964
25965
25966 static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25967 PyObject *resultobj;
25968 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25969 wxDataObject *arg2 = (wxDataObject *) 0 ;
25970 PyObject * obj0 = 0 ;
25971 PyObject * obj1 = 0 ;
25972 char *kwnames[] = {
25973 (char *) "self",(char *) "dataObject", NULL
25974 };
25975
25976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
25977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25979 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
25980 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25981 {
25982 PyThreadState* __tstate = wxPyBeginAllowThreads();
25983 (arg1)->SetDataObject(arg2);
25984
25985 wxPyEndAllowThreads(__tstate);
25986 if (PyErr_Occurred()) SWIG_fail;
25987 }
25988 Py_INCREF(Py_None); resultobj = Py_None;
25989 return resultobj;
25990 fail:
25991 return NULL;
25992 }
25993
25994
25995 static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
25996 PyObject *resultobj;
25997 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25998 int arg2 ;
25999 int arg3 ;
26000 int arg4 ;
26001 int result;
26002 PyObject * obj0 = 0 ;
26003 PyObject * obj1 = 0 ;
26004 PyObject * obj2 = 0 ;
26005 PyObject * obj3 = 0 ;
26006 char *kwnames[] = {
26007 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26008 };
26009
26010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26013 arg2 = (int) SWIG_AsInt(obj1);
26014 if (PyErr_Occurred()) SWIG_fail;
26015 arg3 = (int) SWIG_AsInt(obj2);
26016 if (PyErr_Occurred()) SWIG_fail;
26017 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26018 if (PyErr_Occurred()) SWIG_fail;
26019 {
26020 PyThreadState* __tstate = wxPyBeginAllowThreads();
26021 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26022
26023 wxPyEndAllowThreads(__tstate);
26024 if (PyErr_Occurred()) SWIG_fail;
26025 }
26026 resultobj = SWIG_FromInt((int)result);
26027 return resultobj;
26028 fail:
26029 return NULL;
26030 }
26031
26032
26033 static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26034 PyObject *resultobj;
26035 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26036 int arg2 ;
26037 int arg3 ;
26038 int arg4 ;
26039 int result;
26040 PyObject * obj0 = 0 ;
26041 PyObject * obj1 = 0 ;
26042 PyObject * obj2 = 0 ;
26043 PyObject * obj3 = 0 ;
26044 char *kwnames[] = {
26045 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26046 };
26047
26048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26051 arg2 = (int) SWIG_AsInt(obj1);
26052 if (PyErr_Occurred()) SWIG_fail;
26053 arg3 = (int) SWIG_AsInt(obj2);
26054 if (PyErr_Occurred()) SWIG_fail;
26055 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26056 if (PyErr_Occurred()) SWIG_fail;
26057 {
26058 PyThreadState* __tstate = wxPyBeginAllowThreads();
26059 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26060
26061 wxPyEndAllowThreads(__tstate);
26062 if (PyErr_Occurred()) SWIG_fail;
26063 }
26064 resultobj = SWIG_FromInt((int)result);
26065 return resultobj;
26066 fail:
26067 return NULL;
26068 }
26069
26070
26071 static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26072 PyObject *resultobj;
26073 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26074 PyObject * obj0 = 0 ;
26075 char *kwnames[] = {
26076 (char *) "self", NULL
26077 };
26078
26079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26082 {
26083 PyThreadState* __tstate = wxPyBeginAllowThreads();
26084 (arg1)->base_OnLeave();
26085
26086 wxPyEndAllowThreads(__tstate);
26087 if (PyErr_Occurred()) SWIG_fail;
26088 }
26089 Py_INCREF(Py_None); resultobj = Py_None;
26090 return resultobj;
26091 fail:
26092 return NULL;
26093 }
26094
26095
26096 static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26097 PyObject *resultobj;
26098 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26099 int arg2 ;
26100 int arg3 ;
26101 bool result;
26102 PyObject * obj0 = 0 ;
26103 PyObject * obj1 = 0 ;
26104 PyObject * obj2 = 0 ;
26105 char *kwnames[] = {
26106 (char *) "self",(char *) "x",(char *) "y", NULL
26107 };
26108
26109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26112 arg2 = (int) SWIG_AsInt(obj1);
26113 if (PyErr_Occurred()) SWIG_fail;
26114 arg3 = (int) SWIG_AsInt(obj2);
26115 if (PyErr_Occurred()) SWIG_fail;
26116 {
26117 PyThreadState* __tstate = wxPyBeginAllowThreads();
26118 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26119
26120 wxPyEndAllowThreads(__tstate);
26121 if (PyErr_Occurred()) SWIG_fail;
26122 }
26123 {
26124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26125 }
26126 return resultobj;
26127 fail:
26128 return NULL;
26129 }
26130
26131
26132 static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26133 PyObject *resultobj;
26134 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26135 bool result;
26136 PyObject * obj0 = 0 ;
26137 char *kwnames[] = {
26138 (char *) "self", NULL
26139 };
26140
26141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
26142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26144 {
26145 PyThreadState* __tstate = wxPyBeginAllowThreads();
26146 result = (bool)(arg1)->GetData();
26147
26148 wxPyEndAllowThreads(__tstate);
26149 if (PyErr_Occurred()) SWIG_fail;
26150 }
26151 {
26152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26153 }
26154 return resultobj;
26155 fail:
26156 return NULL;
26157 }
26158
26159
26160 static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) {
26161 PyObject *obj;
26162 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26163 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
26164 Py_INCREF(obj);
26165 return Py_BuildValue((char *)"");
26166 }
26167 static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26168 PyObject *resultobj;
26169 wxPyTextDropTarget *result;
26170 char *kwnames[] = {
26171 NULL
26172 };
26173
26174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
26175 {
26176 PyThreadState* __tstate = wxPyBeginAllowThreads();
26177 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
26178
26179 wxPyEndAllowThreads(__tstate);
26180 if (PyErr_Occurred()) SWIG_fail;
26181 }
26182 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
26183 return resultobj;
26184 fail:
26185 return NULL;
26186 }
26187
26188
26189 static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26190 PyObject *resultobj;
26191 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26192 PyObject *arg2 = (PyObject *) 0 ;
26193 PyObject *arg3 = (PyObject *) 0 ;
26194 PyObject * obj0 = 0 ;
26195 PyObject * obj1 = 0 ;
26196 PyObject * obj2 = 0 ;
26197 char *kwnames[] = {
26198 (char *) "self",(char *) "self",(char *) "_class", NULL
26199 };
26200
26201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26204 arg2 = obj1;
26205 arg3 = obj2;
26206 {
26207 PyThreadState* __tstate = wxPyBeginAllowThreads();
26208 (arg1)->_setCallbackInfo(arg2,arg3);
26209
26210 wxPyEndAllowThreads(__tstate);
26211 if (PyErr_Occurred()) SWIG_fail;
26212 }
26213 Py_INCREF(Py_None); resultobj = Py_None;
26214 return resultobj;
26215 fail:
26216 return NULL;
26217 }
26218
26219
26220 static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26221 PyObject *resultobj;
26222 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26223 int arg2 ;
26224 int arg3 ;
26225 int arg4 ;
26226 int result;
26227 PyObject * obj0 = 0 ;
26228 PyObject * obj1 = 0 ;
26229 PyObject * obj2 = 0 ;
26230 PyObject * obj3 = 0 ;
26231 char *kwnames[] = {
26232 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26233 };
26234
26235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26238 arg2 = (int) SWIG_AsInt(obj1);
26239 if (PyErr_Occurred()) SWIG_fail;
26240 arg3 = (int) SWIG_AsInt(obj2);
26241 if (PyErr_Occurred()) SWIG_fail;
26242 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26243 if (PyErr_Occurred()) SWIG_fail;
26244 {
26245 PyThreadState* __tstate = wxPyBeginAllowThreads();
26246 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26247
26248 wxPyEndAllowThreads(__tstate);
26249 if (PyErr_Occurred()) SWIG_fail;
26250 }
26251 resultobj = SWIG_FromInt((int)result);
26252 return resultobj;
26253 fail:
26254 return NULL;
26255 }
26256
26257
26258 static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26259 PyObject *resultobj;
26260 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26261 int arg2 ;
26262 int arg3 ;
26263 int arg4 ;
26264 int result;
26265 PyObject * obj0 = 0 ;
26266 PyObject * obj1 = 0 ;
26267 PyObject * obj2 = 0 ;
26268 PyObject * obj3 = 0 ;
26269 char *kwnames[] = {
26270 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26271 };
26272
26273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26276 arg2 = (int) SWIG_AsInt(obj1);
26277 if (PyErr_Occurred()) SWIG_fail;
26278 arg3 = (int) SWIG_AsInt(obj2);
26279 if (PyErr_Occurred()) SWIG_fail;
26280 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26281 if (PyErr_Occurred()) SWIG_fail;
26282 {
26283 PyThreadState* __tstate = wxPyBeginAllowThreads();
26284 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26285
26286 wxPyEndAllowThreads(__tstate);
26287 if (PyErr_Occurred()) SWIG_fail;
26288 }
26289 resultobj = SWIG_FromInt((int)result);
26290 return resultobj;
26291 fail:
26292 return NULL;
26293 }
26294
26295
26296 static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26297 PyObject *resultobj;
26298 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26299 PyObject * obj0 = 0 ;
26300 char *kwnames[] = {
26301 (char *) "self", NULL
26302 };
26303
26304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26307 {
26308 PyThreadState* __tstate = wxPyBeginAllowThreads();
26309 (arg1)->base_OnLeave();
26310
26311 wxPyEndAllowThreads(__tstate);
26312 if (PyErr_Occurred()) SWIG_fail;
26313 }
26314 Py_INCREF(Py_None); resultobj = Py_None;
26315 return resultobj;
26316 fail:
26317 return NULL;
26318 }
26319
26320
26321 static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26322 PyObject *resultobj;
26323 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26324 int arg2 ;
26325 int arg3 ;
26326 bool result;
26327 PyObject * obj0 = 0 ;
26328 PyObject * obj1 = 0 ;
26329 PyObject * obj2 = 0 ;
26330 char *kwnames[] = {
26331 (char *) "self",(char *) "x",(char *) "y", NULL
26332 };
26333
26334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26337 arg2 = (int) SWIG_AsInt(obj1);
26338 if (PyErr_Occurred()) SWIG_fail;
26339 arg3 = (int) SWIG_AsInt(obj2);
26340 if (PyErr_Occurred()) SWIG_fail;
26341 {
26342 PyThreadState* __tstate = wxPyBeginAllowThreads();
26343 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26344
26345 wxPyEndAllowThreads(__tstate);
26346 if (PyErr_Occurred()) SWIG_fail;
26347 }
26348 {
26349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26350 }
26351 return resultobj;
26352 fail:
26353 return NULL;
26354 }
26355
26356
26357 static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26358 PyObject *resultobj;
26359 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26360 int arg2 ;
26361 int arg3 ;
26362 int arg4 ;
26363 int result;
26364 PyObject * obj0 = 0 ;
26365 PyObject * obj1 = 0 ;
26366 PyObject * obj2 = 0 ;
26367 PyObject * obj3 = 0 ;
26368 char *kwnames[] = {
26369 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26370 };
26371
26372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26375 arg2 = (int) SWIG_AsInt(obj1);
26376 if (PyErr_Occurred()) SWIG_fail;
26377 arg3 = (int) SWIG_AsInt(obj2);
26378 if (PyErr_Occurred()) SWIG_fail;
26379 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26380 if (PyErr_Occurred()) SWIG_fail;
26381 {
26382 PyThreadState* __tstate = wxPyBeginAllowThreads();
26383 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26384
26385 wxPyEndAllowThreads(__tstate);
26386 if (PyErr_Occurred()) SWIG_fail;
26387 }
26388 resultobj = SWIG_FromInt((int)result);
26389 return resultobj;
26390 fail:
26391 return NULL;
26392 }
26393
26394
26395 static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) {
26396 PyObject *obj;
26397 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26398 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
26399 Py_INCREF(obj);
26400 return Py_BuildValue((char *)"");
26401 }
26402 static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26403 PyObject *resultobj;
26404 wxPyFileDropTarget *result;
26405 char *kwnames[] = {
26406 NULL
26407 };
26408
26409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
26410 {
26411 PyThreadState* __tstate = wxPyBeginAllowThreads();
26412 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
26413
26414 wxPyEndAllowThreads(__tstate);
26415 if (PyErr_Occurred()) SWIG_fail;
26416 }
26417 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
26418 return resultobj;
26419 fail:
26420 return NULL;
26421 }
26422
26423
26424 static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26425 PyObject *resultobj;
26426 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26427 PyObject *arg2 = (PyObject *) 0 ;
26428 PyObject *arg3 = (PyObject *) 0 ;
26429 PyObject * obj0 = 0 ;
26430 PyObject * obj1 = 0 ;
26431 PyObject * obj2 = 0 ;
26432 char *kwnames[] = {
26433 (char *) "self",(char *) "self",(char *) "_class", NULL
26434 };
26435
26436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26439 arg2 = obj1;
26440 arg3 = obj2;
26441 {
26442 PyThreadState* __tstate = wxPyBeginAllowThreads();
26443 (arg1)->_setCallbackInfo(arg2,arg3);
26444
26445 wxPyEndAllowThreads(__tstate);
26446 if (PyErr_Occurred()) SWIG_fail;
26447 }
26448 Py_INCREF(Py_None); resultobj = Py_None;
26449 return resultobj;
26450 fail:
26451 return NULL;
26452 }
26453
26454
26455 static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26456 PyObject *resultobj;
26457 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26458 int arg2 ;
26459 int arg3 ;
26460 int arg4 ;
26461 int result;
26462 PyObject * obj0 = 0 ;
26463 PyObject * obj1 = 0 ;
26464 PyObject * obj2 = 0 ;
26465 PyObject * obj3 = 0 ;
26466 char *kwnames[] = {
26467 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26468 };
26469
26470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26473 arg2 = (int) SWIG_AsInt(obj1);
26474 if (PyErr_Occurred()) SWIG_fail;
26475 arg3 = (int) SWIG_AsInt(obj2);
26476 if (PyErr_Occurred()) SWIG_fail;
26477 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26478 if (PyErr_Occurred()) SWIG_fail;
26479 {
26480 PyThreadState* __tstate = wxPyBeginAllowThreads();
26481 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26482
26483 wxPyEndAllowThreads(__tstate);
26484 if (PyErr_Occurred()) SWIG_fail;
26485 }
26486 resultobj = SWIG_FromInt((int)result);
26487 return resultobj;
26488 fail:
26489 return NULL;
26490 }
26491
26492
26493 static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26494 PyObject *resultobj;
26495 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26496 int arg2 ;
26497 int arg3 ;
26498 int arg4 ;
26499 int result;
26500 PyObject * obj0 = 0 ;
26501 PyObject * obj1 = 0 ;
26502 PyObject * obj2 = 0 ;
26503 PyObject * obj3 = 0 ;
26504 char *kwnames[] = {
26505 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26506 };
26507
26508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26511 arg2 = (int) SWIG_AsInt(obj1);
26512 if (PyErr_Occurred()) SWIG_fail;
26513 arg3 = (int) SWIG_AsInt(obj2);
26514 if (PyErr_Occurred()) SWIG_fail;
26515 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26516 if (PyErr_Occurred()) SWIG_fail;
26517 {
26518 PyThreadState* __tstate = wxPyBeginAllowThreads();
26519 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26520
26521 wxPyEndAllowThreads(__tstate);
26522 if (PyErr_Occurred()) SWIG_fail;
26523 }
26524 resultobj = SWIG_FromInt((int)result);
26525 return resultobj;
26526 fail:
26527 return NULL;
26528 }
26529
26530
26531 static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26532 PyObject *resultobj;
26533 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26534 PyObject * obj0 = 0 ;
26535 char *kwnames[] = {
26536 (char *) "self", NULL
26537 };
26538
26539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26542 {
26543 PyThreadState* __tstate = wxPyBeginAllowThreads();
26544 (arg1)->base_OnLeave();
26545
26546 wxPyEndAllowThreads(__tstate);
26547 if (PyErr_Occurred()) SWIG_fail;
26548 }
26549 Py_INCREF(Py_None); resultobj = Py_None;
26550 return resultobj;
26551 fail:
26552 return NULL;
26553 }
26554
26555
26556 static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26557 PyObject *resultobj;
26558 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26559 int arg2 ;
26560 int arg3 ;
26561 bool result;
26562 PyObject * obj0 = 0 ;
26563 PyObject * obj1 = 0 ;
26564 PyObject * obj2 = 0 ;
26565 char *kwnames[] = {
26566 (char *) "self",(char *) "x",(char *) "y", NULL
26567 };
26568
26569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26572 arg2 = (int) SWIG_AsInt(obj1);
26573 if (PyErr_Occurred()) SWIG_fail;
26574 arg3 = (int) SWIG_AsInt(obj2);
26575 if (PyErr_Occurred()) SWIG_fail;
26576 {
26577 PyThreadState* __tstate = wxPyBeginAllowThreads();
26578 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26579
26580 wxPyEndAllowThreads(__tstate);
26581 if (PyErr_Occurred()) SWIG_fail;
26582 }
26583 {
26584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26585 }
26586 return resultobj;
26587 fail:
26588 return NULL;
26589 }
26590
26591
26592 static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26593 PyObject *resultobj;
26594 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26595 int arg2 ;
26596 int arg3 ;
26597 int arg4 ;
26598 int result;
26599 PyObject * obj0 = 0 ;
26600 PyObject * obj1 = 0 ;
26601 PyObject * obj2 = 0 ;
26602 PyObject * obj3 = 0 ;
26603 char *kwnames[] = {
26604 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26605 };
26606
26607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26610 arg2 = (int) SWIG_AsInt(obj1);
26611 if (PyErr_Occurred()) SWIG_fail;
26612 arg3 = (int) SWIG_AsInt(obj2);
26613 if (PyErr_Occurred()) SWIG_fail;
26614 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26615 if (PyErr_Occurred()) SWIG_fail;
26616 {
26617 PyThreadState* __tstate = wxPyBeginAllowThreads();
26618 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26619
26620 wxPyEndAllowThreads(__tstate);
26621 if (PyErr_Occurred()) SWIG_fail;
26622 }
26623 resultobj = SWIG_FromInt((int)result);
26624 return resultobj;
26625 fail:
26626 return NULL;
26627 }
26628
26629
26630 static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) {
26631 PyObject *obj;
26632 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26633 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
26634 Py_INCREF(obj);
26635 return Py_BuildValue((char *)"");
26636 }
26637 static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26638 PyObject *resultobj;
26639 wxClipboard *result;
26640 char *kwnames[] = {
26641 NULL
26642 };
26643
26644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
26645 {
26646 PyThreadState* __tstate = wxPyBeginAllowThreads();
26647 result = (wxClipboard *)new wxClipboard();
26648
26649 wxPyEndAllowThreads(__tstate);
26650 if (PyErr_Occurred()) SWIG_fail;
26651 }
26652 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
26653 return resultobj;
26654 fail:
26655 return NULL;
26656 }
26657
26658
26659 static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26660 PyObject *resultobj;
26661 wxClipboard *arg1 = (wxClipboard *) 0 ;
26662 PyObject * obj0 = 0 ;
26663 char *kwnames[] = {
26664 (char *) "self", NULL
26665 };
26666
26667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
26668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26670 {
26671 PyThreadState* __tstate = wxPyBeginAllowThreads();
26672 delete arg1;
26673
26674 wxPyEndAllowThreads(__tstate);
26675 if (PyErr_Occurred()) SWIG_fail;
26676 }
26677 Py_INCREF(Py_None); resultobj = Py_None;
26678 return resultobj;
26679 fail:
26680 return NULL;
26681 }
26682
26683
26684 static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
26685 PyObject *resultobj;
26686 wxClipboard *arg1 = (wxClipboard *) 0 ;
26687 bool result;
26688 PyObject * obj0 = 0 ;
26689 char *kwnames[] = {
26690 (char *) "self", NULL
26691 };
26692
26693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
26694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26696 {
26697 PyThreadState* __tstate = wxPyBeginAllowThreads();
26698 result = (bool)(arg1)->Open();
26699
26700 wxPyEndAllowThreads(__tstate);
26701 if (PyErr_Occurred()) SWIG_fail;
26702 }
26703 {
26704 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26705 }
26706 return resultobj;
26707 fail:
26708 return NULL;
26709 }
26710
26711
26712 static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
26713 PyObject *resultobj;
26714 wxClipboard *arg1 = (wxClipboard *) 0 ;
26715 PyObject * obj0 = 0 ;
26716 char *kwnames[] = {
26717 (char *) "self", NULL
26718 };
26719
26720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
26721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26723 {
26724 PyThreadState* __tstate = wxPyBeginAllowThreads();
26725 (arg1)->Close();
26726
26727 wxPyEndAllowThreads(__tstate);
26728 if (PyErr_Occurred()) SWIG_fail;
26729 }
26730 Py_INCREF(Py_None); resultobj = Py_None;
26731 return resultobj;
26732 fail:
26733 return NULL;
26734 }
26735
26736
26737 static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
26738 PyObject *resultobj;
26739 wxClipboard *arg1 = (wxClipboard *) 0 ;
26740 bool result;
26741 PyObject * obj0 = 0 ;
26742 char *kwnames[] = {
26743 (char *) "self", NULL
26744 };
26745
26746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
26747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26749 {
26750 PyThreadState* __tstate = wxPyBeginAllowThreads();
26751 result = (bool)((wxClipboard const *)arg1)->IsOpened();
26752
26753 wxPyEndAllowThreads(__tstate);
26754 if (PyErr_Occurred()) SWIG_fail;
26755 }
26756 {
26757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26758 }
26759 return resultobj;
26760 fail:
26761 return NULL;
26762 }
26763
26764
26765 static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) {
26766 PyObject *resultobj;
26767 wxClipboard *arg1 = (wxClipboard *) 0 ;
26768 wxDataObject *arg2 = (wxDataObject *) 0 ;
26769 bool result;
26770 PyObject * obj0 = 0 ;
26771 PyObject * obj1 = 0 ;
26772 char *kwnames[] = {
26773 (char *) "self",(char *) "data", NULL
26774 };
26775
26776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
26777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26779 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26780 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26781 {
26782 PyThreadState* __tstate = wxPyBeginAllowThreads();
26783 result = (bool)(arg1)->AddData(arg2);
26784
26785 wxPyEndAllowThreads(__tstate);
26786 if (PyErr_Occurred()) SWIG_fail;
26787 }
26788 {
26789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26790 }
26791 return resultobj;
26792 fail:
26793 return NULL;
26794 }
26795
26796
26797 static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26798 PyObject *resultobj;
26799 wxClipboard *arg1 = (wxClipboard *) 0 ;
26800 wxDataObject *arg2 = (wxDataObject *) 0 ;
26801 bool result;
26802 PyObject * obj0 = 0 ;
26803 PyObject * obj1 = 0 ;
26804 char *kwnames[] = {
26805 (char *) "self",(char *) "data", NULL
26806 };
26807
26808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
26809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26811 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26812 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26813 {
26814 PyThreadState* __tstate = wxPyBeginAllowThreads();
26815 result = (bool)(arg1)->SetData(arg2);
26816
26817 wxPyEndAllowThreads(__tstate);
26818 if (PyErr_Occurred()) SWIG_fail;
26819 }
26820 {
26821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26822 }
26823 return resultobj;
26824 fail:
26825 return NULL;
26826 }
26827
26828
26829 static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
26830 PyObject *resultobj;
26831 wxClipboard *arg1 = (wxClipboard *) 0 ;
26832 wxDataFormat *arg2 = 0 ;
26833 bool result;
26834 PyObject * obj0 = 0 ;
26835 PyObject * obj1 = 0 ;
26836 char *kwnames[] = {
26837 (char *) "self",(char *) "format", NULL
26838 };
26839
26840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
26841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26843 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
26844 SWIG_POINTER_EXCEPTION | 0)) == -1)
26845 SWIG_fail;
26846 if (arg2 == NULL) {
26847 PyErr_SetString(PyExc_TypeError,"null reference");
26848 SWIG_fail;
26849 }
26850 {
26851 PyThreadState* __tstate = wxPyBeginAllowThreads();
26852 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
26853
26854 wxPyEndAllowThreads(__tstate);
26855 if (PyErr_Occurred()) SWIG_fail;
26856 }
26857 {
26858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26859 }
26860 return resultobj;
26861 fail:
26862 return NULL;
26863 }
26864
26865
26866 static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26867 PyObject *resultobj;
26868 wxClipboard *arg1 = (wxClipboard *) 0 ;
26869 wxDataObject *arg2 = 0 ;
26870 bool result;
26871 PyObject * obj0 = 0 ;
26872 PyObject * obj1 = 0 ;
26873 char *kwnames[] = {
26874 (char *) "self",(char *) "data", NULL
26875 };
26876
26877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
26878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26880 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26881 SWIG_POINTER_EXCEPTION | 0)) == -1)
26882 SWIG_fail;
26883 if (arg2 == NULL) {
26884 PyErr_SetString(PyExc_TypeError,"null reference");
26885 SWIG_fail;
26886 }
26887 {
26888 PyThreadState* __tstate = wxPyBeginAllowThreads();
26889 result = (bool)(arg1)->GetData(*arg2);
26890
26891 wxPyEndAllowThreads(__tstate);
26892 if (PyErr_Occurred()) SWIG_fail;
26893 }
26894 {
26895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26896 }
26897 return resultobj;
26898 fail:
26899 return NULL;
26900 }
26901
26902
26903 static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
26904 PyObject *resultobj;
26905 wxClipboard *arg1 = (wxClipboard *) 0 ;
26906 PyObject * obj0 = 0 ;
26907 char *kwnames[] = {
26908 (char *) "self", NULL
26909 };
26910
26911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
26912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26914 {
26915 PyThreadState* __tstate = wxPyBeginAllowThreads();
26916 (arg1)->Clear();
26917
26918 wxPyEndAllowThreads(__tstate);
26919 if (PyErr_Occurred()) SWIG_fail;
26920 }
26921 Py_INCREF(Py_None); resultobj = Py_None;
26922 return resultobj;
26923 fail:
26924 return NULL;
26925 }
26926
26927
26928 static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
26929 PyObject *resultobj;
26930 wxClipboard *arg1 = (wxClipboard *) 0 ;
26931 bool result;
26932 PyObject * obj0 = 0 ;
26933 char *kwnames[] = {
26934 (char *) "self", NULL
26935 };
26936
26937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
26938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26940 {
26941 PyThreadState* __tstate = wxPyBeginAllowThreads();
26942 result = (bool)(arg1)->Flush();
26943
26944 wxPyEndAllowThreads(__tstate);
26945 if (PyErr_Occurred()) SWIG_fail;
26946 }
26947 {
26948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26949 }
26950 return resultobj;
26951 fail:
26952 return NULL;
26953 }
26954
26955
26956 static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) {
26957 PyObject *resultobj;
26958 wxClipboard *arg1 = (wxClipboard *) 0 ;
26959 bool arg2 = (bool) True ;
26960 PyObject * obj0 = 0 ;
26961 PyObject * obj1 = 0 ;
26962 char *kwnames[] = {
26963 (char *) "self",(char *) "primary", NULL
26964 };
26965
26966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
26967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26969 if (obj1) {
26970 arg2 = (bool) SWIG_AsBool(obj1);
26971 if (PyErr_Occurred()) SWIG_fail;
26972 }
26973 {
26974 PyThreadState* __tstate = wxPyBeginAllowThreads();
26975 (arg1)->UsePrimarySelection(arg2);
26976
26977 wxPyEndAllowThreads(__tstate);
26978 if (PyErr_Occurred()) SWIG_fail;
26979 }
26980 Py_INCREF(Py_None); resultobj = Py_None;
26981 return resultobj;
26982 fail:
26983 return NULL;
26984 }
26985
26986
26987 static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) {
26988 PyObject *obj;
26989 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26990 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
26991 Py_INCREF(obj);
26992 return Py_BuildValue((char *)"");
26993 }
26994 static int _wrap_TheClipboard_set(PyObject *_val) {
26995 PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only.");
26996 return 1;
26997 }
26998
26999
27000 static PyObject *_wrap_TheClipboard_get() {
27001 PyObject *pyobj;
27002
27003 pyobj = SWIG_NewPointerObj((void *)(wxTheClipboard), SWIGTYPE_p_wxClipboard, 0);
27004 return pyobj;
27005 }
27006
27007
27008 static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27009 PyObject *resultobj;
27010 wxClipboard *arg1 = (wxClipboard *) NULL ;
27011 wxClipboardLocker *result;
27012 PyObject * obj0 = 0 ;
27013 char *kwnames[] = {
27014 (char *) "clipboard", NULL
27015 };
27016
27017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
27018 if (obj0) {
27019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27021 }
27022 {
27023 PyThreadState* __tstate = wxPyBeginAllowThreads();
27024 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
27025
27026 wxPyEndAllowThreads(__tstate);
27027 if (PyErr_Occurred()) SWIG_fail;
27028 }
27029 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
27030 return resultobj;
27031 fail:
27032 return NULL;
27033 }
27034
27035
27036 static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27037 PyObject *resultobj;
27038 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27039 PyObject * obj0 = 0 ;
27040 char *kwnames[] = {
27041 (char *) "self", NULL
27042 };
27043
27044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
27045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27047 {
27048 PyThreadState* __tstate = wxPyBeginAllowThreads();
27049 delete arg1;
27050
27051 wxPyEndAllowThreads(__tstate);
27052 if (PyErr_Occurred()) SWIG_fail;
27053 }
27054 Py_INCREF(Py_None); resultobj = Py_None;
27055 return resultobj;
27056 fail:
27057 return NULL;
27058 }
27059
27060
27061 static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
27062 PyObject *resultobj;
27063 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27064 bool result;
27065 PyObject * obj0 = 0 ;
27066 char *kwnames[] = {
27067 (char *) "self", NULL
27068 };
27069
27070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
27071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27073 {
27074 PyThreadState* __tstate = wxPyBeginAllowThreads();
27075 result = (bool)wxClipboardLocker___nonzero__(arg1);
27076
27077 wxPyEndAllowThreads(__tstate);
27078 if (PyErr_Occurred()) SWIG_fail;
27079 }
27080 {
27081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27082 }
27083 return resultobj;
27084 fail:
27085 return NULL;
27086 }
27087
27088
27089 static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) {
27090 PyObject *obj;
27091 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27092 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
27093 Py_INCREF(obj);
27094 return Py_BuildValue((char *)"");
27095 }
27096 static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27097 PyObject *resultobj;
27098 int arg1 = (int) 0 ;
27099 int arg2 = (int) 0 ;
27100 int arg3 = (int) 0 ;
27101 int arg4 = (int) 0 ;
27102 wxVideoMode *result;
27103 PyObject * obj0 = 0 ;
27104 PyObject * obj1 = 0 ;
27105 PyObject * obj2 = 0 ;
27106 PyObject * obj3 = 0 ;
27107 char *kwnames[] = {
27108 (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL
27109 };
27110
27111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27112 if (obj0) {
27113 arg1 = (int) SWIG_AsInt(obj0);
27114 if (PyErr_Occurred()) SWIG_fail;
27115 }
27116 if (obj1) {
27117 arg2 = (int) SWIG_AsInt(obj1);
27118 if (PyErr_Occurred()) SWIG_fail;
27119 }
27120 if (obj2) {
27121 arg3 = (int) SWIG_AsInt(obj2);
27122 if (PyErr_Occurred()) SWIG_fail;
27123 }
27124 if (obj3) {
27125 arg4 = (int) SWIG_AsInt(obj3);
27126 if (PyErr_Occurred()) SWIG_fail;
27127 }
27128 {
27129 PyThreadState* __tstate = wxPyBeginAllowThreads();
27130 result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4);
27131
27132 wxPyEndAllowThreads(__tstate);
27133 if (PyErr_Occurred()) SWIG_fail;
27134 }
27135 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1);
27136 return resultobj;
27137 fail:
27138 return NULL;
27139 }
27140
27141
27142 static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27143 PyObject *resultobj;
27144 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27145 PyObject * obj0 = 0 ;
27146 char *kwnames[] = {
27147 (char *) "self", NULL
27148 };
27149
27150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail;
27151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27153 {
27154 PyThreadState* __tstate = wxPyBeginAllowThreads();
27155 delete arg1;
27156
27157 wxPyEndAllowThreads(__tstate);
27158 if (PyErr_Occurred()) SWIG_fail;
27159 }
27160 Py_INCREF(Py_None); resultobj = Py_None;
27161 return resultobj;
27162 fail:
27163 return NULL;
27164 }
27165
27166
27167 static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) {
27168 PyObject *resultobj;
27169 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27170 wxVideoMode *arg2 = 0 ;
27171 bool result;
27172 PyObject * obj0 = 0 ;
27173 PyObject * obj1 = 0 ;
27174 char *kwnames[] = {
27175 (char *) "self",(char *) "other", NULL
27176 };
27177
27178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail;
27179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27181 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27182 SWIG_POINTER_EXCEPTION | 0)) == -1)
27183 SWIG_fail;
27184 if (arg2 == NULL) {
27185 PyErr_SetString(PyExc_TypeError,"null reference");
27186 SWIG_fail;
27187 }
27188 {
27189 PyThreadState* __tstate = wxPyBeginAllowThreads();
27190 result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2);
27191
27192 wxPyEndAllowThreads(__tstate);
27193 if (PyErr_Occurred()) SWIG_fail;
27194 }
27195 {
27196 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27197 }
27198 return resultobj;
27199 fail:
27200 return NULL;
27201 }
27202
27203
27204 static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
27205 PyObject *resultobj;
27206 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27207 int result;
27208 PyObject * obj0 = 0 ;
27209 char *kwnames[] = {
27210 (char *) "self", NULL
27211 };
27212
27213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail;
27214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27216 {
27217 PyThreadState* __tstate = wxPyBeginAllowThreads();
27218 result = (int)((wxVideoMode const *)arg1)->GetWidth();
27219
27220 wxPyEndAllowThreads(__tstate);
27221 if (PyErr_Occurred()) SWIG_fail;
27222 }
27223 resultobj = SWIG_FromInt((int)result);
27224 return resultobj;
27225 fail:
27226 return NULL;
27227 }
27228
27229
27230 static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
27231 PyObject *resultobj;
27232 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27233 int result;
27234 PyObject * obj0 = 0 ;
27235 char *kwnames[] = {
27236 (char *) "self", NULL
27237 };
27238
27239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail;
27240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27242 {
27243 PyThreadState* __tstate = wxPyBeginAllowThreads();
27244 result = (int)((wxVideoMode const *)arg1)->GetHeight();
27245
27246 wxPyEndAllowThreads(__tstate);
27247 if (PyErr_Occurred()) SWIG_fail;
27248 }
27249 resultobj = SWIG_FromInt((int)result);
27250 return resultobj;
27251 fail:
27252 return NULL;
27253 }
27254
27255
27256 static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
27257 PyObject *resultobj;
27258 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27259 int result;
27260 PyObject * obj0 = 0 ;
27261 char *kwnames[] = {
27262 (char *) "self", NULL
27263 };
27264
27265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail;
27266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27268 {
27269 PyThreadState* __tstate = wxPyBeginAllowThreads();
27270 result = (int)((wxVideoMode const *)arg1)->GetDepth();
27271
27272 wxPyEndAllowThreads(__tstate);
27273 if (PyErr_Occurred()) SWIG_fail;
27274 }
27275 resultobj = SWIG_FromInt((int)result);
27276 return resultobj;
27277 fail:
27278 return NULL;
27279 }
27280
27281
27282 static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
27283 PyObject *resultobj;
27284 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27285 bool result;
27286 PyObject * obj0 = 0 ;
27287 char *kwnames[] = {
27288 (char *) "self", NULL
27289 };
27290
27291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail;
27292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27294 {
27295 PyThreadState* __tstate = wxPyBeginAllowThreads();
27296 result = (bool)((wxVideoMode const *)arg1)->IsOk();
27297
27298 wxPyEndAllowThreads(__tstate);
27299 if (PyErr_Occurred()) SWIG_fail;
27300 }
27301 {
27302 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27303 }
27304 return resultobj;
27305 fail:
27306 return NULL;
27307 }
27308
27309
27310 static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
27311 PyObject *resultobj;
27312 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27313 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27314 bool result;
27315 PyObject * obj0 = 0 ;
27316 PyObject * obj1 = 0 ;
27317 char *kwnames[] = {
27318 (char *) "self",(char *) "other", NULL
27319 };
27320
27321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail;
27322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27324 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27326 {
27327 PyThreadState* __tstate = wxPyBeginAllowThreads();
27328 result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2);
27329
27330 wxPyEndAllowThreads(__tstate);
27331 if (PyErr_Occurred()) SWIG_fail;
27332 }
27333 {
27334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27335 }
27336 return resultobj;
27337 fail:
27338 return NULL;
27339 }
27340
27341
27342 static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
27343 PyObject *resultobj;
27344 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27345 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27346 bool result;
27347 PyObject * obj0 = 0 ;
27348 PyObject * obj1 = 0 ;
27349 char *kwnames[] = {
27350 (char *) "self",(char *) "other", NULL
27351 };
27352
27353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail;
27354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27356 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27358 {
27359 PyThreadState* __tstate = wxPyBeginAllowThreads();
27360 result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2);
27361
27362 wxPyEndAllowThreads(__tstate);
27363 if (PyErr_Occurred()) SWIG_fail;
27364 }
27365 {
27366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27367 }
27368 return resultobj;
27369 fail:
27370 return NULL;
27371 }
27372
27373
27374 static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27375 PyObject *resultobj;
27376 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27377 int arg2 ;
27378 PyObject * obj0 = 0 ;
27379 PyObject * obj1 = 0 ;
27380 char *kwnames[] = {
27381 (char *) "self",(char *) "w", NULL
27382 };
27383
27384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail;
27385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27387 arg2 = (int) SWIG_AsInt(obj1);
27388 if (PyErr_Occurred()) SWIG_fail;
27389 if (arg1) (arg1)->w = arg2;
27390
27391 Py_INCREF(Py_None); resultobj = Py_None;
27392 return resultobj;
27393 fail:
27394 return NULL;
27395 }
27396
27397
27398 static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27399 PyObject *resultobj;
27400 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27401 int result;
27402 PyObject * obj0 = 0 ;
27403 char *kwnames[] = {
27404 (char *) "self", NULL
27405 };
27406
27407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail;
27408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27410 result = (int) ((arg1)->w);
27411
27412 resultobj = SWIG_FromInt((int)result);
27413 return resultobj;
27414 fail:
27415 return NULL;
27416 }
27417
27418
27419 static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27420 PyObject *resultobj;
27421 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27422 int arg2 ;
27423 PyObject * obj0 = 0 ;
27424 PyObject * obj1 = 0 ;
27425 char *kwnames[] = {
27426 (char *) "self",(char *) "h", NULL
27427 };
27428
27429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail;
27430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27432 arg2 = (int) SWIG_AsInt(obj1);
27433 if (PyErr_Occurred()) SWIG_fail;
27434 if (arg1) (arg1)->h = arg2;
27435
27436 Py_INCREF(Py_None); resultobj = Py_None;
27437 return resultobj;
27438 fail:
27439 return NULL;
27440 }
27441
27442
27443 static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27444 PyObject *resultobj;
27445 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27446 int result;
27447 PyObject * obj0 = 0 ;
27448 char *kwnames[] = {
27449 (char *) "self", NULL
27450 };
27451
27452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail;
27453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27455 result = (int) ((arg1)->h);
27456
27457 resultobj = SWIG_FromInt((int)result);
27458 return resultobj;
27459 fail:
27460 return NULL;
27461 }
27462
27463
27464 static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27465 PyObject *resultobj;
27466 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27467 int arg2 ;
27468 PyObject * obj0 = 0 ;
27469 PyObject * obj1 = 0 ;
27470 char *kwnames[] = {
27471 (char *) "self",(char *) "bpp", NULL
27472 };
27473
27474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail;
27475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27477 arg2 = (int) SWIG_AsInt(obj1);
27478 if (PyErr_Occurred()) SWIG_fail;
27479 if (arg1) (arg1)->bpp = arg2;
27480
27481 Py_INCREF(Py_None); resultobj = Py_None;
27482 return resultobj;
27483 fail:
27484 return NULL;
27485 }
27486
27487
27488 static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27489 PyObject *resultobj;
27490 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27491 int result;
27492 PyObject * obj0 = 0 ;
27493 char *kwnames[] = {
27494 (char *) "self", NULL
27495 };
27496
27497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail;
27498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27500 result = (int) ((arg1)->bpp);
27501
27502 resultobj = SWIG_FromInt((int)result);
27503 return resultobj;
27504 fail:
27505 return NULL;
27506 }
27507
27508
27509 static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27510 PyObject *resultobj;
27511 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27512 int arg2 ;
27513 PyObject * obj0 = 0 ;
27514 PyObject * obj1 = 0 ;
27515 char *kwnames[] = {
27516 (char *) "self",(char *) "refresh", NULL
27517 };
27518
27519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail;
27520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27522 arg2 = (int) SWIG_AsInt(obj1);
27523 if (PyErr_Occurred()) SWIG_fail;
27524 if (arg1) (arg1)->refresh = arg2;
27525
27526 Py_INCREF(Py_None); resultobj = Py_None;
27527 return resultobj;
27528 fail:
27529 return NULL;
27530 }
27531
27532
27533 static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27534 PyObject *resultobj;
27535 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27536 int result;
27537 PyObject * obj0 = 0 ;
27538 char *kwnames[] = {
27539 (char *) "self", NULL
27540 };
27541
27542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail;
27543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27545 result = (int) ((arg1)->refresh);
27546
27547 resultobj = SWIG_FromInt((int)result);
27548 return resultobj;
27549 fail:
27550 return NULL;
27551 }
27552
27553
27554 static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) {
27555 PyObject *obj;
27556 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27557 SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj);
27558 Py_INCREF(obj);
27559 return Py_BuildValue((char *)"");
27560 }
27561 static int _wrap_DefaultVideoMode_set(PyObject *_val) {
27562 PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only.");
27563 return 1;
27564 }
27565
27566
27567 static PyObject *_wrap_DefaultVideoMode_get() {
27568 PyObject *pyobj;
27569
27570 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0);
27571 return pyobj;
27572 }
27573
27574
27575 static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
27576 PyObject *resultobj;
27577 size_t arg1 = (size_t) 0 ;
27578 wxDisplay *result;
27579 PyObject * obj0 = 0 ;
27580 char *kwnames[] = {
27581 (char *) "index", NULL
27582 };
27583
27584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail;
27585 if (obj0) {
27586 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
27587 if (PyErr_Occurred()) SWIG_fail;
27588 }
27589 {
27590 PyThreadState* __tstate = wxPyBeginAllowThreads();
27591 result = (wxDisplay *)new wxDisplay(arg1);
27592
27593 wxPyEndAllowThreads(__tstate);
27594 if (PyErr_Occurred()) SWIG_fail;
27595 }
27596 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1);
27597 return resultobj;
27598 fail:
27599 return NULL;
27600 }
27601
27602
27603 static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
27604 PyObject *resultobj;
27605 wxDisplay *arg1 = (wxDisplay *) 0 ;
27606 PyObject * obj0 = 0 ;
27607 char *kwnames[] = {
27608 (char *) "self", NULL
27609 };
27610
27611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail;
27612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27614 {
27615 PyThreadState* __tstate = wxPyBeginAllowThreads();
27616 delete arg1;
27617
27618 wxPyEndAllowThreads(__tstate);
27619 if (PyErr_Occurred()) SWIG_fail;
27620 }
27621 Py_INCREF(Py_None); resultobj = Py_None;
27622 return resultobj;
27623 fail:
27624 return NULL;
27625 }
27626
27627
27628 static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
27629 PyObject *resultobj;
27630 size_t result;
27631 char *kwnames[] = {
27632 NULL
27633 };
27634
27635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail;
27636 {
27637 PyThreadState* __tstate = wxPyBeginAllowThreads();
27638 result = (size_t)wxDisplay::GetCount();
27639
27640 wxPyEndAllowThreads(__tstate);
27641 if (PyErr_Occurred()) SWIG_fail;
27642 }
27643 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
27644 return resultobj;
27645 fail:
27646 return NULL;
27647 }
27648
27649
27650 static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
27651 PyObject *resultobj;
27652 wxPoint *arg1 = 0 ;
27653 int result;
27654 wxPoint temp1 ;
27655 PyObject * obj0 = 0 ;
27656 char *kwnames[] = {
27657 (char *) "pt", NULL
27658 };
27659
27660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail;
27661 {
27662 arg1 = &temp1;
27663 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
27664 }
27665 {
27666 PyThreadState* __tstate = wxPyBeginAllowThreads();
27667 result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1);
27668
27669 wxPyEndAllowThreads(__tstate);
27670 if (PyErr_Occurred()) SWIG_fail;
27671 }
27672 resultobj = SWIG_FromInt((int)result);
27673 return resultobj;
27674 fail:
27675 return NULL;
27676 }
27677
27678
27679 static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
27680 PyObject *resultobj;
27681 wxWindow *arg1 = (wxWindow *) 0 ;
27682 int result;
27683 PyObject * obj0 = 0 ;
27684 char *kwnames[] = {
27685 (char *) "window", NULL
27686 };
27687
27688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail;
27689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27691 {
27692 PyThreadState* __tstate = wxPyBeginAllowThreads();
27693 result = (int)Display_GetFromWindow(arg1);
27694
27695 wxPyEndAllowThreads(__tstate);
27696 if (PyErr_Occurred()) SWIG_fail;
27697 }
27698 resultobj = SWIG_FromInt((int)result);
27699 return resultobj;
27700 fail:
27701 return NULL;
27702 }
27703
27704
27705 static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
27706 PyObject *resultobj;
27707 wxDisplay *arg1 = (wxDisplay *) 0 ;
27708 bool result;
27709 PyObject * obj0 = 0 ;
27710 char *kwnames[] = {
27711 (char *) "self", NULL
27712 };
27713
27714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail;
27715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27717 {
27718 PyThreadState* __tstate = wxPyBeginAllowThreads();
27719 result = (bool)((wxDisplay const *)arg1)->IsOk();
27720
27721 wxPyEndAllowThreads(__tstate);
27722 if (PyErr_Occurred()) SWIG_fail;
27723 }
27724 {
27725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27726 }
27727 return resultobj;
27728 fail:
27729 return NULL;
27730 }
27731
27732
27733 static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) {
27734 PyObject *resultobj;
27735 wxDisplay *arg1 = (wxDisplay *) 0 ;
27736 wxRect result;
27737 PyObject * obj0 = 0 ;
27738 char *kwnames[] = {
27739 (char *) "self", NULL
27740 };
27741
27742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail;
27743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27745 {
27746 PyThreadState* __tstate = wxPyBeginAllowThreads();
27747 result = ((wxDisplay const *)arg1)->GetGeometry();
27748
27749 wxPyEndAllowThreads(__tstate);
27750 if (PyErr_Occurred()) SWIG_fail;
27751 }
27752 {
27753 wxRect * resultptr;
27754 resultptr = new wxRect((wxRect &) result);
27755 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
27756 }
27757 return resultobj;
27758 fail:
27759 return NULL;
27760 }
27761
27762
27763 static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
27764 PyObject *resultobj;
27765 wxDisplay *arg1 = (wxDisplay *) 0 ;
27766 wxString result;
27767 PyObject * obj0 = 0 ;
27768 char *kwnames[] = {
27769 (char *) "self", NULL
27770 };
27771
27772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail;
27773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27775 {
27776 PyThreadState* __tstate = wxPyBeginAllowThreads();
27777 result = ((wxDisplay const *)arg1)->GetName();
27778
27779 wxPyEndAllowThreads(__tstate);
27780 if (PyErr_Occurred()) SWIG_fail;
27781 }
27782 {
27783 #if wxUSE_UNICODE
27784 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27785 #else
27786 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27787 #endif
27788 }
27789 return resultobj;
27790 fail:
27791 return NULL;
27792 }
27793
27794
27795 static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) {
27796 PyObject *resultobj;
27797 wxDisplay *arg1 = (wxDisplay *) 0 ;
27798 bool result;
27799 PyObject * obj0 = 0 ;
27800 char *kwnames[] = {
27801 (char *) "self", NULL
27802 };
27803
27804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail;
27805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27807 {
27808 PyThreadState* __tstate = wxPyBeginAllowThreads();
27809 result = (bool)((wxDisplay const *)arg1)->IsPrimary();
27810
27811 wxPyEndAllowThreads(__tstate);
27812 if (PyErr_Occurred()) SWIG_fail;
27813 }
27814 {
27815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27816 }
27817 return resultobj;
27818 fail:
27819 return NULL;
27820 }
27821
27822
27823 static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) {
27824 PyObject *resultobj;
27825 wxDisplay *arg1 = (wxDisplay *) 0 ;
27826 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
27827 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
27828 PyObject *result;
27829 PyObject * obj0 = 0 ;
27830 PyObject * obj1 = 0 ;
27831 char *kwnames[] = {
27832 (char *) "self",(char *) "mode", NULL
27833 };
27834
27835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail;
27836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27838 if (obj1) {
27839 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27840 SWIG_POINTER_EXCEPTION | 0)) == -1)
27841 SWIG_fail;
27842 if (arg2 == NULL) {
27843 PyErr_SetString(PyExc_TypeError,"null reference");
27844 SWIG_fail;
27845 }
27846 }
27847 {
27848 PyThreadState* __tstate = wxPyBeginAllowThreads();
27849 result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2);
27850
27851 wxPyEndAllowThreads(__tstate);
27852 if (PyErr_Occurred()) SWIG_fail;
27853 }
27854 resultobj = result;
27855 return resultobj;
27856 fail:
27857 return NULL;
27858 }
27859
27860
27861 static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27862 PyObject *resultobj;
27863 wxDisplay *arg1 = (wxDisplay *) 0 ;
27864 wxVideoMode result;
27865 PyObject * obj0 = 0 ;
27866 char *kwnames[] = {
27867 (char *) "self", NULL
27868 };
27869
27870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail;
27871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27873 {
27874 PyThreadState* __tstate = wxPyBeginAllowThreads();
27875 result = ((wxDisplay const *)arg1)->GetCurrentMode();
27876
27877 wxPyEndAllowThreads(__tstate);
27878 if (PyErr_Occurred()) SWIG_fail;
27879 }
27880 {
27881 wxVideoMode * resultptr;
27882 resultptr = new wxVideoMode((wxVideoMode &) result);
27883 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1);
27884 }
27885 return resultobj;
27886 fail:
27887 return NULL;
27888 }
27889
27890
27891 static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27892 PyObject *resultobj;
27893 wxDisplay *arg1 = (wxDisplay *) 0 ;
27894 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
27895 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
27896 bool result;
27897 PyObject * obj0 = 0 ;
27898 PyObject * obj1 = 0 ;
27899 char *kwnames[] = {
27900 (char *) "self",(char *) "mode", NULL
27901 };
27902
27903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail;
27904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27906 if (obj1) {
27907 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27908 SWIG_POINTER_EXCEPTION | 0)) == -1)
27909 SWIG_fail;
27910 if (arg2 == NULL) {
27911 PyErr_SetString(PyExc_TypeError,"null reference");
27912 SWIG_fail;
27913 }
27914 }
27915 {
27916 PyThreadState* __tstate = wxPyBeginAllowThreads();
27917 result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2);
27918
27919 wxPyEndAllowThreads(__tstate);
27920 if (PyErr_Occurred()) SWIG_fail;
27921 }
27922 {
27923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27924 }
27925 return resultobj;
27926 fail:
27927 return NULL;
27928 }
27929
27930
27931 static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27932 PyObject *resultobj;
27933 wxDisplay *arg1 = (wxDisplay *) 0 ;
27934 PyObject * obj0 = 0 ;
27935 char *kwnames[] = {
27936 (char *) "self", NULL
27937 };
27938
27939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail;
27940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27942 {
27943 PyThreadState* __tstate = wxPyBeginAllowThreads();
27944 (arg1)->ResetMode();
27945
27946 wxPyEndAllowThreads(__tstate);
27947 if (PyErr_Occurred()) SWIG_fail;
27948 }
27949 Py_INCREF(Py_None); resultobj = Py_None;
27950 return resultobj;
27951 fail:
27952 return NULL;
27953 }
27954
27955
27956 static PyObject * Display_swigregister(PyObject *self, PyObject *args) {
27957 PyObject *obj;
27958 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27959 SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj);
27960 Py_INCREF(obj);
27961 return Py_BuildValue((char *)"");
27962 }
27963 static PyMethodDef SwigMethods[] = {
27964 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS },
27965 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS },
27966 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS },
27967 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS },
27968 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS },
27969 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS },
27970 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS },
27971 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS },
27972 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS },
27973 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
27974 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS },
27975 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
27976 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS },
27977 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS },
27978 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS },
27979 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS },
27980 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS },
27981 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS },
27982 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS },
27983 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS },
27984 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS },
27985 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS },
27986 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS },
27987 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS },
27988 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS },
27989 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS },
27990 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS },
27991 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS },
27992 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS },
27993 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS },
27994 { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS },
27995 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS },
27996 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS },
27997 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS },
27998 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS },
27999 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS },
28000 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS },
28001 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS },
28002 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS },
28003 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS },
28004 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS },
28005 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS },
28006 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS },
28007 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS },
28008 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS },
28009 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS },
28010 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS },
28011 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS },
28012 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS },
28013 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS },
28014 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS },
28015 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS },
28016 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS },
28017 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS },
28018 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS },
28019 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS },
28020 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS },
28021 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28022 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28023 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28024 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28025 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS },
28026 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS },
28027 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS },
28028 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28029 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28030 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS },
28031 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS },
28032 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS },
28033 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS },
28034 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS },
28035 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28036 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28037 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS },
28038 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS },
28039 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS },
28040 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS },
28041 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS },
28042 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS },
28043 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS },
28044 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS },
28045 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS },
28046 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS },
28047 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS },
28048 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS },
28049 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS },
28050 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS },
28051 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
28052 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS },
28053 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
28054 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS },
28055 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS },
28056 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS },
28057 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
28058 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS },
28059 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS },
28060 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS },
28061 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS },
28062 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28063 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28064 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28065 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28066 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS },
28067 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28068 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28069 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS },
28070 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28071 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28072 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS },
28073 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS },
28074 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS },
28075 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS },
28076 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS },
28077 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS },
28078 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS },
28079 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS },
28080 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS },
28081 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS },
28082 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS },
28083 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS },
28084 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS },
28085 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS },
28086 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS },
28087 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS },
28088 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS },
28089 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS },
28090 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS },
28091 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS },
28092 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS },
28093 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28094 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28095 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28096 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS },
28097 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS },
28098 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS },
28099 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS },
28100 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS },
28101 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS },
28102 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS },
28103 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS },
28104 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS },
28105 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS },
28106 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28107 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS },
28108 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS },
28109 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS },
28110 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS },
28111 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS },
28112 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28113 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS },
28114 { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS },
28115 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS },
28116 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS },
28117 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS },
28118 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS },
28119 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS },
28120 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS },
28121 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS },
28122 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS },
28123 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS },
28124 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS },
28125 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS },
28126 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS },
28127 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS },
28128 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS },
28129 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS },
28130 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS },
28131 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS },
28132 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS },
28133 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS },
28134 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS },
28135 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28136 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28137 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS },
28138 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS },
28139 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS },
28140 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS },
28141 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28142 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS },
28143 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS },
28144 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS },
28145 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS },
28146 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS },
28147 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
28148 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS },
28149 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS },
28150 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS },
28151 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS },
28152 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
28153 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS },
28154 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS },
28155 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS },
28156 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS },
28157 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS },
28158 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS },
28159 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS },
28160 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS },
28161 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS },
28162 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS },
28163 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS },
28164 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS },
28165 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28166 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28167 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS },
28168 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS },
28169 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS },
28170 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS },
28171 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS },
28172 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28173 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28174 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS },
28175 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS },
28176 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS },
28177 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS },
28178 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS },
28179 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS },
28180 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS },
28181 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS },
28182 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS },
28183 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS },
28184 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS },
28185 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS },
28186 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS },
28187 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS },
28188 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS },
28189 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS },
28190 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS },
28191 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS },
28192 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS },
28193 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS },
28194 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28195 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS },
28196 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS },
28197 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS },
28198 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS },
28199 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS },
28200 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28201 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS },
28202 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS },
28203 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS },
28204 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS },
28205 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS },
28206 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS },
28207 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS },
28208 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS },
28209 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS },
28210 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS },
28211 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS },
28212 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS },
28213 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
28214 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS },
28215 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS },
28216 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS },
28217 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS },
28218 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS },
28219 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS },
28220 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS },
28221 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS },
28222 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS },
28223 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS },
28224 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS },
28225 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28226 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28227 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS },
28228 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS },
28229 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS },
28230 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS },
28231 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS },
28232 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28233 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28234 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS },
28235 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS },
28236 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS },
28237 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS },
28238 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS },
28239 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS },
28240 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS },
28241 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS },
28242 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS },
28243 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS },
28244 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS },
28245 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS },
28246 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS },
28247 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS },
28248 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS },
28249 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS },
28250 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS },
28251 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS },
28252 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS },
28253 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS },
28254 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS },
28255 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS },
28256 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS },
28257 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS },
28258 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS },
28259 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS },
28260 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS },
28261 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS },
28262 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS },
28263 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS },
28264 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS },
28265 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS },
28266 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS },
28267 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS },
28268 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS },
28269 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS },
28270 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS },
28271 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS },
28272 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS },
28273 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS },
28274 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS },
28275 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS },
28276 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS },
28277 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS },
28278 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
28279 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28280 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28281 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS },
28282 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS },
28283 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS },
28284 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS },
28285 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS },
28286 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
28287 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS },
28288 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS },
28289 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS },
28290 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS },
28291 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS },
28292 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS },
28293 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS },
28294 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS },
28295 { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS },
28296 { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS },
28297 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS },
28298 { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS },
28299 { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS },
28300 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS },
28301 { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS },
28302 { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS },
28303 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS },
28304 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS },
28305 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28306 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS },
28307 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28308 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS },
28309 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS },
28310 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS },
28311 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28312 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28313 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28314 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS },
28315 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS },
28316 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28317 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS },
28318 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS },
28319 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS },
28320 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS },
28321 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS },
28322 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS },
28323 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28324 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS },
28325 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28326 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS },
28327 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS },
28328 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS },
28329 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28330 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28331 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS },
28332 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS },
28333 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS },
28334 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS },
28335 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS },
28336 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS },
28337 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS },
28338 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28339 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS },
28340 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS },
28341 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS },
28342 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS },
28343 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS },
28344 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS },
28345 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS },
28346 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS },
28347 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS },
28348 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS },
28349 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28350 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS },
28351 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS },
28352 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28353 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS },
28354 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS },
28355 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS },
28356 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28357 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS },
28358 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
28359 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS },
28360 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS },
28361 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS },
28362 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS },
28363 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS },
28364 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28365 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS },
28366 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS },
28367 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS },
28368 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS },
28369 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS },
28370 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS },
28371 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS },
28372 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS },
28373 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS },
28374 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS },
28375 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS },
28376 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS },
28377 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS },
28378 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS },
28379 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS },
28380 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS },
28381 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS },
28382 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS },
28383 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS },
28384 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS },
28385 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS },
28386 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS },
28387 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS },
28388 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS },
28389 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS },
28390 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS },
28391 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28392 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS },
28393 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS },
28394 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS },
28395 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28396 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS },
28397 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS },
28398 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS },
28399 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS },
28400 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS },
28401 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
28402 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS },
28403 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS },
28404 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS },
28405 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS },
28406 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS },
28407 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS },
28408 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS },
28409 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28410 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28411 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS },
28412 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS },
28413 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28414 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS },
28415 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS },
28416 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS },
28417 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS },
28418 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS },
28419 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS },
28420 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS },
28421 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS },
28422 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS },
28423 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS },
28424 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS },
28425 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS },
28426 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS },
28427 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS },
28428 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS },
28429 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS },
28430 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS },
28431 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS },
28432 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS },
28433 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS },
28434 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS },
28435 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS },
28436 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS },
28437 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS },
28438 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS },
28439 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS },
28440 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS },
28441 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS },
28442 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS },
28443 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS },
28444 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS },
28445 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS },
28446 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS },
28447 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS },
28448 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS },
28449 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS },
28450 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS },
28451 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS },
28452 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28453 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28454 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28455 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28456 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28457 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28458 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS },
28459 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28460 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28461 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS },
28462 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS },
28463 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28464 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28465 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS },
28466 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS },
28467 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28468 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS },
28469 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28470 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS },
28471 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS },
28472 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS },
28473 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS },
28474 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS },
28475 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS },
28476 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS },
28477 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS },
28478 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS },
28479 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS },
28480 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS },
28481 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS },
28482 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS },
28483 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS },
28484 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS },
28485 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS },
28486 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS },
28487 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS },
28488 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS },
28489 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS },
28490 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS },
28491 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28492 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS },
28493 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS },
28494 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS },
28495 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS },
28496 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS },
28497 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS },
28498 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS },
28499 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS },
28500 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS },
28501 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS },
28502 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS },
28503 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS },
28504 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS },
28505 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS },
28506 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS },
28507 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS },
28508 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS },
28509 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS },
28510 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS },
28511 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS },
28512 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS },
28513 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS },
28514 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS },
28515 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS },
28516 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS },
28517 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS },
28518 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS },
28519 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS },
28520 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS },
28521 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS },
28522 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS },
28523 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS },
28524 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS },
28525 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS },
28526 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS },
28527 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS },
28528 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS },
28529 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS },
28530 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS },
28531 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS },
28532 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS },
28533 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28534 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS },
28535 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28536 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28537 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS },
28538 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28539 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28540 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28541 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS },
28542 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28543 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28544 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28545 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28546 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS },
28547 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28548 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28549 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28550 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS },
28551 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS },
28552 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS },
28553 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS },
28554 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS },
28555 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS },
28556 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS },
28557 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS },
28558 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS },
28559 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28560 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS },
28561 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS },
28562 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
28563 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
28564 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS },
28565 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS },
28566 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS },
28567 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS },
28568 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS },
28569 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS },
28570 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS },
28571 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS },
28572 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS },
28573 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS },
28574 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28575 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS },
28576 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS },
28577 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS },
28578 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS },
28579 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS },
28580 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS },
28581 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS },
28582 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS },
28583 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS },
28584 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS },
28585 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS },
28586 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
28587 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
28588 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS },
28589 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS },
28590 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28591 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28592 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28593 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28594 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28595 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28596 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28597 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS },
28598 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28599 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28600 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28601 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS },
28602 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS },
28603 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS },
28604 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS },
28605 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS },
28606 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS },
28607 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS },
28608 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS },
28609 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS },
28610 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS },
28611 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS },
28612 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS },
28613 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS },
28614 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS },
28615 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS },
28616 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS },
28617 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS },
28618 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS },
28619 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS },
28620 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS },
28621 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS },
28622 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS },
28623 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS },
28624 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS },
28625 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS },
28626 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS },
28627 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS },
28628 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS },
28629 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS },
28630 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS },
28631 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS },
28632 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28633 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS },
28634 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS },
28635 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS },
28636 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS },
28637 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS },
28638 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS },
28639 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS },
28640 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS },
28641 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS },
28642 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS },
28643 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28644 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS },
28645 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS },
28646 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28647 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS },
28648 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS },
28649 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS },
28650 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28651 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS },
28652 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS },
28653 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS },
28654 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS },
28655 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS },
28656 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS },
28657 { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS },
28658 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS },
28659 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS },
28660 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS },
28661 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS },
28662 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS },
28663 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS },
28664 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS },
28665 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS },
28666 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS },
28667 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS },
28668 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS },
28669 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS },
28670 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28671 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS },
28672 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS },
28673 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS },
28674 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS },
28675 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS },
28676 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS },
28677 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS },
28678 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS },
28679 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28680 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS },
28681 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS },
28682 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS },
28683 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28684 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28685 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28686 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28687 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS },
28688 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS },
28689 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS },
28690 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28691 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28692 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28693 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28694 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28695 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
28696 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS },
28697 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS },
28698 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28699 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28700 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28701 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28702 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28703 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
28704 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS },
28705 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS },
28706 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS },
28707 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS },
28708 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS },
28709 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS },
28710 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS },
28711 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS },
28712 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS },
28713 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS },
28714 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS },
28715 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS },
28716 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS },
28717 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS },
28718 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
28719 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
28720 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS },
28721 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS },
28722 { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS },
28723 { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS },
28724 { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS },
28725 { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS },
28726 { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS },
28727 { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS },
28728 { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS },
28729 { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS },
28730 { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS },
28731 { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS },
28732 { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS },
28733 { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS },
28734 { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS },
28735 { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS },
28736 { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS },
28737 { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS },
28738 { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS },
28739 { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS },
28740 { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS },
28741 { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS },
28742 { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS },
28743 { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS },
28744 { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS },
28745 { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS },
28746 { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS },
28747 { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS },
28748 { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS },
28749 { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS },
28750 { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS },
28751 { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS },
28752 { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS },
28753 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS },
28754 { NULL, NULL }
28755 };
28756
28757
28758 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
28759
28760 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
28761 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
28762 }
28763 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
28764 return (void *)((wxEvent *) ((wxMenuEvent *) x));
28765 }
28766 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
28767 return (void *)((wxEvent *) ((wxCloseEvent *) x));
28768 }
28769 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
28770 return (void *)((wxEvent *) ((wxMouseEvent *) x));
28771 }
28772 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
28773 return (void *)((wxEvent *) ((wxEraseEvent *) x));
28774 }
28775 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
28776 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
28777 }
28778 static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
28779 return (void *)((wxEvent *) ((wxTimerEvent *) x));
28780 }
28781 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
28782 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
28783 }
28784 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
28785 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
28786 }
28787 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
28788 return (void *)((wxEvent *) ((wxPyEvent *) x));
28789 }
28790 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
28791 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
28792 }
28793 static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
28794 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
28795 }
28796 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
28797 return (void *)((wxEvent *) ((wxIdleEvent *) x));
28798 }
28799 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
28800 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
28801 }
28802 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
28803 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
28804 }
28805 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
28806 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
28807 }
28808 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
28809 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
28810 }
28811 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
28812 return (void *)((wxEvent *) ((wxActivateEvent *) x));
28813 }
28814 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
28815 return (void *)((wxEvent *) ((wxSizeEvent *) x));
28816 }
28817 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
28818 return (void *)((wxEvent *) ((wxMoveEvent *) x));
28819 }
28820 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
28821 return (void *)((wxEvent *) ((wxPaintEvent *) x));
28822 }
28823 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
28824 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
28825 }
28826 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
28827 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
28828 }
28829 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
28830 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
28831 }
28832 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
28833 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
28834 }
28835 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
28836 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
28837 }
28838 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
28839 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
28840 }
28841 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
28842 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
28843 }
28844 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
28845 return (void *)((wxEvent *) ((wxFocusEvent *) x));
28846 }
28847 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
28848 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
28849 }
28850 static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
28851 return (void *)((wxEvent *) ((wxProcessEvent *) x));
28852 }
28853 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
28854 return (void *)((wxEvent *) ((wxShowEvent *) x));
28855 }
28856 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
28857 return (void *)((wxEvent *) ((wxCommandEvent *) x));
28858 }
28859 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
28860 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
28861 }
28862 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
28863 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
28864 }
28865 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
28866 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
28867 }
28868 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
28869 return (void *)((wxEvent *) ((wxKeyEvent *) x));
28870 }
28871 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
28872 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
28873 }
28874 static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
28875 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
28876 }
28877 static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
28878 return (void *)((wxConfigBase *) ((wxConfig *) x));
28879 }
28880 static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
28881 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
28882 }
28883 static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
28884 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
28885 }
28886 static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
28887 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
28888 }
28889 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
28890 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
28891 }
28892 static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
28893 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
28894 }
28895 static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
28896 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
28897 }
28898 static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
28899 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
28900 }
28901 static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
28902 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
28903 }
28904 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
28905 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
28906 }
28907 static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
28908 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
28909 }
28910 static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
28911 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
28912 }
28913 static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
28914 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
28915 }
28916 static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
28917 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
28918 }
28919 static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
28920 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
28921 }
28922 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
28923 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
28924 }
28925 static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
28926 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
28927 }
28928 static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
28929 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
28930 }
28931 static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
28932 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
28933 }
28934 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
28935 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
28936 }
28937 static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
28938 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
28939 }
28940 static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
28941 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
28942 }
28943 static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
28944 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
28945 }
28946 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
28947 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
28948 }
28949 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
28950 return (void *)((wxEvtHandler *) ((wxWindow *) x));
28951 }
28952 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
28953 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
28954 }
28955 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
28956 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
28957 }
28958 static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
28959 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
28960 }
28961 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
28962 return (void *)((wxEvtHandler *) ((wxValidator *) x));
28963 }
28964 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
28965 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
28966 }
28967 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
28968 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
28969 }
28970 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
28971 return (void *)((wxEvtHandler *) ((wxMenu *) x));
28972 }
28973 static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
28974 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
28975 }
28976 static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
28977 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
28978 }
28979 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
28980 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
28981 }
28982 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
28983 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
28984 }
28985 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
28986 return (void *)((wxObject *) ((wxSizerItem *) x));
28987 }
28988 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
28989 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
28990 }
28991 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
28992 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
28993 }
28994 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
28995 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
28996 }
28997 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
28998 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
28999 }
29000 static void *_p_wxSizerTo_p_wxObject(void *x) {
29001 return (void *)((wxObject *) ((wxSizer *) x));
29002 }
29003 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
29004 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
29005 }
29006 static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
29007 return (void *)((wxObject *) ((wxFileHistory *) x));
29008 }
29009 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
29010 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
29011 }
29012 static void *_p_wxEventTo_p_wxObject(void *x) {
29013 return (void *)((wxObject *) ((wxEvent *) x));
29014 }
29015 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
29016 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
29017 }
29018 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
29019 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
29020 }
29021 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
29022 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
29023 }
29024 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
29025 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
29026 }
29027 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
29028 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
29029 }
29030 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
29031 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
29032 }
29033 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
29034 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
29035 }
29036 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
29037 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29038 }
29039 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
29040 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
29041 }
29042 static void *_p_wxControlTo_p_wxObject(void *x) {
29043 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
29044 }
29045 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
29046 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
29047 }
29048 static void *_p_wxTimerEventTo_p_wxObject(void *x) {
29049 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
29050 }
29051 static void *_p_wxFSFileTo_p_wxObject(void *x) {
29052 return (void *)((wxObject *) ((wxFSFile *) x));
29053 }
29054 static void *_p_wxClipboardTo_p_wxObject(void *x) {
29055 return (void *)((wxObject *) ((wxClipboard *) x));
29056 }
29057 static void *_p_wxPySizerTo_p_wxObject(void *x) {
29058 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
29059 }
29060 static void *_p_wxPyEventTo_p_wxObject(void *x) {
29061 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
29062 }
29063 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
29064 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
29065 }
29066 static void *_p_wxShowEventTo_p_wxObject(void *x) {
29067 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
29068 }
29069 static void *_p_wxToolTipTo_p_wxObject(void *x) {
29070 return (void *)((wxObject *) ((wxToolTip *) x));
29071 }
29072 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
29073 return (void *)((wxObject *) ((wxMenuItem *) x));
29074 }
29075 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
29076 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
29077 }
29078 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
29079 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
29080 }
29081 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
29082 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
29083 }
29084 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
29085 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
29086 }
29087 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
29088 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
29089 }
29090 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
29091 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
29092 }
29093 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
29094 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
29095 }
29096 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
29097 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
29098 }
29099 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
29100 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
29101 }
29102 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
29103 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
29104 }
29105 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
29106 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
29107 }
29108 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
29109 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
29110 }
29111 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
29112 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
29113 }
29114 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
29115 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
29116 }
29117 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
29118 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
29119 }
29120 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
29121 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
29122 }
29123 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
29124 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
29125 }
29126 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
29127 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
29128 }
29129 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
29130 return (void *)((wxObject *) ((wxImageHandler *) x));
29131 }
29132 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
29133 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
29134 }
29135 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
29136 return (void *)((wxObject *) ((wxEvtHandler *) x));
29137 }
29138 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
29139 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
29140 }
29141 static void *_p_wxImageTo_p_wxObject(void *x) {
29142 return (void *)((wxObject *) ((wxImage *) x));
29143 }
29144 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
29145 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
29146 }
29147 static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
29148 return (void *)((wxObject *) ((wxSystemOptions *) x));
29149 }
29150 static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
29151 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
29152 }
29153 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
29154 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29155 }
29156 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
29157 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
29158 }
29159 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
29160 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
29161 }
29162 static void *_p_wxWindowTo_p_wxObject(void *x) {
29163 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
29164 }
29165 static void *_p_wxMenuTo_p_wxObject(void *x) {
29166 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
29167 }
29168 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
29169 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
29170 }
29171 static void *_p_wxPyProcessTo_p_wxObject(void *x) {
29172 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
29173 }
29174 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
29175 return (void *)((wxObject *) ((wxFileSystem *) x));
29176 }
29177 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
29178 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
29179 }
29180 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
29181 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
29182 }
29183 static void *_p_wxPyAppTo_p_wxObject(void *x) {
29184 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
29185 }
29186 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
29187 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
29188 }
29189 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
29190 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
29191 }
29192 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
29193 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
29194 }
29195 static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
29196 return (void *)((wxObject *) ((wxBusyInfo *) x));
29197 }
29198 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
29199 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
29200 }
29201 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
29202 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
29203 }
29204 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
29205 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
29206 }
29207 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
29208 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
29209 }
29210 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
29211 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
29212 }
29213 static void *_p_wxProcessEventTo_p_wxObject(void *x) {
29214 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
29215 }
29216 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
29217 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29218 }
29219 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
29220 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
29221 }
29222 static void *_p_wxValidatorTo_p_wxObject(void *x) {
29223 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
29224 }
29225 static void *_p_wxPyTimerTo_p_wxObject(void *x) {
29226 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
29227 }
29228 static void *_p_wxLogStderrTo_p_wxLog(void *x) {
29229 return (void *)((wxLog *) ((wxLogStderr *) x));
29230 }
29231 static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
29232 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
29233 }
29234 static void *_p_wxLogWindowTo_p_wxLog(void *x) {
29235 return (void *)((wxLog *) ((wxLogWindow *) x));
29236 }
29237 static void *_p_wxLogChainTo_p_wxLog(void *x) {
29238 return (void *)((wxLog *) ((wxLogChain *) x));
29239 }
29240 static void *_p_wxLogGuiTo_p_wxLog(void *x) {
29241 return (void *)((wxLog *) ((wxLogGui *) x));
29242 }
29243 static void *_p_wxPyLogTo_p_wxLog(void *x) {
29244 return (void *)((wxLog *) ((wxPyLog *) x));
29245 }
29246 static void *_p_wxControlTo_p_wxWindow(void *x) {
29247 return (void *)((wxWindow *) ((wxControl *) x));
29248 }
29249 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
29250 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
29251 }
29252 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
29253 return (void *)((wxWindow *) ((wxMenuBar *) x));
29254 }
29255 static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
29256 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
29257 }
29258 static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
29259 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
29260 }
29261 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}};
29262 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}};
29263 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}};
29264 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}};
29265 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}};
29266 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}};
29267 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}};
29268 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}};
29269 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}};
29270 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}};
29271 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}};
29272 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}};
29273 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}};
29274 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}};
29275 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}};
29276 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}};
29277 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}};
29278 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}};
29279 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}};
29280 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}};
29281 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}};
29282 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}};
29283 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}};
29284 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}};
29285 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}};
29286 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}};
29287 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}};
29288 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}};
29289 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}};
29290 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}};
29291 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}};
29292 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}};
29293 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}};
29294 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}};
29295 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}};
29296 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}};
29297 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}};
29298 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}};
29299 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}};
29300 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}};
29301 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}};
29302 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}};
29303 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}};
29304 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}};
29305 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}};
29306 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}};
29307 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}};
29308 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}};
29309 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}};
29310 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}};
29311 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}};
29312 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}};
29313 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}};
29314 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}};
29315 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}};
29316 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}};
29317 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}};
29318 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}};
29319 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}};
29320 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}};
29321 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}};
29322 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}};
29323 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}};
29324 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}};
29325 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}};
29326 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}};
29327 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}};
29328 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}};
29329 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}};
29330 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}};
29331 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}};
29332 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}};
29333 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}};
29334 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}};
29335 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}};
29336 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}};
29337 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}};
29338 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}};
29339 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}};
29340 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}};
29341 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}};
29342 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}};
29343 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}};
29344 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}};
29345 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}};
29346
29347 static swig_type_info *swig_types_initial[] = {
29348 _swigt__p_wxLogChain,
29349 _swigt__p_wxMutexGuiLocker,
29350 _swigt__p_wxFileHistory,
29351 _swigt__p_wxLog,
29352 _swigt__p_wxDateTime__TimeZone,
29353 _swigt__p_wxMenu,
29354 _swigt__p_wxEvent,
29355 _swigt__p_wxConfigBase,
29356 _swigt__p_wxDisplay,
29357 _swigt__p_wxFileType,
29358 _swigt__p_wxLogGui,
29359 _swigt__p_wxFont,
29360 _swigt__p_wxDataFormat,
29361 _swigt__p_wxTimerEvent,
29362 _swigt__p_wxCaret,
29363 _swigt__p_int,
29364 _swigt__p_wxSize,
29365 _swigt__p_wxClipboard,
29366 _swigt__p_wxStopWatch,
29367 _swigt__p_wxDC,
29368 _swigt__p_wxClipboardLocker,
29369 _swigt__p_wxIcon,
29370 _swigt__p_wxLogStderr,
29371 _swigt__p_wxLogTextCtrl,
29372 _swigt__p_wxTextCtrl,
29373 _swigt__p_wxBusyCursor,
29374 _swigt__p_wxPyBitmapDataObject,
29375 _swigt__p_wxPyTextDataObject,
29376 _swigt__p_wxBitmapDataObject,
29377 _swigt__p_wxTextDataObject,
29378 _swigt__p_wxDataObject,
29379 _swigt__p_wxFileDataObject,
29380 _swigt__p_wxCustomDataObject,
29381 _swigt__p_wxURLDataObject,
29382 _swigt__p_wxMetafileDataObject,
29383 _swigt__p_wxSound,
29384 _swigt__p_wxTimerRunner,
29385 _swigt__p_wxLogWindow,
29386 _swigt__p_wxTimeSpan,
29387 _swigt__p_wxArrayString,
29388 _swigt__p_wxWindowDisabler,
29389 _swigt__p_wxToolTip,
29390 _swigt__p_wxDataObjectComposite,
29391 _swigt__p_wxFileConfig,
29392 _swigt__p_wxSystemSettings,
29393 _swigt__p_wxVideoMode,
29394 _swigt__p_wxPyDataObjectSimple,
29395 _swigt__p_wxDataObjectSimple,
29396 _swigt__p_wxEvtHandler,
29397 _swigt__p_wxRect,
29398 _swigt__p_char,
29399 _swigt__p_wxSingleInstanceChecker,
29400 _swigt__p_wxFileTypeInfo,
29401 _swigt__p_wxFrame,
29402 _swigt__p_wxTimer,
29403 _swigt__p_wxMimeTypesManager,
29404 _swigt__p_wxPyArtProvider,
29405 _swigt__p_wxPyTipProvider,
29406 _swigt__p_wxTipProvider,
29407 _swigt__p_wxJoystick,
29408 _swigt__p_wxSystemOptions,
29409 _swigt__p_wxPoint,
29410 _swigt__p_wxJoystickEvent,
29411 _swigt__p_wxCursor,
29412 _swigt__p_wxObject,
29413 _swigt__p_wxOutputStream,
29414 _swigt__p_wxDateTime,
29415 _swigt__p_wxPyDropSource,
29416 _swigt__p_wxWindow,
29417 _swigt__p_wxString,
29418 _swigt__p_wxPyProcess,
29419 _swigt__p_wxBitmap,
29420 _swigt__p_wxConfig,
29421 _swigt__p_wxChar,
29422 _swigt__p_wxBusyInfo,
29423 _swigt__p_wxPyDropTarget,
29424 _swigt__p_wxPyTextDropTarget,
29425 _swigt__p_wxPyFileDropTarget,
29426 _swigt__p_wxProcessEvent,
29427 _swigt__p_wxPyLog,
29428 _swigt__p_wxLogNull,
29429 _swigt__p_wxColour,
29430 _swigt__p_wxConfigPathChanger,
29431 _swigt__p_wxPyTimer,
29432 _swigt__p_wxDateSpan,
29433 0
29434 };
29435
29436
29437 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
29438
29439 static swig_const_info swig_const_table[] = {
29440 { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
29441 { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
29442 { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
29443 { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
29444 { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
29445 {0}};
29446
29447 #ifdef __cplusplus
29448 }
29449 #endif
29450
29451 #ifdef __cplusplus
29452 extern "C"
29453 #endif
29454 SWIGEXPORT(void) SWIG_init(void) {
29455 static PyObject *SWIG_globals = 0;
29456 static int typeinit = 0;
29457 PyObject *m, *d;
29458 int i;
29459 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
29460 m = Py_InitModule((char *) SWIG_name, SwigMethods);
29461 d = PyModule_GetDict(m);
29462
29463 if (!typeinit) {
29464 for (i = 0; swig_types_initial[i]; i++) {
29465 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
29466 }
29467 typeinit = 1;
29468 }
29469 SWIG_InstallConstants(d,swig_const_table);
29470
29471 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT));
29472 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT));
29473 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT));
29474 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT));
29475 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT));
29476 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE));
29477 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT));
29478 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT));
29479 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT));
29480 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR));
29481 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND));
29482 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP));
29483 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION));
29484 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION));
29485 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU));
29486 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW));
29487 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME));
29488 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT));
29489 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT));
29490 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT));
29491 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER));
29492 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER));
29493 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE));
29494 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT));
29495 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT));
29496 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE));
29497 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE));
29498 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW));
29499 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW));
29500 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT));
29501 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT));
29502 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT));
29503 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT));
29504 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT));
29505 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT));
29506 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT));
29507 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW));
29508 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT));
29509 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT));
29510 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK));
29511 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX));
29512 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT));
29513 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION));
29514 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION));
29515 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT));
29516 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR));
29517 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX));
29518 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS));
29519 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X));
29520 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y));
29521 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X));
29522 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y));
29523 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X));
29524 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y));
29525 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X));
29526 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y));
29527 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X));
29528 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y));
29529 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X));
29530 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y));
29531 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X));
29532 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X));
29533 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y));
29534 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X));
29535 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y));
29536 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X));
29537 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y));
29538 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X));
29539 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y));
29540 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X));
29541 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y));
29542 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X));
29543 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y));
29544 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y));
29545 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X));
29546 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X));
29547 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y));
29548 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y));
29549 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y));
29550 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y));
29551 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT));
29552 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT));
29553 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS));
29554 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS));
29555 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS));
29556 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME));
29557 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE));
29558 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY));
29559 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA));
29560 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL));
29561 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP));
29562 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
29563 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
29564 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
29565 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
29566 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF));
29567 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT));
29568 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS));
29569 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT));
29570 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
29571
29572 wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer");
29573
29574 PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError));
29575 PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error));
29576 PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning));
29577 PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message));
29578 PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status));
29579 PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info));
29580 PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug));
29581 PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace));
29582 PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress));
29583 PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User));
29584 PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max));
29585 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
29586 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
29587 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
29588 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
29589 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
29590 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001));
29591 PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002));
29592 PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004));
29593 PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008));
29594 PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100));
29595 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT));
29596 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT));
29597 PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK));
29598 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL));
29599 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED));
29600 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS));
29601 PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR));
29602 PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE));
29603 PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP));
29604 PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT));
29605 PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT));
29606 PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL));
29607 PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP));
29608 PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT));
29609 PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT));
29610 PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT));
29611 PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE));
29612 PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL));
29613 PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS));
29614 PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV));
29615 PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS));
29616 PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE));
29617 PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM));
29618 PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM));
29619 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
29620 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC));
29621 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC));
29622 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE));
29623 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER));
29624
29625 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
29626
29627 PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1));
29628 PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2));
29629 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY));
29630 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1));
29631 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2));
29632 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3));
29633 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4));
29634 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
29635 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
29636 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
29637 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
29638 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC));
29639 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC));
29640 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP));
29641 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD));
29642 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE));
29643 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE));
29644 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME));
29645 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL));
29646 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
29647 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
29648 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
29649 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
29650 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
29651 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
29652 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
29653 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
29654 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
29655 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
29656 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
29657 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
29658 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
29659 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
29660 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
29661 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
29662 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
29663 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
29664 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
29665 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
29666 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
29667 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
29668 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
29669 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
29670 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
29671 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
29672 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
29673 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
29674 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
29675 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
29676 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
29677 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
29678 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
29679 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
29680 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
29681 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
29682 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
29683 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
29684 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
29685
29686 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
29687
29688 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE));
29689 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE));
29690 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH));
29691 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS));
29692 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown));
29693 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String));
29694 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean));
29695 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer));
29696 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float));
29697 SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set);
29698 SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set);
29699 PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local));
29700 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12));
29701 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11));
29702 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10));
29703 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9));
29704 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8));
29705 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7));
29706 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6));
29707 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5));
29708 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4));
29709 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3));
29710 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2));
29711 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1));
29712 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0));
29713 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1));
29714 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2));
29715 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3));
29716 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4));
29717 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5));
29718 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6));
29719 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7));
29720 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8));
29721 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9));
29722 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10));
29723 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11));
29724 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12));
29725 PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET));
29726 PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST));
29727 PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET));
29728 PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST));
29729 PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET));
29730 PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST));
29731 PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK));
29732 PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD));
29733 PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST));
29734 PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT));
29735 PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST));
29736 PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT));
29737 PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST));
29738 PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT));
29739 PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST));
29740 PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT));
29741 PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST));
29742 PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT));
29743 PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST));
29744 PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST));
29745 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT));
29746 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST));
29747 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST));
29748 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST));
29749 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST));
29750 PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC));
29751 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian));
29752 PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian));
29753 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown));
29754 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard));
29755 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska));
29756 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania));
29757 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria));
29758 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen));
29759 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg));
29760 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol));
29761 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia));
29762 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria));
29763 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium));
29764 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria));
29765 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1));
29766 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2));
29767 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3));
29768 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada));
29769 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China));
29770 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1));
29771 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2));
29772 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia));
29773 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark));
29774 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt));
29775 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia));
29776 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland));
29777 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France));
29778 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace));
29779 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine));
29780 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg));
29781 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany));
29782 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic));
29783 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia));
29784 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant));
29785 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain));
29786 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece));
29787 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary));
29788 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland));
29789 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy));
29790 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan));
29791 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1));
29792 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2));
29793 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3));
29794 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia));
29795 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania));
29796 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg));
29797 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands));
29798 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen));
29799 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland));
29800 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht));
29801 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland));
29802 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway));
29803 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland));
29804 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal));
29805 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania));
29806 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia));
29807 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland));
29808 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain));
29809 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden));
29810 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland));
29811 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic));
29812 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant));
29813 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey));
29814 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA));
29815 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales));
29816 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia));
29817 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown));
29818 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default));
29819 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start));
29820 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC));
29821 PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France));
29822 PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany));
29823 PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK));
29824 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End));
29825 PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia));
29826 PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA));
29827 PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan));
29828 PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb));
29829 PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar));
29830 PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr));
29831 PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May));
29832 PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun));
29833 PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul));
29834 PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug));
29835 PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep));
29836 PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct));
29837 PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov));
29838 PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec));
29839 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month));
29840 PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun));
29841 PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon));
29842 PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue));
29843 PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed));
29844 PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu));
29845 PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri));
29846 PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat));
29847 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay));
29848 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year));
29849 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full));
29850 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr));
29851 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First));
29852 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First));
29853 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First));
29854 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
29855 PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID));
29856 PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT));
29857 PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP));
29858 PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE));
29859 PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK));
29860 PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF));
29861 PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF));
29862 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT));
29863 PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB));
29864 PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE));
29865 PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA));
29866 PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF));
29867 PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE));
29868 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT));
29869 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE));
29870 PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME));
29871 PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE));
29872 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE));
29873 PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML));
29874 PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX));
29875 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
29876 PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get));
29877 PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set));
29878 PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both));
29879 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly));
29880 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove));
29881 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove));
29882 PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError));
29883 PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone));
29884 PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy));
29885 PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove));
29886 PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink));
29887 PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel));
29888
29889 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
29890 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
29891 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
29892 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
29893
29894 SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set);
29895 SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set);
29896 }
29897