]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/misc_wrap.cpp
notes about sizer changes
[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_wxPyTextDataObject swig_types[26]
236 #define SWIGTYPE_p_wxBitmapDataObject swig_types[27]
237 #define SWIGTYPE_p_wxTextDataObject swig_types[28]
238 #define SWIGTYPE_p_wxDataObject swig_types[29]
239 #define SWIGTYPE_p_wxPyBitmapDataObject 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_wxByte swig_types[82]
292 #define SWIGTYPE_p_wxConfigPathChanger swig_types[83]
293 #define SWIGTYPE_p_wxPyTimer swig_types[84]
294 #define SWIGTYPE_p_wxDateSpan swig_types[85]
295 static swig_type_info *swig_types[87];
296
297 /* -------- TYPES TABLE (END) -------- */
298
299
300 /*-----------------------------------------------
301 @(target):= _misc.so
302 ------------------------------------------------*/
303 #define SWIG_init init_misc
304
305 #define SWIG_name "_misc"
306
307 /* Auxiliar swig macros */
308
309 #ifdef __cplusplus
310 #define SWIGSTATICINLINE(a) static inline a
311 #define SWIGSTATIC(a) static a
312 #define swig_new_array(type, size) (new type[(size)])
313 #define swig_delete_array(cptr) delete[] cptr
314 #define swig_const_cast(type,a) const_cast<type>(a)
315 #define swig_static_cast(type,a) static_cast<type>(a)
316 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
317
318 #ifdef HAVE_NUMERIC_CAST
319 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
320 #else
321 #define swig_numeric_cast(type,a) static_cast<type>(a)
322 #endif
323
324 #else /* C case */
325
326 #define SWIGSTATICINLINE(a) static a
327 #define SWIGSTATIC(a) static a
328 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
329 #define swig_delete_array(cptr) free((char*)cptr)
330 #define swig_const_cast(type,a) (type)(a)
331 #define swig_static_cast(type,a) (type)(a)
332 #define swig_reinterpret_cast(type,a) (type)(a)
333 #define swig_numeric_cast(type,a) (type)(a)
334
335 #endif /* __cplusplus */
336
337
338 #define SWIG_FromSignedChar PyInt_FromLong
339 #define SWIG_FromUnsignedChar PyInt_FromLong
340 #define SWIG_FromShort PyInt_FromLong
341 #define SWIG_FromUnsignedShort PyInt_FromLong
342 #define SWIG_FromInt PyInt_FromLong
343 #define SWIG_FromLong PyInt_FromLong
344 #define SWIG_FromFloat PyFloat_FromDouble
345 #define SWIG_FromDouble PyFloat_FromDouble
346 #define SWIG_FromFloat PyFloat_FromDouble
347 #define SWIG_FromDouble PyFloat_FromDouble
348
349
350 #include "wx/wxPython/wxPython.h"
351 #include "wx/wxPython/pyclasses.h"
352 #include "wx/wxPython/pyistream.h"
353
354
355 static const wxString wxPyEmptyString(wxEmptyString);
356
357
358
359 #include <limits.h>
360
361
362 SWIGSTATICINLINE(long)
363 SWIG_CheckLongInRange(long value, const char* type,
364 long min_value, long max_value)
365 {
366 if (!PyErr_Occurred()) {
367 if (value < min_value) {
368 PyObject *err =
369 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
370 value, type, min_value);
371
372 PyErr_SetObject(PyExc_OverflowError, err);
373 Py_DECREF(err);
374 } else if (value > max_value) {
375 PyObject *err =
376 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
377 value, type, max_value);
378 PyErr_SetObject(PyExc_OverflowError, err);
379 Py_DECREF(err);
380 }
381 }
382 return value;
383 }
384
385
386 SWIGSTATICINLINE(long)
387 SWIG_AsLong(PyObject * obj)
388 {
389 if (PyNumber_Check(obj))
390 return PyInt_AsLong(obj);
391 else {
392 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
393 obj->ob_type->tp_name);
394 PyErr_SetObject(PyExc_TypeError, errmsg);
395 Py_DECREF(errmsg);
396 return 0;
397 }
398 }
399
400
401 #if INT_MAX != LONG_MAX
402 SWIGSTATICINLINE(int)
403 SWIG_AsInt(PyObject *obj)
404 {
405 return swig_numeric_cast(int,
406 SWIG_CheckLongInRange(SWIG_AsLong(obj),
407 "int", INT_MIN, INT_MAX));
408 }
409 #else
410 #define SWIG_AsInt SWIG_AsLong
411 #endif
412
413
414 SWIGSTATICINLINE(int)
415 SWIG_CheckInt(PyObject* obj)
416 {
417 SWIG_AsInt(obj);
418 if (PyErr_Occurred()) {
419 PyErr_Clear();
420 return 0;
421 } else {
422 return 1;
423 }
424 }
425
426 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
427 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
428 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
429
430 SWIGSTATICINLINE(int)
431 SWIG_CheckLong(PyObject* obj)
432 {
433 SWIG_AsLong(obj);
434 if (PyErr_Occurred()) {
435 PyErr_Clear();
436 return 0;
437 } else {
438 return 1;
439 }
440 }
441
442
443 SWIGSTATICINLINE(bool)
444 SWIG_AsBool(PyObject *obj)
445 {
446 return PyObject_IsTrue(obj) ? true : false;
447 }
448
449
450 SWIGSTATICINLINE(int)
451 SWIG_CheckBool(PyObject* obj)
452 {
453 SWIG_AsBool(obj);
454 if (PyErr_Occurred()) {
455 PyErr_Clear();
456 return 0;
457 } else {
458 return 1;
459 }
460 }
461
462
463 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
464 PyObject* o2;
465 PyObject* o3;
466
467 if (!target) {
468 target = o;
469 } else if (target == Py_None) {
470 Py_DECREF(Py_None);
471 target = o;
472 } else {
473 if (!PyTuple_Check(target)) {
474 o2 = target;
475 target = PyTuple_New(1);
476 PyTuple_SetItem(target, 0, o2);
477 }
478 o3 = PyTuple_New(1);
479 PyTuple_SetItem(o3, 0, o);
480
481 o2 = target;
482 target = PySequence_Concat(o2, o3);
483 Py_DECREF(o2);
484 Py_DECREF(o3);
485 }
486 return target;
487 }
488
489
490 long wxGetFreeMemory()
491 { wxPyRaiseNotImplemented(); return 0; }
492
493
494 SWIGSTATICINLINE(unsigned long)
495 SWIG_AsUnsignedLong(PyObject * obj)
496 {
497 if (PyLong_Check(obj)) {
498 return PyLong_AsUnsignedLong(obj);
499 } else {
500 long i = SWIG_AsLong(obj);
501 if ( !PyErr_Occurred() && (i < 0)) {
502 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
503 }
504 return i;
505 }
506 }
507
508
509 SWIGSTATICINLINE(int)
510 SWIG_CheckUnsignedLong(PyObject* obj)
511 {
512 SWIG_AsUnsignedLong(obj);
513 if (PyErr_Occurred()) {
514 PyErr_Clear();
515 return 0;
516 } else {
517 return 1;
518 }
519 }
520
521
522 SWIGSTATICINLINE(PyObject* )
523 SWIG_FromUnsignedLong(unsigned long value)
524 {
525 return (value > LONG_MAX) ?
526 PyLong_FromUnsignedLong(value)
527 : PyInt_FromLong(swig_numeric_cast(long,value));
528 }
529
530
531 bool wxGetKeyState(wxKeyCode key)
532 { wxPyRaiseNotImplemented(); return False; }
533
534
535 void wxWakeUpMainThread() {}
536
537
538 bool wxThread_IsMain() {
539 #ifdef WXP_WITH_THREAD
540 return wxThread::IsMain();
541 #else
542 return True;
543 #endif
544 }
545
546
547 int wxCaret_GetBlinkTime() {
548 return wxCaret::GetBlinkTime();
549 }
550
551 void wxCaret_SetBlinkTime(int milliseconds) {
552 wxCaret::SetBlinkTime(milliseconds);
553 }
554
555
556 #include <wx/snglinst.h>
557
558
559 #ifdef __WXMSW__
560 #include <wx/msw/private.h>
561 #include <wx/dynload.h>
562 #endif
563
564
565
566 void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method)
567 {
568 #ifdef __WXMSW__
569
570 switch (method)
571 {
572 case 1:
573 // This one only partially works. Appears to be an undocumented
574 // "standard" convention that not all widgets adhear to. For
575 // example, for some widgets backgrounds or non-client areas may
576 // not be painted.
577 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
578 break;
579
580 case 2:
581 // This one works much better, except for on XP. On Win2k nearly
582 // all widgets and their children are captured correctly[**]. On
583 // XP with Themes activated most native widgets draw only
584 // partially, if at all. Without themes it works just like on
585 // Win2k.
586 //
587 // ** For example the radio buttons in a wxRadioBox are not its
588 // children by default, but you can capture it via the panel
589 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
590 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
591 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
592 PRF_ERASEBKGND | PRF_OWNED );
593 break;
594
595 case 3:
596 // This one is only defined in the latest SDK and is only
597 // available on XP. MSDN says it is similar to sending WM_PRINT
598 // so I expect that it will work similar to the above. Since it
599 // is avaialble only on XP, it can't be compiled like this and
600 // will have to be loaded dynamically.
601 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
602
603 // fall through
604
605 case 4:
606 // Use PrintWindow if available, or fallback to WM_PRINT
607 // otherwise. Unfortunately using PrintWindow is even worse than
608 // WM_PRINT. For most native widgets nothing is drawn to the dc
609 // at all, with or without Themes.
610 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
611 static bool s_triedToLoad = False;
612 static PrintWindow_t pfnPrintWindow = NULL;
613 if ( !s_triedToLoad )
614 {
615
616 s_triedToLoad = True;
617 wxDynamicLibrary dllUser32(_T("user32.dll"));
618 if ( dllUser32.IsLoaded() )
619 {
620 wxLogNull nolog; // Don't report errors here
621 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
622 }
623 }
624 if (pfnPrintWindow)
625 {
626 printf("Using PrintWindow\n");
627 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
628 }
629 else
630 {
631 printf("Using WM_PRINT\n");
632 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
633 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED );
634 }
635 }
636 #endif
637 }
638
639
640
641 #include <wx/tipdlg.h>
642
643
644 class wxPyTipProvider : public wxTipProvider {
645 public:
646 wxPyTipProvider(size_t currentTip)
647 : wxTipProvider(currentTip) {}
648
649 DEC_PYCALLBACK_STRING__pure(GetTip);
650 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
651 PYPRIVATE;
652 };
653
654 IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
655 IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
656
657
658 //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
659
660 void wxPyTimer::Notify() {
661 bool found;
662 bool blocked = wxPyBeginBlockThreads();
663 if ((found = wxPyCBH_findCallback(m_myInst, "Notify")))
664 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()"));
665 wxPyEndBlockThreads(blocked);
666 if (! found)
667 wxTimer::Notify();
668 }
669 void wxPyTimer::base_Notify() {
670 wxTimer::Notify();
671 }
672
673
674
675 SWIGSTATICINLINE(PyObject *)
676 SWIG_FromCharPtr(const char* cptr)
677 {
678 size_t size = cptr ? strlen(cptr) : 0;
679 if (cptr) {
680 if (size > INT_MAX) {
681 return SWIG_NewPointerObj(swig_const_cast(char*,cptr),
682 SWIG_TypeQuery("char *"), 0);
683 } else {
684 return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size));
685 }
686 } else {
687 Py_INCREF(Py_None);
688 return Py_None;
689 }
690 }
691
692
693 SWIGSTATICINLINE(unsigned long)
694 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
695 unsigned long max_value)
696 {
697 if (!PyErr_Occurred()) {
698 if (value > max_value) {
699 PyObject *err =
700 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
701 value, type, max_value);
702 PyErr_SetObject(PyExc_OverflowError, err);
703 Py_DECREF(err);
704 }
705 }
706 return value;
707 }
708
709
710 #if UINT_MAX != ULONG_MAX
711 SWIGSTATICINLINE(unsigned int)
712 SWIG_AsUnsignedInt(PyObject *obj)
713 {
714 return swig_numeric_cast(unsigned int,
715 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
716 "unsigned int", UINT_MAX));
717 }
718 #else
719 #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
720 #endif
721
722
723 SWIGSTATICINLINE(int)
724 SWIG_CheckUnsignedInt(PyObject* obj)
725 {
726 SWIG_AsUnsignedInt(obj);
727 if (PyErr_Occurred()) {
728 PyErr_Clear();
729 return 0;
730 } else {
731 return 1;
732 }
733 }
734
735 wxString Log_TimeStamp(){
736 wxString msg;
737 wxLog::TimeStamp(&msg);
738 return msg;
739 }
740 void wxLog_Destroy(wxLog *self){ delete self; }
741
742 // A wxLog class that can be derived from in wxPython
743 class wxPyLog : public wxLog {
744 public:
745 wxPyLog() : wxLog() {}
746
747 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
748 bool found;
749 bool blocked = wxPyBeginBlockThreads();
750 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
751 PyObject* s = wx2PyString(szString);
752 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
753 Py_DECREF(s);
754 }
755 wxPyEndBlockThreads(blocked);
756 if (! found)
757 wxLog::DoLog(level, szString, t);
758 }
759
760 virtual void DoLogString(const wxChar *szString, time_t t) {
761 bool found;
762 bool blocked = wxPyBeginBlockThreads();
763 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
764 PyObject* s = wx2PyString(szString);
765 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
766 Py_DECREF(s);
767 }
768 wxPyEndBlockThreads(blocked);
769 if (! found)
770 wxLog::DoLogString(szString, t);
771 }
772
773 PYPRIVATE;
774 };
775
776
777
778
779 IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
780
781
782 #include <wx/joystick.h>
783
784
785 #if !wxUSE_JOYSTICK && !defined(__WXMSW__)
786 // A C++ stub class for wxJoystick for platforms that don't have it.
787 class wxJoystick : public wxObject {
788 public:
789 wxJoystick(int joystick = wxJOYSTICK1) {
790 bool blocked = wxPyBeginBlockThreads();
791 PyErr_SetString(PyExc_NotImplementedError,
792 "wxJoystick is not available on this platform.");
793 wxPyEndBlockThreads(blocked);
794 }
795 wxPoint GetPosition() { return wxPoint(-1,-1); }
796 int GetZPosition() { return -1; }
797 int GetButtonState() { return -1; }
798 int GetPOVPosition() { return -1; }
799 int GetPOVCTSPosition() { return -1; }
800 int GetRudderPosition() { return -1; }
801 int GetUPosition() { return -1; }
802 int GetVPosition() { return -1; }
803 int GetMovementThreshold() { return -1; }
804 void SetMovementThreshold(int threshold) {}
805
806 bool IsOk(void) { return False; }
807 int GetNumberJoysticks() { return -1; }
808 int GetManufacturerId() { return -1; }
809 int GetProductId() { return -1; }
810 wxString GetProductName() { return ""; }
811 int GetXMin() { return -1; }
812 int GetYMin() { return -1; }
813 int GetZMin() { return -1; }
814 int GetXMax() { return -1; }
815 int GetYMax() { return -1; }
816 int GetZMax() { return -1; }
817 int GetNumberButtons() { return -1; }
818 int GetNumberAxes() { return -1; }
819 int GetMaxButtons() { return -1; }
820 int GetMaxAxes() { return -1; }
821 int GetPollingMin() { return -1; }
822 int GetPollingMax() { return -1; }
823 int GetRudderMin() { return -1; }
824 int GetRudderMax() { return -1; }
825 int GetUMin() { return -1; }
826 int GetUMax() { return -1; }
827 int GetVMin() { return -1; }
828 int GetVMax() { return -1; }
829
830 bool HasRudder() { return False; }
831 bool HasZ() { return False; }
832 bool HasU() { return False; }
833 bool HasV() { return False; }
834 bool HasPOV() { return False; }
835 bool HasPOV4Dir() { return False; }
836 bool HasPOVCTS() { return False; }
837
838 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; }
839 bool ReleaseCapture() { return False; }
840 };
841 #endif
842
843
844 #include <wx/sound.h>
845
846
847 #if !wxUSE_SOUND
848 // A C++ stub class for wxWave for platforms that don't have it.
849 class wxSound : public wxObject
850 {
851 public:
852 wxSound() {
853 bool blocked = wxPyBeginBlockThreads();
854 PyErr_SetString(PyExc_NotImplementedError,
855 "wxSound is not available on this platform.");
856 wxPyEndBlockThreads(blocked);
857 }
858 wxSound(const wxString&, bool) {
859 bool blocked = wxPyBeginBlockThreads();
860 PyErr_SetString(PyExc_NotImplementedError,
861 "wxSound is not available on this platform.");
862 wxPyEndBlockThreads(blocked);
863 }
864 wxSound(int, const wxByte*) {
865 bool blocked = wxPyBeginBlockThreads();
866 PyErr_SetString(PyExc_NotImplementedError,
867 "wxSound is not available on this platform.");
868 wxPyEndBlockThreads(blocked);
869 }
870
871 ~wxSound() {};
872
873 bool Create(const wxString&, bool) { return false; }
874 bool Create(int, const wxByte*) { return false; };
875 bool IsOk() { return false; };
876 bool Play(unsigned) const { return false; }
877 static bool Play(const wxString&, unsigned) { return false; }
878 static void Stop() {}
879 };
880
881 #endif
882
883
884 #include <wx/mimetype.h>
885
886 PyObject *wxFileType_GetMimeType(wxFileType *self){
887 wxString str;
888 if (self->GetMimeType(&str))
889 return wx2PyString(str);
890 else
891 RETURN_NONE();
892 }
893 PyObject *wxFileType_GetMimeTypes(wxFileType *self){
894 wxArrayString arr;
895 if (self->GetMimeTypes(arr))
896 return wxArrayString2PyList_helper(arr);
897 else
898 RETURN_NONE();
899 }
900 PyObject *wxFileType_GetExtensions(wxFileType *self){
901 wxArrayString arr;
902 if (self->GetExtensions(arr))
903 return wxArrayString2PyList_helper(arr);
904 else
905 RETURN_NONE();
906 }
907 wxIcon *wxFileType_GetIcon(wxFileType *self){
908 wxIconLocation loc;
909 if (self->GetIcon(&loc))
910 return new wxIcon(loc);
911 else
912 return NULL;
913 }
914 PyObject *wxFileType_GetIconInfo(wxFileType *self){
915 wxIconLocation loc;
916 if (self->GetIcon(&loc)) {
917 wxString iconFile = loc.GetFileName();
918 int iconIndex = -1;
919
920
921
922 // Make a tuple and put the values in it
923 bool blocked = wxPyBeginBlockThreads();
924 PyObject* tuple = PyTuple_New(3);
925 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
926 wxT("wxIcon"), True));
927 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
928 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
929 wxPyEndBlockThreads(blocked);
930 return tuple;
931 }
932 else
933 RETURN_NONE();
934 }
935 PyObject *wxFileType_GetDescription(wxFileType *self){
936 wxString str;
937 if (self->GetDescription(&str))
938 return wx2PyString(str);
939 else
940 RETURN_NONE();
941 }
942 PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
943 wxString str;
944 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
945 return wx2PyString(str);
946 else
947 RETURN_NONE();
948 }
949 PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
950 wxString str;
951 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
952 return wx2PyString(str);
953 else
954 RETURN_NONE();
955 }
956 PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){
957 wxArrayString verbs;
958 wxArrayString commands;
959 if (self->GetAllCommands(&verbs, &commands,
960 wxFileType::MessageParameters(filename, mimetype))) {
961 bool blocked = wxPyBeginBlockThreads();
962 PyObject* tuple = PyTuple_New(2);
963 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
964 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
965 wxPyEndBlockThreads(blocked);
966 return tuple;
967 }
968 else
969 RETURN_NONE();
970 }
971 wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){
972 return wxFileType::ExpandCommand(command,
973 wxFileType::MessageParameters(filename, mimetype));
974 }
975 PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
976 wxArrayString arr;
977 self->EnumAllFileTypes(arr);
978 return wxArrayString2PyList_helper(arr);
979 }
980
981 #include <wx/artprov.h>
982
983 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
984 static const wxString wxPyART_MENU(wxART_MENU);
985 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
986 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
987 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
988 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
989 static const wxString wxPyART_OTHER(wxART_OTHER);
990 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
991 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
992 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
993 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
994 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
995 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
996 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
997 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
998 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
999 static const wxString wxPyART_GO_UP(wxART_GO_UP);
1000 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
1001 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
1002 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
1003 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
1004 static const wxString wxPyART_PRINT(wxART_PRINT);
1005 static const wxString wxPyART_HELP(wxART_HELP);
1006 static const wxString wxPyART_TIP(wxART_TIP);
1007 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
1008 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
1009 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
1010 static const wxString wxPyART_FOLDER(wxART_FOLDER);
1011 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
1012 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
1013 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
1014 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
1015 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
1016 static const wxString wxPyART_ERROR(wxART_ERROR);
1017 static const wxString wxPyART_QUESTION(wxART_QUESTION);
1018 static const wxString wxPyART_WARNING(wxART_WARNING);
1019 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
1020 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
1021 // Python aware wxArtProvider
1022 class wxPyArtProvider : public wxArtProvider {
1023 public:
1024
1025 virtual wxBitmap CreateBitmap(const wxArtID& id,
1026 const wxArtClient& client,
1027 const wxSize& size) {
1028 wxBitmap rval = wxNullBitmap;
1029 bool blocked = wxPyBeginBlockThreads();
1030 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
1031 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
1032 PyObject* ro;
1033 wxBitmap* ptr;
1034 PyObject* s1, *s2;
1035 s1 = wx2PyString(id);
1036 s2 = wx2PyString(client);
1037 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
1038 Py_DECREF(so);
1039 Py_DECREF(s1);
1040 Py_DECREF(s2);
1041 if (ro) {
1042 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
1043 rval = *ptr;
1044 Py_DECREF(ro);
1045 }
1046 }
1047 wxPyEndBlockThreads(blocked);
1048 return rval;
1049 }
1050
1051 PYPRIVATE;
1052 };
1053
1054 void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
1055
1056
1057
1058 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
1059 PyObject* ret = PyTuple_New(3);
1060 if (ret) {
1061 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
1062 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
1063 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
1064 }
1065 return ret;
1066 }
1067
1068 PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
1069 bool cont;
1070 long index = 0;
1071 wxString value;
1072
1073 cont = self->GetFirstGroup(value, index);
1074 return __EnumerationHelper(cont, value, index);
1075 }
1076 PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
1077 bool cont;
1078 wxString value;
1079
1080 cont = self->GetNextGroup(value, index);
1081 return __EnumerationHelper(cont, value, index);
1082 }
1083 PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
1084 bool cont;
1085 long index = 0;
1086 wxString value;
1087
1088 cont = self->GetFirstEntry(value, index);
1089 return __EnumerationHelper(cont, value, index);
1090 }
1091 PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
1092 bool cont;
1093 wxString value;
1094
1095 cont = self->GetNextEntry(value, index);
1096 return __EnumerationHelper(cont, value, index);
1097 }
1098 long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){
1099 long rv;
1100 self->Read(key, &rv, defaultVal);
1101 return rv;
1102 }
1103
1104 SWIGSTATICINLINE(double)
1105 SWIG_AsDouble(PyObject *obj)
1106 {
1107 if (PyNumber_Check(obj))
1108 return PyFloat_AsDouble(obj);
1109 else {
1110 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
1111 obj->ob_type->tp_name);
1112 PyErr_SetObject(PyExc_TypeError, errmsg);
1113 Py_DECREF(errmsg);
1114 return 0;
1115 }
1116 }
1117
1118
1119 SWIGSTATICINLINE(int)
1120 SWIG_CheckDouble(PyObject* obj)
1121 {
1122 SWIG_AsDouble(obj);
1123 if (PyErr_Occurred()) {
1124 PyErr_Clear();
1125 return 0;
1126 } else {
1127 return 1;
1128 }
1129 }
1130
1131 double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){
1132 double rv;
1133 self->Read(key, &rv, defaultVal);
1134 return rv;
1135 }
1136 bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){
1137 bool rv;
1138 self->Read(key, &rv, defaultVal);
1139 return rv;
1140 }
1141
1142 #include <wx/datetime.h>
1143
1144
1145 static const wxString wxPyDateFormatStr(wxT("%c"));
1146 static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S"));
1147
1148 #define LOCAL_TZ wxDateTime::Local
1149
1150
1151 #if UINT_MAX < LONG_MAX
1152 #define SWIG_FromUnsignedInt SWIG_FromLong
1153 #else
1154 #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
1155 #endif
1156
1157 wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
1158 wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
1159 wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
1160 wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
1161 wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
1162 bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ return other ? (*self < *other) : False; }
1163 bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ return other ? (*self <= *other) : False; }
1164 bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ return other ? (*self > *other) : True; }
1165 bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ return other ? (*self >= *other) : True; }
1166 bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ return other ? (*self == *other) : False; }
1167 bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ return other ? (*self != *other) : True; }
1168 int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
1169 const wxChar* rv;
1170 const wxChar* _date = date;
1171 rv = self->ParseRfc822Date(_date);
1172 if (rv == NULL) return -1;
1173 return rv - _date;
1174 }
1175 int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){
1176 const wxChar* rv;
1177 const wxChar* _date = date;
1178 rv = self->ParseFormat(_date, format, dateDef);
1179 if (rv == NULL) return -1;
1180 return rv - _date;
1181 }
1182 int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
1183 const wxChar* rv;
1184 const wxChar* _datetime = datetime;
1185 rv = self->ParseDateTime(_datetime);
1186 if (rv == NULL) return -1;
1187 return rv - _datetime;
1188 }
1189 int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
1190 const wxChar* rv;
1191 const wxChar* _date = date;
1192 rv = self->ParseDate(_date);
1193 if (rv == NULL) return -1;
1194 return rv - _date;
1195 }
1196 int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
1197 const wxChar* rv;
1198 const wxChar* _time = time;
1199 rv = self->ParseTime(_time);
1200 if (rv == NULL) return -1;
1201 return rv - _time;
1202 }
1203 wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
1204 wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
1205 wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
1206 wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
1207 bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; }
1208 bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; }
1209 bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; }
1210 bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; }
1211 bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; }
1212 bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; }
1213 wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
1214 wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
1215 wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
1216 wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
1217 bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; }
1218 bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; }
1219
1220 #include <wx/dataobj.h>
1221
1222 // Create a new class for wxPython to use
1223 class wxPyDataObjectSimple : public wxDataObjectSimple {
1224 public:
1225 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
1226 : wxDataObjectSimple(format) {}
1227
1228 DEC_PYCALLBACK_SIZET__const(GetDataSize);
1229 bool GetDataHere(void *buf) const;
1230 bool SetData(size_t len, const void *buf) const;
1231 PYPRIVATE;
1232 };
1233
1234 IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
1235
1236 bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
1237 // We need to get the data for this object and write it to buf. I think
1238 // the best way to do this for wxPython is to have the Python method
1239 // return either a string or None and then act appropriately with the
1240 // C++ version.
1241
1242 bool rval = False;
1243 bool blocked = wxPyBeginBlockThreads();
1244 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
1245 PyObject* ro;
1246 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1247 if (ro) {
1248 rval = (ro != Py_None && PyString_Check(ro));
1249 if (rval)
1250 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
1251 Py_DECREF(ro);
1252 }
1253 }
1254 wxPyEndBlockThreads(blocked);
1255 return rval;
1256 }
1257
1258 bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
1259 // For this one we simply need to make a string from buf and len
1260 // and send it to the Python method.
1261 bool rval = False;
1262 bool blocked = wxPyBeginBlockThreads();
1263 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
1264 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
1265 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
1266 Py_DECREF(data);
1267 }
1268 wxPyEndBlockThreads(blocked);
1269 return rval;
1270 }
1271
1272 // Create a new class for wxPython to use
1273 class wxPyTextDataObject : public wxTextDataObject {
1274 public:
1275 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
1276 : wxTextDataObject(text) {}
1277
1278 DEC_PYCALLBACK_SIZET__const(GetTextLength);
1279 DEC_PYCALLBACK_STRING__const(GetText);
1280 DEC_PYCALLBACK__STRING(SetText);
1281 PYPRIVATE;
1282 };
1283
1284 IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
1285 IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
1286 IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
1287
1288
1289 // Create a new class for wxPython to use
1290 class wxPyBitmapDataObject : public wxBitmapDataObject {
1291 public:
1292 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
1293 : wxBitmapDataObject(bitmap) {}
1294
1295 wxBitmap GetBitmap() const;
1296 void SetBitmap(const wxBitmap& bitmap);
1297 PYPRIVATE;
1298 };
1299
1300 wxBitmap wxPyBitmapDataObject::GetBitmap() const {
1301 wxBitmap* rval = &wxNullBitmap;
1302 bool blocked = wxPyBeginBlockThreads();
1303 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
1304 PyObject* ro;
1305 wxBitmap* ptr;
1306 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1307 if (ro) {
1308 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
1309 rval = ptr;
1310 Py_DECREF(ro);
1311 }
1312 }
1313 wxPyEndBlockThreads(blocked);
1314 return *rval;
1315 }
1316
1317 void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
1318 bool blocked = wxPyBeginBlockThreads();
1319 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
1320 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False);
1321 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
1322 Py_DECREF(bo);
1323 }
1324 wxPyEndBlockThreads(blocked);
1325 }
1326
1327 void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject *data){
1328 if (PyString_Check(data)) {
1329 // for Python we just call SetData here since we always need it to make a copy.
1330 self->SetData(PyString_Size(data), PyString_AsString(data));
1331 }
1332 else {
1333 // raise a TypeError if not a string
1334 PyErr_SetString(PyExc_TypeError, "String expected.");
1335 }
1336 }
1337 bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
1338 if (PyString_Check(data)) {
1339 return self->SetData(PyString_Size(data), PyString_AsString(data));
1340 }
1341 else {
1342 // raise a TypeError if not a string
1343 PyErr_SetString(PyExc_TypeError, "String expected.");
1344 return False;
1345 }
1346 }
1347 PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
1348 return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
1349 }
1350
1351 class wxMetafileDataObject : public wxDataObjectSimple
1352 {
1353 public:
1354 wxMetafileDataObject() { wxPyRaiseNotImplemented(); }
1355 };
1356
1357
1358 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
1359
1360
1361 IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
1362 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
1363 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
1364 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
1365 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
1366
1367
1368 class wxPyTextDropTarget : public wxTextDropTarget {
1369 public:
1370 wxPyTextDropTarget() {}
1371
1372 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
1373
1374 DEC_PYCALLBACK__(OnLeave);
1375 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1376 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1377 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1378 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1379
1380 PYPRIVATE;
1381 };
1382
1383 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
1384 IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
1385 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
1386 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
1387 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
1388 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
1389
1390
1391
1392 class wxPyFileDropTarget : public wxFileDropTarget {
1393 public:
1394 wxPyFileDropTarget() {}
1395
1396 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
1397
1398 DEC_PYCALLBACK__(OnLeave);
1399 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1400 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1401 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1402 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1403
1404 PYPRIVATE;
1405 };
1406
1407 bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
1408 const wxArrayString& filenames) {
1409 bool rval = False;
1410 bool blocked = wxPyBeginBlockThreads();
1411 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
1412 PyObject* list = wxArrayString2PyList_helper(filenames);
1413 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
1414 Py_DECREF(list);
1415 }
1416 wxPyEndBlockThreads(blocked);
1417 return rval;
1418 }
1419
1420
1421
1422 IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
1423 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
1424 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
1425 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
1426 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
1427
1428
1429
1430
1431 bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
1432
1433 #include "wx/display.h"
1434
1435 bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; }
1436 bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; }
1437 int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1438 PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){
1439 PyObject* pyList = NULL;
1440 wxArrayVideoModes arr = self->GetModes(mode);
1441 bool blocked = wxPyBeginBlockThreads();
1442 pyList = PyList_New(0);
1443 for (int i=0; i < arr.GetCount(); i++) {
1444 wxVideoMode* m = new wxVideoMode(arr.Item(i));
1445 PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true);
1446 PyList_Append(pyList, pyObj);
1447 }
1448 wxPyEndBlockThreads(blocked);
1449 return pyList;
1450 }
1451 #ifdef __cplusplus
1452 extern "C" {
1453 #endif
1454 static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1455 PyObject *resultobj;
1456 int arg1 ;
1457 wxColour result;
1458 PyObject * obj0 = 0 ;
1459 char *kwnames[] = {
1460 (char *) "index", NULL
1461 };
1462
1463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
1464 arg1 = (wxSystemColour) SWIG_AsInt(obj0);
1465 if (PyErr_Occurred()) SWIG_fail;
1466 {
1467 PyThreadState* __tstate = wxPyBeginAllowThreads();
1468 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1469
1470 wxPyEndAllowThreads(__tstate);
1471 if (PyErr_Occurred()) SWIG_fail;
1472 }
1473 {
1474 wxColour * resultptr;
1475 resultptr = new wxColour((wxColour &) result);
1476 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1477 }
1478 return resultobj;
1479 fail:
1480 return NULL;
1481 }
1482
1483
1484 static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1485 PyObject *resultobj;
1486 int arg1 ;
1487 wxFont result;
1488 PyObject * obj0 = 0 ;
1489 char *kwnames[] = {
1490 (char *) "index", NULL
1491 };
1492
1493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
1494 arg1 = (wxSystemFont) SWIG_AsInt(obj0);
1495 if (PyErr_Occurred()) SWIG_fail;
1496 {
1497 PyThreadState* __tstate = wxPyBeginAllowThreads();
1498 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1499
1500 wxPyEndAllowThreads(__tstate);
1501 if (PyErr_Occurred()) SWIG_fail;
1502 }
1503 {
1504 wxFont * resultptr;
1505 resultptr = new wxFont((wxFont &) result);
1506 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
1507 }
1508 return resultobj;
1509 fail:
1510 return NULL;
1511 }
1512
1513
1514 static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) {
1515 PyObject *resultobj;
1516 int arg1 ;
1517 int result;
1518 PyObject * obj0 = 0 ;
1519 char *kwnames[] = {
1520 (char *) "index", NULL
1521 };
1522
1523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail;
1524 arg1 = (wxSystemMetric) SWIG_AsInt(obj0);
1525 if (PyErr_Occurred()) SWIG_fail;
1526 {
1527 PyThreadState* __tstate = wxPyBeginAllowThreads();
1528 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1529
1530 wxPyEndAllowThreads(__tstate);
1531 if (PyErr_Occurred()) SWIG_fail;
1532 }
1533 resultobj = SWIG_FromInt((int)result);
1534 return resultobj;
1535 fail:
1536 return NULL;
1537 }
1538
1539
1540 static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) {
1541 PyObject *resultobj;
1542 int arg1 ;
1543 bool result;
1544 PyObject * obj0 = 0 ;
1545 char *kwnames[] = {
1546 (char *) "index", NULL
1547 };
1548
1549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
1550 arg1 = (wxSystemFeature) SWIG_AsInt(obj0);
1551 if (PyErr_Occurred()) SWIG_fail;
1552 {
1553 PyThreadState* __tstate = wxPyBeginAllowThreads();
1554 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1555
1556 wxPyEndAllowThreads(__tstate);
1557 if (PyErr_Occurred()) SWIG_fail;
1558 }
1559 {
1560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1561 }
1562 return resultobj;
1563 fail:
1564 return NULL;
1565 }
1566
1567
1568 static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1569 PyObject *resultobj;
1570 int result;
1571 char *kwnames[] = {
1572 NULL
1573 };
1574
1575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
1576 {
1577 PyThreadState* __tstate = wxPyBeginAllowThreads();
1578 result = (int)wxSystemSettings::GetScreenType();
1579
1580 wxPyEndAllowThreads(__tstate);
1581 if (PyErr_Occurred()) SWIG_fail;
1582 }
1583 resultobj = SWIG_FromInt((int)result);
1584 return resultobj;
1585 fail:
1586 return NULL;
1587 }
1588
1589
1590 static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1591 PyObject *resultobj;
1592 int arg1 ;
1593 PyObject * obj0 = 0 ;
1594 char *kwnames[] = {
1595 (char *) "screen", NULL
1596 };
1597
1598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
1599 arg1 = (wxSystemScreenType) SWIG_AsInt(obj0);
1600 if (PyErr_Occurred()) SWIG_fail;
1601 {
1602 PyThreadState* __tstate = wxPyBeginAllowThreads();
1603 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
1604
1605 wxPyEndAllowThreads(__tstate);
1606 if (PyErr_Occurred()) SWIG_fail;
1607 }
1608 Py_INCREF(Py_None); resultobj = Py_None;
1609 return resultobj;
1610 fail:
1611 return NULL;
1612 }
1613
1614
1615 static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) {
1616 PyObject *obj;
1617 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1618 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
1619 Py_INCREF(obj);
1620 return Py_BuildValue((char *)"");
1621 }
1622 static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) {
1623 PyObject *resultobj;
1624 wxSystemOptions *result;
1625 char *kwnames[] = {
1626 NULL
1627 };
1628
1629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
1630 {
1631 PyThreadState* __tstate = wxPyBeginAllowThreads();
1632 result = (wxSystemOptions *)new wxSystemOptions();
1633
1634 wxPyEndAllowThreads(__tstate);
1635 if (PyErr_Occurred()) SWIG_fail;
1636 }
1637 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
1638 return resultobj;
1639 fail:
1640 return NULL;
1641 }
1642
1643
1644 static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1645 PyObject *resultobj;
1646 wxString *arg1 = 0 ;
1647 wxString *arg2 = 0 ;
1648 bool temp1 = False ;
1649 bool temp2 = False ;
1650 PyObject * obj0 = 0 ;
1651 PyObject * obj1 = 0 ;
1652 char *kwnames[] = {
1653 (char *) "name",(char *) "value", NULL
1654 };
1655
1656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
1657 {
1658 arg1 = wxString_in_helper(obj0);
1659 if (arg1 == NULL) SWIG_fail;
1660 temp1 = True;
1661 }
1662 {
1663 arg2 = wxString_in_helper(obj1);
1664 if (arg2 == NULL) SWIG_fail;
1665 temp2 = True;
1666 }
1667 {
1668 PyThreadState* __tstate = wxPyBeginAllowThreads();
1669 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
1670
1671 wxPyEndAllowThreads(__tstate);
1672 if (PyErr_Occurred()) SWIG_fail;
1673 }
1674 Py_INCREF(Py_None); resultobj = Py_None;
1675 {
1676 if (temp1)
1677 delete arg1;
1678 }
1679 {
1680 if (temp2)
1681 delete arg2;
1682 }
1683 return resultobj;
1684 fail:
1685 {
1686 if (temp1)
1687 delete arg1;
1688 }
1689 {
1690 if (temp2)
1691 delete arg2;
1692 }
1693 return NULL;
1694 }
1695
1696
1697 static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1698 PyObject *resultobj;
1699 wxString *arg1 = 0 ;
1700 int arg2 ;
1701 bool temp1 = False ;
1702 PyObject * obj0 = 0 ;
1703 PyObject * obj1 = 0 ;
1704 char *kwnames[] = {
1705 (char *) "name",(char *) "value", NULL
1706 };
1707
1708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
1709 {
1710 arg1 = wxString_in_helper(obj0);
1711 if (arg1 == NULL) SWIG_fail;
1712 temp1 = True;
1713 }
1714 arg2 = (int) SWIG_AsInt(obj1);
1715 if (PyErr_Occurred()) SWIG_fail;
1716 {
1717 PyThreadState* __tstate = wxPyBeginAllowThreads();
1718 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
1719
1720 wxPyEndAllowThreads(__tstate);
1721 if (PyErr_Occurred()) SWIG_fail;
1722 }
1723 Py_INCREF(Py_None); resultobj = Py_None;
1724 {
1725 if (temp1)
1726 delete arg1;
1727 }
1728 return resultobj;
1729 fail:
1730 {
1731 if (temp1)
1732 delete arg1;
1733 }
1734 return NULL;
1735 }
1736
1737
1738 static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1739 PyObject *resultobj;
1740 wxString *arg1 = 0 ;
1741 wxString result;
1742 bool temp1 = False ;
1743 PyObject * obj0 = 0 ;
1744 char *kwnames[] = {
1745 (char *) "name", NULL
1746 };
1747
1748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
1749 {
1750 arg1 = wxString_in_helper(obj0);
1751 if (arg1 == NULL) SWIG_fail;
1752 temp1 = True;
1753 }
1754 {
1755 PyThreadState* __tstate = wxPyBeginAllowThreads();
1756 result = wxSystemOptions::GetOption((wxString const &)*arg1);
1757
1758 wxPyEndAllowThreads(__tstate);
1759 if (PyErr_Occurred()) SWIG_fail;
1760 }
1761 {
1762 #if wxUSE_UNICODE
1763 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1764 #else
1765 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1766 #endif
1767 }
1768 {
1769 if (temp1)
1770 delete arg1;
1771 }
1772 return resultobj;
1773 fail:
1774 {
1775 if (temp1)
1776 delete arg1;
1777 }
1778 return NULL;
1779 }
1780
1781
1782 static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1783 PyObject *resultobj;
1784 wxString *arg1 = 0 ;
1785 int result;
1786 bool temp1 = False ;
1787 PyObject * obj0 = 0 ;
1788 char *kwnames[] = {
1789 (char *) "name", NULL
1790 };
1791
1792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
1793 {
1794 arg1 = wxString_in_helper(obj0);
1795 if (arg1 == NULL) SWIG_fail;
1796 temp1 = True;
1797 }
1798 {
1799 PyThreadState* __tstate = wxPyBeginAllowThreads();
1800 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
1801
1802 wxPyEndAllowThreads(__tstate);
1803 if (PyErr_Occurred()) SWIG_fail;
1804 }
1805 resultobj = SWIG_FromInt((int)result);
1806 {
1807 if (temp1)
1808 delete arg1;
1809 }
1810 return resultobj;
1811 fail:
1812 {
1813 if (temp1)
1814 delete arg1;
1815 }
1816 return NULL;
1817 }
1818
1819
1820 static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1821 PyObject *resultobj;
1822 wxString *arg1 = 0 ;
1823 bool result;
1824 bool temp1 = False ;
1825 PyObject * obj0 = 0 ;
1826 char *kwnames[] = {
1827 (char *) "name", NULL
1828 };
1829
1830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
1831 {
1832 arg1 = wxString_in_helper(obj0);
1833 if (arg1 == NULL) SWIG_fail;
1834 temp1 = True;
1835 }
1836 {
1837 PyThreadState* __tstate = wxPyBeginAllowThreads();
1838 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
1839
1840 wxPyEndAllowThreads(__tstate);
1841 if (PyErr_Occurred()) SWIG_fail;
1842 }
1843 {
1844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1845 }
1846 {
1847 if (temp1)
1848 delete arg1;
1849 }
1850 return resultobj;
1851 fail:
1852 {
1853 if (temp1)
1854 delete arg1;
1855 }
1856 return NULL;
1857 }
1858
1859
1860 static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) {
1861 PyObject *obj;
1862 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1863 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
1864 Py_INCREF(obj);
1865 return Py_BuildValue((char *)"");
1866 }
1867 static int _wrap_FileSelectorPromptStr_set(PyObject *_val) {
1868 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
1869 return 1;
1870 }
1871
1872
1873 static PyObject *_wrap_FileSelectorPromptStr_get() {
1874 PyObject *pyobj;
1875
1876 {
1877 #if wxUSE_UNICODE
1878 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
1879 #else
1880 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
1881 #endif
1882 }
1883 return pyobj;
1884 }
1885
1886
1887 static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) {
1888 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
1889 return 1;
1890 }
1891
1892
1893 static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() {
1894 PyObject *pyobj;
1895
1896 {
1897 #if wxUSE_UNICODE
1898 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
1899 #else
1900 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
1901 #endif
1902 }
1903 return pyobj;
1904 }
1905
1906
1907 static int _wrap_DirSelectorPromptStr_set(PyObject *_val) {
1908 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
1909 return 1;
1910 }
1911
1912
1913 static PyObject *_wrap_DirSelectorPromptStr_get() {
1914 PyObject *pyobj;
1915
1916 {
1917 #if wxUSE_UNICODE
1918 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
1919 #else
1920 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
1921 #endif
1922 }
1923 return pyobj;
1924 }
1925
1926
1927 static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) {
1928 PyObject *resultobj;
1929 long result;
1930 char *kwnames[] = {
1931 NULL
1932 };
1933
1934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
1935 {
1936 PyThreadState* __tstate = wxPyBeginAllowThreads();
1937 result = (long)wxNewId();
1938
1939 wxPyEndAllowThreads(__tstate);
1940 if (PyErr_Occurred()) SWIG_fail;
1941 }
1942 resultobj = SWIG_FromLong((long)result);
1943 return resultobj;
1944 fail:
1945 return NULL;
1946 }
1947
1948
1949 static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) {
1950 PyObject *resultobj;
1951 long arg1 ;
1952 PyObject * obj0 = 0 ;
1953 char *kwnames[] = {
1954 (char *) "id", NULL
1955 };
1956
1957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
1958 arg1 = (long) SWIG_AsLong(obj0);
1959 if (PyErr_Occurred()) SWIG_fail;
1960 {
1961 PyThreadState* __tstate = wxPyBeginAllowThreads();
1962 wxRegisterId(arg1);
1963
1964 wxPyEndAllowThreads(__tstate);
1965 if (PyErr_Occurred()) SWIG_fail;
1966 }
1967 Py_INCREF(Py_None); resultobj = Py_None;
1968 return resultobj;
1969 fail:
1970 return NULL;
1971 }
1972
1973
1974 static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) {
1975 PyObject *resultobj;
1976 long result;
1977 char *kwnames[] = {
1978 NULL
1979 };
1980
1981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
1982 {
1983 PyThreadState* __tstate = wxPyBeginAllowThreads();
1984 result = (long)wxGetCurrentId();
1985
1986 wxPyEndAllowThreads(__tstate);
1987 if (PyErr_Occurred()) SWIG_fail;
1988 }
1989 resultobj = SWIG_FromLong((long)result);
1990 return resultobj;
1991 fail:
1992 return NULL;
1993 }
1994
1995
1996 static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) {
1997 PyObject *resultobj;
1998 char *kwnames[] = {
1999 NULL
2000 };
2001
2002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
2003 {
2004 PyThreadState* __tstate = wxPyBeginAllowThreads();
2005 wxBell();
2006
2007 wxPyEndAllowThreads(__tstate);
2008 if (PyErr_Occurred()) SWIG_fail;
2009 }
2010 Py_INCREF(Py_None); resultobj = Py_None;
2011 return resultobj;
2012 fail:
2013 return NULL;
2014 }
2015
2016
2017 static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2018 PyObject *resultobj;
2019 char *kwnames[] = {
2020 NULL
2021 };
2022
2023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
2024 {
2025 PyThreadState* __tstate = wxPyBeginAllowThreads();
2026 wxEndBusyCursor();
2027
2028 wxPyEndAllowThreads(__tstate);
2029 if (PyErr_Occurred()) SWIG_fail;
2030 }
2031 Py_INCREF(Py_None); resultobj = Py_None;
2032 return resultobj;
2033 fail:
2034 return NULL;
2035 }
2036
2037
2038 static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) {
2039 PyObject *resultobj;
2040 bool arg1 = (bool) True ;
2041 long result;
2042 PyObject * obj0 = 0 ;
2043 char *kwnames[] = {
2044 (char *) "resetTimer", NULL
2045 };
2046
2047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
2048 if (obj0) {
2049 arg1 = (bool) SWIG_AsBool(obj0);
2050 if (PyErr_Occurred()) SWIG_fail;
2051 }
2052 {
2053 PyThreadState* __tstate = wxPyBeginAllowThreads();
2054 result = (long)wxGetElapsedTime(arg1);
2055
2056 wxPyEndAllowThreads(__tstate);
2057 if (PyErr_Occurred()) SWIG_fail;
2058 }
2059 resultobj = SWIG_FromLong((long)result);
2060 return resultobj;
2061 fail:
2062 return NULL;
2063 }
2064
2065
2066 static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2067 PyObject *resultobj;
2068 int *arg1 = (int *) 0 ;
2069 int *arg2 = (int *) 0 ;
2070 int temp1 ;
2071 int temp2 ;
2072 char *kwnames[] = {
2073 NULL
2074 };
2075
2076 arg1 = &temp1;
2077 arg2 = &temp2;
2078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
2079 {
2080 PyThreadState* __tstate = wxPyBeginAllowThreads();
2081 wxGetMousePosition(arg1,arg2);
2082
2083 wxPyEndAllowThreads(__tstate);
2084 if (PyErr_Occurred()) SWIG_fail;
2085 }
2086 Py_INCREF(Py_None); resultobj = Py_None;
2087 {
2088 PyObject *o = PyInt_FromLong((long) (*arg1));
2089 resultobj = t_output_helper(resultobj,o);
2090 }
2091 {
2092 PyObject *o = PyInt_FromLong((long) (*arg2));
2093 resultobj = t_output_helper(resultobj,o);
2094 }
2095 return resultobj;
2096 fail:
2097 return NULL;
2098 }
2099
2100
2101 static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) {
2102 PyObject *resultobj;
2103 bool result;
2104 char *kwnames[] = {
2105 NULL
2106 };
2107
2108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
2109 {
2110 PyThreadState* __tstate = wxPyBeginAllowThreads();
2111 result = (bool)wxIsBusy();
2112
2113 wxPyEndAllowThreads(__tstate);
2114 if (PyErr_Occurred()) SWIG_fail;
2115 }
2116 {
2117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2118 }
2119 return resultobj;
2120 fail:
2121 return NULL;
2122 }
2123
2124
2125 static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
2126 PyObject *resultobj;
2127 wxString result;
2128 char *kwnames[] = {
2129 NULL
2130 };
2131
2132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
2133 {
2134 PyThreadState* __tstate = wxPyBeginAllowThreads();
2135 result = wxNow();
2136
2137 wxPyEndAllowThreads(__tstate);
2138 if (PyErr_Occurred()) SWIG_fail;
2139 }
2140 {
2141 #if wxUSE_UNICODE
2142 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2143 #else
2144 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2145 #endif
2146 }
2147 return resultobj;
2148 fail:
2149 return NULL;
2150 }
2151
2152
2153 static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) {
2154 PyObject *resultobj;
2155 wxString const &arg1_defvalue = wxPyEmptyString ;
2156 wxString *arg1 = (wxString *) &arg1_defvalue ;
2157 bool result;
2158 bool temp1 = False ;
2159 PyObject * obj0 = 0 ;
2160 char *kwnames[] = {
2161 (char *) "command", NULL
2162 };
2163
2164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
2165 if (obj0) {
2166 {
2167 arg1 = wxString_in_helper(obj0);
2168 if (arg1 == NULL) SWIG_fail;
2169 temp1 = True;
2170 }
2171 }
2172 {
2173 PyThreadState* __tstate = wxPyBeginAllowThreads();
2174 result = (bool)wxShell((wxString const &)*arg1);
2175
2176 wxPyEndAllowThreads(__tstate);
2177 if (PyErr_Occurred()) SWIG_fail;
2178 }
2179 {
2180 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2181 }
2182 {
2183 if (temp1)
2184 delete arg1;
2185 }
2186 return resultobj;
2187 fail:
2188 {
2189 if (temp1)
2190 delete arg1;
2191 }
2192 return NULL;
2193 }
2194
2195
2196 static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) {
2197 PyObject *resultobj;
2198 char *kwnames[] = {
2199 NULL
2200 };
2201
2202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
2203 {
2204 PyThreadState* __tstate = wxPyBeginAllowThreads();
2205 wxStartTimer();
2206
2207 wxPyEndAllowThreads(__tstate);
2208 if (PyErr_Occurred()) SWIG_fail;
2209 }
2210 Py_INCREF(Py_None); resultobj = Py_None;
2211 return resultobj;
2212 fail:
2213 return NULL;
2214 }
2215
2216
2217 static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
2218 PyObject *resultobj;
2219 int *arg1 = (int *) 0 ;
2220 int *arg2 = (int *) 0 ;
2221 int result;
2222 int temp1 ;
2223 int temp2 ;
2224 char *kwnames[] = {
2225 NULL
2226 };
2227
2228 arg1 = &temp1;
2229 arg2 = &temp2;
2230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
2231 {
2232 PyThreadState* __tstate = wxPyBeginAllowThreads();
2233 result = (int)wxGetOsVersion(arg1,arg2);
2234
2235 wxPyEndAllowThreads(__tstate);
2236 if (PyErr_Occurred()) SWIG_fail;
2237 }
2238 resultobj = SWIG_FromInt((int)result);
2239 {
2240 PyObject *o = PyInt_FromLong((long) (*arg1));
2241 resultobj = t_output_helper(resultobj,o);
2242 }
2243 {
2244 PyObject *o = PyInt_FromLong((long) (*arg2));
2245 resultobj = t_output_helper(resultobj,o);
2246 }
2247 return resultobj;
2248 fail:
2249 return NULL;
2250 }
2251
2252
2253 static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
2254 PyObject *resultobj;
2255 wxString result;
2256 char *kwnames[] = {
2257 NULL
2258 };
2259
2260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
2261 {
2262 PyThreadState* __tstate = wxPyBeginAllowThreads();
2263 result = wxGetOsDescription();
2264
2265 wxPyEndAllowThreads(__tstate);
2266 if (PyErr_Occurred()) SWIG_fail;
2267 }
2268 {
2269 #if wxUSE_UNICODE
2270 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2271 #else
2272 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2273 #endif
2274 }
2275 return resultobj;
2276 fail:
2277 return NULL;
2278 }
2279
2280
2281 static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) {
2282 PyObject *resultobj;
2283 long result;
2284 char *kwnames[] = {
2285 NULL
2286 };
2287
2288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
2289 {
2290 PyThreadState* __tstate = wxPyBeginAllowThreads();
2291 result = (long)wxGetFreeMemory();
2292
2293 wxPyEndAllowThreads(__tstate);
2294 if (PyErr_Occurred()) SWIG_fail;
2295 }
2296 resultobj = SWIG_FromLong((long)result);
2297 return resultobj;
2298 fail:
2299 return NULL;
2300 }
2301
2302
2303 static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) {
2304 PyObject *resultobj;
2305 int arg1 ;
2306 bool result;
2307 PyObject * obj0 = 0 ;
2308 char *kwnames[] = {
2309 (char *) "wFlags", NULL
2310 };
2311
2312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
2313 arg1 = (wxShutdownFlags) SWIG_AsInt(obj0);
2314 if (PyErr_Occurred()) SWIG_fail;
2315 {
2316 PyThreadState* __tstate = wxPyBeginAllowThreads();
2317 result = (bool)wxShutdown((wxShutdownFlags )arg1);
2318
2319 wxPyEndAllowThreads(__tstate);
2320 if (PyErr_Occurred()) SWIG_fail;
2321 }
2322 {
2323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2324 }
2325 return resultobj;
2326 fail:
2327 return NULL;
2328 }
2329
2330
2331 static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2332 PyObject *resultobj;
2333 int arg1 ;
2334 PyObject * obj0 = 0 ;
2335 char *kwnames[] = {
2336 (char *) "secs", NULL
2337 };
2338
2339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
2340 arg1 = (int) SWIG_AsInt(obj0);
2341 if (PyErr_Occurred()) SWIG_fail;
2342 {
2343 PyThreadState* __tstate = wxPyBeginAllowThreads();
2344 wxSleep(arg1);
2345
2346 wxPyEndAllowThreads(__tstate);
2347 if (PyErr_Occurred()) SWIG_fail;
2348 }
2349 Py_INCREF(Py_None); resultobj = Py_None;
2350 return resultobj;
2351 fail:
2352 return NULL;
2353 }
2354
2355
2356 static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2357 PyObject *resultobj;
2358 unsigned long arg1 ;
2359 PyObject * obj0 = 0 ;
2360 char *kwnames[] = {
2361 (char *) "milliseconds", NULL
2362 };
2363
2364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail;
2365 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
2366 if (PyErr_Occurred()) SWIG_fail;
2367 {
2368 PyThreadState* __tstate = wxPyBeginAllowThreads();
2369 wxUsleep(arg1);
2370
2371 wxPyEndAllowThreads(__tstate);
2372 if (PyErr_Occurred()) SWIG_fail;
2373 }
2374 Py_INCREF(Py_None); resultobj = Py_None;
2375 return resultobj;
2376 fail:
2377 return NULL;
2378 }
2379
2380
2381 static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
2382 PyObject *resultobj;
2383 bool arg1 ;
2384 PyObject * obj0 = 0 ;
2385 char *kwnames[] = {
2386 (char *) "enable", NULL
2387 };
2388
2389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
2390 arg1 = (bool) SWIG_AsBool(obj0);
2391 if (PyErr_Occurred()) SWIG_fail;
2392 {
2393 PyThreadState* __tstate = wxPyBeginAllowThreads();
2394 wxEnableTopLevelWindows(arg1);
2395
2396 wxPyEndAllowThreads(__tstate);
2397 if (PyErr_Occurred()) SWIG_fail;
2398 }
2399 Py_INCREF(Py_None); resultobj = Py_None;
2400 return resultobj;
2401 fail:
2402 return NULL;
2403 }
2404
2405
2406 static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) {
2407 PyObject *resultobj;
2408 wxString *arg1 = 0 ;
2409 wxString result;
2410 bool temp1 = False ;
2411 PyObject * obj0 = 0 ;
2412 char *kwnames[] = {
2413 (char *) "in", NULL
2414 };
2415
2416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2417 {
2418 arg1 = wxString_in_helper(obj0);
2419 if (arg1 == NULL) SWIG_fail;
2420 temp1 = True;
2421 }
2422 {
2423 PyThreadState* __tstate = wxPyBeginAllowThreads();
2424 result = wxStripMenuCodes((wxString const &)*arg1);
2425
2426 wxPyEndAllowThreads(__tstate);
2427 if (PyErr_Occurred()) SWIG_fail;
2428 }
2429 {
2430 #if wxUSE_UNICODE
2431 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2432 #else
2433 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2434 #endif
2435 }
2436 {
2437 if (temp1)
2438 delete arg1;
2439 }
2440 return resultobj;
2441 fail:
2442 {
2443 if (temp1)
2444 delete arg1;
2445 }
2446 return NULL;
2447 }
2448
2449
2450 static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) {
2451 PyObject *resultobj;
2452 wxString result;
2453 char *kwnames[] = {
2454 NULL
2455 };
2456
2457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
2458 {
2459 PyThreadState* __tstate = wxPyBeginAllowThreads();
2460 result = wxGetEmailAddress();
2461
2462 wxPyEndAllowThreads(__tstate);
2463 if (PyErr_Occurred()) SWIG_fail;
2464 }
2465 {
2466 #if wxUSE_UNICODE
2467 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2468 #else
2469 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2470 #endif
2471 }
2472 return resultobj;
2473 fail:
2474 return NULL;
2475 }
2476
2477
2478 static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2479 PyObject *resultobj;
2480 wxString result;
2481 char *kwnames[] = {
2482 NULL
2483 };
2484
2485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
2486 {
2487 PyThreadState* __tstate = wxPyBeginAllowThreads();
2488 result = wxGetHostName();
2489
2490 wxPyEndAllowThreads(__tstate);
2491 if (PyErr_Occurred()) SWIG_fail;
2492 }
2493 {
2494 #if wxUSE_UNICODE
2495 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2496 #else
2497 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2498 #endif
2499 }
2500 return resultobj;
2501 fail:
2502 return NULL;
2503 }
2504
2505
2506 static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2507 PyObject *resultobj;
2508 wxString result;
2509 char *kwnames[] = {
2510 NULL
2511 };
2512
2513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
2514 {
2515 PyThreadState* __tstate = wxPyBeginAllowThreads();
2516 result = wxGetFullHostName();
2517
2518 wxPyEndAllowThreads(__tstate);
2519 if (PyErr_Occurred()) SWIG_fail;
2520 }
2521 {
2522 #if wxUSE_UNICODE
2523 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2524 #else
2525 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2526 #endif
2527 }
2528 return resultobj;
2529 fail:
2530 return NULL;
2531 }
2532
2533
2534 static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) {
2535 PyObject *resultobj;
2536 wxString result;
2537 char *kwnames[] = {
2538 NULL
2539 };
2540
2541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
2542 {
2543 PyThreadState* __tstate = wxPyBeginAllowThreads();
2544 result = wxGetUserId();
2545
2546 wxPyEndAllowThreads(__tstate);
2547 if (PyErr_Occurred()) SWIG_fail;
2548 }
2549 {
2550 #if wxUSE_UNICODE
2551 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2552 #else
2553 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2554 #endif
2555 }
2556 return resultobj;
2557 fail:
2558 return NULL;
2559 }
2560
2561
2562 static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) {
2563 PyObject *resultobj;
2564 wxString result;
2565 char *kwnames[] = {
2566 NULL
2567 };
2568
2569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
2570 {
2571 PyThreadState* __tstate = wxPyBeginAllowThreads();
2572 result = wxGetUserName();
2573
2574 wxPyEndAllowThreads(__tstate);
2575 if (PyErr_Occurred()) SWIG_fail;
2576 }
2577 {
2578 #if wxUSE_UNICODE
2579 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2580 #else
2581 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2582 #endif
2583 }
2584 return resultobj;
2585 fail:
2586 return NULL;
2587 }
2588
2589
2590 static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) {
2591 PyObject *resultobj;
2592 wxString result;
2593 char *kwnames[] = {
2594 NULL
2595 };
2596
2597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
2598 {
2599 PyThreadState* __tstate = wxPyBeginAllowThreads();
2600 result = wxGetHomeDir();
2601
2602 wxPyEndAllowThreads(__tstate);
2603 if (PyErr_Occurred()) SWIG_fail;
2604 }
2605 {
2606 #if wxUSE_UNICODE
2607 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2608 #else
2609 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2610 #endif
2611 }
2612 return resultobj;
2613 fail:
2614 return NULL;
2615 }
2616
2617
2618 static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) {
2619 PyObject *resultobj;
2620 wxString const &arg1_defvalue = wxPyEmptyString ;
2621 wxString *arg1 = (wxString *) &arg1_defvalue ;
2622 wxString result;
2623 bool temp1 = False ;
2624 PyObject * obj0 = 0 ;
2625 char *kwnames[] = {
2626 (char *) "user", NULL
2627 };
2628
2629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
2630 if (obj0) {
2631 {
2632 arg1 = wxString_in_helper(obj0);
2633 if (arg1 == NULL) SWIG_fail;
2634 temp1 = True;
2635 }
2636 }
2637 {
2638 PyThreadState* __tstate = wxPyBeginAllowThreads();
2639 result = wxGetUserHome((wxString const &)*arg1);
2640
2641 wxPyEndAllowThreads(__tstate);
2642 if (PyErr_Occurred()) SWIG_fail;
2643 }
2644 {
2645 #if wxUSE_UNICODE
2646 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2647 #else
2648 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2649 #endif
2650 }
2651 {
2652 if (temp1)
2653 delete arg1;
2654 }
2655 return resultobj;
2656 fail:
2657 {
2658 if (temp1)
2659 delete arg1;
2660 }
2661 return NULL;
2662 }
2663
2664
2665 static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) {
2666 PyObject *resultobj;
2667 unsigned long result;
2668 char *kwnames[] = {
2669 NULL
2670 };
2671
2672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
2673 {
2674 PyThreadState* __tstate = wxPyBeginAllowThreads();
2675 result = (unsigned long)wxGetProcessId();
2676
2677 wxPyEndAllowThreads(__tstate);
2678 if (PyErr_Occurred()) SWIG_fail;
2679 }
2680 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
2681 return resultobj;
2682 fail:
2683 return NULL;
2684 }
2685
2686
2687 static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) {
2688 PyObject *resultobj;
2689 char *kwnames[] = {
2690 NULL
2691 };
2692
2693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
2694 {
2695 PyThreadState* __tstate = wxPyBeginAllowThreads();
2696 wxTrap();
2697
2698 wxPyEndAllowThreads(__tstate);
2699 if (PyErr_Occurred()) SWIG_fail;
2700 }
2701 Py_INCREF(Py_None); resultobj = Py_None;
2702 return resultobj;
2703 fail:
2704 return NULL;
2705 }
2706
2707
2708 static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2709 PyObject *resultobj;
2710 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
2711 wxString *arg1 = (wxString *) &arg1_defvalue ;
2712 wxString const &arg2_defvalue = wxPyEmptyString ;
2713 wxString *arg2 = (wxString *) &arg2_defvalue ;
2714 wxString const &arg3_defvalue = wxPyEmptyString ;
2715 wxString *arg3 = (wxString *) &arg3_defvalue ;
2716 wxString const &arg4_defvalue = wxPyEmptyString ;
2717 wxString *arg4 = (wxString *) &arg4_defvalue ;
2718 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
2719 wxString *arg5 = (wxString *) &arg5_defvalue ;
2720 int arg6 = (int) 0 ;
2721 wxWindow *arg7 = (wxWindow *) NULL ;
2722 int arg8 = (int) -1 ;
2723 int arg9 = (int) -1 ;
2724 wxString result;
2725 bool temp1 = False ;
2726 bool temp2 = False ;
2727 bool temp3 = False ;
2728 bool temp4 = False ;
2729 bool temp5 = False ;
2730 PyObject * obj0 = 0 ;
2731 PyObject * obj1 = 0 ;
2732 PyObject * obj2 = 0 ;
2733 PyObject * obj3 = 0 ;
2734 PyObject * obj4 = 0 ;
2735 PyObject * obj5 = 0 ;
2736 PyObject * obj6 = 0 ;
2737 PyObject * obj7 = 0 ;
2738 PyObject * obj8 = 0 ;
2739 char *kwnames[] = {
2740 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
2741 };
2742
2743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2744 if (obj0) {
2745 {
2746 arg1 = wxString_in_helper(obj0);
2747 if (arg1 == NULL) SWIG_fail;
2748 temp1 = True;
2749 }
2750 }
2751 if (obj1) {
2752 {
2753 arg2 = wxString_in_helper(obj1);
2754 if (arg2 == NULL) SWIG_fail;
2755 temp2 = True;
2756 }
2757 }
2758 if (obj2) {
2759 {
2760 arg3 = wxString_in_helper(obj2);
2761 if (arg3 == NULL) SWIG_fail;
2762 temp3 = True;
2763 }
2764 }
2765 if (obj3) {
2766 {
2767 arg4 = wxString_in_helper(obj3);
2768 if (arg4 == NULL) SWIG_fail;
2769 temp4 = True;
2770 }
2771 }
2772 if (obj4) {
2773 {
2774 arg5 = wxString_in_helper(obj4);
2775 if (arg5 == NULL) SWIG_fail;
2776 temp5 = True;
2777 }
2778 }
2779 if (obj5) {
2780 arg6 = (int) SWIG_AsInt(obj5);
2781 if (PyErr_Occurred()) SWIG_fail;
2782 }
2783 if (obj6) {
2784 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
2785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2786 }
2787 if (obj7) {
2788 arg8 = (int) SWIG_AsInt(obj7);
2789 if (PyErr_Occurred()) SWIG_fail;
2790 }
2791 if (obj8) {
2792 arg9 = (int) SWIG_AsInt(obj8);
2793 if (PyErr_Occurred()) SWIG_fail;
2794 }
2795 {
2796 PyThreadState* __tstate = wxPyBeginAllowThreads();
2797 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
2798
2799 wxPyEndAllowThreads(__tstate);
2800 if (PyErr_Occurred()) SWIG_fail;
2801 }
2802 {
2803 #if wxUSE_UNICODE
2804 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2805 #else
2806 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2807 #endif
2808 }
2809 {
2810 if (temp1)
2811 delete arg1;
2812 }
2813 {
2814 if (temp2)
2815 delete arg2;
2816 }
2817 {
2818 if (temp3)
2819 delete arg3;
2820 }
2821 {
2822 if (temp4)
2823 delete arg4;
2824 }
2825 {
2826 if (temp5)
2827 delete arg5;
2828 }
2829 return resultobj;
2830 fail:
2831 {
2832 if (temp1)
2833 delete arg1;
2834 }
2835 {
2836 if (temp2)
2837 delete arg2;
2838 }
2839 {
2840 if (temp3)
2841 delete arg3;
2842 }
2843 {
2844 if (temp4)
2845 delete arg4;
2846 }
2847 {
2848 if (temp5)
2849 delete arg5;
2850 }
2851 return NULL;
2852 }
2853
2854
2855 static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2856 PyObject *resultobj;
2857 wxString *arg1 = 0 ;
2858 wxString *arg2 = 0 ;
2859 wxString const &arg3_defvalue = wxPyEmptyString ;
2860 wxString *arg3 = (wxString *) &arg3_defvalue ;
2861 wxWindow *arg4 = (wxWindow *) NULL ;
2862 wxString result;
2863 bool temp1 = False ;
2864 bool temp2 = False ;
2865 bool temp3 = False ;
2866 PyObject * obj0 = 0 ;
2867 PyObject * obj1 = 0 ;
2868 PyObject * obj2 = 0 ;
2869 PyObject * obj3 = 0 ;
2870 char *kwnames[] = {
2871 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
2872 };
2873
2874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2875 {
2876 arg1 = wxString_in_helper(obj0);
2877 if (arg1 == NULL) SWIG_fail;
2878 temp1 = True;
2879 }
2880 {
2881 arg2 = wxString_in_helper(obj1);
2882 if (arg2 == NULL) SWIG_fail;
2883 temp2 = True;
2884 }
2885 if (obj2) {
2886 {
2887 arg3 = wxString_in_helper(obj2);
2888 if (arg3 == NULL) SWIG_fail;
2889 temp3 = True;
2890 }
2891 }
2892 if (obj3) {
2893 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
2894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2895 }
2896 {
2897 PyThreadState* __tstate = wxPyBeginAllowThreads();
2898 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
2899
2900 wxPyEndAllowThreads(__tstate);
2901 if (PyErr_Occurred()) SWIG_fail;
2902 }
2903 {
2904 #if wxUSE_UNICODE
2905 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2906 #else
2907 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2908 #endif
2909 }
2910 {
2911 if (temp1)
2912 delete arg1;
2913 }
2914 {
2915 if (temp2)
2916 delete arg2;
2917 }
2918 {
2919 if (temp3)
2920 delete arg3;
2921 }
2922 return resultobj;
2923 fail:
2924 {
2925 if (temp1)
2926 delete arg1;
2927 }
2928 {
2929 if (temp2)
2930 delete arg2;
2931 }
2932 {
2933 if (temp3)
2934 delete arg3;
2935 }
2936 return NULL;
2937 }
2938
2939
2940 static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2941 PyObject *resultobj;
2942 wxString *arg1 = 0 ;
2943 wxString *arg2 = 0 ;
2944 wxString const &arg3_defvalue = wxPyEmptyString ;
2945 wxString *arg3 = (wxString *) &arg3_defvalue ;
2946 wxWindow *arg4 = (wxWindow *) NULL ;
2947 wxString result;
2948 bool temp1 = False ;
2949 bool temp2 = False ;
2950 bool temp3 = False ;
2951 PyObject * obj0 = 0 ;
2952 PyObject * obj1 = 0 ;
2953 PyObject * obj2 = 0 ;
2954 PyObject * obj3 = 0 ;
2955 char *kwnames[] = {
2956 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
2957 };
2958
2959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2960 {
2961 arg1 = wxString_in_helper(obj0);
2962 if (arg1 == NULL) SWIG_fail;
2963 temp1 = True;
2964 }
2965 {
2966 arg2 = wxString_in_helper(obj1);
2967 if (arg2 == NULL) SWIG_fail;
2968 temp2 = True;
2969 }
2970 if (obj2) {
2971 {
2972 arg3 = wxString_in_helper(obj2);
2973 if (arg3 == NULL) SWIG_fail;
2974 temp3 = True;
2975 }
2976 }
2977 if (obj3) {
2978 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
2979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2980 }
2981 {
2982 PyThreadState* __tstate = wxPyBeginAllowThreads();
2983 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
2984
2985 wxPyEndAllowThreads(__tstate);
2986 if (PyErr_Occurred()) SWIG_fail;
2987 }
2988 {
2989 #if wxUSE_UNICODE
2990 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2991 #else
2992 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2993 #endif
2994 }
2995 {
2996 if (temp1)
2997 delete arg1;
2998 }
2999 {
3000 if (temp2)
3001 delete arg2;
3002 }
3003 {
3004 if (temp3)
3005 delete arg3;
3006 }
3007 return resultobj;
3008 fail:
3009 {
3010 if (temp1)
3011 delete arg1;
3012 }
3013 {
3014 if (temp2)
3015 delete arg2;
3016 }
3017 {
3018 if (temp3)
3019 delete arg3;
3020 }
3021 return NULL;
3022 }
3023
3024
3025 static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3026 PyObject *resultobj;
3027 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
3028 wxString *arg1 = (wxString *) &arg1_defvalue ;
3029 wxString const &arg2_defvalue = wxPyEmptyString ;
3030 wxString *arg2 = (wxString *) &arg2_defvalue ;
3031 long arg3 = (long) wxDD_DEFAULT_STYLE ;
3032 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3033 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3034 wxWindow *arg5 = (wxWindow *) NULL ;
3035 wxString result;
3036 bool temp1 = False ;
3037 bool temp2 = False ;
3038 wxPoint temp4 ;
3039 PyObject * obj0 = 0 ;
3040 PyObject * obj1 = 0 ;
3041 PyObject * obj2 = 0 ;
3042 PyObject * obj3 = 0 ;
3043 PyObject * obj4 = 0 ;
3044 char *kwnames[] = {
3045 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
3046 };
3047
3048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
3049 if (obj0) {
3050 {
3051 arg1 = wxString_in_helper(obj0);
3052 if (arg1 == NULL) SWIG_fail;
3053 temp1 = True;
3054 }
3055 }
3056 if (obj1) {
3057 {
3058 arg2 = wxString_in_helper(obj1);
3059 if (arg2 == NULL) SWIG_fail;
3060 temp2 = True;
3061 }
3062 }
3063 if (obj2) {
3064 arg3 = (long) SWIG_AsLong(obj2);
3065 if (PyErr_Occurred()) SWIG_fail;
3066 }
3067 if (obj3) {
3068 {
3069 arg4 = &temp4;
3070 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3071 }
3072 }
3073 if (obj4) {
3074 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3076 }
3077 {
3078 PyThreadState* __tstate = wxPyBeginAllowThreads();
3079 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
3080
3081 wxPyEndAllowThreads(__tstate);
3082 if (PyErr_Occurred()) SWIG_fail;
3083 }
3084 {
3085 #if wxUSE_UNICODE
3086 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3087 #else
3088 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3089 #endif
3090 }
3091 {
3092 if (temp1)
3093 delete arg1;
3094 }
3095 {
3096 if (temp2)
3097 delete arg2;
3098 }
3099 return resultobj;
3100 fail:
3101 {
3102 if (temp1)
3103 delete arg1;
3104 }
3105 {
3106 if (temp2)
3107 delete arg2;
3108 }
3109 return NULL;
3110 }
3111
3112
3113 static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3114 PyObject *resultobj;
3115 wxString *arg1 = 0 ;
3116 wxString const &arg2_defvalue = wxPyEmptyString ;
3117 wxString *arg2 = (wxString *) &arg2_defvalue ;
3118 wxString const &arg3_defvalue = wxPyEmptyString ;
3119 wxString *arg3 = (wxString *) &arg3_defvalue ;
3120 wxWindow *arg4 = (wxWindow *) NULL ;
3121 int arg5 = (int) -1 ;
3122 int arg6 = (int) -1 ;
3123 bool arg7 = (bool) True ;
3124 wxString result;
3125 bool temp1 = False ;
3126 bool temp2 = False ;
3127 bool temp3 = False ;
3128 PyObject * obj0 = 0 ;
3129 PyObject * obj1 = 0 ;
3130 PyObject * obj2 = 0 ;
3131 PyObject * obj3 = 0 ;
3132 PyObject * obj4 = 0 ;
3133 PyObject * obj5 = 0 ;
3134 PyObject * obj6 = 0 ;
3135 char *kwnames[] = {
3136 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
3137 };
3138
3139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3140 {
3141 arg1 = wxString_in_helper(obj0);
3142 if (arg1 == NULL) SWIG_fail;
3143 temp1 = True;
3144 }
3145 if (obj1) {
3146 {
3147 arg2 = wxString_in_helper(obj1);
3148 if (arg2 == NULL) SWIG_fail;
3149 temp2 = True;
3150 }
3151 }
3152 if (obj2) {
3153 {
3154 arg3 = wxString_in_helper(obj2);
3155 if (arg3 == NULL) SWIG_fail;
3156 temp3 = True;
3157 }
3158 }
3159 if (obj3) {
3160 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3162 }
3163 if (obj4) {
3164 arg5 = (int) SWIG_AsInt(obj4);
3165 if (PyErr_Occurred()) SWIG_fail;
3166 }
3167 if (obj5) {
3168 arg6 = (int) SWIG_AsInt(obj5);
3169 if (PyErr_Occurred()) SWIG_fail;
3170 }
3171 if (obj6) {
3172 arg7 = (bool) SWIG_AsBool(obj6);
3173 if (PyErr_Occurred()) SWIG_fail;
3174 }
3175 {
3176 PyThreadState* __tstate = wxPyBeginAllowThreads();
3177 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
3178
3179 wxPyEndAllowThreads(__tstate);
3180 if (PyErr_Occurred()) SWIG_fail;
3181 }
3182 {
3183 #if wxUSE_UNICODE
3184 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3185 #else
3186 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3187 #endif
3188 }
3189 {
3190 if (temp1)
3191 delete arg1;
3192 }
3193 {
3194 if (temp2)
3195 delete arg2;
3196 }
3197 {
3198 if (temp3)
3199 delete arg3;
3200 }
3201 return resultobj;
3202 fail:
3203 {
3204 if (temp1)
3205 delete arg1;
3206 }
3207 {
3208 if (temp2)
3209 delete arg2;
3210 }
3211 {
3212 if (temp3)
3213 delete arg3;
3214 }
3215 return NULL;
3216 }
3217
3218
3219 static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3220 PyObject *resultobj;
3221 wxString *arg1 = 0 ;
3222 wxString const &arg2_defvalue = wxPyEmptyString ;
3223 wxString *arg2 = (wxString *) &arg2_defvalue ;
3224 wxString const &arg3_defvalue = wxPyEmptyString ;
3225 wxString *arg3 = (wxString *) &arg3_defvalue ;
3226 wxWindow *arg4 = (wxWindow *) NULL ;
3227 wxString result;
3228 bool temp1 = False ;
3229 bool temp2 = False ;
3230 bool temp3 = False ;
3231 PyObject * obj0 = 0 ;
3232 PyObject * obj1 = 0 ;
3233 PyObject * obj2 = 0 ;
3234 PyObject * obj3 = 0 ;
3235 char *kwnames[] = {
3236 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
3237 };
3238
3239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3240 {
3241 arg1 = wxString_in_helper(obj0);
3242 if (arg1 == NULL) SWIG_fail;
3243 temp1 = True;
3244 }
3245 if (obj1) {
3246 {
3247 arg2 = wxString_in_helper(obj1);
3248 if (arg2 == NULL) SWIG_fail;
3249 temp2 = True;
3250 }
3251 }
3252 if (obj2) {
3253 {
3254 arg3 = wxString_in_helper(obj2);
3255 if (arg3 == NULL) SWIG_fail;
3256 temp3 = True;
3257 }
3258 }
3259 if (obj3) {
3260 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3262 }
3263 {
3264 PyThreadState* __tstate = wxPyBeginAllowThreads();
3265 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3266
3267 wxPyEndAllowThreads(__tstate);
3268 if (PyErr_Occurred()) SWIG_fail;
3269 }
3270 {
3271 #if wxUSE_UNICODE
3272 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3273 #else
3274 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3275 #endif
3276 }
3277 {
3278 if (temp1)
3279 delete arg1;
3280 }
3281 {
3282 if (temp2)
3283 delete arg2;
3284 }
3285 {
3286 if (temp3)
3287 delete arg3;
3288 }
3289 return resultobj;
3290 fail:
3291 {
3292 if (temp1)
3293 delete arg1;
3294 }
3295 {
3296 if (temp2)
3297 delete arg2;
3298 }
3299 {
3300 if (temp3)
3301 delete arg3;
3302 }
3303 return NULL;
3304 }
3305
3306
3307 static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
3308 PyObject *resultobj;
3309 wxString *arg1 = 0 ;
3310 wxString *arg2 = 0 ;
3311 int arg3 ;
3312 wxString *arg4 = (wxString *) 0 ;
3313 wxWindow *arg5 = (wxWindow *) NULL ;
3314 int arg6 = (int) -1 ;
3315 int arg7 = (int) -1 ;
3316 bool arg8 = (bool) True ;
3317 int arg9 = (int) 150 ;
3318 int arg10 = (int) 200 ;
3319 wxString result;
3320 bool temp1 = False ;
3321 bool temp2 = False ;
3322 PyObject * obj0 = 0 ;
3323 PyObject * obj1 = 0 ;
3324 PyObject * obj2 = 0 ;
3325 PyObject * obj3 = 0 ;
3326 PyObject * obj4 = 0 ;
3327 PyObject * obj5 = 0 ;
3328 PyObject * obj6 = 0 ;
3329 PyObject * obj7 = 0 ;
3330 PyObject * obj8 = 0 ;
3331 char *kwnames[] = {
3332 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3333 };
3334
3335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3336 {
3337 arg1 = wxString_in_helper(obj0);
3338 if (arg1 == NULL) SWIG_fail;
3339 temp1 = True;
3340 }
3341 {
3342 arg2 = wxString_in_helper(obj1);
3343 if (arg2 == NULL) SWIG_fail;
3344 temp2 = True;
3345 }
3346 {
3347 arg3 = PyList_Size(obj2);
3348 arg4 = wxString_LIST_helper(obj2);
3349 if (arg4 == NULL) SWIG_fail;
3350 }
3351 if (obj3) {
3352 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3354 }
3355 if (obj4) {
3356 arg6 = (int) SWIG_AsInt(obj4);
3357 if (PyErr_Occurred()) SWIG_fail;
3358 }
3359 if (obj5) {
3360 arg7 = (int) SWIG_AsInt(obj5);
3361 if (PyErr_Occurred()) SWIG_fail;
3362 }
3363 if (obj6) {
3364 arg8 = (bool) SWIG_AsBool(obj6);
3365 if (PyErr_Occurred()) SWIG_fail;
3366 }
3367 if (obj7) {
3368 arg9 = (int) SWIG_AsInt(obj7);
3369 if (PyErr_Occurred()) SWIG_fail;
3370 }
3371 if (obj8) {
3372 arg10 = (int) SWIG_AsInt(obj8);
3373 if (PyErr_Occurred()) SWIG_fail;
3374 }
3375 {
3376 PyThreadState* __tstate = wxPyBeginAllowThreads();
3377 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3378
3379 wxPyEndAllowThreads(__tstate);
3380 if (PyErr_Occurred()) SWIG_fail;
3381 }
3382 {
3383 #if wxUSE_UNICODE
3384 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3385 #else
3386 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3387 #endif
3388 }
3389 {
3390 if (temp1)
3391 delete arg1;
3392 }
3393 {
3394 if (temp2)
3395 delete arg2;
3396 }
3397 {
3398 if (arg4) delete [] arg4;
3399 }
3400 return resultobj;
3401 fail:
3402 {
3403 if (temp1)
3404 delete arg1;
3405 }
3406 {
3407 if (temp2)
3408 delete arg2;
3409 }
3410 {
3411 if (arg4) delete [] arg4;
3412 }
3413 return NULL;
3414 }
3415
3416
3417 static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3418 PyObject *resultobj;
3419 wxString *arg1 = 0 ;
3420 wxString *arg2 = 0 ;
3421 int arg3 ;
3422 wxString *arg4 = (wxString *) 0 ;
3423 wxWindow *arg5 = (wxWindow *) NULL ;
3424 int arg6 = (int) -1 ;
3425 int arg7 = (int) -1 ;
3426 bool arg8 = (bool) True ;
3427 int arg9 = (int) 150 ;
3428 int arg10 = (int) 200 ;
3429 int result;
3430 bool temp1 = False ;
3431 bool temp2 = False ;
3432 PyObject * obj0 = 0 ;
3433 PyObject * obj1 = 0 ;
3434 PyObject * obj2 = 0 ;
3435 PyObject * obj3 = 0 ;
3436 PyObject * obj4 = 0 ;
3437 PyObject * obj5 = 0 ;
3438 PyObject * obj6 = 0 ;
3439 PyObject * obj7 = 0 ;
3440 PyObject * obj8 = 0 ;
3441 char *kwnames[] = {
3442 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3443 };
3444
3445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3446 {
3447 arg1 = wxString_in_helper(obj0);
3448 if (arg1 == NULL) SWIG_fail;
3449 temp1 = True;
3450 }
3451 {
3452 arg2 = wxString_in_helper(obj1);
3453 if (arg2 == NULL) SWIG_fail;
3454 temp2 = True;
3455 }
3456 {
3457 arg3 = PyList_Size(obj2);
3458 arg4 = wxString_LIST_helper(obj2);
3459 if (arg4 == NULL) SWIG_fail;
3460 }
3461 if (obj3) {
3462 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3464 }
3465 if (obj4) {
3466 arg6 = (int) SWIG_AsInt(obj4);
3467 if (PyErr_Occurred()) SWIG_fail;
3468 }
3469 if (obj5) {
3470 arg7 = (int) SWIG_AsInt(obj5);
3471 if (PyErr_Occurred()) SWIG_fail;
3472 }
3473 if (obj6) {
3474 arg8 = (bool) SWIG_AsBool(obj6);
3475 if (PyErr_Occurred()) SWIG_fail;
3476 }
3477 if (obj7) {
3478 arg9 = (int) SWIG_AsInt(obj7);
3479 if (PyErr_Occurred()) SWIG_fail;
3480 }
3481 if (obj8) {
3482 arg10 = (int) SWIG_AsInt(obj8);
3483 if (PyErr_Occurred()) SWIG_fail;
3484 }
3485 {
3486 PyThreadState* __tstate = wxPyBeginAllowThreads();
3487 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3488
3489 wxPyEndAllowThreads(__tstate);
3490 if (PyErr_Occurred()) SWIG_fail;
3491 }
3492 resultobj = SWIG_FromInt((int)result);
3493 {
3494 if (temp1)
3495 delete arg1;
3496 }
3497 {
3498 if (temp2)
3499 delete arg2;
3500 }
3501 {
3502 if (arg4) delete [] arg4;
3503 }
3504 return resultobj;
3505 fail:
3506 {
3507 if (temp1)
3508 delete arg1;
3509 }
3510 {
3511 if (temp2)
3512 delete arg2;
3513 }
3514 {
3515 if (arg4) delete [] arg4;
3516 }
3517 return NULL;
3518 }
3519
3520
3521 static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3522 PyObject *resultobj;
3523 wxString *arg1 = 0 ;
3524 wxString const &arg2_defvalue = wxPyEmptyString ;
3525 wxString *arg2 = (wxString *) &arg2_defvalue ;
3526 int arg3 = (int) wxOK|wxCENTRE ;
3527 wxWindow *arg4 = (wxWindow *) NULL ;
3528 int arg5 = (int) -1 ;
3529 int arg6 = (int) -1 ;
3530 int result;
3531 bool temp1 = False ;
3532 bool temp2 = False ;
3533 PyObject * obj0 = 0 ;
3534 PyObject * obj1 = 0 ;
3535 PyObject * obj2 = 0 ;
3536 PyObject * obj3 = 0 ;
3537 PyObject * obj4 = 0 ;
3538 PyObject * obj5 = 0 ;
3539 char *kwnames[] = {
3540 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
3541 };
3542
3543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
3544 {
3545 arg1 = wxString_in_helper(obj0);
3546 if (arg1 == NULL) SWIG_fail;
3547 temp1 = True;
3548 }
3549 if (obj1) {
3550 {
3551 arg2 = wxString_in_helper(obj1);
3552 if (arg2 == NULL) SWIG_fail;
3553 temp2 = True;
3554 }
3555 }
3556 if (obj2) {
3557 arg3 = (int) SWIG_AsInt(obj2);
3558 if (PyErr_Occurred()) SWIG_fail;
3559 }
3560 if (obj3) {
3561 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3563 }
3564 if (obj4) {
3565 arg5 = (int) SWIG_AsInt(obj4);
3566 if (PyErr_Occurred()) SWIG_fail;
3567 }
3568 if (obj5) {
3569 arg6 = (int) SWIG_AsInt(obj5);
3570 if (PyErr_Occurred()) SWIG_fail;
3571 }
3572 {
3573 PyThreadState* __tstate = wxPyBeginAllowThreads();
3574 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
3575
3576 wxPyEndAllowThreads(__tstate);
3577 if (PyErr_Occurred()) SWIG_fail;
3578 }
3579 resultobj = SWIG_FromInt((int)result);
3580 {
3581 if (temp1)
3582 delete arg1;
3583 }
3584 {
3585 if (temp2)
3586 delete arg2;
3587 }
3588 return resultobj;
3589 fail:
3590 {
3591 if (temp1)
3592 delete arg1;
3593 }
3594 {
3595 if (temp2)
3596 delete arg2;
3597 }
3598 return NULL;
3599 }
3600
3601
3602 static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3603 PyObject *resultobj;
3604 wxString *arg1 = 0 ;
3605 wxString *arg2 = 0 ;
3606 wxString *arg3 = 0 ;
3607 long arg4 ;
3608 long arg5 = (long) 0 ;
3609 long arg6 = (long) 100 ;
3610 wxWindow *arg7 = (wxWindow *) NULL ;
3611 wxPoint const &arg8_defvalue = wxDefaultPosition ;
3612 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
3613 long result;
3614 bool temp1 = False ;
3615 bool temp2 = False ;
3616 bool temp3 = False ;
3617 wxPoint temp8 ;
3618 PyObject * obj0 = 0 ;
3619 PyObject * obj1 = 0 ;
3620 PyObject * obj2 = 0 ;
3621 PyObject * obj3 = 0 ;
3622 PyObject * obj4 = 0 ;
3623 PyObject * obj5 = 0 ;
3624 PyObject * obj6 = 0 ;
3625 PyObject * obj7 = 0 ;
3626 char *kwnames[] = {
3627 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
3628 };
3629
3630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3631 {
3632 arg1 = wxString_in_helper(obj0);
3633 if (arg1 == NULL) SWIG_fail;
3634 temp1 = True;
3635 }
3636 {
3637 arg2 = wxString_in_helper(obj1);
3638 if (arg2 == NULL) SWIG_fail;
3639 temp2 = True;
3640 }
3641 {
3642 arg3 = wxString_in_helper(obj2);
3643 if (arg3 == NULL) SWIG_fail;
3644 temp3 = True;
3645 }
3646 arg4 = (long) SWIG_AsLong(obj3);
3647 if (PyErr_Occurred()) SWIG_fail;
3648 if (obj4) {
3649 arg5 = (long) SWIG_AsLong(obj4);
3650 if (PyErr_Occurred()) SWIG_fail;
3651 }
3652 if (obj5) {
3653 arg6 = (long) SWIG_AsLong(obj5);
3654 if (PyErr_Occurred()) SWIG_fail;
3655 }
3656 if (obj6) {
3657 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
3658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3659 }
3660 if (obj7) {
3661 {
3662 arg8 = &temp8;
3663 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
3664 }
3665 }
3666 {
3667 PyThreadState* __tstate = wxPyBeginAllowThreads();
3668 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
3669
3670 wxPyEndAllowThreads(__tstate);
3671 if (PyErr_Occurred()) SWIG_fail;
3672 }
3673 resultobj = SWIG_FromLong((long)result);
3674 {
3675 if (temp1)
3676 delete arg1;
3677 }
3678 {
3679 if (temp2)
3680 delete arg2;
3681 }
3682 {
3683 if (temp3)
3684 delete arg3;
3685 }
3686 return resultobj;
3687 fail:
3688 {
3689 if (temp1)
3690 delete arg1;
3691 }
3692 {
3693 if (temp2)
3694 delete arg2;
3695 }
3696 {
3697 if (temp3)
3698 delete arg3;
3699 }
3700 return NULL;
3701 }
3702
3703
3704 static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
3705 PyObject *resultobj;
3706 bool result;
3707 char *kwnames[] = {
3708 NULL
3709 };
3710
3711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
3712 {
3713 PyThreadState* __tstate = wxPyBeginAllowThreads();
3714 result = (bool)wxColourDisplay();
3715
3716 wxPyEndAllowThreads(__tstate);
3717 if (PyErr_Occurred()) SWIG_fail;
3718 }
3719 {
3720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3721 }
3722 return resultobj;
3723 fail:
3724 return NULL;
3725 }
3726
3727
3728 static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3729 PyObject *resultobj;
3730 int result;
3731 char *kwnames[] = {
3732 NULL
3733 };
3734
3735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
3736 {
3737 PyThreadState* __tstate = wxPyBeginAllowThreads();
3738 result = (int)wxDisplayDepth();
3739
3740 wxPyEndAllowThreads(__tstate);
3741 if (PyErr_Occurred()) SWIG_fail;
3742 }
3743 resultobj = SWIG_FromInt((int)result);
3744 return resultobj;
3745 fail:
3746 return NULL;
3747 }
3748
3749
3750 static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3751 PyObject *resultobj;
3752 int result;
3753 char *kwnames[] = {
3754 NULL
3755 };
3756
3757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
3758 {
3759 PyThreadState* __tstate = wxPyBeginAllowThreads();
3760 result = (int)wxGetDisplayDepth();
3761
3762 wxPyEndAllowThreads(__tstate);
3763 if (PyErr_Occurred()) SWIG_fail;
3764 }
3765 resultobj = SWIG_FromInt((int)result);
3766 return resultobj;
3767 fail:
3768 return NULL;
3769 }
3770
3771
3772 static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3773 PyObject *resultobj;
3774 int *arg1 = (int *) 0 ;
3775 int *arg2 = (int *) 0 ;
3776 int temp1 ;
3777 int temp2 ;
3778 char *kwnames[] = {
3779 NULL
3780 };
3781
3782 arg1 = &temp1;
3783 arg2 = &temp2;
3784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
3785 {
3786 PyThreadState* __tstate = wxPyBeginAllowThreads();
3787 wxDisplaySize(arg1,arg2);
3788
3789 wxPyEndAllowThreads(__tstate);
3790 if (PyErr_Occurred()) SWIG_fail;
3791 }
3792 Py_INCREF(Py_None); resultobj = Py_None;
3793 {
3794 PyObject *o = PyInt_FromLong((long) (*arg1));
3795 resultobj = t_output_helper(resultobj,o);
3796 }
3797 {
3798 PyObject *o = PyInt_FromLong((long) (*arg2));
3799 resultobj = t_output_helper(resultobj,o);
3800 }
3801 return resultobj;
3802 fail:
3803 return NULL;
3804 }
3805
3806
3807 static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3808 PyObject *resultobj;
3809 wxSize result;
3810 char *kwnames[] = {
3811 NULL
3812 };
3813
3814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
3815 {
3816 PyThreadState* __tstate = wxPyBeginAllowThreads();
3817 result = wxGetDisplaySize();
3818
3819 wxPyEndAllowThreads(__tstate);
3820 if (PyErr_Occurred()) SWIG_fail;
3821 }
3822 {
3823 wxSize * resultptr;
3824 resultptr = new wxSize((wxSize &) result);
3825 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3826 }
3827 return resultobj;
3828 fail:
3829 return NULL;
3830 }
3831
3832
3833 static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
3834 PyObject *resultobj;
3835 int *arg1 = (int *) 0 ;
3836 int *arg2 = (int *) 0 ;
3837 int temp1 ;
3838 int temp2 ;
3839 char *kwnames[] = {
3840 NULL
3841 };
3842
3843 arg1 = &temp1;
3844 arg2 = &temp2;
3845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
3846 {
3847 PyThreadState* __tstate = wxPyBeginAllowThreads();
3848 wxDisplaySizeMM(arg1,arg2);
3849
3850 wxPyEndAllowThreads(__tstate);
3851 if (PyErr_Occurred()) SWIG_fail;
3852 }
3853 Py_INCREF(Py_None); resultobj = Py_None;
3854 {
3855 PyObject *o = PyInt_FromLong((long) (*arg1));
3856 resultobj = t_output_helper(resultobj,o);
3857 }
3858 {
3859 PyObject *o = PyInt_FromLong((long) (*arg2));
3860 resultobj = t_output_helper(resultobj,o);
3861 }
3862 return resultobj;
3863 fail:
3864 return NULL;
3865 }
3866
3867
3868 static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
3869 PyObject *resultobj;
3870 wxSize result;
3871 char *kwnames[] = {
3872 NULL
3873 };
3874
3875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
3876 {
3877 PyThreadState* __tstate = wxPyBeginAllowThreads();
3878 result = wxGetDisplaySizeMM();
3879
3880 wxPyEndAllowThreads(__tstate);
3881 if (PyErr_Occurred()) SWIG_fail;
3882 }
3883 {
3884 wxSize * resultptr;
3885 resultptr = new wxSize((wxSize &) result);
3886 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3887 }
3888 return resultobj;
3889 fail:
3890 return NULL;
3891 }
3892
3893
3894 static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
3895 PyObject *resultobj;
3896 int *arg1 = (int *) 0 ;
3897 int *arg2 = (int *) 0 ;
3898 int *arg3 = (int *) 0 ;
3899 int *arg4 = (int *) 0 ;
3900 int temp1 ;
3901 int temp2 ;
3902 int temp3 ;
3903 int temp4 ;
3904 char *kwnames[] = {
3905 NULL
3906 };
3907
3908 arg1 = &temp1;
3909 arg2 = &temp2;
3910 arg3 = &temp3;
3911 arg4 = &temp4;
3912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
3913 {
3914 PyThreadState* __tstate = wxPyBeginAllowThreads();
3915 wxClientDisplayRect(arg1,arg2,arg3,arg4);
3916
3917 wxPyEndAllowThreads(__tstate);
3918 if (PyErr_Occurred()) SWIG_fail;
3919 }
3920 Py_INCREF(Py_None); resultobj = Py_None;
3921 {
3922 PyObject *o = PyInt_FromLong((long) (*arg1));
3923 resultobj = t_output_helper(resultobj,o);
3924 }
3925 {
3926 PyObject *o = PyInt_FromLong((long) (*arg2));
3927 resultobj = t_output_helper(resultobj,o);
3928 }
3929 {
3930 PyObject *o = PyInt_FromLong((long) (*arg3));
3931 resultobj = t_output_helper(resultobj,o);
3932 }
3933 {
3934 PyObject *o = PyInt_FromLong((long) (*arg4));
3935 resultobj = t_output_helper(resultobj,o);
3936 }
3937 return resultobj;
3938 fail:
3939 return NULL;
3940 }
3941
3942
3943 static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
3944 PyObject *resultobj;
3945 wxRect result;
3946 char *kwnames[] = {
3947 NULL
3948 };
3949
3950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
3951 {
3952 PyThreadState* __tstate = wxPyBeginAllowThreads();
3953 result = wxGetClientDisplayRect();
3954
3955 wxPyEndAllowThreads(__tstate);
3956 if (PyErr_Occurred()) SWIG_fail;
3957 }
3958 {
3959 wxRect * resultptr;
3960 resultptr = new wxRect((wxRect &) result);
3961 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
3962 }
3963 return resultobj;
3964 fail:
3965 return NULL;
3966 }
3967
3968
3969 static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3970 PyObject *resultobj;
3971 wxCursor *arg1 = 0 ;
3972 PyObject * obj0 = 0 ;
3973 char *kwnames[] = {
3974 (char *) "cursor", NULL
3975 };
3976
3977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
3978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
3979 SWIG_POINTER_EXCEPTION | 0)) == -1)
3980 SWIG_fail;
3981 if (arg1 == NULL) {
3982 PyErr_SetString(PyExc_TypeError,"null reference");
3983 SWIG_fail;
3984 }
3985 {
3986 PyThreadState* __tstate = wxPyBeginAllowThreads();
3987 wxSetCursor(*arg1);
3988
3989 wxPyEndAllowThreads(__tstate);
3990 if (PyErr_Occurred()) SWIG_fail;
3991 }
3992 Py_INCREF(Py_None); resultobj = Py_None;
3993 return resultobj;
3994 fail:
3995 return NULL;
3996 }
3997
3998
3999 static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4000 PyObject *resultobj;
4001 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
4002 PyObject * obj0 = 0 ;
4003 char *kwnames[] = {
4004 (char *) "cursor", NULL
4005 };
4006
4007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
4008 if (obj0) {
4009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4011 }
4012 {
4013 PyThreadState* __tstate = wxPyBeginAllowThreads();
4014 wxBeginBusyCursor(arg1);
4015
4016 wxPyEndAllowThreads(__tstate);
4017 if (PyErr_Occurred()) SWIG_fail;
4018 }
4019 Py_INCREF(Py_None); resultobj = Py_None;
4020 return resultobj;
4021 fail:
4022 return NULL;
4023 }
4024
4025
4026 static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4027 PyObject *resultobj;
4028 wxWindow *result;
4029 char *kwnames[] = {
4030 NULL
4031 };
4032
4033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
4034 {
4035 PyThreadState* __tstate = wxPyBeginAllowThreads();
4036 result = (wxWindow *)wxGetActiveWindow();
4037
4038 wxPyEndAllowThreads(__tstate);
4039 if (PyErr_Occurred()) SWIG_fail;
4040 }
4041 {
4042 resultobj = wxPyMake_wxObject(result);
4043 }
4044 return resultobj;
4045 fail:
4046 return NULL;
4047 }
4048
4049
4050 static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4051 PyObject *resultobj;
4052 wxPoint *arg1 = 0 ;
4053 wxWindow *result;
4054 wxPoint temp1 ;
4055 PyObject * obj0 = 0 ;
4056 char *kwnames[] = {
4057 (char *) "pt", NULL
4058 };
4059
4060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
4061 {
4062 arg1 = &temp1;
4063 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4064 }
4065 {
4066 PyThreadState* __tstate = wxPyBeginAllowThreads();
4067 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
4068
4069 wxPyEndAllowThreads(__tstate);
4070 if (PyErr_Occurred()) SWIG_fail;
4071 }
4072 {
4073 resultobj = wxPyMake_wxObject(result);
4074 }
4075 return resultobj;
4076 fail:
4077 return NULL;
4078 }
4079
4080
4081 static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4082 PyObject *resultobj;
4083 wxPoint *arg1 = 0 ;
4084 wxWindow *result;
4085 wxPoint temp1 ;
4086 PyObject * obj0 = 0 ;
4087 char *kwnames[] = {
4088 (char *) "pt", NULL
4089 };
4090
4091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
4092 {
4093 arg1 = &temp1;
4094 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4095 }
4096 {
4097 PyThreadState* __tstate = wxPyBeginAllowThreads();
4098 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
4099
4100 wxPyEndAllowThreads(__tstate);
4101 if (PyErr_Occurred()) SWIG_fail;
4102 }
4103 {
4104 resultobj = wxPyMake_wxObject(result);
4105 }
4106 return resultobj;
4107 fail:
4108 return NULL;
4109 }
4110
4111
4112 static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) {
4113 PyObject *resultobj;
4114 wxWindow *arg1 = (wxWindow *) 0 ;
4115 wxWindow *result;
4116 PyObject * obj0 = 0 ;
4117 char *kwnames[] = {
4118 (char *) "win", NULL
4119 };
4120
4121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
4122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4124 {
4125 PyThreadState* __tstate = wxPyBeginAllowThreads();
4126 result = (wxWindow *)wxGetTopLevelParent(arg1);
4127
4128 wxPyEndAllowThreads(__tstate);
4129 if (PyErr_Occurred()) SWIG_fail;
4130 }
4131 {
4132 resultobj = wxPyMake_wxObject(result);
4133 }
4134 return resultobj;
4135 fail:
4136 return NULL;
4137 }
4138
4139
4140 static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) {
4141 PyObject *resultobj;
4142 int arg1 ;
4143 bool result;
4144 PyObject * obj0 = 0 ;
4145 char *kwnames[] = {
4146 (char *) "key", NULL
4147 };
4148
4149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
4150 arg1 = (wxKeyCode) SWIG_AsInt(obj0);
4151 if (PyErr_Occurred()) SWIG_fail;
4152 {
4153 PyThreadState* __tstate = wxPyBeginAllowThreads();
4154 result = (bool)wxGetKeyState((wxKeyCode )arg1);
4155
4156 wxPyEndAllowThreads(__tstate);
4157 if (PyErr_Occurred()) SWIG_fail;
4158 }
4159 {
4160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4161 }
4162 return resultobj;
4163 fail:
4164 return NULL;
4165 }
4166
4167
4168 static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) {
4169 PyObject *resultobj;
4170 char *kwnames[] = {
4171 NULL
4172 };
4173
4174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
4175 {
4176 PyThreadState* __tstate = wxPyBeginAllowThreads();
4177 wxWakeUpMainThread();
4178
4179 wxPyEndAllowThreads(__tstate);
4180 if (PyErr_Occurred()) SWIG_fail;
4181 }
4182 Py_INCREF(Py_None); resultobj = Py_None;
4183 return resultobj;
4184 fail:
4185 return NULL;
4186 }
4187
4188
4189 static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
4190 PyObject *resultobj;
4191 char *kwnames[] = {
4192 NULL
4193 };
4194
4195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
4196 {
4197 PyThreadState* __tstate = wxPyBeginAllowThreads();
4198 wxMutexGuiEnter();
4199
4200 wxPyEndAllowThreads(__tstate);
4201 if (PyErr_Occurred()) SWIG_fail;
4202 }
4203 Py_INCREF(Py_None); resultobj = Py_None;
4204 return resultobj;
4205 fail:
4206 return NULL;
4207 }
4208
4209
4210 static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
4211 PyObject *resultobj;
4212 char *kwnames[] = {
4213 NULL
4214 };
4215
4216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
4217 {
4218 PyThreadState* __tstate = wxPyBeginAllowThreads();
4219 wxMutexGuiLeave();
4220
4221 wxPyEndAllowThreads(__tstate);
4222 if (PyErr_Occurred()) SWIG_fail;
4223 }
4224 Py_INCREF(Py_None); resultobj = Py_None;
4225 return resultobj;
4226 fail:
4227 return NULL;
4228 }
4229
4230
4231 static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4232 PyObject *resultobj;
4233 wxMutexGuiLocker *result;
4234 char *kwnames[] = {
4235 NULL
4236 };
4237
4238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
4239 {
4240 PyThreadState* __tstate = wxPyBeginAllowThreads();
4241 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
4242
4243 wxPyEndAllowThreads(__tstate);
4244 if (PyErr_Occurred()) SWIG_fail;
4245 }
4246 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
4247 return resultobj;
4248 fail:
4249 return NULL;
4250 }
4251
4252
4253 static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4254 PyObject *resultobj;
4255 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
4256 PyObject * obj0 = 0 ;
4257 char *kwnames[] = {
4258 (char *) "self", NULL
4259 };
4260
4261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
4262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker,
4263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4264 {
4265 PyThreadState* __tstate = wxPyBeginAllowThreads();
4266 delete arg1;
4267
4268 wxPyEndAllowThreads(__tstate);
4269 if (PyErr_Occurred()) SWIG_fail;
4270 }
4271 Py_INCREF(Py_None); resultobj = Py_None;
4272 return resultobj;
4273 fail:
4274 return NULL;
4275 }
4276
4277
4278 static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) {
4279 PyObject *obj;
4280 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4281 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
4282 Py_INCREF(obj);
4283 return Py_BuildValue((char *)"");
4284 }
4285 static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) {
4286 PyObject *resultobj;
4287 bool result;
4288 char *kwnames[] = {
4289 NULL
4290 };
4291
4292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
4293 {
4294 PyThreadState* __tstate = wxPyBeginAllowThreads();
4295 result = (bool)wxThread_IsMain();
4296
4297 wxPyEndAllowThreads(__tstate);
4298 if (PyErr_Occurred()) SWIG_fail;
4299 }
4300 {
4301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4302 }
4303 return resultobj;
4304 fail:
4305 return NULL;
4306 }
4307
4308
4309 static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4310 PyObject *resultobj;
4311 wxString *arg1 = 0 ;
4312 wxToolTip *result;
4313 bool temp1 = False ;
4314 PyObject * obj0 = 0 ;
4315 char *kwnames[] = {
4316 (char *) "tip", NULL
4317 };
4318
4319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
4320 {
4321 arg1 = wxString_in_helper(obj0);
4322 if (arg1 == NULL) SWIG_fail;
4323 temp1 = True;
4324 }
4325 {
4326 PyThreadState* __tstate = wxPyBeginAllowThreads();
4327 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
4328
4329 wxPyEndAllowThreads(__tstate);
4330 if (PyErr_Occurred()) SWIG_fail;
4331 }
4332 {
4333 resultobj = wxPyMake_wxObject(result);
4334 }
4335 {
4336 if (temp1)
4337 delete arg1;
4338 }
4339 return resultobj;
4340 fail:
4341 {
4342 if (temp1)
4343 delete arg1;
4344 }
4345 return NULL;
4346 }
4347
4348
4349 static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4350 PyObject *resultobj;
4351 wxToolTip *arg1 = (wxToolTip *) 0 ;
4352 wxString *arg2 = 0 ;
4353 bool temp2 = False ;
4354 PyObject * obj0 = 0 ;
4355 PyObject * obj1 = 0 ;
4356 char *kwnames[] = {
4357 (char *) "self",(char *) "tip", NULL
4358 };
4359
4360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
4361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4363 {
4364 arg2 = wxString_in_helper(obj1);
4365 if (arg2 == NULL) SWIG_fail;
4366 temp2 = True;
4367 }
4368 {
4369 PyThreadState* __tstate = wxPyBeginAllowThreads();
4370 (arg1)->SetTip((wxString const &)*arg2);
4371
4372 wxPyEndAllowThreads(__tstate);
4373 if (PyErr_Occurred()) SWIG_fail;
4374 }
4375 Py_INCREF(Py_None); resultobj = Py_None;
4376 {
4377 if (temp2)
4378 delete arg2;
4379 }
4380 return resultobj;
4381 fail:
4382 {
4383 if (temp2)
4384 delete arg2;
4385 }
4386 return NULL;
4387 }
4388
4389
4390 static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4391 PyObject *resultobj;
4392 wxToolTip *arg1 = (wxToolTip *) 0 ;
4393 wxString result;
4394 PyObject * obj0 = 0 ;
4395 char *kwnames[] = {
4396 (char *) "self", NULL
4397 };
4398
4399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
4400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4402 {
4403 PyThreadState* __tstate = wxPyBeginAllowThreads();
4404 result = (arg1)->GetTip();
4405
4406 wxPyEndAllowThreads(__tstate);
4407 if (PyErr_Occurred()) SWIG_fail;
4408 }
4409 {
4410 #if wxUSE_UNICODE
4411 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4412 #else
4413 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4414 #endif
4415 }
4416 return resultobj;
4417 fail:
4418 return NULL;
4419 }
4420
4421
4422 static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4423 PyObject *resultobj;
4424 wxToolTip *arg1 = (wxToolTip *) 0 ;
4425 wxWindow *result;
4426 PyObject * obj0 = 0 ;
4427 char *kwnames[] = {
4428 (char *) "self", NULL
4429 };
4430
4431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
4432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4434 {
4435 PyThreadState* __tstate = wxPyBeginAllowThreads();
4436 result = (wxWindow *)(arg1)->GetWindow();
4437
4438 wxPyEndAllowThreads(__tstate);
4439 if (PyErr_Occurred()) SWIG_fail;
4440 }
4441 {
4442 resultobj = wxPyMake_wxObject(result);
4443 }
4444 return resultobj;
4445 fail:
4446 return NULL;
4447 }
4448
4449
4450 static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
4451 PyObject *resultobj;
4452 bool arg1 ;
4453 PyObject * obj0 = 0 ;
4454 char *kwnames[] = {
4455 (char *) "flag", NULL
4456 };
4457
4458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
4459 arg1 = (bool) SWIG_AsBool(obj0);
4460 if (PyErr_Occurred()) SWIG_fail;
4461 {
4462 PyThreadState* __tstate = wxPyBeginAllowThreads();
4463 wxToolTip::Enable(arg1);
4464
4465 wxPyEndAllowThreads(__tstate);
4466 if (PyErr_Occurred()) SWIG_fail;
4467 }
4468 Py_INCREF(Py_None); resultobj = Py_None;
4469 return resultobj;
4470 fail:
4471 return NULL;
4472 }
4473
4474
4475 static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) {
4476 PyObject *resultobj;
4477 long arg1 ;
4478 PyObject * obj0 = 0 ;
4479 char *kwnames[] = {
4480 (char *) "milliseconds", NULL
4481 };
4482
4483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
4484 arg1 = (long) SWIG_AsLong(obj0);
4485 if (PyErr_Occurred()) SWIG_fail;
4486 {
4487 PyThreadState* __tstate = wxPyBeginAllowThreads();
4488 wxToolTip::SetDelay(arg1);
4489
4490 wxPyEndAllowThreads(__tstate);
4491 if (PyErr_Occurred()) SWIG_fail;
4492 }
4493 Py_INCREF(Py_None); resultobj = Py_None;
4494 return resultobj;
4495 fail:
4496 return NULL;
4497 }
4498
4499
4500 static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) {
4501 PyObject *obj;
4502 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4503 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
4504 Py_INCREF(obj);
4505 return Py_BuildValue((char *)"");
4506 }
4507 static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4508 PyObject *resultobj;
4509 wxWindow *arg1 = (wxWindow *) 0 ;
4510 wxSize *arg2 = 0 ;
4511 wxCaret *result;
4512 wxSize temp2 ;
4513 PyObject * obj0 = 0 ;
4514 PyObject * obj1 = 0 ;
4515 char *kwnames[] = {
4516 (char *) "window",(char *) "size", NULL
4517 };
4518
4519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
4520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4522 {
4523 arg2 = &temp2;
4524 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4525 }
4526 {
4527 PyThreadState* __tstate = wxPyBeginAllowThreads();
4528 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
4529
4530 wxPyEndAllowThreads(__tstate);
4531 if (PyErr_Occurred()) SWIG_fail;
4532 }
4533 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
4534 return resultobj;
4535 fail:
4536 return NULL;
4537 }
4538
4539
4540 static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4541 PyObject *resultobj;
4542 wxCaret *arg1 = (wxCaret *) 0 ;
4543 PyObject * obj0 = 0 ;
4544 char *kwnames[] = {
4545 (char *) "self", NULL
4546 };
4547
4548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
4549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4551 {
4552 PyThreadState* __tstate = wxPyBeginAllowThreads();
4553 delete arg1;
4554
4555 wxPyEndAllowThreads(__tstate);
4556 if (PyErr_Occurred()) SWIG_fail;
4557 }
4558 Py_INCREF(Py_None); resultobj = Py_None;
4559 return resultobj;
4560 fail:
4561 return NULL;
4562 }
4563
4564
4565 static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4566 PyObject *resultobj;
4567 wxCaret *arg1 = (wxCaret *) 0 ;
4568 bool result;
4569 PyObject * obj0 = 0 ;
4570 char *kwnames[] = {
4571 (char *) "self", NULL
4572 };
4573
4574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
4575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4577 {
4578 PyThreadState* __tstate = wxPyBeginAllowThreads();
4579 result = (bool)(arg1)->IsOk();
4580
4581 wxPyEndAllowThreads(__tstate);
4582 if (PyErr_Occurred()) SWIG_fail;
4583 }
4584 {
4585 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4586 }
4587 return resultobj;
4588 fail:
4589 return NULL;
4590 }
4591
4592
4593 static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4594 PyObject *resultobj;
4595 wxCaret *arg1 = (wxCaret *) 0 ;
4596 bool result;
4597 PyObject * obj0 = 0 ;
4598 char *kwnames[] = {
4599 (char *) "self", NULL
4600 };
4601
4602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
4603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4605 {
4606 PyThreadState* __tstate = wxPyBeginAllowThreads();
4607 result = (bool)(arg1)->IsVisible();
4608
4609 wxPyEndAllowThreads(__tstate);
4610 if (PyErr_Occurred()) SWIG_fail;
4611 }
4612 {
4613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4614 }
4615 return resultobj;
4616 fail:
4617 return NULL;
4618 }
4619
4620
4621 static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
4622 PyObject *resultobj;
4623 wxCaret *arg1 = (wxCaret *) 0 ;
4624 wxPoint result;
4625 PyObject * obj0 = 0 ;
4626 char *kwnames[] = {
4627 (char *) "self", NULL
4628 };
4629
4630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
4631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4633 {
4634 PyThreadState* __tstate = wxPyBeginAllowThreads();
4635 result = (arg1)->GetPosition();
4636
4637 wxPyEndAllowThreads(__tstate);
4638 if (PyErr_Occurred()) SWIG_fail;
4639 }
4640 {
4641 wxPoint * resultptr;
4642 resultptr = new wxPoint((wxPoint &) result);
4643 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
4644 }
4645 return resultobj;
4646 fail:
4647 return NULL;
4648 }
4649
4650
4651 static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4652 PyObject *resultobj;
4653 wxCaret *arg1 = (wxCaret *) 0 ;
4654 int *arg2 = (int *) 0 ;
4655 int *arg3 = (int *) 0 ;
4656 int temp2 ;
4657 int temp3 ;
4658 PyObject * obj0 = 0 ;
4659 char *kwnames[] = {
4660 (char *) "self", NULL
4661 };
4662
4663 arg2 = &temp2;
4664 arg3 = &temp3;
4665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
4666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4668 {
4669 PyThreadState* __tstate = wxPyBeginAllowThreads();
4670 (arg1)->GetPosition(arg2,arg3);
4671
4672 wxPyEndAllowThreads(__tstate);
4673 if (PyErr_Occurred()) SWIG_fail;
4674 }
4675 Py_INCREF(Py_None); resultobj = Py_None;
4676 {
4677 PyObject *o = PyInt_FromLong((long) (*arg2));
4678 resultobj = t_output_helper(resultobj,o);
4679 }
4680 {
4681 PyObject *o = PyInt_FromLong((long) (*arg3));
4682 resultobj = t_output_helper(resultobj,o);
4683 }
4684 return resultobj;
4685 fail:
4686 return NULL;
4687 }
4688
4689
4690 static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4691 PyObject *resultobj;
4692 wxCaret *arg1 = (wxCaret *) 0 ;
4693 wxSize result;
4694 PyObject * obj0 = 0 ;
4695 char *kwnames[] = {
4696 (char *) "self", NULL
4697 };
4698
4699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
4700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4702 {
4703 PyThreadState* __tstate = wxPyBeginAllowThreads();
4704 result = (arg1)->GetSize();
4705
4706 wxPyEndAllowThreads(__tstate);
4707 if (PyErr_Occurred()) SWIG_fail;
4708 }
4709 {
4710 wxSize * resultptr;
4711 resultptr = new wxSize((wxSize &) result);
4712 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4713 }
4714 return resultobj;
4715 fail:
4716 return NULL;
4717 }
4718
4719
4720 static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4721 PyObject *resultobj;
4722 wxCaret *arg1 = (wxCaret *) 0 ;
4723 int *arg2 = (int *) 0 ;
4724 int *arg3 = (int *) 0 ;
4725 int temp2 ;
4726 int temp3 ;
4727 PyObject * obj0 = 0 ;
4728 char *kwnames[] = {
4729 (char *) "self", NULL
4730 };
4731
4732 arg2 = &temp2;
4733 arg3 = &temp3;
4734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
4735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4737 {
4738 PyThreadState* __tstate = wxPyBeginAllowThreads();
4739 (arg1)->GetSize(arg2,arg3);
4740
4741 wxPyEndAllowThreads(__tstate);
4742 if (PyErr_Occurred()) SWIG_fail;
4743 }
4744 Py_INCREF(Py_None); resultobj = Py_None;
4745 {
4746 PyObject *o = PyInt_FromLong((long) (*arg2));
4747 resultobj = t_output_helper(resultobj,o);
4748 }
4749 {
4750 PyObject *o = PyInt_FromLong((long) (*arg3));
4751 resultobj = t_output_helper(resultobj,o);
4752 }
4753 return resultobj;
4754 fail:
4755 return NULL;
4756 }
4757
4758
4759 static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4760 PyObject *resultobj;
4761 wxCaret *arg1 = (wxCaret *) 0 ;
4762 wxWindow *result;
4763 PyObject * obj0 = 0 ;
4764 char *kwnames[] = {
4765 (char *) "self", NULL
4766 };
4767
4768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
4769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4771 {
4772 PyThreadState* __tstate = wxPyBeginAllowThreads();
4773 result = (wxWindow *)(arg1)->GetWindow();
4774
4775 wxPyEndAllowThreads(__tstate);
4776 if (PyErr_Occurred()) SWIG_fail;
4777 }
4778 {
4779 resultobj = wxPyMake_wxObject(result);
4780 }
4781 return resultobj;
4782 fail:
4783 return NULL;
4784 }
4785
4786
4787 static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
4788 PyObject *resultobj;
4789 wxCaret *arg1 = (wxCaret *) 0 ;
4790 int arg2 ;
4791 int arg3 ;
4792 PyObject * obj0 = 0 ;
4793 PyObject * obj1 = 0 ;
4794 PyObject * obj2 = 0 ;
4795 char *kwnames[] = {
4796 (char *) "self",(char *) "x",(char *) "y", NULL
4797 };
4798
4799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
4800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4802 arg2 = (int) SWIG_AsInt(obj1);
4803 if (PyErr_Occurred()) SWIG_fail;
4804 arg3 = (int) SWIG_AsInt(obj2);
4805 if (PyErr_Occurred()) SWIG_fail;
4806 {
4807 PyThreadState* __tstate = wxPyBeginAllowThreads();
4808 (arg1)->Move(arg2,arg3);
4809
4810 wxPyEndAllowThreads(__tstate);
4811 if (PyErr_Occurred()) SWIG_fail;
4812 }
4813 Py_INCREF(Py_None); resultobj = Py_None;
4814 return resultobj;
4815 fail:
4816 return NULL;
4817 }
4818
4819
4820 static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
4821 PyObject *resultobj;
4822 wxCaret *arg1 = (wxCaret *) 0 ;
4823 wxPoint *arg2 = 0 ;
4824 wxPoint temp2 ;
4825 PyObject * obj0 = 0 ;
4826 PyObject * obj1 = 0 ;
4827 char *kwnames[] = {
4828 (char *) "self",(char *) "pt", NULL
4829 };
4830
4831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
4832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4834 {
4835 arg2 = &temp2;
4836 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4837 }
4838 {
4839 PyThreadState* __tstate = wxPyBeginAllowThreads();
4840 (arg1)->Move((wxPoint const &)*arg2);
4841
4842 wxPyEndAllowThreads(__tstate);
4843 if (PyErr_Occurred()) SWIG_fail;
4844 }
4845 Py_INCREF(Py_None); resultobj = Py_None;
4846 return resultobj;
4847 fail:
4848 return NULL;
4849 }
4850
4851
4852 static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
4853 PyObject *resultobj;
4854 wxCaret *arg1 = (wxCaret *) 0 ;
4855 int arg2 ;
4856 int arg3 ;
4857 PyObject * obj0 = 0 ;
4858 PyObject * obj1 = 0 ;
4859 PyObject * obj2 = 0 ;
4860 char *kwnames[] = {
4861 (char *) "self",(char *) "width",(char *) "height", NULL
4862 };
4863
4864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
4865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4867 arg2 = (int) SWIG_AsInt(obj1);
4868 if (PyErr_Occurred()) SWIG_fail;
4869 arg3 = (int) SWIG_AsInt(obj2);
4870 if (PyErr_Occurred()) SWIG_fail;
4871 {
4872 PyThreadState* __tstate = wxPyBeginAllowThreads();
4873 (arg1)->SetSize(arg2,arg3);
4874
4875 wxPyEndAllowThreads(__tstate);
4876 if (PyErr_Occurred()) SWIG_fail;
4877 }
4878 Py_INCREF(Py_None); resultobj = Py_None;
4879 return resultobj;
4880 fail:
4881 return NULL;
4882 }
4883
4884
4885 static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4886 PyObject *resultobj;
4887 wxCaret *arg1 = (wxCaret *) 0 ;
4888 wxSize *arg2 = 0 ;
4889 wxSize temp2 ;
4890 PyObject * obj0 = 0 ;
4891 PyObject * obj1 = 0 ;
4892 char *kwnames[] = {
4893 (char *) "self",(char *) "size", NULL
4894 };
4895
4896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
4897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4899 {
4900 arg2 = &temp2;
4901 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4902 }
4903 {
4904 PyThreadState* __tstate = wxPyBeginAllowThreads();
4905 (arg1)->SetSize((wxSize const &)*arg2);
4906
4907 wxPyEndAllowThreads(__tstate);
4908 if (PyErr_Occurred()) SWIG_fail;
4909 }
4910 Py_INCREF(Py_None); resultobj = Py_None;
4911 return resultobj;
4912 fail:
4913 return NULL;
4914 }
4915
4916
4917 static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
4918 PyObject *resultobj;
4919 wxCaret *arg1 = (wxCaret *) 0 ;
4920 int arg2 = (int) True ;
4921 PyObject * obj0 = 0 ;
4922 PyObject * obj1 = 0 ;
4923 char *kwnames[] = {
4924 (char *) "self",(char *) "show", NULL
4925 };
4926
4927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
4928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4930 if (obj1) {
4931 arg2 = (int) SWIG_AsInt(obj1);
4932 if (PyErr_Occurred()) SWIG_fail;
4933 }
4934 {
4935 PyThreadState* __tstate = wxPyBeginAllowThreads();
4936 (arg1)->Show(arg2);
4937
4938 wxPyEndAllowThreads(__tstate);
4939 if (PyErr_Occurred()) SWIG_fail;
4940 }
4941 Py_INCREF(Py_None); resultobj = Py_None;
4942 return resultobj;
4943 fail:
4944 return NULL;
4945 }
4946
4947
4948 static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
4949 PyObject *resultobj;
4950 wxCaret *arg1 = (wxCaret *) 0 ;
4951 PyObject * obj0 = 0 ;
4952 char *kwnames[] = {
4953 (char *) "self", NULL
4954 };
4955
4956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
4957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4959 {
4960 PyThreadState* __tstate = wxPyBeginAllowThreads();
4961 (arg1)->Hide();
4962
4963 wxPyEndAllowThreads(__tstate);
4964 if (PyErr_Occurred()) SWIG_fail;
4965 }
4966 Py_INCREF(Py_None); resultobj = Py_None;
4967 return resultobj;
4968 fail:
4969 return NULL;
4970 }
4971
4972
4973 static PyObject * Caret_swigregister(PyObject *self, PyObject *args) {
4974 PyObject *obj;
4975 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4976 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
4977 Py_INCREF(obj);
4978 return Py_BuildValue((char *)"");
4979 }
4980 static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
4981 PyObject *resultobj;
4982 int result;
4983 char *kwnames[] = {
4984 NULL
4985 };
4986
4987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
4988 {
4989 PyThreadState* __tstate = wxPyBeginAllowThreads();
4990 result = (int)wxCaret_GetBlinkTime();
4991
4992 wxPyEndAllowThreads(__tstate);
4993 if (PyErr_Occurred()) SWIG_fail;
4994 }
4995 resultobj = SWIG_FromInt((int)result);
4996 return resultobj;
4997 fail:
4998 return NULL;
4999 }
5000
5001
5002 static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5003 PyObject *resultobj;
5004 int arg1 ;
5005 PyObject * obj0 = 0 ;
5006 char *kwnames[] = {
5007 (char *) "milliseconds", NULL
5008 };
5009
5010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
5011 arg1 = (int) SWIG_AsInt(obj0);
5012 if (PyErr_Occurred()) SWIG_fail;
5013 {
5014 PyThreadState* __tstate = wxPyBeginAllowThreads();
5015 wxCaret_SetBlinkTime(arg1);
5016
5017 wxPyEndAllowThreads(__tstate);
5018 if (PyErr_Occurred()) SWIG_fail;
5019 }
5020 Py_INCREF(Py_None); resultobj = Py_None;
5021 return resultobj;
5022 fail:
5023 return NULL;
5024 }
5025
5026
5027 static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5028 PyObject *resultobj;
5029 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
5030 wxBusyCursor *result;
5031 PyObject * obj0 = 0 ;
5032 char *kwnames[] = {
5033 (char *) "cursor", NULL
5034 };
5035
5036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
5037 if (obj0) {
5038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5040 }
5041 {
5042 PyThreadState* __tstate = wxPyBeginAllowThreads();
5043 result = (wxBusyCursor *)new wxBusyCursor(arg1);
5044
5045 wxPyEndAllowThreads(__tstate);
5046 if (PyErr_Occurred()) SWIG_fail;
5047 }
5048 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
5049 return resultobj;
5050 fail:
5051 return NULL;
5052 }
5053
5054
5055 static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5056 PyObject *resultobj;
5057 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
5058 PyObject * obj0 = 0 ;
5059 char *kwnames[] = {
5060 (char *) "self", NULL
5061 };
5062
5063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
5064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor,
5065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5066 {
5067 PyThreadState* __tstate = wxPyBeginAllowThreads();
5068 delete arg1;
5069
5070 wxPyEndAllowThreads(__tstate);
5071 if (PyErr_Occurred()) SWIG_fail;
5072 }
5073 Py_INCREF(Py_None); resultobj = Py_None;
5074 return resultobj;
5075 fail:
5076 return NULL;
5077 }
5078
5079
5080 static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) {
5081 PyObject *obj;
5082 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5083 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
5084 Py_INCREF(obj);
5085 return Py_BuildValue((char *)"");
5086 }
5087 static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5088 PyObject *resultobj;
5089 wxWindow *arg1 = (wxWindow *) NULL ;
5090 wxWindowDisabler *result;
5091 PyObject * obj0 = 0 ;
5092 char *kwnames[] = {
5093 (char *) "winToSkip", NULL
5094 };
5095
5096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
5097 if (obj0) {
5098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5100 }
5101 {
5102 PyThreadState* __tstate = wxPyBeginAllowThreads();
5103 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
5104
5105 wxPyEndAllowThreads(__tstate);
5106 if (PyErr_Occurred()) SWIG_fail;
5107 }
5108 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
5109 return resultobj;
5110 fail:
5111 return NULL;
5112 }
5113
5114
5115 static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5116 PyObject *resultobj;
5117 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
5118 PyObject * obj0 = 0 ;
5119 char *kwnames[] = {
5120 (char *) "self", NULL
5121 };
5122
5123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
5124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler,
5125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5126 {
5127 PyThreadState* __tstate = wxPyBeginAllowThreads();
5128 delete arg1;
5129
5130 wxPyEndAllowThreads(__tstate);
5131 if (PyErr_Occurred()) SWIG_fail;
5132 }
5133 Py_INCREF(Py_None); resultobj = Py_None;
5134 return resultobj;
5135 fail:
5136 return NULL;
5137 }
5138
5139
5140 static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) {
5141 PyObject *obj;
5142 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5143 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
5144 Py_INCREF(obj);
5145 return Py_BuildValue((char *)"");
5146 }
5147 static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5148 PyObject *resultobj;
5149 wxString *arg1 = 0 ;
5150 wxBusyInfo *result;
5151 bool temp1 = False ;
5152 PyObject * obj0 = 0 ;
5153 char *kwnames[] = {
5154 (char *) "message", NULL
5155 };
5156
5157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
5158 {
5159 arg1 = wxString_in_helper(obj0);
5160 if (arg1 == NULL) SWIG_fail;
5161 temp1 = True;
5162 }
5163 {
5164 PyThreadState* __tstate = wxPyBeginAllowThreads();
5165 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
5166
5167 wxPyEndAllowThreads(__tstate);
5168 if (PyErr_Occurred()) SWIG_fail;
5169 }
5170 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
5171 {
5172 if (temp1)
5173 delete arg1;
5174 }
5175 return resultobj;
5176 fail:
5177 {
5178 if (temp1)
5179 delete arg1;
5180 }
5181 return NULL;
5182 }
5183
5184
5185 static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5186 PyObject *resultobj;
5187 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
5188 PyObject * obj0 = 0 ;
5189 char *kwnames[] = {
5190 (char *) "self", NULL
5191 };
5192
5193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
5194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo,
5195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5196 {
5197 PyThreadState* __tstate = wxPyBeginAllowThreads();
5198 delete arg1;
5199
5200 wxPyEndAllowThreads(__tstate);
5201 if (PyErr_Occurred()) SWIG_fail;
5202 }
5203 Py_INCREF(Py_None); resultobj = Py_None;
5204 return resultobj;
5205 fail:
5206 return NULL;
5207 }
5208
5209
5210 static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) {
5211 PyObject *obj;
5212 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5213 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
5214 Py_INCREF(obj);
5215 return Py_BuildValue((char *)"");
5216 }
5217 static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) {
5218 PyObject *resultobj;
5219 wxStopWatch *result;
5220 char *kwnames[] = {
5221 NULL
5222 };
5223
5224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
5225 {
5226 PyThreadState* __tstate = wxPyBeginAllowThreads();
5227 result = (wxStopWatch *)new wxStopWatch();
5228
5229 wxPyEndAllowThreads(__tstate);
5230 if (PyErr_Occurred()) SWIG_fail;
5231 }
5232 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
5233 return resultobj;
5234 fail:
5235 return NULL;
5236 }
5237
5238
5239 static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
5240 PyObject *resultobj;
5241 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5242 long arg2 = (long) 0 ;
5243 PyObject * obj0 = 0 ;
5244 PyObject * obj1 = 0 ;
5245 char *kwnames[] = {
5246 (char *) "self",(char *) "t0", NULL
5247 };
5248
5249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
5250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5252 if (obj1) {
5253 arg2 = (long) SWIG_AsLong(obj1);
5254 if (PyErr_Occurred()) SWIG_fail;
5255 }
5256 {
5257 PyThreadState* __tstate = wxPyBeginAllowThreads();
5258 (arg1)->Start(arg2);
5259
5260 wxPyEndAllowThreads(__tstate);
5261 if (PyErr_Occurred()) SWIG_fail;
5262 }
5263 Py_INCREF(Py_None); resultobj = Py_None;
5264 return resultobj;
5265 fail:
5266 return NULL;
5267 }
5268
5269
5270 static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) {
5271 PyObject *resultobj;
5272 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5273 PyObject * obj0 = 0 ;
5274 char *kwnames[] = {
5275 (char *) "self", NULL
5276 };
5277
5278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
5279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5281 {
5282 PyThreadState* __tstate = wxPyBeginAllowThreads();
5283 (arg1)->Pause();
5284
5285 wxPyEndAllowThreads(__tstate);
5286 if (PyErr_Occurred()) SWIG_fail;
5287 }
5288 Py_INCREF(Py_None); resultobj = Py_None;
5289 return resultobj;
5290 fail:
5291 return NULL;
5292 }
5293
5294
5295 static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
5296 PyObject *resultobj;
5297 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5298 PyObject * obj0 = 0 ;
5299 char *kwnames[] = {
5300 (char *) "self", NULL
5301 };
5302
5303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
5304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5306 {
5307 PyThreadState* __tstate = wxPyBeginAllowThreads();
5308 (arg1)->Resume();
5309
5310 wxPyEndAllowThreads(__tstate);
5311 if (PyErr_Occurred()) SWIG_fail;
5312 }
5313 Py_INCREF(Py_None); resultobj = Py_None;
5314 return resultobj;
5315 fail:
5316 return NULL;
5317 }
5318
5319
5320 static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) {
5321 PyObject *resultobj;
5322 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5323 long result;
5324 PyObject * obj0 = 0 ;
5325 char *kwnames[] = {
5326 (char *) "self", NULL
5327 };
5328
5329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
5330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5332 {
5333 PyThreadState* __tstate = wxPyBeginAllowThreads();
5334 result = (long)((wxStopWatch const *)arg1)->Time();
5335
5336 wxPyEndAllowThreads(__tstate);
5337 if (PyErr_Occurred()) SWIG_fail;
5338 }
5339 resultobj = SWIG_FromLong((long)result);
5340 return resultobj;
5341 fail:
5342 return NULL;
5343 }
5344
5345
5346 static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) {
5347 PyObject *obj;
5348 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5349 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
5350 Py_INCREF(obj);
5351 return Py_BuildValue((char *)"");
5352 }
5353 static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5354 PyObject *resultobj;
5355 int arg1 = (int) 9 ;
5356 wxFileHistory *result;
5357 PyObject * obj0 = 0 ;
5358 char *kwnames[] = {
5359 (char *) "maxFiles", NULL
5360 };
5361
5362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail;
5363 if (obj0) {
5364 arg1 = (int) SWIG_AsInt(obj0);
5365 if (PyErr_Occurred()) SWIG_fail;
5366 }
5367 {
5368 PyThreadState* __tstate = wxPyBeginAllowThreads();
5369 result = (wxFileHistory *)new wxFileHistory(arg1);
5370
5371 wxPyEndAllowThreads(__tstate);
5372 if (PyErr_Occurred()) SWIG_fail;
5373 }
5374 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
5375 return resultobj;
5376 fail:
5377 return NULL;
5378 }
5379
5380
5381 static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5382 PyObject *resultobj;
5383 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5384 PyObject * obj0 = 0 ;
5385 char *kwnames[] = {
5386 (char *) "self", NULL
5387 };
5388
5389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
5390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5392 {
5393 PyThreadState* __tstate = wxPyBeginAllowThreads();
5394 delete arg1;
5395
5396 wxPyEndAllowThreads(__tstate);
5397 if (PyErr_Occurred()) SWIG_fail;
5398 }
5399 Py_INCREF(Py_None); resultobj = Py_None;
5400 return resultobj;
5401 fail:
5402 return NULL;
5403 }
5404
5405
5406 static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5407 PyObject *resultobj;
5408 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5409 wxString *arg2 = 0 ;
5410 bool temp2 = False ;
5411 PyObject * obj0 = 0 ;
5412 PyObject * obj1 = 0 ;
5413 char *kwnames[] = {
5414 (char *) "self",(char *) "file", NULL
5415 };
5416
5417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
5418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5420 {
5421 arg2 = wxString_in_helper(obj1);
5422 if (arg2 == NULL) SWIG_fail;
5423 temp2 = True;
5424 }
5425 {
5426 PyThreadState* __tstate = wxPyBeginAllowThreads();
5427 (arg1)->AddFileToHistory((wxString const &)*arg2);
5428
5429 wxPyEndAllowThreads(__tstate);
5430 if (PyErr_Occurred()) SWIG_fail;
5431 }
5432 Py_INCREF(Py_None); resultobj = Py_None;
5433 {
5434 if (temp2)
5435 delete arg2;
5436 }
5437 return resultobj;
5438 fail:
5439 {
5440 if (temp2)
5441 delete arg2;
5442 }
5443 return NULL;
5444 }
5445
5446
5447 static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5448 PyObject *resultobj;
5449 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5450 int arg2 ;
5451 PyObject * obj0 = 0 ;
5452 PyObject * obj1 = 0 ;
5453 char *kwnames[] = {
5454 (char *) "self",(char *) "i", NULL
5455 };
5456
5457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
5458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5460 arg2 = (int) SWIG_AsInt(obj1);
5461 if (PyErr_Occurred()) SWIG_fail;
5462 {
5463 PyThreadState* __tstate = wxPyBeginAllowThreads();
5464 (arg1)->RemoveFileFromHistory(arg2);
5465
5466 wxPyEndAllowThreads(__tstate);
5467 if (PyErr_Occurred()) SWIG_fail;
5468 }
5469 Py_INCREF(Py_None); resultobj = Py_None;
5470 return resultobj;
5471 fail:
5472 return NULL;
5473 }
5474
5475
5476 static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
5477 PyObject *resultobj;
5478 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5479 int result;
5480 PyObject * obj0 = 0 ;
5481 char *kwnames[] = {
5482 (char *) "self", NULL
5483 };
5484
5485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
5486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5488 {
5489 PyThreadState* __tstate = wxPyBeginAllowThreads();
5490 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
5491
5492 wxPyEndAllowThreads(__tstate);
5493 if (PyErr_Occurred()) SWIG_fail;
5494 }
5495 resultobj = SWIG_FromInt((int)result);
5496 return resultobj;
5497 fail:
5498 return NULL;
5499 }
5500
5501
5502 static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5503 PyObject *resultobj;
5504 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5505 wxMenu *arg2 = (wxMenu *) 0 ;
5506 PyObject * obj0 = 0 ;
5507 PyObject * obj1 = 0 ;
5508 char *kwnames[] = {
5509 (char *) "self",(char *) "menu", NULL
5510 };
5511
5512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
5513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5515 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5517 {
5518 PyThreadState* __tstate = wxPyBeginAllowThreads();
5519 (arg1)->UseMenu(arg2);
5520
5521 wxPyEndAllowThreads(__tstate);
5522 if (PyErr_Occurred()) SWIG_fail;
5523 }
5524 Py_INCREF(Py_None); resultobj = Py_None;
5525 return resultobj;
5526 fail:
5527 return NULL;
5528 }
5529
5530
5531 static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5532 PyObject *resultobj;
5533 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5534 wxMenu *arg2 = (wxMenu *) 0 ;
5535 PyObject * obj0 = 0 ;
5536 PyObject * obj1 = 0 ;
5537 char *kwnames[] = {
5538 (char *) "self",(char *) "menu", NULL
5539 };
5540
5541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
5542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5544 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5546 {
5547 PyThreadState* __tstate = wxPyBeginAllowThreads();
5548 (arg1)->RemoveMenu(arg2);
5549
5550 wxPyEndAllowThreads(__tstate);
5551 if (PyErr_Occurred()) SWIG_fail;
5552 }
5553 Py_INCREF(Py_None); resultobj = Py_None;
5554 return resultobj;
5555 fail:
5556 return NULL;
5557 }
5558
5559
5560 static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) {
5561 PyObject *resultobj;
5562 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5563 wxConfigBase *arg2 = 0 ;
5564 PyObject * obj0 = 0 ;
5565 PyObject * obj1 = 0 ;
5566 char *kwnames[] = {
5567 (char *) "self",(char *) "config", NULL
5568 };
5569
5570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",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_wxConfigBase,
5574 SWIG_POINTER_EXCEPTION | 0)) == -1)
5575 SWIG_fail;
5576 if (arg2 == NULL) {
5577 PyErr_SetString(PyExc_TypeError,"null reference");
5578 SWIG_fail;
5579 }
5580 {
5581 PyThreadState* __tstate = wxPyBeginAllowThreads();
5582 (arg1)->Load(*arg2);
5583
5584 wxPyEndAllowThreads(__tstate);
5585 if (PyErr_Occurred()) SWIG_fail;
5586 }
5587 Py_INCREF(Py_None); resultobj = Py_None;
5588 return resultobj;
5589 fail:
5590 return NULL;
5591 }
5592
5593
5594 static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) {
5595 PyObject *resultobj;
5596 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5597 wxConfigBase *arg2 = 0 ;
5598 PyObject * obj0 = 0 ;
5599 PyObject * obj1 = 0 ;
5600 char *kwnames[] = {
5601 (char *) "self",(char *) "config", NULL
5602 };
5603
5604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
5605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5607 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5608 SWIG_POINTER_EXCEPTION | 0)) == -1)
5609 SWIG_fail;
5610 if (arg2 == NULL) {
5611 PyErr_SetString(PyExc_TypeError,"null reference");
5612 SWIG_fail;
5613 }
5614 {
5615 PyThreadState* __tstate = wxPyBeginAllowThreads();
5616 (arg1)->Save(*arg2);
5617
5618 wxPyEndAllowThreads(__tstate);
5619 if (PyErr_Occurred()) SWIG_fail;
5620 }
5621 Py_INCREF(Py_None); resultobj = Py_None;
5622 return resultobj;
5623 fail:
5624 return NULL;
5625 }
5626
5627
5628 static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5629 PyObject *resultobj;
5630 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5631 PyObject * obj0 = 0 ;
5632 char *kwnames[] = {
5633 (char *) "self", NULL
5634 };
5635
5636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
5637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5639 {
5640 PyThreadState* __tstate = wxPyBeginAllowThreads();
5641 (arg1)->AddFilesToMenu();
5642
5643 wxPyEndAllowThreads(__tstate);
5644 if (PyErr_Occurred()) SWIG_fail;
5645 }
5646 Py_INCREF(Py_None); resultobj = Py_None;
5647 return resultobj;
5648 fail:
5649 return NULL;
5650 }
5651
5652
5653 static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5654 PyObject *resultobj;
5655 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5656 wxMenu *arg2 = (wxMenu *) 0 ;
5657 PyObject * obj0 = 0 ;
5658 PyObject * obj1 = 0 ;
5659 char *kwnames[] = {
5660 (char *) "self",(char *) "menu", NULL
5661 };
5662
5663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
5664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5666 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5668 {
5669 PyThreadState* __tstate = wxPyBeginAllowThreads();
5670 (arg1)->AddFilesToMenu(arg2);
5671
5672 wxPyEndAllowThreads(__tstate);
5673 if (PyErr_Occurred()) SWIG_fail;
5674 }
5675 Py_INCREF(Py_None); resultobj = Py_None;
5676 return resultobj;
5677 fail:
5678 return NULL;
5679 }
5680
5681
5682 static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) {
5683 PyObject *resultobj;
5684 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5685 int arg2 ;
5686 wxString result;
5687 PyObject * obj0 = 0 ;
5688 PyObject * obj1 = 0 ;
5689 char *kwnames[] = {
5690 (char *) "self",(char *) "i", NULL
5691 };
5692
5693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
5694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5696 arg2 = (int) SWIG_AsInt(obj1);
5697 if (PyErr_Occurred()) SWIG_fail;
5698 {
5699 PyThreadState* __tstate = wxPyBeginAllowThreads();
5700 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
5701
5702 wxPyEndAllowThreads(__tstate);
5703 if (PyErr_Occurred()) SWIG_fail;
5704 }
5705 {
5706 #if wxUSE_UNICODE
5707 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5708 #else
5709 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5710 #endif
5711 }
5712 return resultobj;
5713 fail:
5714 return NULL;
5715 }
5716
5717
5718 static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5719 PyObject *resultobj;
5720 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5721 int result;
5722 PyObject * obj0 = 0 ;
5723 char *kwnames[] = {
5724 (char *) "self", NULL
5725 };
5726
5727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
5728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5730 {
5731 PyThreadState* __tstate = wxPyBeginAllowThreads();
5732 result = (int)((wxFileHistory const *)arg1)->GetCount();
5733
5734 wxPyEndAllowThreads(__tstate);
5735 if (PyErr_Occurred()) SWIG_fail;
5736 }
5737 resultobj = SWIG_FromInt((int)result);
5738 return resultobj;
5739 fail:
5740 return NULL;
5741 }
5742
5743
5744 static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) {
5745 PyObject *obj;
5746 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5747 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
5748 Py_INCREF(obj);
5749 return Py_BuildValue((char *)"");
5750 }
5751 static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5752 PyObject *resultobj;
5753 wxString *arg1 = 0 ;
5754 wxString const &arg2_defvalue = wxPyEmptyString ;
5755 wxString *arg2 = (wxString *) &arg2_defvalue ;
5756 wxSingleInstanceChecker *result;
5757 bool temp1 = False ;
5758 bool temp2 = False ;
5759 PyObject * obj0 = 0 ;
5760 PyObject * obj1 = 0 ;
5761 char *kwnames[] = {
5762 (char *) "name",(char *) "path", NULL
5763 };
5764
5765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
5766 {
5767 arg1 = wxString_in_helper(obj0);
5768 if (arg1 == NULL) SWIG_fail;
5769 temp1 = True;
5770 }
5771 if (obj1) {
5772 {
5773 arg2 = wxString_in_helper(obj1);
5774 if (arg2 == NULL) SWIG_fail;
5775 temp2 = True;
5776 }
5777 }
5778 {
5779 PyThreadState* __tstate = wxPyBeginAllowThreads();
5780 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
5781
5782 wxPyEndAllowThreads(__tstate);
5783 if (PyErr_Occurred()) SWIG_fail;
5784 }
5785 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
5786 {
5787 if (temp1)
5788 delete arg1;
5789 }
5790 {
5791 if (temp2)
5792 delete arg2;
5793 }
5794 return resultobj;
5795 fail:
5796 {
5797 if (temp1)
5798 delete arg1;
5799 }
5800 {
5801 if (temp2)
5802 delete arg2;
5803 }
5804 return NULL;
5805 }
5806
5807
5808 static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5809 PyObject *resultobj;
5810 wxSingleInstanceChecker *result;
5811 char *kwnames[] = {
5812 NULL
5813 };
5814
5815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
5816 {
5817 PyThreadState* __tstate = wxPyBeginAllowThreads();
5818 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
5819
5820 wxPyEndAllowThreads(__tstate);
5821 if (PyErr_Occurred()) SWIG_fail;
5822 }
5823 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
5824 return resultobj;
5825 fail:
5826 return NULL;
5827 }
5828
5829
5830 static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5831 PyObject *resultobj;
5832 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5833 PyObject * obj0 = 0 ;
5834 char *kwnames[] = {
5835 (char *) "self", NULL
5836 };
5837
5838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
5839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5841 {
5842 PyThreadState* __tstate = wxPyBeginAllowThreads();
5843 delete arg1;
5844
5845 wxPyEndAllowThreads(__tstate);
5846 if (PyErr_Occurred()) SWIG_fail;
5847 }
5848 Py_INCREF(Py_None); resultobj = Py_None;
5849 return resultobj;
5850 fail:
5851 return NULL;
5852 }
5853
5854
5855 static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5856 PyObject *resultobj;
5857 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5858 wxString *arg2 = 0 ;
5859 wxString const &arg3_defvalue = wxPyEmptyString ;
5860 wxString *arg3 = (wxString *) &arg3_defvalue ;
5861 bool result;
5862 bool temp2 = False ;
5863 bool temp3 = False ;
5864 PyObject * obj0 = 0 ;
5865 PyObject * obj1 = 0 ;
5866 PyObject * obj2 = 0 ;
5867 char *kwnames[] = {
5868 (char *) "self",(char *) "name",(char *) "path", NULL
5869 };
5870
5871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
5872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5874 {
5875 arg2 = wxString_in_helper(obj1);
5876 if (arg2 == NULL) SWIG_fail;
5877 temp2 = True;
5878 }
5879 if (obj2) {
5880 {
5881 arg3 = wxString_in_helper(obj2);
5882 if (arg3 == NULL) SWIG_fail;
5883 temp3 = True;
5884 }
5885 }
5886 {
5887 PyThreadState* __tstate = wxPyBeginAllowThreads();
5888 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
5889
5890 wxPyEndAllowThreads(__tstate);
5891 if (PyErr_Occurred()) SWIG_fail;
5892 }
5893 {
5894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5895 }
5896 {
5897 if (temp2)
5898 delete arg2;
5899 }
5900 {
5901 if (temp3)
5902 delete arg3;
5903 }
5904 return resultobj;
5905 fail:
5906 {
5907 if (temp2)
5908 delete arg2;
5909 }
5910 {
5911 if (temp3)
5912 delete arg3;
5913 }
5914 return NULL;
5915 }
5916
5917
5918 static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
5919 PyObject *resultobj;
5920 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5921 bool result;
5922 PyObject * obj0 = 0 ;
5923 char *kwnames[] = {
5924 (char *) "self", NULL
5925 };
5926
5927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
5928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5930 {
5931 PyThreadState* __tstate = wxPyBeginAllowThreads();
5932 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
5933
5934 wxPyEndAllowThreads(__tstate);
5935 if (PyErr_Occurred()) SWIG_fail;
5936 }
5937 {
5938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5939 }
5940 return resultobj;
5941 fail:
5942 return NULL;
5943 }
5944
5945
5946 static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) {
5947 PyObject *obj;
5948 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5949 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
5950 Py_INCREF(obj);
5951 return Py_BuildValue((char *)"");
5952 }
5953 static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) {
5954 PyObject *resultobj;
5955 wxWindow *arg1 = (wxWindow *) 0 ;
5956 wxDC *arg2 = 0 ;
5957 int arg3 ;
5958 PyObject * obj0 = 0 ;
5959 PyObject * obj1 = 0 ;
5960 PyObject * obj2 = 0 ;
5961 char *kwnames[] = {
5962 (char *) "window",(char *) "dc",(char *) "method", NULL
5963 };
5964
5965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
5966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5968 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
5969 SWIG_POINTER_EXCEPTION | 0)) == -1)
5970 SWIG_fail;
5971 if (arg2 == NULL) {
5972 PyErr_SetString(PyExc_TypeError,"null reference");
5973 SWIG_fail;
5974 }
5975 arg3 = (int) SWIG_AsInt(obj2);
5976 if (PyErr_Occurred()) SWIG_fail;
5977 {
5978 PyThreadState* __tstate = wxPyBeginAllowThreads();
5979 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
5980
5981 wxPyEndAllowThreads(__tstate);
5982 if (PyErr_Occurred()) SWIG_fail;
5983 }
5984 Py_INCREF(Py_None); resultobj = Py_None;
5985 return resultobj;
5986 fail:
5987 return NULL;
5988 }
5989
5990
5991 static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
5992 PyObject *resultobj;
5993 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
5994 PyObject * obj0 = 0 ;
5995 char *kwnames[] = {
5996 (char *) "self", NULL
5997 };
5998
5999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
6000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6002 {
6003 PyThreadState* __tstate = wxPyBeginAllowThreads();
6004 delete arg1;
6005
6006 wxPyEndAllowThreads(__tstate);
6007 if (PyErr_Occurred()) SWIG_fail;
6008 }
6009 Py_INCREF(Py_None); resultobj = Py_None;
6010 return resultobj;
6011 fail:
6012 return NULL;
6013 }
6014
6015
6016 static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6017 PyObject *resultobj;
6018 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6019 wxString result;
6020 PyObject * obj0 = 0 ;
6021 char *kwnames[] = {
6022 (char *) "self", NULL
6023 };
6024
6025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
6026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6028 {
6029 PyThreadState* __tstate = wxPyBeginAllowThreads();
6030 result = (arg1)->GetTip();
6031
6032 wxPyEndAllowThreads(__tstate);
6033 if (PyErr_Occurred()) SWIG_fail;
6034 }
6035 {
6036 #if wxUSE_UNICODE
6037 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6038 #else
6039 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6040 #endif
6041 }
6042 return resultobj;
6043 fail:
6044 return NULL;
6045 }
6046
6047
6048 static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6049 PyObject *resultobj;
6050 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6051 size_t result;
6052 PyObject * obj0 = 0 ;
6053 char *kwnames[] = {
6054 (char *) "self", NULL
6055 };
6056
6057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",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 result = (size_t)(arg1)->GetCurrentTip();
6063
6064 wxPyEndAllowThreads(__tstate);
6065 if (PyErr_Occurred()) SWIG_fail;
6066 }
6067 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
6068 return resultobj;
6069 fail:
6070 return NULL;
6071 }
6072
6073
6074 static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6075 PyObject *resultobj;
6076 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6077 wxString *arg2 = 0 ;
6078 wxString result;
6079 bool temp2 = False ;
6080 PyObject * obj0 = 0 ;
6081 PyObject * obj1 = 0 ;
6082 char *kwnames[] = {
6083 (char *) "self",(char *) "tip", NULL
6084 };
6085
6086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
6087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6089 {
6090 arg2 = wxString_in_helper(obj1);
6091 if (arg2 == NULL) SWIG_fail;
6092 temp2 = True;
6093 }
6094 {
6095 PyThreadState* __tstate = wxPyBeginAllowThreads();
6096 result = (arg1)->PreprocessTip((wxString const &)*arg2);
6097
6098 wxPyEndAllowThreads(__tstate);
6099 if (PyErr_Occurred()) SWIG_fail;
6100 }
6101 {
6102 #if wxUSE_UNICODE
6103 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6104 #else
6105 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6106 #endif
6107 }
6108 {
6109 if (temp2)
6110 delete arg2;
6111 }
6112 return resultobj;
6113 fail:
6114 {
6115 if (temp2)
6116 delete arg2;
6117 }
6118 return NULL;
6119 }
6120
6121
6122 static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) {
6123 PyObject *obj;
6124 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6125 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
6126 Py_INCREF(obj);
6127 return Py_BuildValue((char *)"");
6128 }
6129 static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6130 PyObject *resultobj;
6131 size_t arg1 ;
6132 wxPyTipProvider *result;
6133 PyObject * obj0 = 0 ;
6134 char *kwnames[] = {
6135 (char *) "currentTip", NULL
6136 };
6137
6138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
6139 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
6140 if (PyErr_Occurred()) SWIG_fail;
6141 {
6142 PyThreadState* __tstate = wxPyBeginAllowThreads();
6143 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
6144
6145 wxPyEndAllowThreads(__tstate);
6146 if (PyErr_Occurred()) SWIG_fail;
6147 }
6148 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
6149 return resultobj;
6150 fail:
6151 return NULL;
6152 }
6153
6154
6155 static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6156 PyObject *resultobj;
6157 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
6158 PyObject *arg2 = (PyObject *) 0 ;
6159 PyObject *arg3 = (PyObject *) 0 ;
6160 PyObject * obj0 = 0 ;
6161 PyObject * obj1 = 0 ;
6162 PyObject * obj2 = 0 ;
6163 char *kwnames[] = {
6164 (char *) "self",(char *) "self",(char *) "_class", NULL
6165 };
6166
6167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider,
6169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6170 arg2 = obj1;
6171 arg3 = obj2;
6172 {
6173 PyThreadState* __tstate = wxPyBeginAllowThreads();
6174 (arg1)->_setCallbackInfo(arg2,arg3);
6175
6176 wxPyEndAllowThreads(__tstate);
6177 if (PyErr_Occurred()) SWIG_fail;
6178 }
6179 Py_INCREF(Py_None); resultobj = Py_None;
6180 return resultobj;
6181 fail:
6182 return NULL;
6183 }
6184
6185
6186 static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) {
6187 PyObject *obj;
6188 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6189 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
6190 Py_INCREF(obj);
6191 return Py_BuildValue((char *)"");
6192 }
6193 static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6194 PyObject *resultobj;
6195 wxWindow *arg1 = (wxWindow *) 0 ;
6196 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
6197 bool arg3 = (bool) True ;
6198 bool result;
6199 PyObject * obj0 = 0 ;
6200 PyObject * obj1 = 0 ;
6201 PyObject * obj2 = 0 ;
6202 char *kwnames[] = {
6203 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
6204 };
6205
6206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
6207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6209 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider,
6210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6211 if (obj2) {
6212 arg3 = (bool) SWIG_AsBool(obj2);
6213 if (PyErr_Occurred()) SWIG_fail;
6214 }
6215 {
6216 PyThreadState* __tstate = wxPyBeginAllowThreads();
6217 result = (bool)wxShowTip(arg1,arg2,arg3);
6218
6219 wxPyEndAllowThreads(__tstate);
6220 if (PyErr_Occurred()) SWIG_fail;
6221 }
6222 {
6223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6224 }
6225 return resultobj;
6226 fail:
6227 return NULL;
6228 }
6229
6230
6231 static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6232 PyObject *resultobj;
6233 wxString *arg1 = 0 ;
6234 size_t arg2 ;
6235 wxTipProvider *result;
6236 bool temp1 = False ;
6237 PyObject * obj0 = 0 ;
6238 PyObject * obj1 = 0 ;
6239 char *kwnames[] = {
6240 (char *) "filename",(char *) "currentTip", NULL
6241 };
6242
6243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
6244 {
6245 arg1 = wxString_in_helper(obj0);
6246 if (arg1 == NULL) SWIG_fail;
6247 temp1 = True;
6248 }
6249 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6250 if (PyErr_Occurred()) SWIG_fail;
6251 {
6252 PyThreadState* __tstate = wxPyBeginAllowThreads();
6253 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
6254
6255 wxPyEndAllowThreads(__tstate);
6256 if (PyErr_Occurred()) SWIG_fail;
6257 }
6258 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
6259 {
6260 if (temp1)
6261 delete arg1;
6262 }
6263 return resultobj;
6264 fail:
6265 {
6266 if (temp1)
6267 delete arg1;
6268 }
6269 return NULL;
6270 }
6271
6272
6273 static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6274 PyObject *resultobj;
6275 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
6276 int arg2 = (int) -1 ;
6277 wxPyTimer *result;
6278 PyObject * obj0 = 0 ;
6279 PyObject * obj1 = 0 ;
6280 char *kwnames[] = {
6281 (char *) "owner",(char *) "id", NULL
6282 };
6283
6284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
6285 if (obj0) {
6286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
6287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6288 }
6289 if (obj1) {
6290 arg2 = (int) SWIG_AsInt(obj1);
6291 if (PyErr_Occurred()) SWIG_fail;
6292 }
6293 {
6294 PyThreadState* __tstate = wxPyBeginAllowThreads();
6295 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
6296
6297 wxPyEndAllowThreads(__tstate);
6298 if (PyErr_Occurred()) SWIG_fail;
6299 }
6300 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
6301 return resultobj;
6302 fail:
6303 return NULL;
6304 }
6305
6306
6307 static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6308 PyObject *resultobj;
6309 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6310 PyObject * obj0 = 0 ;
6311 char *kwnames[] = {
6312 (char *) "self", NULL
6313 };
6314
6315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
6316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6318 {
6319 PyThreadState* __tstate = wxPyBeginAllowThreads();
6320 delete arg1;
6321
6322 wxPyEndAllowThreads(__tstate);
6323 if (PyErr_Occurred()) SWIG_fail;
6324 }
6325 Py_INCREF(Py_None); resultobj = Py_None;
6326 return resultobj;
6327 fail:
6328 return NULL;
6329 }
6330
6331
6332 static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6333 PyObject *resultobj;
6334 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6335 PyObject *arg2 = (PyObject *) 0 ;
6336 PyObject *arg3 = (PyObject *) 0 ;
6337 int arg4 = (int) 1 ;
6338 PyObject * obj0 = 0 ;
6339 PyObject * obj1 = 0 ;
6340 PyObject * obj2 = 0 ;
6341 PyObject * obj3 = 0 ;
6342 char *kwnames[] = {
6343 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
6344 };
6345
6346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6349 arg2 = obj1;
6350 arg3 = obj2;
6351 if (obj3) {
6352 arg4 = (int) SWIG_AsInt(obj3);
6353 if (PyErr_Occurred()) SWIG_fail;
6354 }
6355 {
6356 PyThreadState* __tstate = wxPyBeginAllowThreads();
6357 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
6358
6359 wxPyEndAllowThreads(__tstate);
6360 if (PyErr_Occurred()) SWIG_fail;
6361 }
6362 Py_INCREF(Py_None); resultobj = Py_None;
6363 return resultobj;
6364 fail:
6365 return NULL;
6366 }
6367
6368
6369 static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6370 PyObject *resultobj;
6371 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6372 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
6373 int arg3 = (int) -1 ;
6374 PyObject * obj0 = 0 ;
6375 PyObject * obj1 = 0 ;
6376 PyObject * obj2 = 0 ;
6377 char *kwnames[] = {
6378 (char *) "self",(char *) "owner",(char *) "id", NULL
6379 };
6380
6381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
6382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6384 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
6385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6386 if (obj2) {
6387 arg3 = (int) SWIG_AsInt(obj2);
6388 if (PyErr_Occurred()) SWIG_fail;
6389 }
6390 {
6391 PyThreadState* __tstate = wxPyBeginAllowThreads();
6392 (arg1)->SetOwner(arg2,arg3);
6393
6394 wxPyEndAllowThreads(__tstate);
6395 if (PyErr_Occurred()) SWIG_fail;
6396 }
6397 Py_INCREF(Py_None); resultobj = Py_None;
6398 return resultobj;
6399 fail:
6400 return NULL;
6401 }
6402
6403
6404 static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6405 PyObject *resultobj;
6406 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6407 int arg2 = (int) -1 ;
6408 bool arg3 = (bool) False ;
6409 bool result;
6410 PyObject * obj0 = 0 ;
6411 PyObject * obj1 = 0 ;
6412 PyObject * obj2 = 0 ;
6413 char *kwnames[] = {
6414 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
6415 };
6416
6417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6420 if (obj1) {
6421 arg2 = (int) SWIG_AsInt(obj1);
6422 if (PyErr_Occurred()) SWIG_fail;
6423 }
6424 if (obj2) {
6425 arg3 = (bool) SWIG_AsBool(obj2);
6426 if (PyErr_Occurred()) SWIG_fail;
6427 }
6428 {
6429 PyThreadState* __tstate = wxPyBeginAllowThreads();
6430 result = (bool)(arg1)->Start(arg2,arg3);
6431
6432 wxPyEndAllowThreads(__tstate);
6433 if (PyErr_Occurred()) SWIG_fail;
6434 }
6435 {
6436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6437 }
6438 return resultobj;
6439 fail:
6440 return NULL;
6441 }
6442
6443
6444 static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
6445 PyObject *resultobj;
6446 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6447 PyObject * obj0 = 0 ;
6448 char *kwnames[] = {
6449 (char *) "self", NULL
6450 };
6451
6452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
6453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6455 {
6456 PyThreadState* __tstate = wxPyBeginAllowThreads();
6457 (arg1)->Stop();
6458
6459 wxPyEndAllowThreads(__tstate);
6460 if (PyErr_Occurred()) SWIG_fail;
6461 }
6462 Py_INCREF(Py_None); resultobj = Py_None;
6463 return resultobj;
6464 fail:
6465 return NULL;
6466 }
6467
6468
6469 static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6470 PyObject *resultobj;
6471 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6472 bool result;
6473 PyObject * obj0 = 0 ;
6474 char *kwnames[] = {
6475 (char *) "self", NULL
6476 };
6477
6478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
6479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6481 {
6482 PyThreadState* __tstate = wxPyBeginAllowThreads();
6483 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
6484
6485 wxPyEndAllowThreads(__tstate);
6486 if (PyErr_Occurred()) SWIG_fail;
6487 }
6488 {
6489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6490 }
6491 return resultobj;
6492 fail:
6493 return NULL;
6494 }
6495
6496
6497 static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6498 PyObject *resultobj;
6499 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6500 int result;
6501 PyObject * obj0 = 0 ;
6502 char *kwnames[] = {
6503 (char *) "self", NULL
6504 };
6505
6506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
6507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6509 {
6510 PyThreadState* __tstate = wxPyBeginAllowThreads();
6511 result = (int)((wxPyTimer const *)arg1)->GetInterval();
6512
6513 wxPyEndAllowThreads(__tstate);
6514 if (PyErr_Occurred()) SWIG_fail;
6515 }
6516 resultobj = SWIG_FromInt((int)result);
6517 return resultobj;
6518 fail:
6519 return NULL;
6520 }
6521
6522
6523 static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) {
6524 PyObject *resultobj;
6525 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6526 bool result;
6527 PyObject * obj0 = 0 ;
6528 char *kwnames[] = {
6529 (char *) "self", NULL
6530 };
6531
6532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
6533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6535 {
6536 PyThreadState* __tstate = wxPyBeginAllowThreads();
6537 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
6538
6539 wxPyEndAllowThreads(__tstate);
6540 if (PyErr_Occurred()) SWIG_fail;
6541 }
6542 {
6543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6544 }
6545 return resultobj;
6546 fail:
6547 return NULL;
6548 }
6549
6550
6551 static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6552 PyObject *resultobj;
6553 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6554 int result;
6555 PyObject * obj0 = 0 ;
6556 char *kwnames[] = {
6557 (char *) "self", NULL
6558 };
6559
6560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
6561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6563 {
6564 PyThreadState* __tstate = wxPyBeginAllowThreads();
6565 result = (int)((wxPyTimer const *)arg1)->GetId();
6566
6567 wxPyEndAllowThreads(__tstate);
6568 if (PyErr_Occurred()) SWIG_fail;
6569 }
6570 resultobj = SWIG_FromInt((int)result);
6571 return resultobj;
6572 fail:
6573 return NULL;
6574 }
6575
6576
6577 static PyObject * Timer_swigregister(PyObject *self, PyObject *args) {
6578 PyObject *obj;
6579 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6580 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
6581 Py_INCREF(obj);
6582 return Py_BuildValue((char *)"");
6583 }
6584 static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
6585 PyObject *resultobj;
6586 int arg1 = (int) 0 ;
6587 int arg2 = (int) 0 ;
6588 wxTimerEvent *result;
6589 PyObject * obj0 = 0 ;
6590 PyObject * obj1 = 0 ;
6591 char *kwnames[] = {
6592 (char *) "timerid",(char *) "interval", NULL
6593 };
6594
6595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
6596 if (obj0) {
6597 arg1 = (int) SWIG_AsInt(obj0);
6598 if (PyErr_Occurred()) SWIG_fail;
6599 }
6600 if (obj1) {
6601 arg2 = (int) SWIG_AsInt(obj1);
6602 if (PyErr_Occurred()) SWIG_fail;
6603 }
6604 {
6605 PyThreadState* __tstate = wxPyBeginAllowThreads();
6606 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
6607
6608 wxPyEndAllowThreads(__tstate);
6609 if (PyErr_Occurred()) SWIG_fail;
6610 }
6611 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
6612 return resultobj;
6613 fail:
6614 return NULL;
6615 }
6616
6617
6618 static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6619 PyObject *resultobj;
6620 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
6621 int result;
6622 PyObject * obj0 = 0 ;
6623 char *kwnames[] = {
6624 (char *) "self", NULL
6625 };
6626
6627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
6628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent,
6629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6630 {
6631 PyThreadState* __tstate = wxPyBeginAllowThreads();
6632 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
6633
6634 wxPyEndAllowThreads(__tstate);
6635 if (PyErr_Occurred()) SWIG_fail;
6636 }
6637 resultobj = SWIG_FromInt((int)result);
6638 return resultobj;
6639 fail:
6640 return NULL;
6641 }
6642
6643
6644 static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) {
6645 PyObject *obj;
6646 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6647 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
6648 Py_INCREF(obj);
6649 return Py_BuildValue((char *)"");
6650 }
6651 static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) {
6652 PyObject *resultobj;
6653 wxTimer *arg1 = 0 ;
6654 wxTimerRunner *result;
6655 PyObject * obj0 = 0 ;
6656
6657 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
6658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6659 SWIG_POINTER_EXCEPTION | 0)) == -1)
6660 SWIG_fail;
6661 if (arg1 == NULL) {
6662 PyErr_SetString(PyExc_TypeError,"null reference");
6663 SWIG_fail;
6664 }
6665 {
6666 PyThreadState* __tstate = wxPyBeginAllowThreads();
6667 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
6668
6669 wxPyEndAllowThreads(__tstate);
6670 if (PyErr_Occurred()) SWIG_fail;
6671 }
6672 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6673 return resultobj;
6674 fail:
6675 return NULL;
6676 }
6677
6678
6679 static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) {
6680 PyObject *resultobj;
6681 wxTimer *arg1 = 0 ;
6682 int arg2 ;
6683 bool arg3 = (bool) False ;
6684 wxTimerRunner *result;
6685 PyObject * obj0 = 0 ;
6686 PyObject * obj1 = 0 ;
6687 PyObject * obj2 = 0 ;
6688
6689 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
6690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6691 SWIG_POINTER_EXCEPTION | 0)) == -1)
6692 SWIG_fail;
6693 if (arg1 == NULL) {
6694 PyErr_SetString(PyExc_TypeError,"null reference");
6695 SWIG_fail;
6696 }
6697 arg2 = (int) SWIG_AsInt(obj1);
6698 if (PyErr_Occurred()) SWIG_fail;
6699 if (obj2) {
6700 arg3 = (bool) SWIG_AsBool(obj2);
6701 if (PyErr_Occurred()) SWIG_fail;
6702 }
6703 {
6704 PyThreadState* __tstate = wxPyBeginAllowThreads();
6705 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
6706
6707 wxPyEndAllowThreads(__tstate);
6708 if (PyErr_Occurred()) SWIG_fail;
6709 }
6710 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6711 return resultobj;
6712 fail:
6713 return NULL;
6714 }
6715
6716
6717 static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
6718 int argc;
6719 PyObject *argv[4];
6720 int ii;
6721
6722 argc = PyObject_Length(args);
6723 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
6724 argv[ii] = PyTuple_GetItem(args,ii);
6725 }
6726 if (argc == 1) {
6727 int _v;
6728 {
6729 void *ptr;
6730 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6731 _v = 0;
6732 PyErr_Clear();
6733 } else {
6734 _v = 1;
6735 }
6736 }
6737 if (_v) {
6738 return _wrap_new_TimerRunner__SWIG_0(self,args);
6739 }
6740 }
6741 if ((argc >= 2) && (argc <= 3)) {
6742 int _v;
6743 {
6744 void *ptr;
6745 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6746 _v = 0;
6747 PyErr_Clear();
6748 } else {
6749 _v = 1;
6750 }
6751 }
6752 if (_v) {
6753 _v = SWIG_CheckInt(argv[1]);
6754 if (_v) {
6755 if (argc <= 2) {
6756 return _wrap_new_TimerRunner__SWIG_1(self,args);
6757 }
6758 _v = SWIG_CheckBool(argv[2]);
6759 if (_v) {
6760 return _wrap_new_TimerRunner__SWIG_1(self,args);
6761 }
6762 }
6763 }
6764 }
6765
6766 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
6767 return NULL;
6768 }
6769
6770
6771 static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) {
6772 PyObject *resultobj;
6773 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6774 PyObject * obj0 = 0 ;
6775 char *kwnames[] = {
6776 (char *) "self", NULL
6777 };
6778
6779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
6780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
6781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6782 {
6783 PyThreadState* __tstate = wxPyBeginAllowThreads();
6784 delete arg1;
6785
6786 wxPyEndAllowThreads(__tstate);
6787 if (PyErr_Occurred()) SWIG_fail;
6788 }
6789 Py_INCREF(Py_None); resultobj = Py_None;
6790 return resultobj;
6791 fail:
6792 return NULL;
6793 }
6794
6795
6796 static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6797 PyObject *resultobj;
6798 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6799 int arg2 ;
6800 bool arg3 = (bool) False ;
6801 PyObject * obj0 = 0 ;
6802 PyObject * obj1 = 0 ;
6803 PyObject * obj2 = 0 ;
6804 char *kwnames[] = {
6805 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
6806 };
6807
6808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
6810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6811 arg2 = (int) SWIG_AsInt(obj1);
6812 if (PyErr_Occurred()) SWIG_fail;
6813 if (obj2) {
6814 arg3 = (bool) SWIG_AsBool(obj2);
6815 if (PyErr_Occurred()) SWIG_fail;
6816 }
6817 {
6818 PyThreadState* __tstate = wxPyBeginAllowThreads();
6819 (arg1)->Start(arg2,arg3);
6820
6821 wxPyEndAllowThreads(__tstate);
6822 if (PyErr_Occurred()) SWIG_fail;
6823 }
6824 Py_INCREF(Py_None); resultobj = Py_None;
6825 return resultobj;
6826 fail:
6827 return NULL;
6828 }
6829
6830
6831 static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) {
6832 PyObject *obj;
6833 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6834 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
6835 Py_INCREF(obj);
6836 return Py_BuildValue((char *)"");
6837 }
6838 static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) {
6839 PyObject *resultobj;
6840 wxLog *result;
6841 char *kwnames[] = {
6842 NULL
6843 };
6844
6845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
6846 {
6847 PyThreadState* __tstate = wxPyBeginAllowThreads();
6848 result = (wxLog *)new wxLog();
6849
6850 wxPyEndAllowThreads(__tstate);
6851 if (PyErr_Occurred()) SWIG_fail;
6852 }
6853 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
6854 return resultobj;
6855 fail:
6856 return NULL;
6857 }
6858
6859
6860 static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
6861 PyObject *resultobj;
6862 bool result;
6863 char *kwnames[] = {
6864 NULL
6865 };
6866
6867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
6868 {
6869 PyThreadState* __tstate = wxPyBeginAllowThreads();
6870 result = (bool)wxLog::IsEnabled();
6871
6872 wxPyEndAllowThreads(__tstate);
6873 if (PyErr_Occurred()) SWIG_fail;
6874 }
6875 {
6876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6877 }
6878 return resultobj;
6879 fail:
6880 return NULL;
6881 }
6882
6883
6884 static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) {
6885 PyObject *resultobj;
6886 bool arg1 = (bool) True ;
6887 bool result;
6888 PyObject * obj0 = 0 ;
6889 char *kwnames[] = {
6890 (char *) "doIt", NULL
6891 };
6892
6893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
6894 if (obj0) {
6895 arg1 = (bool) SWIG_AsBool(obj0);
6896 if (PyErr_Occurred()) SWIG_fail;
6897 }
6898 {
6899 PyThreadState* __tstate = wxPyBeginAllowThreads();
6900 result = (bool)wxLog::EnableLogging(arg1);
6901
6902 wxPyEndAllowThreads(__tstate);
6903 if (PyErr_Occurred()) SWIG_fail;
6904 }
6905 {
6906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6907 }
6908 return resultobj;
6909 fail:
6910 return NULL;
6911 }
6912
6913
6914 static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) {
6915 PyObject *resultobj;
6916 wxLogLevel arg1 ;
6917 wxChar *arg2 = (wxChar *) 0 ;
6918 time_t arg3 ;
6919 PyObject * obj0 = 0 ;
6920 PyObject * obj1 = 0 ;
6921 PyObject * obj2 = 0 ;
6922 char *kwnames[] = {
6923 (char *) "level",(char *) "szString",(char *) "t", NULL
6924 };
6925
6926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
6927 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
6928 if (PyErr_Occurred()) SWIG_fail;
6929 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar,
6930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6931 arg3 = (time_t) SWIG_AsUnsignedInt(obj2);
6932 if (PyErr_Occurred()) SWIG_fail;
6933 {
6934 PyThreadState* __tstate = wxPyBeginAllowThreads();
6935 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
6936
6937 wxPyEndAllowThreads(__tstate);
6938 if (PyErr_Occurred()) SWIG_fail;
6939 }
6940 Py_INCREF(Py_None); resultobj = Py_None;
6941 return resultobj;
6942 fail:
6943 return NULL;
6944 }
6945
6946
6947 static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
6948 PyObject *resultobj;
6949 wxLog *arg1 = (wxLog *) 0 ;
6950 PyObject * obj0 = 0 ;
6951 char *kwnames[] = {
6952 (char *) "self", NULL
6953 };
6954
6955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
6956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
6957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6958 {
6959 PyThreadState* __tstate = wxPyBeginAllowThreads();
6960 (arg1)->Flush();
6961
6962 wxPyEndAllowThreads(__tstate);
6963 if (PyErr_Occurred()) SWIG_fail;
6964 }
6965 Py_INCREF(Py_None); resultobj = Py_None;
6966 return resultobj;
6967 fail:
6968 return NULL;
6969 }
6970
6971
6972 static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) {
6973 PyObject *resultobj;
6974 char *kwnames[] = {
6975 NULL
6976 };
6977
6978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
6979 {
6980 PyThreadState* __tstate = wxPyBeginAllowThreads();
6981 wxLog::FlushActive();
6982
6983 wxPyEndAllowThreads(__tstate);
6984 if (PyErr_Occurred()) SWIG_fail;
6985 }
6986 Py_INCREF(Py_None); resultobj = Py_None;
6987 return resultobj;
6988 fail:
6989 return NULL;
6990 }
6991
6992
6993 static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
6994 PyObject *resultobj;
6995 wxLog *result;
6996 char *kwnames[] = {
6997 NULL
6998 };
6999
7000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
7001 {
7002 PyThreadState* __tstate = wxPyBeginAllowThreads();
7003 result = (wxLog *)wxLog::GetActiveTarget();
7004
7005 wxPyEndAllowThreads(__tstate);
7006 if (PyErr_Occurred()) SWIG_fail;
7007 }
7008 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7009 return resultobj;
7010 fail:
7011 return NULL;
7012 }
7013
7014
7015 static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
7016 PyObject *resultobj;
7017 wxLog *arg1 = (wxLog *) 0 ;
7018 wxLog *result;
7019 PyObject * obj0 = 0 ;
7020 char *kwnames[] = {
7021 (char *) "pLogger", NULL
7022 };
7023
7024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
7025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7027 {
7028 PyThreadState* __tstate = wxPyBeginAllowThreads();
7029 result = (wxLog *)wxLog::SetActiveTarget(arg1);
7030
7031 wxPyEndAllowThreads(__tstate);
7032 if (PyErr_Occurred()) SWIG_fail;
7033 }
7034 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7035 return resultobj;
7036 fail:
7037 return NULL;
7038 }
7039
7040
7041 static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) {
7042 PyObject *resultobj;
7043 char *kwnames[] = {
7044 NULL
7045 };
7046
7047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
7048 {
7049 PyThreadState* __tstate = wxPyBeginAllowThreads();
7050 wxLog::Suspend();
7051
7052 wxPyEndAllowThreads(__tstate);
7053 if (PyErr_Occurred()) SWIG_fail;
7054 }
7055 Py_INCREF(Py_None); resultobj = Py_None;
7056 return resultobj;
7057 fail:
7058 return NULL;
7059 }
7060
7061
7062 static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
7063 PyObject *resultobj;
7064 char *kwnames[] = {
7065 NULL
7066 };
7067
7068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
7069 {
7070 PyThreadState* __tstate = wxPyBeginAllowThreads();
7071 wxLog::Resume();
7072
7073 wxPyEndAllowThreads(__tstate);
7074 if (PyErr_Occurred()) SWIG_fail;
7075 }
7076 Py_INCREF(Py_None); resultobj = Py_None;
7077 return resultobj;
7078 fail:
7079 return NULL;
7080 }
7081
7082
7083 static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7084 PyObject *resultobj;
7085 bool arg1 = (bool) True ;
7086 PyObject * obj0 = 0 ;
7087 char *kwnames[] = {
7088 (char *) "bVerbose", NULL
7089 };
7090
7091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
7092 if (obj0) {
7093 arg1 = (bool) SWIG_AsBool(obj0);
7094 if (PyErr_Occurred()) SWIG_fail;
7095 }
7096 {
7097 PyThreadState* __tstate = wxPyBeginAllowThreads();
7098 wxLog::SetVerbose(arg1);
7099
7100 wxPyEndAllowThreads(__tstate);
7101 if (PyErr_Occurred()) SWIG_fail;
7102 }
7103 Py_INCREF(Py_None); resultobj = Py_None;
7104 return resultobj;
7105 fail:
7106 return NULL;
7107 }
7108
7109
7110 static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7111 PyObject *resultobj;
7112 wxLogLevel arg1 ;
7113 PyObject * obj0 = 0 ;
7114 char *kwnames[] = {
7115 (char *) "logLevel", NULL
7116 };
7117
7118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
7119 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7120 if (PyErr_Occurred()) SWIG_fail;
7121 {
7122 PyThreadState* __tstate = wxPyBeginAllowThreads();
7123 wxLog::SetLogLevel(arg1);
7124
7125 wxPyEndAllowThreads(__tstate);
7126 if (PyErr_Occurred()) SWIG_fail;
7127 }
7128 Py_INCREF(Py_None); resultobj = Py_None;
7129 return resultobj;
7130 fail:
7131 return NULL;
7132 }
7133
7134
7135 static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
7136 PyObject *resultobj;
7137 char *kwnames[] = {
7138 NULL
7139 };
7140
7141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
7142 {
7143 PyThreadState* __tstate = wxPyBeginAllowThreads();
7144 wxLog::DontCreateOnDemand();
7145
7146 wxPyEndAllowThreads(__tstate);
7147 if (PyErr_Occurred()) SWIG_fail;
7148 }
7149 Py_INCREF(Py_None); resultobj = Py_None;
7150 return resultobj;
7151 fail:
7152 return NULL;
7153 }
7154
7155
7156 static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7157 PyObject *resultobj;
7158 wxTraceMask arg1 ;
7159 PyObject * obj0 = 0 ;
7160 char *kwnames[] = {
7161 (char *) "ulMask", NULL
7162 };
7163
7164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
7165 arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0);
7166 if (PyErr_Occurred()) SWIG_fail;
7167 {
7168 PyThreadState* __tstate = wxPyBeginAllowThreads();
7169 wxLog::SetTraceMask(arg1);
7170
7171 wxPyEndAllowThreads(__tstate);
7172 if (PyErr_Occurred()) SWIG_fail;
7173 }
7174 Py_INCREF(Py_None); resultobj = Py_None;
7175 return resultobj;
7176 fail:
7177 return NULL;
7178 }
7179
7180
7181 static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7182 PyObject *resultobj;
7183 wxString *arg1 = 0 ;
7184 bool temp1 = False ;
7185 PyObject * obj0 = 0 ;
7186 char *kwnames[] = {
7187 (char *) "str", NULL
7188 };
7189
7190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
7191 {
7192 arg1 = wxString_in_helper(obj0);
7193 if (arg1 == NULL) SWIG_fail;
7194 temp1 = True;
7195 }
7196 {
7197 PyThreadState* __tstate = wxPyBeginAllowThreads();
7198 wxLog::AddTraceMask((wxString const &)*arg1);
7199
7200 wxPyEndAllowThreads(__tstate);
7201 if (PyErr_Occurred()) SWIG_fail;
7202 }
7203 Py_INCREF(Py_None); resultobj = Py_None;
7204 {
7205 if (temp1)
7206 delete arg1;
7207 }
7208 return resultobj;
7209 fail:
7210 {
7211 if (temp1)
7212 delete arg1;
7213 }
7214 return NULL;
7215 }
7216
7217
7218 static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7219 PyObject *resultobj;
7220 wxString *arg1 = 0 ;
7221 bool temp1 = False ;
7222 PyObject * obj0 = 0 ;
7223 char *kwnames[] = {
7224 (char *) "str", NULL
7225 };
7226
7227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
7228 {
7229 arg1 = wxString_in_helper(obj0);
7230 if (arg1 == NULL) SWIG_fail;
7231 temp1 = True;
7232 }
7233 {
7234 PyThreadState* __tstate = wxPyBeginAllowThreads();
7235 wxLog::RemoveTraceMask((wxString const &)*arg1);
7236
7237 wxPyEndAllowThreads(__tstate);
7238 if (PyErr_Occurred()) SWIG_fail;
7239 }
7240 Py_INCREF(Py_None); resultobj = Py_None;
7241 {
7242 if (temp1)
7243 delete arg1;
7244 }
7245 return resultobj;
7246 fail:
7247 {
7248 if (temp1)
7249 delete arg1;
7250 }
7251 return NULL;
7252 }
7253
7254
7255 static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7256 PyObject *resultobj;
7257 char *kwnames[] = {
7258 NULL
7259 };
7260
7261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
7262 {
7263 PyThreadState* __tstate = wxPyBeginAllowThreads();
7264 wxLog::ClearTraceMasks();
7265
7266 wxPyEndAllowThreads(__tstate);
7267 if (PyErr_Occurred()) SWIG_fail;
7268 }
7269 Py_INCREF(Py_None); resultobj = Py_None;
7270 return resultobj;
7271 fail:
7272 return NULL;
7273 }
7274
7275
7276 static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7277 PyObject *resultobj;
7278 wxArrayString *result;
7279 char *kwnames[] = {
7280 NULL
7281 };
7282
7283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
7284 {
7285 PyThreadState* __tstate = wxPyBeginAllowThreads();
7286 {
7287 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
7288 result = (wxArrayString *) &_result_ref;
7289 }
7290
7291 wxPyEndAllowThreads(__tstate);
7292 if (PyErr_Occurred()) SWIG_fail;
7293 }
7294 {
7295 resultobj = wxArrayString2PyList_helper(*result);
7296 }
7297 return resultobj;
7298 fail:
7299 return NULL;
7300 }
7301
7302
7303 static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7304 PyObject *resultobj;
7305 wxChar *arg1 = (wxChar *) 0 ;
7306 PyObject * obj0 = 0 ;
7307 char *kwnames[] = {
7308 (char *) "ts", NULL
7309 };
7310
7311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
7312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7314 {
7315 PyThreadState* __tstate = wxPyBeginAllowThreads();
7316 wxLog::SetTimestamp((wxChar const *)arg1);
7317
7318 wxPyEndAllowThreads(__tstate);
7319 if (PyErr_Occurred()) SWIG_fail;
7320 }
7321 Py_INCREF(Py_None); resultobj = Py_None;
7322 return resultobj;
7323 fail:
7324 return NULL;
7325 }
7326
7327
7328 static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7329 PyObject *resultobj;
7330 bool result;
7331 char *kwnames[] = {
7332 NULL
7333 };
7334
7335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
7336 {
7337 PyThreadState* __tstate = wxPyBeginAllowThreads();
7338 result = (bool)wxLog::GetVerbose();
7339
7340 wxPyEndAllowThreads(__tstate);
7341 if (PyErr_Occurred()) SWIG_fail;
7342 }
7343 {
7344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7345 }
7346 return resultobj;
7347 fail:
7348 return NULL;
7349 }
7350
7351
7352 static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7353 PyObject *resultobj;
7354 wxTraceMask result;
7355 char *kwnames[] = {
7356 NULL
7357 };
7358
7359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
7360 {
7361 PyThreadState* __tstate = wxPyBeginAllowThreads();
7362 result = (wxTraceMask)wxLog::GetTraceMask();
7363
7364 wxPyEndAllowThreads(__tstate);
7365 if (PyErr_Occurred()) SWIG_fail;
7366 }
7367 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7368 return resultobj;
7369 fail:
7370 return NULL;
7371 }
7372
7373
7374 static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7375 PyObject *resultobj;
7376 wxChar *arg1 = (wxChar *) 0 ;
7377 bool result;
7378 PyObject * obj0 = 0 ;
7379 char *kwnames[] = {
7380 (char *) "mask", NULL
7381 };
7382
7383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
7384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7386 {
7387 PyThreadState* __tstate = wxPyBeginAllowThreads();
7388 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
7389
7390 wxPyEndAllowThreads(__tstate);
7391 if (PyErr_Occurred()) SWIG_fail;
7392 }
7393 {
7394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7395 }
7396 return resultobj;
7397 fail:
7398 return NULL;
7399 }
7400
7401
7402 static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7403 PyObject *resultobj;
7404 wxLogLevel result;
7405 char *kwnames[] = {
7406 NULL
7407 };
7408
7409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
7410 {
7411 PyThreadState* __tstate = wxPyBeginAllowThreads();
7412 result = (wxLogLevel)wxLog::GetLogLevel();
7413
7414 wxPyEndAllowThreads(__tstate);
7415 if (PyErr_Occurred()) SWIG_fail;
7416 }
7417 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7418 return resultobj;
7419 fail:
7420 return NULL;
7421 }
7422
7423
7424 static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7425 PyObject *resultobj;
7426 wxChar *result;
7427 char *kwnames[] = {
7428 NULL
7429 };
7430
7431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
7432 {
7433 PyThreadState* __tstate = wxPyBeginAllowThreads();
7434 result = (wxChar *)wxLog::GetTimestamp();
7435
7436 wxPyEndAllowThreads(__tstate);
7437 if (PyErr_Occurred()) SWIG_fail;
7438 }
7439 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
7440 return resultobj;
7441 fail:
7442 return NULL;
7443 }
7444
7445
7446 static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7447 PyObject *resultobj;
7448 wxString result;
7449 char *kwnames[] = {
7450 NULL
7451 };
7452
7453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
7454 {
7455 PyThreadState* __tstate = wxPyBeginAllowThreads();
7456 result = Log_TimeStamp();
7457
7458 wxPyEndAllowThreads(__tstate);
7459 if (PyErr_Occurred()) SWIG_fail;
7460 }
7461 {
7462 #if wxUSE_UNICODE
7463 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7464 #else
7465 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7466 #endif
7467 }
7468 return resultobj;
7469 fail:
7470 return NULL;
7471 }
7472
7473
7474 static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
7475 PyObject *resultobj;
7476 wxLog *arg1 = (wxLog *) 0 ;
7477 PyObject * obj0 = 0 ;
7478 char *kwnames[] = {
7479 (char *) "self", NULL
7480 };
7481
7482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
7483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7485 {
7486 PyThreadState* __tstate = wxPyBeginAllowThreads();
7487 wxLog_Destroy(arg1);
7488
7489 wxPyEndAllowThreads(__tstate);
7490 if (PyErr_Occurred()) SWIG_fail;
7491 }
7492 Py_INCREF(Py_None); resultobj = Py_None;
7493 return resultobj;
7494 fail:
7495 return NULL;
7496 }
7497
7498
7499 static PyObject * Log_swigregister(PyObject *self, PyObject *args) {
7500 PyObject *obj;
7501 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7502 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
7503 Py_INCREF(obj);
7504 return Py_BuildValue((char *)"");
7505 }
7506 static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) {
7507 PyObject *resultobj;
7508 wxLogStderr *result;
7509 char *kwnames[] = {
7510 NULL
7511 };
7512
7513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
7514 {
7515 PyThreadState* __tstate = wxPyBeginAllowThreads();
7516 result = (wxLogStderr *)new wxLogStderr();
7517
7518 wxPyEndAllowThreads(__tstate);
7519 if (PyErr_Occurred()) SWIG_fail;
7520 }
7521 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
7522 return resultobj;
7523 fail:
7524 return NULL;
7525 }
7526
7527
7528 static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) {
7529 PyObject *obj;
7530 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7531 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
7532 Py_INCREF(obj);
7533 return Py_BuildValue((char *)"");
7534 }
7535 static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7536 PyObject *resultobj;
7537 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7538 wxLogTextCtrl *result;
7539 PyObject * obj0 = 0 ;
7540 char *kwnames[] = {
7541 (char *) "pTextCtrl", NULL
7542 };
7543
7544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
7545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7547 {
7548 PyThreadState* __tstate = wxPyBeginAllowThreads();
7549 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
7550
7551 wxPyEndAllowThreads(__tstate);
7552 if (PyErr_Occurred()) SWIG_fail;
7553 }
7554 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
7555 return resultobj;
7556 fail:
7557 return NULL;
7558 }
7559
7560
7561 static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) {
7562 PyObject *obj;
7563 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7564 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
7565 Py_INCREF(obj);
7566 return Py_BuildValue((char *)"");
7567 }
7568 static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) {
7569 PyObject *resultobj;
7570 wxLogGui *result;
7571 char *kwnames[] = {
7572 NULL
7573 };
7574
7575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
7576 {
7577 PyThreadState* __tstate = wxPyBeginAllowThreads();
7578 result = (wxLogGui *)new wxLogGui();
7579
7580 wxPyEndAllowThreads(__tstate);
7581 if (PyErr_Occurred()) SWIG_fail;
7582 }
7583 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
7584 return resultobj;
7585 fail:
7586 return NULL;
7587 }
7588
7589
7590 static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) {
7591 PyObject *obj;
7592 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7593 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
7594 Py_INCREF(obj);
7595 return Py_BuildValue((char *)"");
7596 }
7597 static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
7598 PyObject *resultobj;
7599 wxFrame *arg1 = (wxFrame *) 0 ;
7600 wxString *arg2 = 0 ;
7601 bool arg3 = (bool) True ;
7602 bool arg4 = (bool) True ;
7603 wxLogWindow *result;
7604 bool temp2 = False ;
7605 PyObject * obj0 = 0 ;
7606 PyObject * obj1 = 0 ;
7607 PyObject * obj2 = 0 ;
7608 PyObject * obj3 = 0 ;
7609 char *kwnames[] = {
7610 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
7611 };
7612
7613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
7615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7616 {
7617 arg2 = wxString_in_helper(obj1);
7618 if (arg2 == NULL) SWIG_fail;
7619 temp2 = True;
7620 }
7621 if (obj2) {
7622 arg3 = (bool) SWIG_AsBool(obj2);
7623 if (PyErr_Occurred()) SWIG_fail;
7624 }
7625 if (obj3) {
7626 arg4 = (bool) SWIG_AsBool(obj3);
7627 if (PyErr_Occurred()) SWIG_fail;
7628 }
7629 {
7630 PyThreadState* __tstate = wxPyBeginAllowThreads();
7631 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
7632
7633 wxPyEndAllowThreads(__tstate);
7634 if (PyErr_Occurred()) SWIG_fail;
7635 }
7636 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
7637 {
7638 if (temp2)
7639 delete arg2;
7640 }
7641 return resultobj;
7642 fail:
7643 {
7644 if (temp2)
7645 delete arg2;
7646 }
7647 return NULL;
7648 }
7649
7650
7651 static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
7652 PyObject *resultobj;
7653 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7654 bool arg2 = (bool) True ;
7655 PyObject * obj0 = 0 ;
7656 PyObject * obj1 = 0 ;
7657 char *kwnames[] = {
7658 (char *) "self",(char *) "bShow", NULL
7659 };
7660
7661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
7662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7664 if (obj1) {
7665 arg2 = (bool) SWIG_AsBool(obj1);
7666 if (PyErr_Occurred()) SWIG_fail;
7667 }
7668 {
7669 PyThreadState* __tstate = wxPyBeginAllowThreads();
7670 (arg1)->Show(arg2);
7671
7672 wxPyEndAllowThreads(__tstate);
7673 if (PyErr_Occurred()) SWIG_fail;
7674 }
7675 Py_INCREF(Py_None); resultobj = Py_None;
7676 return resultobj;
7677 fail:
7678 return NULL;
7679 }
7680
7681
7682 static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
7683 PyObject *resultobj;
7684 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7685 wxFrame *result;
7686 PyObject * obj0 = 0 ;
7687 char *kwnames[] = {
7688 (char *) "self", NULL
7689 };
7690
7691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
7692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7694 {
7695 PyThreadState* __tstate = wxPyBeginAllowThreads();
7696 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
7697
7698 wxPyEndAllowThreads(__tstate);
7699 if (PyErr_Occurred()) SWIG_fail;
7700 }
7701 {
7702 resultobj = wxPyMake_wxObject(result);
7703 }
7704 return resultobj;
7705 fail:
7706 return NULL;
7707 }
7708
7709
7710 static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7711 PyObject *resultobj;
7712 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7713 wxLog *result;
7714 PyObject * obj0 = 0 ;
7715 char *kwnames[] = {
7716 (char *) "self", NULL
7717 };
7718
7719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
7720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7722 {
7723 PyThreadState* __tstate = wxPyBeginAllowThreads();
7724 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
7725
7726 wxPyEndAllowThreads(__tstate);
7727 if (PyErr_Occurred()) SWIG_fail;
7728 }
7729 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7730 return resultobj;
7731 fail:
7732 return NULL;
7733 }
7734
7735
7736 static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7737 PyObject *resultobj;
7738 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7739 bool result;
7740 PyObject * obj0 = 0 ;
7741 char *kwnames[] = {
7742 (char *) "self", NULL
7743 };
7744
7745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
7746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7748 {
7749 PyThreadState* __tstate = wxPyBeginAllowThreads();
7750 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
7751
7752 wxPyEndAllowThreads(__tstate);
7753 if (PyErr_Occurred()) SWIG_fail;
7754 }
7755 {
7756 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7757 }
7758 return resultobj;
7759 fail:
7760 return NULL;
7761 }
7762
7763
7764 static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7765 PyObject *resultobj;
7766 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7767 bool arg2 ;
7768 PyObject * obj0 = 0 ;
7769 PyObject * obj1 = 0 ;
7770 char *kwnames[] = {
7771 (char *) "self",(char *) "bDoPass", NULL
7772 };
7773
7774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
7775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7777 arg2 = (bool) SWIG_AsBool(obj1);
7778 if (PyErr_Occurred()) SWIG_fail;
7779 {
7780 PyThreadState* __tstate = wxPyBeginAllowThreads();
7781 (arg1)->PassMessages(arg2);
7782
7783 wxPyEndAllowThreads(__tstate);
7784 if (PyErr_Occurred()) SWIG_fail;
7785 }
7786 Py_INCREF(Py_None); resultobj = Py_None;
7787 return resultobj;
7788 fail:
7789 return NULL;
7790 }
7791
7792
7793 static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) {
7794 PyObject *obj;
7795 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7796 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
7797 Py_INCREF(obj);
7798 return Py_BuildValue((char *)"");
7799 }
7800 static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) {
7801 PyObject *resultobj;
7802 wxLog *arg1 = (wxLog *) 0 ;
7803 wxLogChain *result;
7804 PyObject * obj0 = 0 ;
7805 char *kwnames[] = {
7806 (char *) "logger", NULL
7807 };
7808
7809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
7810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7812 {
7813 PyThreadState* __tstate = wxPyBeginAllowThreads();
7814 result = (wxLogChain *)new wxLogChain(arg1);
7815
7816 wxPyEndAllowThreads(__tstate);
7817 if (PyErr_Occurred()) SWIG_fail;
7818 }
7819 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
7820 return resultobj;
7821 fail:
7822 return NULL;
7823 }
7824
7825
7826 static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7827 PyObject *resultobj;
7828 wxLogChain *arg1 = (wxLogChain *) 0 ;
7829 wxLog *arg2 = (wxLog *) 0 ;
7830 PyObject * obj0 = 0 ;
7831 PyObject * obj1 = 0 ;
7832 char *kwnames[] = {
7833 (char *) "self",(char *) "logger", NULL
7834 };
7835
7836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
7837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7839 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog,
7840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7841 {
7842 PyThreadState* __tstate = wxPyBeginAllowThreads();
7843 (arg1)->SetLog(arg2);
7844
7845 wxPyEndAllowThreads(__tstate);
7846 if (PyErr_Occurred()) SWIG_fail;
7847 }
7848 Py_INCREF(Py_None); resultobj = Py_None;
7849 return resultobj;
7850 fail:
7851 return NULL;
7852 }
7853
7854
7855 static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7856 PyObject *resultobj;
7857 wxLogChain *arg1 = (wxLogChain *) 0 ;
7858 bool arg2 ;
7859 PyObject * obj0 = 0 ;
7860 PyObject * obj1 = 0 ;
7861 char *kwnames[] = {
7862 (char *) "self",(char *) "bDoPass", NULL
7863 };
7864
7865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
7866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7868 arg2 = (bool) SWIG_AsBool(obj1);
7869 if (PyErr_Occurred()) SWIG_fail;
7870 {
7871 PyThreadState* __tstate = wxPyBeginAllowThreads();
7872 (arg1)->PassMessages(arg2);
7873
7874 wxPyEndAllowThreads(__tstate);
7875 if (PyErr_Occurred()) SWIG_fail;
7876 }
7877 Py_INCREF(Py_None); resultobj = Py_None;
7878 return resultobj;
7879 fail:
7880 return NULL;
7881 }
7882
7883
7884 static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7885 PyObject *resultobj;
7886 wxLogChain *arg1 = (wxLogChain *) 0 ;
7887 bool result;
7888 PyObject * obj0 = 0 ;
7889 char *kwnames[] = {
7890 (char *) "self", NULL
7891 };
7892
7893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
7894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7896 {
7897 PyThreadState* __tstate = wxPyBeginAllowThreads();
7898 result = (bool)(arg1)->IsPassingMessages();
7899
7900 wxPyEndAllowThreads(__tstate);
7901 if (PyErr_Occurred()) SWIG_fail;
7902 }
7903 {
7904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7905 }
7906 return resultobj;
7907 fail:
7908 return NULL;
7909 }
7910
7911
7912 static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7913 PyObject *resultobj;
7914 wxLogChain *arg1 = (wxLogChain *) 0 ;
7915 wxLog *result;
7916 PyObject * obj0 = 0 ;
7917 char *kwnames[] = {
7918 (char *) "self", NULL
7919 };
7920
7921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
7922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7924 {
7925 PyThreadState* __tstate = wxPyBeginAllowThreads();
7926 result = (wxLog *)(arg1)->GetOldLog();
7927
7928 wxPyEndAllowThreads(__tstate);
7929 if (PyErr_Occurred()) SWIG_fail;
7930 }
7931 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7932 return resultobj;
7933 fail:
7934 return NULL;
7935 }
7936
7937
7938 static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) {
7939 PyObject *obj;
7940 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7941 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
7942 Py_INCREF(obj);
7943 return Py_BuildValue((char *)"");
7944 }
7945 static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) {
7946 PyObject *resultobj;
7947 unsigned long result;
7948 char *kwnames[] = {
7949 NULL
7950 };
7951
7952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
7953 {
7954 PyThreadState* __tstate = wxPyBeginAllowThreads();
7955 result = (unsigned long)wxSysErrorCode();
7956
7957 wxPyEndAllowThreads(__tstate);
7958 if (PyErr_Occurred()) SWIG_fail;
7959 }
7960 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7961 return resultobj;
7962 fail:
7963 return NULL;
7964 }
7965
7966
7967 static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) {
7968 PyObject *resultobj;
7969 unsigned long arg1 = (unsigned long) 0 ;
7970 wxString result;
7971 PyObject * obj0 = 0 ;
7972 char *kwnames[] = {
7973 (char *) "nErrCode", NULL
7974 };
7975
7976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
7977 if (obj0) {
7978 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
7979 if (PyErr_Occurred()) SWIG_fail;
7980 }
7981 {
7982 PyThreadState* __tstate = wxPyBeginAllowThreads();
7983 result = wxSysErrorMsg(arg1);
7984
7985 wxPyEndAllowThreads(__tstate);
7986 if (PyErr_Occurred()) SWIG_fail;
7987 }
7988 {
7989 #if wxUSE_UNICODE
7990 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7991 #else
7992 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7993 #endif
7994 }
7995 return resultobj;
7996 fail:
7997 return NULL;
7998 }
7999
8000
8001 static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) {
8002 PyObject *resultobj;
8003 wxString *arg1 = 0 ;
8004 bool temp1 = False ;
8005 PyObject * obj0 = 0 ;
8006 char *kwnames[] = {
8007 (char *) "msg", NULL
8008 };
8009
8010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
8011 {
8012 arg1 = wxString_in_helper(obj0);
8013 if (arg1 == NULL) SWIG_fail;
8014 temp1 = True;
8015 }
8016 {
8017 PyThreadState* __tstate = wxPyBeginAllowThreads();
8018 wxLogFatalError((wxString const &)*arg1);
8019
8020 wxPyEndAllowThreads(__tstate);
8021 if (PyErr_Occurred()) SWIG_fail;
8022 }
8023 Py_INCREF(Py_None); resultobj = Py_None;
8024 {
8025 if (temp1)
8026 delete arg1;
8027 }
8028 return resultobj;
8029 fail:
8030 {
8031 if (temp1)
8032 delete arg1;
8033 }
8034 return NULL;
8035 }
8036
8037
8038 static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) {
8039 PyObject *resultobj;
8040 wxString *arg1 = 0 ;
8041 bool temp1 = False ;
8042 PyObject * obj0 = 0 ;
8043 char *kwnames[] = {
8044 (char *) "msg", NULL
8045 };
8046
8047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
8048 {
8049 arg1 = wxString_in_helper(obj0);
8050 if (arg1 == NULL) SWIG_fail;
8051 temp1 = True;
8052 }
8053 {
8054 PyThreadState* __tstate = wxPyBeginAllowThreads();
8055 wxLogError((wxString const &)*arg1);
8056
8057 wxPyEndAllowThreads(__tstate);
8058 if (PyErr_Occurred()) SWIG_fail;
8059 }
8060 Py_INCREF(Py_None); resultobj = Py_None;
8061 {
8062 if (temp1)
8063 delete arg1;
8064 }
8065 return resultobj;
8066 fail:
8067 {
8068 if (temp1)
8069 delete arg1;
8070 }
8071 return NULL;
8072 }
8073
8074
8075 static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) {
8076 PyObject *resultobj;
8077 wxString *arg1 = 0 ;
8078 bool temp1 = False ;
8079 PyObject * obj0 = 0 ;
8080 char *kwnames[] = {
8081 (char *) "msg", NULL
8082 };
8083
8084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
8085 {
8086 arg1 = wxString_in_helper(obj0);
8087 if (arg1 == NULL) SWIG_fail;
8088 temp1 = True;
8089 }
8090 {
8091 PyThreadState* __tstate = wxPyBeginAllowThreads();
8092 wxLogWarning((wxString const &)*arg1);
8093
8094 wxPyEndAllowThreads(__tstate);
8095 if (PyErr_Occurred()) SWIG_fail;
8096 }
8097 Py_INCREF(Py_None); resultobj = Py_None;
8098 {
8099 if (temp1)
8100 delete arg1;
8101 }
8102 return resultobj;
8103 fail:
8104 {
8105 if (temp1)
8106 delete arg1;
8107 }
8108 return NULL;
8109 }
8110
8111
8112 static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8113 PyObject *resultobj;
8114 wxString *arg1 = 0 ;
8115 bool temp1 = False ;
8116 PyObject * obj0 = 0 ;
8117 char *kwnames[] = {
8118 (char *) "msg", NULL
8119 };
8120
8121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
8122 {
8123 arg1 = wxString_in_helper(obj0);
8124 if (arg1 == NULL) SWIG_fail;
8125 temp1 = True;
8126 }
8127 {
8128 PyThreadState* __tstate = wxPyBeginAllowThreads();
8129 wxLogMessage((wxString const &)*arg1);
8130
8131 wxPyEndAllowThreads(__tstate);
8132 if (PyErr_Occurred()) SWIG_fail;
8133 }
8134 Py_INCREF(Py_None); resultobj = Py_None;
8135 {
8136 if (temp1)
8137 delete arg1;
8138 }
8139 return resultobj;
8140 fail:
8141 {
8142 if (temp1)
8143 delete arg1;
8144 }
8145 return NULL;
8146 }
8147
8148
8149 static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8150 PyObject *resultobj;
8151 wxString *arg1 = 0 ;
8152 bool temp1 = False ;
8153 PyObject * obj0 = 0 ;
8154 char *kwnames[] = {
8155 (char *) "msg", NULL
8156 };
8157
8158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
8159 {
8160 arg1 = wxString_in_helper(obj0);
8161 if (arg1 == NULL) SWIG_fail;
8162 temp1 = True;
8163 }
8164 {
8165 PyThreadState* __tstate = wxPyBeginAllowThreads();
8166 wxLogInfo((wxString const &)*arg1);
8167
8168 wxPyEndAllowThreads(__tstate);
8169 if (PyErr_Occurred()) SWIG_fail;
8170 }
8171 Py_INCREF(Py_None); resultobj = Py_None;
8172 {
8173 if (temp1)
8174 delete arg1;
8175 }
8176 return resultobj;
8177 fail:
8178 {
8179 if (temp1)
8180 delete arg1;
8181 }
8182 return NULL;
8183 }
8184
8185
8186 static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) {
8187 PyObject *resultobj;
8188 wxString *arg1 = 0 ;
8189 bool temp1 = False ;
8190 PyObject * obj0 = 0 ;
8191 char *kwnames[] = {
8192 (char *) "msg", NULL
8193 };
8194
8195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
8196 {
8197 arg1 = wxString_in_helper(obj0);
8198 if (arg1 == NULL) SWIG_fail;
8199 temp1 = True;
8200 }
8201 {
8202 PyThreadState* __tstate = wxPyBeginAllowThreads();
8203 wxLogDebug((wxString const &)*arg1);
8204
8205 wxPyEndAllowThreads(__tstate);
8206 if (PyErr_Occurred()) SWIG_fail;
8207 }
8208 Py_INCREF(Py_None); resultobj = Py_None;
8209 {
8210 if (temp1)
8211 delete arg1;
8212 }
8213 return resultobj;
8214 fail:
8215 {
8216 if (temp1)
8217 delete arg1;
8218 }
8219 return NULL;
8220 }
8221
8222
8223 static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
8224 PyObject *resultobj;
8225 wxString *arg1 = 0 ;
8226 bool temp1 = False ;
8227 PyObject * obj0 = 0 ;
8228 char *kwnames[] = {
8229 (char *) "msg", NULL
8230 };
8231
8232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
8233 {
8234 arg1 = wxString_in_helper(obj0);
8235 if (arg1 == NULL) SWIG_fail;
8236 temp1 = True;
8237 }
8238 {
8239 PyThreadState* __tstate = wxPyBeginAllowThreads();
8240 wxLogVerbose((wxString const &)*arg1);
8241
8242 wxPyEndAllowThreads(__tstate);
8243 if (PyErr_Occurred()) SWIG_fail;
8244 }
8245 Py_INCREF(Py_None); resultobj = Py_None;
8246 {
8247 if (temp1)
8248 delete arg1;
8249 }
8250 return resultobj;
8251 fail:
8252 {
8253 if (temp1)
8254 delete arg1;
8255 }
8256 return NULL;
8257 }
8258
8259
8260 static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) {
8261 PyObject *resultobj;
8262 wxString *arg1 = 0 ;
8263 bool temp1 = False ;
8264 PyObject * obj0 = 0 ;
8265 char *kwnames[] = {
8266 (char *) "msg", NULL
8267 };
8268
8269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
8270 {
8271 arg1 = wxString_in_helper(obj0);
8272 if (arg1 == NULL) SWIG_fail;
8273 temp1 = True;
8274 }
8275 {
8276 PyThreadState* __tstate = wxPyBeginAllowThreads();
8277 wxLogStatus((wxString const &)*arg1);
8278
8279 wxPyEndAllowThreads(__tstate);
8280 if (PyErr_Occurred()) SWIG_fail;
8281 }
8282 Py_INCREF(Py_None); resultobj = Py_None;
8283 {
8284 if (temp1)
8285 delete arg1;
8286 }
8287 return resultobj;
8288 fail:
8289 {
8290 if (temp1)
8291 delete arg1;
8292 }
8293 return NULL;
8294 }
8295
8296
8297 static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
8298 PyObject *resultobj;
8299 wxFrame *arg1 = (wxFrame *) 0 ;
8300 wxString *arg2 = 0 ;
8301 bool temp2 = False ;
8302 PyObject * obj0 = 0 ;
8303 PyObject * obj1 = 0 ;
8304 char *kwnames[] = {
8305 (char *) "pFrame",(char *) "msg", NULL
8306 };
8307
8308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
8309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8311 {
8312 arg2 = wxString_in_helper(obj1);
8313 if (arg2 == NULL) SWIG_fail;
8314 temp2 = True;
8315 }
8316 {
8317 PyThreadState* __tstate = wxPyBeginAllowThreads();
8318 wxLogStatus(arg1,(wxString const &)*arg2);
8319
8320 wxPyEndAllowThreads(__tstate);
8321 if (PyErr_Occurred()) SWIG_fail;
8322 }
8323 Py_INCREF(Py_None); resultobj = Py_None;
8324 {
8325 if (temp2)
8326 delete arg2;
8327 }
8328 return resultobj;
8329 fail:
8330 {
8331 if (temp2)
8332 delete arg2;
8333 }
8334 return NULL;
8335 }
8336
8337
8338 static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) {
8339 PyObject *resultobj;
8340 wxString *arg1 = 0 ;
8341 bool temp1 = False ;
8342 PyObject * obj0 = 0 ;
8343 char *kwnames[] = {
8344 (char *) "msg", NULL
8345 };
8346
8347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
8348 {
8349 arg1 = wxString_in_helper(obj0);
8350 if (arg1 == NULL) SWIG_fail;
8351 temp1 = True;
8352 }
8353 {
8354 PyThreadState* __tstate = wxPyBeginAllowThreads();
8355 wxLogSysError((wxString const &)*arg1);
8356
8357 wxPyEndAllowThreads(__tstate);
8358 if (PyErr_Occurred()) SWIG_fail;
8359 }
8360 Py_INCREF(Py_None); resultobj = Py_None;
8361 {
8362 if (temp1)
8363 delete arg1;
8364 }
8365 return resultobj;
8366 fail:
8367 {
8368 if (temp1)
8369 delete arg1;
8370 }
8371 return NULL;
8372 }
8373
8374
8375 static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) {
8376 PyObject *resultobj;
8377 unsigned long arg1 ;
8378 wxString *arg2 = 0 ;
8379 bool temp2 = False ;
8380 PyObject * obj0 = 0 ;
8381 PyObject * obj1 = 0 ;
8382
8383 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8384 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8385 if (PyErr_Occurred()) SWIG_fail;
8386 {
8387 arg2 = wxString_in_helper(obj1);
8388 if (arg2 == NULL) SWIG_fail;
8389 temp2 = True;
8390 }
8391 {
8392 PyThreadState* __tstate = wxPyBeginAllowThreads();
8393 wxLogTrace(arg1,(wxString const &)*arg2);
8394
8395 wxPyEndAllowThreads(__tstate);
8396 if (PyErr_Occurred()) SWIG_fail;
8397 }
8398 Py_INCREF(Py_None); resultobj = Py_None;
8399 {
8400 if (temp2)
8401 delete arg2;
8402 }
8403 return resultobj;
8404 fail:
8405 {
8406 if (temp2)
8407 delete arg2;
8408 }
8409 return NULL;
8410 }
8411
8412
8413 static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) {
8414 PyObject *resultobj;
8415 wxString *arg1 = 0 ;
8416 wxString *arg2 = 0 ;
8417 bool temp1 = False ;
8418 bool temp2 = False ;
8419 PyObject * obj0 = 0 ;
8420 PyObject * obj1 = 0 ;
8421
8422 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8423 {
8424 arg1 = wxString_in_helper(obj0);
8425 if (arg1 == NULL) SWIG_fail;
8426 temp1 = True;
8427 }
8428 {
8429 arg2 = wxString_in_helper(obj1);
8430 if (arg2 == NULL) SWIG_fail;
8431 temp2 = True;
8432 }
8433 {
8434 PyThreadState* __tstate = wxPyBeginAllowThreads();
8435 wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
8436
8437 wxPyEndAllowThreads(__tstate);
8438 if (PyErr_Occurred()) SWIG_fail;
8439 }
8440 Py_INCREF(Py_None); resultobj = Py_None;
8441 {
8442 if (temp1)
8443 delete arg1;
8444 }
8445 {
8446 if (temp2)
8447 delete arg2;
8448 }
8449 return resultobj;
8450 fail:
8451 {
8452 if (temp1)
8453 delete arg1;
8454 }
8455 {
8456 if (temp2)
8457 delete arg2;
8458 }
8459 return NULL;
8460 }
8461
8462
8463 static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
8464 int argc;
8465 PyObject *argv[3];
8466 int ii;
8467
8468 argc = PyObject_Length(args);
8469 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
8470 argv[ii] = PyTuple_GetItem(args,ii);
8471 }
8472 if (argc == 2) {
8473 int _v;
8474 {
8475 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
8476 }
8477 if (_v) {
8478 {
8479 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8480 }
8481 if (_v) {
8482 return _wrap_LogTrace__SWIG_1(self,args);
8483 }
8484 }
8485 }
8486 if (argc == 2) {
8487 int _v;
8488 _v = SWIG_CheckUnsignedLong(argv[0]);
8489 if (_v) {
8490 {
8491 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8492 }
8493 if (_v) {
8494 return _wrap_LogTrace__SWIG_0(self,args);
8495 }
8496 }
8497 }
8498
8499 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
8500 return NULL;
8501 }
8502
8503
8504 static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) {
8505 PyObject *resultobj;
8506 unsigned long arg1 ;
8507 wxString *arg2 = 0 ;
8508 bool temp2 = False ;
8509 PyObject * obj0 = 0 ;
8510 PyObject * obj1 = 0 ;
8511 char *kwnames[] = {
8512 (char *) "level",(char *) "msg", NULL
8513 };
8514
8515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
8516 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8517 if (PyErr_Occurred()) SWIG_fail;
8518 {
8519 arg2 = wxString_in_helper(obj1);
8520 if (arg2 == NULL) SWIG_fail;
8521 temp2 = True;
8522 }
8523 {
8524 PyThreadState* __tstate = wxPyBeginAllowThreads();
8525 wxLogGeneric(arg1,(wxString const &)*arg2);
8526
8527 wxPyEndAllowThreads(__tstate);
8528 if (PyErr_Occurred()) SWIG_fail;
8529 }
8530 Py_INCREF(Py_None); resultobj = Py_None;
8531 {
8532 if (temp2)
8533 delete arg2;
8534 }
8535 return resultobj;
8536 fail:
8537 {
8538 if (temp2)
8539 delete arg2;
8540 }
8541 return NULL;
8542 }
8543
8544
8545 static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8546 PyObject *resultobj;
8547 wxString *arg1 = 0 ;
8548 wxString *arg2 = 0 ;
8549 bool temp1 = False ;
8550 bool temp2 = False ;
8551 PyObject * obj0 = 0 ;
8552 PyObject * obj1 = 0 ;
8553 char *kwnames[] = {
8554 (char *) "title",(char *) "text", NULL
8555 };
8556
8557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
8558 {
8559 arg1 = wxString_in_helper(obj0);
8560 if (arg1 == NULL) SWIG_fail;
8561 temp1 = True;
8562 }
8563 {
8564 arg2 = wxString_in_helper(obj1);
8565 if (arg2 == NULL) SWIG_fail;
8566 temp2 = True;
8567 }
8568 {
8569 PyThreadState* __tstate = wxPyBeginAllowThreads();
8570 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
8571
8572 wxPyEndAllowThreads(__tstate);
8573 if (PyErr_Occurred()) SWIG_fail;
8574 }
8575 Py_INCREF(Py_None); resultobj = Py_None;
8576 {
8577 if (temp1)
8578 delete arg1;
8579 }
8580 {
8581 if (temp2)
8582 delete arg2;
8583 }
8584 return resultobj;
8585 fail:
8586 {
8587 if (temp1)
8588 delete arg1;
8589 }
8590 {
8591 if (temp2)
8592 delete arg2;
8593 }
8594 return NULL;
8595 }
8596
8597
8598 static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8599 PyObject *resultobj;
8600 wxLogNull *result;
8601 char *kwnames[] = {
8602 NULL
8603 };
8604
8605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
8606 {
8607 PyThreadState* __tstate = wxPyBeginAllowThreads();
8608 result = (wxLogNull *)new wxLogNull();
8609
8610 wxPyEndAllowThreads(__tstate);
8611 if (PyErr_Occurred()) SWIG_fail;
8612 }
8613 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
8614 return resultobj;
8615 fail:
8616 return NULL;
8617 }
8618
8619
8620 static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8621 PyObject *resultobj;
8622 wxLogNull *arg1 = (wxLogNull *) 0 ;
8623 PyObject * obj0 = 0 ;
8624 char *kwnames[] = {
8625 (char *) "self", NULL
8626 };
8627
8628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
8629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull,
8630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8631 {
8632 PyThreadState* __tstate = wxPyBeginAllowThreads();
8633 delete arg1;
8634
8635 wxPyEndAllowThreads(__tstate);
8636 if (PyErr_Occurred()) SWIG_fail;
8637 }
8638 Py_INCREF(Py_None); resultobj = Py_None;
8639 return resultobj;
8640 fail:
8641 return NULL;
8642 }
8643
8644
8645 static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) {
8646 PyObject *obj;
8647 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8648 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
8649 Py_INCREF(obj);
8650 return Py_BuildValue((char *)"");
8651 }
8652 static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8653 PyObject *resultobj;
8654 wxPyLog *result;
8655 char *kwnames[] = {
8656 NULL
8657 };
8658
8659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
8660 {
8661 PyThreadState* __tstate = wxPyBeginAllowThreads();
8662 result = (wxPyLog *)new wxPyLog();
8663
8664 wxPyEndAllowThreads(__tstate);
8665 if (PyErr_Occurred()) SWIG_fail;
8666 }
8667 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
8668 return resultobj;
8669 fail:
8670 return NULL;
8671 }
8672
8673
8674 static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8675 PyObject *resultobj;
8676 wxPyLog *arg1 = (wxPyLog *) 0 ;
8677 PyObject *arg2 = (PyObject *) 0 ;
8678 PyObject *arg3 = (PyObject *) 0 ;
8679 PyObject * obj0 = 0 ;
8680 PyObject * obj1 = 0 ;
8681 PyObject * obj2 = 0 ;
8682 char *kwnames[] = {
8683 (char *) "self",(char *) "self",(char *) "_class", NULL
8684 };
8685
8686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog,
8688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8689 arg2 = obj1;
8690 arg3 = obj2;
8691 {
8692 PyThreadState* __tstate = wxPyBeginAllowThreads();
8693 (arg1)->_setCallbackInfo(arg2,arg3);
8694
8695 wxPyEndAllowThreads(__tstate);
8696 if (PyErr_Occurred()) SWIG_fail;
8697 }
8698 Py_INCREF(Py_None); resultobj = Py_None;
8699 return resultobj;
8700 fail:
8701 return NULL;
8702 }
8703
8704
8705 static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) {
8706 PyObject *obj;
8707 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8708 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
8709 Py_INCREF(obj);
8710 return Py_BuildValue((char *)"");
8711 }
8712 static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) {
8713 PyObject *resultobj;
8714 int arg1 ;
8715 int arg2 = (int) wxSIGTERM ;
8716 int result;
8717 PyObject * obj0 = 0 ;
8718 PyObject * obj1 = 0 ;
8719 char *kwnames[] = {
8720 (char *) "pid",(char *) "sig", NULL
8721 };
8722
8723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail;
8724 arg1 = (int) SWIG_AsInt(obj0);
8725 if (PyErr_Occurred()) SWIG_fail;
8726 if (obj1) {
8727 arg2 = (wxSignal) SWIG_AsInt(obj1);
8728 if (PyErr_Occurred()) SWIG_fail;
8729 }
8730 {
8731 PyThreadState* __tstate = wxPyBeginAllowThreads();
8732 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
8733
8734 wxPyEndAllowThreads(__tstate);
8735 if (PyErr_Occurred()) SWIG_fail;
8736 }
8737 resultobj = SWIG_FromInt((int)result);
8738 return resultobj;
8739 fail:
8740 return NULL;
8741 }
8742
8743
8744 static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
8745 PyObject *resultobj;
8746 int arg1 ;
8747 bool result;
8748 PyObject * obj0 = 0 ;
8749 char *kwnames[] = {
8750 (char *) "pid", NULL
8751 };
8752
8753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
8754 arg1 = (int) SWIG_AsInt(obj0);
8755 if (PyErr_Occurred()) SWIG_fail;
8756 {
8757 PyThreadState* __tstate = wxPyBeginAllowThreads();
8758 result = (bool)wxPyProcess::Exists(arg1);
8759
8760 wxPyEndAllowThreads(__tstate);
8761 if (PyErr_Occurred()) SWIG_fail;
8762 }
8763 {
8764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8765 }
8766 return resultobj;
8767 fail:
8768 return NULL;
8769 }
8770
8771
8772 static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
8773 PyObject *resultobj;
8774 wxString *arg1 = 0 ;
8775 int arg2 = (int) wxEXEC_ASYNC ;
8776 wxPyProcess *result;
8777 bool temp1 = False ;
8778 PyObject * obj0 = 0 ;
8779 PyObject * obj1 = 0 ;
8780 char *kwnames[] = {
8781 (char *) "cmd",(char *) "flags", NULL
8782 };
8783
8784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
8785 {
8786 arg1 = wxString_in_helper(obj0);
8787 if (arg1 == NULL) SWIG_fail;
8788 temp1 = True;
8789 }
8790 if (obj1) {
8791 arg2 = (int) SWIG_AsInt(obj1);
8792 if (PyErr_Occurred()) SWIG_fail;
8793 }
8794 {
8795 PyThreadState* __tstate = wxPyBeginAllowThreads();
8796 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
8797
8798 wxPyEndAllowThreads(__tstate);
8799 if (PyErr_Occurred()) SWIG_fail;
8800 }
8801 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
8802 {
8803 if (temp1)
8804 delete arg1;
8805 }
8806 return resultobj;
8807 fail:
8808 {
8809 if (temp1)
8810 delete arg1;
8811 }
8812 return NULL;
8813 }
8814
8815
8816 static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) {
8817 PyObject *resultobj;
8818 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
8819 int arg2 = (int) -1 ;
8820 wxPyProcess *result;
8821 PyObject * obj0 = 0 ;
8822 PyObject * obj1 = 0 ;
8823 char *kwnames[] = {
8824 (char *) "parent",(char *) "id", NULL
8825 };
8826
8827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
8828 if (obj0) {
8829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
8830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8831 }
8832 if (obj1) {
8833 arg2 = (int) SWIG_AsInt(obj1);
8834 if (PyErr_Occurred()) SWIG_fail;
8835 }
8836 {
8837 PyThreadState* __tstate = wxPyBeginAllowThreads();
8838 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
8839
8840 wxPyEndAllowThreads(__tstate);
8841 if (PyErr_Occurred()) SWIG_fail;
8842 }
8843 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
8844 return resultobj;
8845 fail:
8846 return NULL;
8847 }
8848
8849
8850 static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8851 PyObject *resultobj;
8852 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8853 PyObject *arg2 = (PyObject *) 0 ;
8854 PyObject *arg3 = (PyObject *) 0 ;
8855 PyObject * obj0 = 0 ;
8856 PyObject * obj1 = 0 ;
8857 PyObject * obj2 = 0 ;
8858 char *kwnames[] = {
8859 (char *) "self",(char *) "self",(char *) "_class", NULL
8860 };
8861
8862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8865 arg2 = obj1;
8866 arg3 = obj2;
8867 {
8868 PyThreadState* __tstate = wxPyBeginAllowThreads();
8869 (arg1)->_setCallbackInfo(arg2,arg3);
8870
8871 wxPyEndAllowThreads(__tstate);
8872 if (PyErr_Occurred()) SWIG_fail;
8873 }
8874 Py_INCREF(Py_None); resultobj = Py_None;
8875 return resultobj;
8876 fail:
8877 return NULL;
8878 }
8879
8880
8881 static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) {
8882 PyObject *resultobj;
8883 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8884 int arg2 ;
8885 int arg3 ;
8886 PyObject * obj0 = 0 ;
8887 PyObject * obj1 = 0 ;
8888 PyObject * obj2 = 0 ;
8889 char *kwnames[] = {
8890 (char *) "self",(char *) "pid",(char *) "status", NULL
8891 };
8892
8893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
8894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8896 arg2 = (int) SWIG_AsInt(obj1);
8897 if (PyErr_Occurred()) SWIG_fail;
8898 arg3 = (int) SWIG_AsInt(obj2);
8899 if (PyErr_Occurred()) SWIG_fail;
8900 {
8901 PyThreadState* __tstate = wxPyBeginAllowThreads();
8902 (arg1)->base_OnTerminate(arg2,arg3);
8903
8904 wxPyEndAllowThreads(__tstate);
8905 if (PyErr_Occurred()) SWIG_fail;
8906 }
8907 Py_INCREF(Py_None); resultobj = Py_None;
8908 return resultobj;
8909 fail:
8910 return NULL;
8911 }
8912
8913
8914 static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) {
8915 PyObject *resultobj;
8916 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8917 PyObject * obj0 = 0 ;
8918 char *kwnames[] = {
8919 (char *) "self", NULL
8920 };
8921
8922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
8923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8925 {
8926 PyThreadState* __tstate = wxPyBeginAllowThreads();
8927 (arg1)->Redirect();
8928
8929 wxPyEndAllowThreads(__tstate);
8930 if (PyErr_Occurred()) SWIG_fail;
8931 }
8932 Py_INCREF(Py_None); resultobj = Py_None;
8933 return resultobj;
8934 fail:
8935 return NULL;
8936 }
8937
8938
8939 static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) {
8940 PyObject *resultobj;
8941 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8942 bool result;
8943 PyObject * obj0 = 0 ;
8944 char *kwnames[] = {
8945 (char *) "self", NULL
8946 };
8947
8948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
8949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8951 {
8952 PyThreadState* __tstate = wxPyBeginAllowThreads();
8953 result = (bool)(arg1)->IsRedirected();
8954
8955 wxPyEndAllowThreads(__tstate);
8956 if (PyErr_Occurred()) SWIG_fail;
8957 }
8958 {
8959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8960 }
8961 return resultobj;
8962 fail:
8963 return NULL;
8964 }
8965
8966
8967 static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
8968 PyObject *resultobj;
8969 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8970 PyObject * obj0 = 0 ;
8971 char *kwnames[] = {
8972 (char *) "self", NULL
8973 };
8974
8975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
8976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8978 {
8979 PyThreadState* __tstate = wxPyBeginAllowThreads();
8980 (arg1)->Detach();
8981
8982 wxPyEndAllowThreads(__tstate);
8983 if (PyErr_Occurred()) SWIG_fail;
8984 }
8985 Py_INCREF(Py_None); resultobj = Py_None;
8986 return resultobj;
8987 fail:
8988 return NULL;
8989 }
8990
8991
8992 static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
8993 PyObject *resultobj;
8994 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8995 wxInputStream *result;
8996 PyObject * obj0 = 0 ;
8997 char *kwnames[] = {
8998 (char *) "self", NULL
8999 };
9000
9001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
9002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9004 {
9005 PyThreadState* __tstate = wxPyBeginAllowThreads();
9006 result = (wxInputStream *)(arg1)->GetInputStream();
9007
9008 wxPyEndAllowThreads(__tstate);
9009 if (PyErr_Occurred()) SWIG_fail;
9010 }
9011 {
9012 wxPyInputStream * _ptr = NULL;
9013
9014 if (result) {
9015 _ptr = new wxPyInputStream(result);
9016 }
9017 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9018 }
9019 return resultobj;
9020 fail:
9021 return NULL;
9022 }
9023
9024
9025 static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9026 PyObject *resultobj;
9027 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9028 wxInputStream *result;
9029 PyObject * obj0 = 0 ;
9030 char *kwnames[] = {
9031 (char *) "self", NULL
9032 };
9033
9034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",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 = (wxInputStream *)(arg1)->GetErrorStream();
9040
9041 wxPyEndAllowThreads(__tstate);
9042 if (PyErr_Occurred()) SWIG_fail;
9043 }
9044 {
9045 wxPyInputStream * _ptr = NULL;
9046
9047 if (result) {
9048 _ptr = new wxPyInputStream(result);
9049 }
9050 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9051 }
9052 return resultobj;
9053 fail:
9054 return NULL;
9055 }
9056
9057
9058 static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9059 PyObject *resultobj;
9060 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9061 wxOutputStream *result;
9062 PyObject * obj0 = 0 ;
9063 char *kwnames[] = {
9064 (char *) "self", NULL
9065 };
9066
9067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
9068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9070 {
9071 PyThreadState* __tstate = wxPyBeginAllowThreads();
9072 result = (wxOutputStream *)(arg1)->GetOutputStream();
9073
9074 wxPyEndAllowThreads(__tstate);
9075 if (PyErr_Occurred()) SWIG_fail;
9076 }
9077 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
9078 return resultobj;
9079 fail:
9080 return NULL;
9081 }
9082
9083
9084 static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) {
9085 PyObject *resultobj;
9086 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9087 PyObject * obj0 = 0 ;
9088 char *kwnames[] = {
9089 (char *) "self", NULL
9090 };
9091
9092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
9093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9095 {
9096 PyThreadState* __tstate = wxPyBeginAllowThreads();
9097 (arg1)->CloseOutput();
9098
9099 wxPyEndAllowThreads(__tstate);
9100 if (PyErr_Occurred()) SWIG_fail;
9101 }
9102 Py_INCREF(Py_None); resultobj = Py_None;
9103 return resultobj;
9104 fail:
9105 return NULL;
9106 }
9107
9108
9109 static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
9110 PyObject *resultobj;
9111 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9112 bool result;
9113 PyObject * obj0 = 0 ;
9114 char *kwnames[] = {
9115 (char *) "self", NULL
9116 };
9117
9118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
9119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9121 {
9122 PyThreadState* __tstate = wxPyBeginAllowThreads();
9123 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
9124
9125 wxPyEndAllowThreads(__tstate);
9126 if (PyErr_Occurred()) SWIG_fail;
9127 }
9128 {
9129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9130 }
9131 return resultobj;
9132 fail:
9133 return NULL;
9134 }
9135
9136
9137 static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9138 PyObject *resultobj;
9139 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9140 bool result;
9141 PyObject * obj0 = 0 ;
9142 char *kwnames[] = {
9143 (char *) "self", NULL
9144 };
9145
9146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
9147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9149 {
9150 PyThreadState* __tstate = wxPyBeginAllowThreads();
9151 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
9152
9153 wxPyEndAllowThreads(__tstate);
9154 if (PyErr_Occurred()) SWIG_fail;
9155 }
9156 {
9157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9158 }
9159 return resultobj;
9160 fail:
9161 return NULL;
9162 }
9163
9164
9165 static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9166 PyObject *resultobj;
9167 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9168 bool result;
9169 PyObject * obj0 = 0 ;
9170 char *kwnames[] = {
9171 (char *) "self", NULL
9172 };
9173
9174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
9175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9177 {
9178 PyThreadState* __tstate = wxPyBeginAllowThreads();
9179 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
9180
9181 wxPyEndAllowThreads(__tstate);
9182 if (PyErr_Occurred()) SWIG_fail;
9183 }
9184 {
9185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9186 }
9187 return resultobj;
9188 fail:
9189 return NULL;
9190 }
9191
9192
9193 static PyObject * Process_swigregister(PyObject *self, PyObject *args) {
9194 PyObject *obj;
9195 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9196 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
9197 Py_INCREF(obj);
9198 return Py_BuildValue((char *)"");
9199 }
9200 static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9201 PyObject *resultobj;
9202 int arg1 = (int) 0 ;
9203 int arg2 = (int) 0 ;
9204 int arg3 = (int) 0 ;
9205 wxProcessEvent *result;
9206 PyObject * obj0 = 0 ;
9207 PyObject * obj1 = 0 ;
9208 PyObject * obj2 = 0 ;
9209 char *kwnames[] = {
9210 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
9211 };
9212
9213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
9214 if (obj0) {
9215 arg1 = (int) SWIG_AsInt(obj0);
9216 if (PyErr_Occurred()) SWIG_fail;
9217 }
9218 if (obj1) {
9219 arg2 = (int) SWIG_AsInt(obj1);
9220 if (PyErr_Occurred()) SWIG_fail;
9221 }
9222 if (obj2) {
9223 arg3 = (int) SWIG_AsInt(obj2);
9224 if (PyErr_Occurred()) SWIG_fail;
9225 }
9226 {
9227 PyThreadState* __tstate = wxPyBeginAllowThreads();
9228 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
9229
9230 wxPyEndAllowThreads(__tstate);
9231 if (PyErr_Occurred()) SWIG_fail;
9232 }
9233 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
9234 return resultobj;
9235 fail:
9236 return NULL;
9237 }
9238
9239
9240 static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) {
9241 PyObject *resultobj;
9242 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9243 int result;
9244 PyObject * obj0 = 0 ;
9245 char *kwnames[] = {
9246 (char *) "self", NULL
9247 };
9248
9249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
9250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9252 {
9253 PyThreadState* __tstate = wxPyBeginAllowThreads();
9254 result = (int)(arg1)->GetPid();
9255
9256 wxPyEndAllowThreads(__tstate);
9257 if (PyErr_Occurred()) SWIG_fail;
9258 }
9259 resultobj = SWIG_FromInt((int)result);
9260 return resultobj;
9261 fail:
9262 return NULL;
9263 }
9264
9265
9266 static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) {
9267 PyObject *resultobj;
9268 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9269 int result;
9270 PyObject * obj0 = 0 ;
9271 char *kwnames[] = {
9272 (char *) "self", NULL
9273 };
9274
9275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
9276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9278 {
9279 PyThreadState* __tstate = wxPyBeginAllowThreads();
9280 result = (int)(arg1)->GetExitCode();
9281
9282 wxPyEndAllowThreads(__tstate);
9283 if (PyErr_Occurred()) SWIG_fail;
9284 }
9285 resultobj = SWIG_FromInt((int)result);
9286 return resultobj;
9287 fail:
9288 return NULL;
9289 }
9290
9291
9292 static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9293 PyObject *resultobj;
9294 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9295 int arg2 ;
9296 PyObject * obj0 = 0 ;
9297 PyObject * obj1 = 0 ;
9298 char *kwnames[] = {
9299 (char *) "self",(char *) "m_pid", NULL
9300 };
9301
9302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
9303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9305 arg2 = (int) SWIG_AsInt(obj1);
9306 if (PyErr_Occurred()) SWIG_fail;
9307 if (arg1) (arg1)->m_pid = arg2;
9308
9309 Py_INCREF(Py_None); resultobj = Py_None;
9310 return resultobj;
9311 fail:
9312 return NULL;
9313 }
9314
9315
9316 static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9317 PyObject *resultobj;
9318 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9319 int result;
9320 PyObject * obj0 = 0 ;
9321 char *kwnames[] = {
9322 (char *) "self", NULL
9323 };
9324
9325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
9326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9328 result = (int) ((arg1)->m_pid);
9329
9330 resultobj = SWIG_FromInt((int)result);
9331 return resultobj;
9332 fail:
9333 return NULL;
9334 }
9335
9336
9337 static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9338 PyObject *resultobj;
9339 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9340 int arg2 ;
9341 PyObject * obj0 = 0 ;
9342 PyObject * obj1 = 0 ;
9343 char *kwnames[] = {
9344 (char *) "self",(char *) "m_exitcode", NULL
9345 };
9346
9347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
9348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9350 arg2 = (int) SWIG_AsInt(obj1);
9351 if (PyErr_Occurred()) SWIG_fail;
9352 if (arg1) (arg1)->m_exitcode = arg2;
9353
9354 Py_INCREF(Py_None); resultobj = Py_None;
9355 return resultobj;
9356 fail:
9357 return NULL;
9358 }
9359
9360
9361 static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9362 PyObject *resultobj;
9363 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9364 int result;
9365 PyObject * obj0 = 0 ;
9366 char *kwnames[] = {
9367 (char *) "self", NULL
9368 };
9369
9370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
9371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9373 result = (int) ((arg1)->m_exitcode);
9374
9375 resultobj = SWIG_FromInt((int)result);
9376 return resultobj;
9377 fail:
9378 return NULL;
9379 }
9380
9381
9382 static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) {
9383 PyObject *obj;
9384 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9385 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
9386 Py_INCREF(obj);
9387 return Py_BuildValue((char *)"");
9388 }
9389 static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) {
9390 PyObject *resultobj;
9391 wxString *arg1 = 0 ;
9392 int arg2 = (int) wxEXEC_ASYNC ;
9393 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
9394 long result;
9395 bool temp1 = False ;
9396 PyObject * obj0 = 0 ;
9397 PyObject * obj1 = 0 ;
9398 PyObject * obj2 = 0 ;
9399 char *kwnames[] = {
9400 (char *) "command",(char *) "flags",(char *) "process", NULL
9401 };
9402
9403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
9404 {
9405 arg1 = wxString_in_helper(obj0);
9406 if (arg1 == NULL) SWIG_fail;
9407 temp1 = True;
9408 }
9409 if (obj1) {
9410 arg2 = (int) SWIG_AsInt(obj1);
9411 if (PyErr_Occurred()) SWIG_fail;
9412 }
9413 if (obj2) {
9414 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess,
9415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9416 }
9417 {
9418 PyThreadState* __tstate = wxPyBeginAllowThreads();
9419 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
9420
9421 wxPyEndAllowThreads(__tstate);
9422 if (PyErr_Occurred()) SWIG_fail;
9423 }
9424 resultobj = SWIG_FromLong((long)result);
9425 {
9426 if (temp1)
9427 delete arg1;
9428 }
9429 return resultobj;
9430 fail:
9431 {
9432 if (temp1)
9433 delete arg1;
9434 }
9435 return NULL;
9436 }
9437
9438
9439 static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9440 PyObject *resultobj;
9441 int arg1 = (int) wxJOYSTICK1 ;
9442 wxJoystick *result;
9443 PyObject * obj0 = 0 ;
9444 char *kwnames[] = {
9445 (char *) "joystick", NULL
9446 };
9447
9448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
9449 if (obj0) {
9450 arg1 = (int) SWIG_AsInt(obj0);
9451 if (PyErr_Occurred()) SWIG_fail;
9452 }
9453 {
9454 PyThreadState* __tstate = wxPyBeginAllowThreads();
9455 result = (wxJoystick *)new wxJoystick(arg1);
9456
9457 wxPyEndAllowThreads(__tstate);
9458 if (PyErr_Occurred()) SWIG_fail;
9459 }
9460 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
9461 return resultobj;
9462 fail:
9463 return NULL;
9464 }
9465
9466
9467 static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9468 PyObject *resultobj;
9469 wxJoystick *arg1 = (wxJoystick *) 0 ;
9470 PyObject * obj0 = 0 ;
9471 char *kwnames[] = {
9472 (char *) "self", NULL
9473 };
9474
9475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
9476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9478 {
9479 PyThreadState* __tstate = wxPyBeginAllowThreads();
9480 delete arg1;
9481
9482 wxPyEndAllowThreads(__tstate);
9483 if (PyErr_Occurred()) SWIG_fail;
9484 }
9485 Py_INCREF(Py_None); resultobj = Py_None;
9486 return resultobj;
9487 fail:
9488 return NULL;
9489 }
9490
9491
9492 static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9493 PyObject *resultobj;
9494 wxJoystick *arg1 = (wxJoystick *) 0 ;
9495 wxPoint result;
9496 PyObject * obj0 = 0 ;
9497 char *kwnames[] = {
9498 (char *) "self", NULL
9499 };
9500
9501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
9502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9504 {
9505 PyThreadState* __tstate = wxPyBeginAllowThreads();
9506 result = (arg1)->GetPosition();
9507
9508 wxPyEndAllowThreads(__tstate);
9509 if (PyErr_Occurred()) SWIG_fail;
9510 }
9511 {
9512 wxPoint * resultptr;
9513 resultptr = new wxPoint((wxPoint &) result);
9514 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
9515 }
9516 return resultobj;
9517 fail:
9518 return NULL;
9519 }
9520
9521
9522 static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9523 PyObject *resultobj;
9524 wxJoystick *arg1 = (wxJoystick *) 0 ;
9525 int result;
9526 PyObject * obj0 = 0 ;
9527 char *kwnames[] = {
9528 (char *) "self", NULL
9529 };
9530
9531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
9532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9534 {
9535 PyThreadState* __tstate = wxPyBeginAllowThreads();
9536 result = (int)(arg1)->GetZPosition();
9537
9538 wxPyEndAllowThreads(__tstate);
9539 if (PyErr_Occurred()) SWIG_fail;
9540 }
9541 resultobj = SWIG_FromInt((int)result);
9542 return resultobj;
9543 fail:
9544 return NULL;
9545 }
9546
9547
9548 static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
9549 PyObject *resultobj;
9550 wxJoystick *arg1 = (wxJoystick *) 0 ;
9551 int result;
9552 PyObject * obj0 = 0 ;
9553 char *kwnames[] = {
9554 (char *) "self", NULL
9555 };
9556
9557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
9558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9560 {
9561 PyThreadState* __tstate = wxPyBeginAllowThreads();
9562 result = (int)(arg1)->GetButtonState();
9563
9564 wxPyEndAllowThreads(__tstate);
9565 if (PyErr_Occurred()) SWIG_fail;
9566 }
9567 resultobj = SWIG_FromInt((int)result);
9568 return resultobj;
9569 fail:
9570 return NULL;
9571 }
9572
9573
9574 static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9575 PyObject *resultobj;
9576 wxJoystick *arg1 = (wxJoystick *) 0 ;
9577 int result;
9578 PyObject * obj0 = 0 ;
9579 char *kwnames[] = {
9580 (char *) "self", NULL
9581 };
9582
9583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
9584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9586 {
9587 PyThreadState* __tstate = wxPyBeginAllowThreads();
9588 result = (int)(arg1)->GetPOVPosition();
9589
9590 wxPyEndAllowThreads(__tstate);
9591 if (PyErr_Occurred()) SWIG_fail;
9592 }
9593 resultobj = SWIG_FromInt((int)result);
9594 return resultobj;
9595 fail:
9596 return NULL;
9597 }
9598
9599
9600 static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9601 PyObject *resultobj;
9602 wxJoystick *arg1 = (wxJoystick *) 0 ;
9603 int result;
9604 PyObject * obj0 = 0 ;
9605 char *kwnames[] = {
9606 (char *) "self", NULL
9607 };
9608
9609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
9610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9612 {
9613 PyThreadState* __tstate = wxPyBeginAllowThreads();
9614 result = (int)(arg1)->GetPOVCTSPosition();
9615
9616 wxPyEndAllowThreads(__tstate);
9617 if (PyErr_Occurred()) SWIG_fail;
9618 }
9619 resultobj = SWIG_FromInt((int)result);
9620 return resultobj;
9621 fail:
9622 return NULL;
9623 }
9624
9625
9626 static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9627 PyObject *resultobj;
9628 wxJoystick *arg1 = (wxJoystick *) 0 ;
9629 int result;
9630 PyObject * obj0 = 0 ;
9631 char *kwnames[] = {
9632 (char *) "self", NULL
9633 };
9634
9635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
9636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9638 {
9639 PyThreadState* __tstate = wxPyBeginAllowThreads();
9640 result = (int)(arg1)->GetRudderPosition();
9641
9642 wxPyEndAllowThreads(__tstate);
9643 if (PyErr_Occurred()) SWIG_fail;
9644 }
9645 resultobj = SWIG_FromInt((int)result);
9646 return resultobj;
9647 fail:
9648 return NULL;
9649 }
9650
9651
9652 static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9653 PyObject *resultobj;
9654 wxJoystick *arg1 = (wxJoystick *) 0 ;
9655 int result;
9656 PyObject * obj0 = 0 ;
9657 char *kwnames[] = {
9658 (char *) "self", NULL
9659 };
9660
9661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
9662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9664 {
9665 PyThreadState* __tstate = wxPyBeginAllowThreads();
9666 result = (int)(arg1)->GetUPosition();
9667
9668 wxPyEndAllowThreads(__tstate);
9669 if (PyErr_Occurred()) SWIG_fail;
9670 }
9671 resultobj = SWIG_FromInt((int)result);
9672 return resultobj;
9673 fail:
9674 return NULL;
9675 }
9676
9677
9678 static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9679 PyObject *resultobj;
9680 wxJoystick *arg1 = (wxJoystick *) 0 ;
9681 int result;
9682 PyObject * obj0 = 0 ;
9683 char *kwnames[] = {
9684 (char *) "self", NULL
9685 };
9686
9687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
9688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9690 {
9691 PyThreadState* __tstate = wxPyBeginAllowThreads();
9692 result = (int)(arg1)->GetVPosition();
9693
9694 wxPyEndAllowThreads(__tstate);
9695 if (PyErr_Occurred()) SWIG_fail;
9696 }
9697 resultobj = SWIG_FromInt((int)result);
9698 return resultobj;
9699 fail:
9700 return NULL;
9701 }
9702
9703
9704 static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9705 PyObject *resultobj;
9706 wxJoystick *arg1 = (wxJoystick *) 0 ;
9707 int result;
9708 PyObject * obj0 = 0 ;
9709 char *kwnames[] = {
9710 (char *) "self", NULL
9711 };
9712
9713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
9714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9716 {
9717 PyThreadState* __tstate = wxPyBeginAllowThreads();
9718 result = (int)(arg1)->GetMovementThreshold();
9719
9720 wxPyEndAllowThreads(__tstate);
9721 if (PyErr_Occurred()) SWIG_fail;
9722 }
9723 resultobj = SWIG_FromInt((int)result);
9724 return resultobj;
9725 fail:
9726 return NULL;
9727 }
9728
9729
9730 static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9731 PyObject *resultobj;
9732 wxJoystick *arg1 = (wxJoystick *) 0 ;
9733 int arg2 ;
9734 PyObject * obj0 = 0 ;
9735 PyObject * obj1 = 0 ;
9736 char *kwnames[] = {
9737 (char *) "self",(char *) "threshold", NULL
9738 };
9739
9740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
9741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9743 arg2 = (int) SWIG_AsInt(obj1);
9744 if (PyErr_Occurred()) SWIG_fail;
9745 {
9746 PyThreadState* __tstate = wxPyBeginAllowThreads();
9747 (arg1)->SetMovementThreshold(arg2);
9748
9749 wxPyEndAllowThreads(__tstate);
9750 if (PyErr_Occurred()) SWIG_fail;
9751 }
9752 Py_INCREF(Py_None); resultobj = Py_None;
9753 return resultobj;
9754 fail:
9755 return NULL;
9756 }
9757
9758
9759 static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9760 PyObject *resultobj;
9761 wxJoystick *arg1 = (wxJoystick *) 0 ;
9762 bool result;
9763 PyObject * obj0 = 0 ;
9764 char *kwnames[] = {
9765 (char *) "self", NULL
9766 };
9767
9768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
9769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9771 {
9772 PyThreadState* __tstate = wxPyBeginAllowThreads();
9773 result = (bool)(arg1)->IsOk();
9774
9775 wxPyEndAllowThreads(__tstate);
9776 if (PyErr_Occurred()) SWIG_fail;
9777 }
9778 {
9779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9780 }
9781 return resultobj;
9782 fail:
9783 return NULL;
9784 }
9785
9786
9787 static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) {
9788 PyObject *resultobj;
9789 wxJoystick *arg1 = (wxJoystick *) 0 ;
9790 int result;
9791 PyObject * obj0 = 0 ;
9792 char *kwnames[] = {
9793 (char *) "self", NULL
9794 };
9795
9796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
9797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9799 {
9800 PyThreadState* __tstate = wxPyBeginAllowThreads();
9801 result = (int)(arg1)->GetNumberJoysticks();
9802
9803 wxPyEndAllowThreads(__tstate);
9804 if (PyErr_Occurred()) SWIG_fail;
9805 }
9806 resultobj = SWIG_FromInt((int)result);
9807 return resultobj;
9808 fail:
9809 return NULL;
9810 }
9811
9812
9813 static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) {
9814 PyObject *resultobj;
9815 wxJoystick *arg1 = (wxJoystick *) 0 ;
9816 int result;
9817 PyObject * obj0 = 0 ;
9818 char *kwnames[] = {
9819 (char *) "self", NULL
9820 };
9821
9822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
9823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9825 {
9826 PyThreadState* __tstate = wxPyBeginAllowThreads();
9827 result = (int)(arg1)->GetManufacturerId();
9828
9829 wxPyEndAllowThreads(__tstate);
9830 if (PyErr_Occurred()) SWIG_fail;
9831 }
9832 resultobj = SWIG_FromInt((int)result);
9833 return resultobj;
9834 fail:
9835 return NULL;
9836 }
9837
9838
9839 static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) {
9840 PyObject *resultobj;
9841 wxJoystick *arg1 = (wxJoystick *) 0 ;
9842 int result;
9843 PyObject * obj0 = 0 ;
9844 char *kwnames[] = {
9845 (char *) "self", NULL
9846 };
9847
9848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
9849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9851 {
9852 PyThreadState* __tstate = wxPyBeginAllowThreads();
9853 result = (int)(arg1)->GetProductId();
9854
9855 wxPyEndAllowThreads(__tstate);
9856 if (PyErr_Occurred()) SWIG_fail;
9857 }
9858 resultobj = SWIG_FromInt((int)result);
9859 return resultobj;
9860 fail:
9861 return NULL;
9862 }
9863
9864
9865 static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) {
9866 PyObject *resultobj;
9867 wxJoystick *arg1 = (wxJoystick *) 0 ;
9868 wxString result;
9869 PyObject * obj0 = 0 ;
9870 char *kwnames[] = {
9871 (char *) "self", NULL
9872 };
9873
9874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
9875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9877 {
9878 PyThreadState* __tstate = wxPyBeginAllowThreads();
9879 result = (arg1)->GetProductName();
9880
9881 wxPyEndAllowThreads(__tstate);
9882 if (PyErr_Occurred()) SWIG_fail;
9883 }
9884 {
9885 #if wxUSE_UNICODE
9886 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9887 #else
9888 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9889 #endif
9890 }
9891 return resultobj;
9892 fail:
9893 return NULL;
9894 }
9895
9896
9897 static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9898 PyObject *resultobj;
9899 wxJoystick *arg1 = (wxJoystick *) 0 ;
9900 int result;
9901 PyObject * obj0 = 0 ;
9902 char *kwnames[] = {
9903 (char *) "self", NULL
9904 };
9905
9906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
9907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9909 {
9910 PyThreadState* __tstate = wxPyBeginAllowThreads();
9911 result = (int)(arg1)->GetXMin();
9912
9913 wxPyEndAllowThreads(__tstate);
9914 if (PyErr_Occurred()) SWIG_fail;
9915 }
9916 resultobj = SWIG_FromInt((int)result);
9917 return resultobj;
9918 fail:
9919 return NULL;
9920 }
9921
9922
9923 static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9924 PyObject *resultobj;
9925 wxJoystick *arg1 = (wxJoystick *) 0 ;
9926 int result;
9927 PyObject * obj0 = 0 ;
9928 char *kwnames[] = {
9929 (char *) "self", NULL
9930 };
9931
9932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
9933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9935 {
9936 PyThreadState* __tstate = wxPyBeginAllowThreads();
9937 result = (int)(arg1)->GetYMin();
9938
9939 wxPyEndAllowThreads(__tstate);
9940 if (PyErr_Occurred()) SWIG_fail;
9941 }
9942 resultobj = SWIG_FromInt((int)result);
9943 return resultobj;
9944 fail:
9945 return NULL;
9946 }
9947
9948
9949 static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9950 PyObject *resultobj;
9951 wxJoystick *arg1 = (wxJoystick *) 0 ;
9952 int result;
9953 PyObject * obj0 = 0 ;
9954 char *kwnames[] = {
9955 (char *) "self", NULL
9956 };
9957
9958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
9959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9961 {
9962 PyThreadState* __tstate = wxPyBeginAllowThreads();
9963 result = (int)(arg1)->GetZMin();
9964
9965 wxPyEndAllowThreads(__tstate);
9966 if (PyErr_Occurred()) SWIG_fail;
9967 }
9968 resultobj = SWIG_FromInt((int)result);
9969 return resultobj;
9970 fail:
9971 return NULL;
9972 }
9973
9974
9975 static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9976 PyObject *resultobj;
9977 wxJoystick *arg1 = (wxJoystick *) 0 ;
9978 int result;
9979 PyObject * obj0 = 0 ;
9980 char *kwnames[] = {
9981 (char *) "self", NULL
9982 };
9983
9984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
9985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9987 {
9988 PyThreadState* __tstate = wxPyBeginAllowThreads();
9989 result = (int)(arg1)->GetXMax();
9990
9991 wxPyEndAllowThreads(__tstate);
9992 if (PyErr_Occurred()) SWIG_fail;
9993 }
9994 resultobj = SWIG_FromInt((int)result);
9995 return resultobj;
9996 fail:
9997 return NULL;
9998 }
9999
10000
10001 static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10002 PyObject *resultobj;
10003 wxJoystick *arg1 = (wxJoystick *) 0 ;
10004 int result;
10005 PyObject * obj0 = 0 ;
10006 char *kwnames[] = {
10007 (char *) "self", NULL
10008 };
10009
10010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
10011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10013 {
10014 PyThreadState* __tstate = wxPyBeginAllowThreads();
10015 result = (int)(arg1)->GetYMax();
10016
10017 wxPyEndAllowThreads(__tstate);
10018 if (PyErr_Occurred()) SWIG_fail;
10019 }
10020 resultobj = SWIG_FromInt((int)result);
10021 return resultobj;
10022 fail:
10023 return NULL;
10024 }
10025
10026
10027 static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10028 PyObject *resultobj;
10029 wxJoystick *arg1 = (wxJoystick *) 0 ;
10030 int result;
10031 PyObject * obj0 = 0 ;
10032 char *kwnames[] = {
10033 (char *) "self", NULL
10034 };
10035
10036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
10037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10039 {
10040 PyThreadState* __tstate = wxPyBeginAllowThreads();
10041 result = (int)(arg1)->GetZMax();
10042
10043 wxPyEndAllowThreads(__tstate);
10044 if (PyErr_Occurred()) SWIG_fail;
10045 }
10046 resultobj = SWIG_FromInt((int)result);
10047 return resultobj;
10048 fail:
10049 return NULL;
10050 }
10051
10052
10053 static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10054 PyObject *resultobj;
10055 wxJoystick *arg1 = (wxJoystick *) 0 ;
10056 int result;
10057 PyObject * obj0 = 0 ;
10058 char *kwnames[] = {
10059 (char *) "self", NULL
10060 };
10061
10062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
10063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10065 {
10066 PyThreadState* __tstate = wxPyBeginAllowThreads();
10067 result = (int)(arg1)->GetNumberButtons();
10068
10069 wxPyEndAllowThreads(__tstate);
10070 if (PyErr_Occurred()) SWIG_fail;
10071 }
10072 resultobj = SWIG_FromInt((int)result);
10073 return resultobj;
10074 fail:
10075 return NULL;
10076 }
10077
10078
10079 static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10080 PyObject *resultobj;
10081 wxJoystick *arg1 = (wxJoystick *) 0 ;
10082 int result;
10083 PyObject * obj0 = 0 ;
10084 char *kwnames[] = {
10085 (char *) "self", NULL
10086 };
10087
10088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
10089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10091 {
10092 PyThreadState* __tstate = wxPyBeginAllowThreads();
10093 result = (int)(arg1)->GetNumberAxes();
10094
10095 wxPyEndAllowThreads(__tstate);
10096 if (PyErr_Occurred()) SWIG_fail;
10097 }
10098 resultobj = SWIG_FromInt((int)result);
10099 return resultobj;
10100 fail:
10101 return NULL;
10102 }
10103
10104
10105 static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10106 PyObject *resultobj;
10107 wxJoystick *arg1 = (wxJoystick *) 0 ;
10108 int result;
10109 PyObject * obj0 = 0 ;
10110 char *kwnames[] = {
10111 (char *) "self", NULL
10112 };
10113
10114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
10115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10117 {
10118 PyThreadState* __tstate = wxPyBeginAllowThreads();
10119 result = (int)(arg1)->GetMaxButtons();
10120
10121 wxPyEndAllowThreads(__tstate);
10122 if (PyErr_Occurred()) SWIG_fail;
10123 }
10124 resultobj = SWIG_FromInt((int)result);
10125 return resultobj;
10126 fail:
10127 return NULL;
10128 }
10129
10130
10131 static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10132 PyObject *resultobj;
10133 wxJoystick *arg1 = (wxJoystick *) 0 ;
10134 int result;
10135 PyObject * obj0 = 0 ;
10136 char *kwnames[] = {
10137 (char *) "self", NULL
10138 };
10139
10140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
10141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10143 {
10144 PyThreadState* __tstate = wxPyBeginAllowThreads();
10145 result = (int)(arg1)->GetMaxAxes();
10146
10147 wxPyEndAllowThreads(__tstate);
10148 if (PyErr_Occurred()) SWIG_fail;
10149 }
10150 resultobj = SWIG_FromInt((int)result);
10151 return resultobj;
10152 fail:
10153 return NULL;
10154 }
10155
10156
10157 static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10158 PyObject *resultobj;
10159 wxJoystick *arg1 = (wxJoystick *) 0 ;
10160 int result;
10161 PyObject * obj0 = 0 ;
10162 char *kwnames[] = {
10163 (char *) "self", NULL
10164 };
10165
10166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
10167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10169 {
10170 PyThreadState* __tstate = wxPyBeginAllowThreads();
10171 result = (int)(arg1)->GetPollingMin();
10172
10173 wxPyEndAllowThreads(__tstate);
10174 if (PyErr_Occurred()) SWIG_fail;
10175 }
10176 resultobj = SWIG_FromInt((int)result);
10177 return resultobj;
10178 fail:
10179 return NULL;
10180 }
10181
10182
10183 static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10184 PyObject *resultobj;
10185 wxJoystick *arg1 = (wxJoystick *) 0 ;
10186 int result;
10187 PyObject * obj0 = 0 ;
10188 char *kwnames[] = {
10189 (char *) "self", NULL
10190 };
10191
10192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
10193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10195 {
10196 PyThreadState* __tstate = wxPyBeginAllowThreads();
10197 result = (int)(arg1)->GetPollingMax();
10198
10199 wxPyEndAllowThreads(__tstate);
10200 if (PyErr_Occurred()) SWIG_fail;
10201 }
10202 resultobj = SWIG_FromInt((int)result);
10203 return resultobj;
10204 fail:
10205 return NULL;
10206 }
10207
10208
10209 static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10210 PyObject *resultobj;
10211 wxJoystick *arg1 = (wxJoystick *) 0 ;
10212 int result;
10213 PyObject * obj0 = 0 ;
10214 char *kwnames[] = {
10215 (char *) "self", NULL
10216 };
10217
10218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
10219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10221 {
10222 PyThreadState* __tstate = wxPyBeginAllowThreads();
10223 result = (int)(arg1)->GetRudderMin();
10224
10225 wxPyEndAllowThreads(__tstate);
10226 if (PyErr_Occurred()) SWIG_fail;
10227 }
10228 resultobj = SWIG_FromInt((int)result);
10229 return resultobj;
10230 fail:
10231 return NULL;
10232 }
10233
10234
10235 static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10236 PyObject *resultobj;
10237 wxJoystick *arg1 = (wxJoystick *) 0 ;
10238 int result;
10239 PyObject * obj0 = 0 ;
10240 char *kwnames[] = {
10241 (char *) "self", NULL
10242 };
10243
10244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
10245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10247 {
10248 PyThreadState* __tstate = wxPyBeginAllowThreads();
10249 result = (int)(arg1)->GetRudderMax();
10250
10251 wxPyEndAllowThreads(__tstate);
10252 if (PyErr_Occurred()) SWIG_fail;
10253 }
10254 resultobj = SWIG_FromInt((int)result);
10255 return resultobj;
10256 fail:
10257 return NULL;
10258 }
10259
10260
10261 static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10262 PyObject *resultobj;
10263 wxJoystick *arg1 = (wxJoystick *) 0 ;
10264 int result;
10265 PyObject * obj0 = 0 ;
10266 char *kwnames[] = {
10267 (char *) "self", NULL
10268 };
10269
10270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
10271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10273 {
10274 PyThreadState* __tstate = wxPyBeginAllowThreads();
10275 result = (int)(arg1)->GetUMin();
10276
10277 wxPyEndAllowThreads(__tstate);
10278 if (PyErr_Occurred()) SWIG_fail;
10279 }
10280 resultobj = SWIG_FromInt((int)result);
10281 return resultobj;
10282 fail:
10283 return NULL;
10284 }
10285
10286
10287 static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10288 PyObject *resultobj;
10289 wxJoystick *arg1 = (wxJoystick *) 0 ;
10290 int result;
10291 PyObject * obj0 = 0 ;
10292 char *kwnames[] = {
10293 (char *) "self", NULL
10294 };
10295
10296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
10297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10299 {
10300 PyThreadState* __tstate = wxPyBeginAllowThreads();
10301 result = (int)(arg1)->GetUMax();
10302
10303 wxPyEndAllowThreads(__tstate);
10304 if (PyErr_Occurred()) SWIG_fail;
10305 }
10306 resultobj = SWIG_FromInt((int)result);
10307 return resultobj;
10308 fail:
10309 return NULL;
10310 }
10311
10312
10313 static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10314 PyObject *resultobj;
10315 wxJoystick *arg1 = (wxJoystick *) 0 ;
10316 int result;
10317 PyObject * obj0 = 0 ;
10318 char *kwnames[] = {
10319 (char *) "self", NULL
10320 };
10321
10322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
10323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10325 {
10326 PyThreadState* __tstate = wxPyBeginAllowThreads();
10327 result = (int)(arg1)->GetVMin();
10328
10329 wxPyEndAllowThreads(__tstate);
10330 if (PyErr_Occurred()) SWIG_fail;
10331 }
10332 resultobj = SWIG_FromInt((int)result);
10333 return resultobj;
10334 fail:
10335 return NULL;
10336 }
10337
10338
10339 static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10340 PyObject *resultobj;
10341 wxJoystick *arg1 = (wxJoystick *) 0 ;
10342 int result;
10343 PyObject * obj0 = 0 ;
10344 char *kwnames[] = {
10345 (char *) "self", NULL
10346 };
10347
10348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
10349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10351 {
10352 PyThreadState* __tstate = wxPyBeginAllowThreads();
10353 result = (int)(arg1)->GetVMax();
10354
10355 wxPyEndAllowThreads(__tstate);
10356 if (PyErr_Occurred()) SWIG_fail;
10357 }
10358 resultobj = SWIG_FromInt((int)result);
10359 return resultobj;
10360 fail:
10361 return NULL;
10362 }
10363
10364
10365 static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) {
10366 PyObject *resultobj;
10367 wxJoystick *arg1 = (wxJoystick *) 0 ;
10368 bool result;
10369 PyObject * obj0 = 0 ;
10370 char *kwnames[] = {
10371 (char *) "self", NULL
10372 };
10373
10374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
10375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10377 {
10378 PyThreadState* __tstate = wxPyBeginAllowThreads();
10379 result = (bool)(arg1)->HasRudder();
10380
10381 wxPyEndAllowThreads(__tstate);
10382 if (PyErr_Occurred()) SWIG_fail;
10383 }
10384 {
10385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10386 }
10387 return resultobj;
10388 fail:
10389 return NULL;
10390 }
10391
10392
10393 static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) {
10394 PyObject *resultobj;
10395 wxJoystick *arg1 = (wxJoystick *) 0 ;
10396 bool result;
10397 PyObject * obj0 = 0 ;
10398 char *kwnames[] = {
10399 (char *) "self", NULL
10400 };
10401
10402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
10403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10405 {
10406 PyThreadState* __tstate = wxPyBeginAllowThreads();
10407 result = (bool)(arg1)->HasZ();
10408
10409 wxPyEndAllowThreads(__tstate);
10410 if (PyErr_Occurred()) SWIG_fail;
10411 }
10412 {
10413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10414 }
10415 return resultobj;
10416 fail:
10417 return NULL;
10418 }
10419
10420
10421 static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) {
10422 PyObject *resultobj;
10423 wxJoystick *arg1 = (wxJoystick *) 0 ;
10424 bool result;
10425 PyObject * obj0 = 0 ;
10426 char *kwnames[] = {
10427 (char *) "self", NULL
10428 };
10429
10430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
10431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10433 {
10434 PyThreadState* __tstate = wxPyBeginAllowThreads();
10435 result = (bool)(arg1)->HasU();
10436
10437 wxPyEndAllowThreads(__tstate);
10438 if (PyErr_Occurred()) SWIG_fail;
10439 }
10440 {
10441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10442 }
10443 return resultobj;
10444 fail:
10445 return NULL;
10446 }
10447
10448
10449 static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) {
10450 PyObject *resultobj;
10451 wxJoystick *arg1 = (wxJoystick *) 0 ;
10452 bool result;
10453 PyObject * obj0 = 0 ;
10454 char *kwnames[] = {
10455 (char *) "self", NULL
10456 };
10457
10458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
10459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10461 {
10462 PyThreadState* __tstate = wxPyBeginAllowThreads();
10463 result = (bool)(arg1)->HasV();
10464
10465 wxPyEndAllowThreads(__tstate);
10466 if (PyErr_Occurred()) SWIG_fail;
10467 }
10468 {
10469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10470 }
10471 return resultobj;
10472 fail:
10473 return NULL;
10474 }
10475
10476
10477 static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) {
10478 PyObject *resultobj;
10479 wxJoystick *arg1 = (wxJoystick *) 0 ;
10480 bool result;
10481 PyObject * obj0 = 0 ;
10482 char *kwnames[] = {
10483 (char *) "self", NULL
10484 };
10485
10486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
10487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10489 {
10490 PyThreadState* __tstate = wxPyBeginAllowThreads();
10491 result = (bool)(arg1)->HasPOV();
10492
10493 wxPyEndAllowThreads(__tstate);
10494 if (PyErr_Occurred()) SWIG_fail;
10495 }
10496 {
10497 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10498 }
10499 return resultobj;
10500 fail:
10501 return NULL;
10502 }
10503
10504
10505 static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) {
10506 PyObject *resultobj;
10507 wxJoystick *arg1 = (wxJoystick *) 0 ;
10508 bool result;
10509 PyObject * obj0 = 0 ;
10510 char *kwnames[] = {
10511 (char *) "self", NULL
10512 };
10513
10514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
10515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10517 {
10518 PyThreadState* __tstate = wxPyBeginAllowThreads();
10519 result = (bool)(arg1)->HasPOV4Dir();
10520
10521 wxPyEndAllowThreads(__tstate);
10522 if (PyErr_Occurred()) SWIG_fail;
10523 }
10524 {
10525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10526 }
10527 return resultobj;
10528 fail:
10529 return NULL;
10530 }
10531
10532
10533 static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) {
10534 PyObject *resultobj;
10535 wxJoystick *arg1 = (wxJoystick *) 0 ;
10536 bool result;
10537 PyObject * obj0 = 0 ;
10538 char *kwnames[] = {
10539 (char *) "self", NULL
10540 };
10541
10542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
10543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10545 {
10546 PyThreadState* __tstate = wxPyBeginAllowThreads();
10547 result = (bool)(arg1)->HasPOVCTS();
10548
10549 wxPyEndAllowThreads(__tstate);
10550 if (PyErr_Occurred()) SWIG_fail;
10551 }
10552 {
10553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10554 }
10555 return resultobj;
10556 fail:
10557 return NULL;
10558 }
10559
10560
10561 static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10562 PyObject *resultobj;
10563 wxJoystick *arg1 = (wxJoystick *) 0 ;
10564 wxWindow *arg2 = (wxWindow *) 0 ;
10565 int arg3 = (int) 0 ;
10566 bool result;
10567 PyObject * obj0 = 0 ;
10568 PyObject * obj1 = 0 ;
10569 PyObject * obj2 = 0 ;
10570 char *kwnames[] = {
10571 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
10572 };
10573
10574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
10575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10577 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10579 if (obj2) {
10580 arg3 = (int) SWIG_AsInt(obj2);
10581 if (PyErr_Occurred()) SWIG_fail;
10582 }
10583 {
10584 PyThreadState* __tstate = wxPyBeginAllowThreads();
10585 result = (bool)(arg1)->SetCapture(arg2,arg3);
10586
10587 wxPyEndAllowThreads(__tstate);
10588 if (PyErr_Occurred()) SWIG_fail;
10589 }
10590 {
10591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10592 }
10593 return resultobj;
10594 fail:
10595 return NULL;
10596 }
10597
10598
10599 static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10600 PyObject *resultobj;
10601 wxJoystick *arg1 = (wxJoystick *) 0 ;
10602 bool result;
10603 PyObject * obj0 = 0 ;
10604 char *kwnames[] = {
10605 (char *) "self", NULL
10606 };
10607
10608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
10609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10611 {
10612 PyThreadState* __tstate = wxPyBeginAllowThreads();
10613 result = (bool)(arg1)->ReleaseCapture();
10614
10615 wxPyEndAllowThreads(__tstate);
10616 if (PyErr_Occurred()) SWIG_fail;
10617 }
10618 {
10619 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10620 }
10621 return resultobj;
10622 fail:
10623 return NULL;
10624 }
10625
10626
10627 static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) {
10628 PyObject *obj;
10629 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10630 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
10631 Py_INCREF(obj);
10632 return Py_BuildValue((char *)"");
10633 }
10634 static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10635 PyObject *resultobj;
10636 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10637 wxPoint *arg2 = (wxPoint *) 0 ;
10638 PyObject * obj0 = 0 ;
10639 PyObject * obj1 = 0 ;
10640 char *kwnames[] = {
10641 (char *) "self",(char *) "m_pos", NULL
10642 };
10643
10644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
10645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10647 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
10648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10649 if (arg1) (arg1)->m_pos = *arg2;
10650
10651 Py_INCREF(Py_None); resultobj = Py_None;
10652 return resultobj;
10653 fail:
10654 return NULL;
10655 }
10656
10657
10658 static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10659 PyObject *resultobj;
10660 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10661 wxPoint *result;
10662 PyObject * obj0 = 0 ;
10663 char *kwnames[] = {
10664 (char *) "self", NULL
10665 };
10666
10667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
10668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10670 result = (wxPoint *)& ((arg1)->m_pos);
10671
10672 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
10673 return resultobj;
10674 fail:
10675 return NULL;
10676 }
10677
10678
10679 static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10680 PyObject *resultobj;
10681 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10682 int arg2 ;
10683 PyObject * obj0 = 0 ;
10684 PyObject * obj1 = 0 ;
10685 char *kwnames[] = {
10686 (char *) "self",(char *) "m_zPosition", NULL
10687 };
10688
10689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail;
10690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10692 arg2 = (int) SWIG_AsInt(obj1);
10693 if (PyErr_Occurred()) SWIG_fail;
10694 if (arg1) (arg1)->m_zPosition = arg2;
10695
10696 Py_INCREF(Py_None); resultobj = Py_None;
10697 return resultobj;
10698 fail:
10699 return NULL;
10700 }
10701
10702
10703 static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10704 PyObject *resultobj;
10705 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10706 int result;
10707 PyObject * obj0 = 0 ;
10708 char *kwnames[] = {
10709 (char *) "self", NULL
10710 };
10711
10712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
10713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10715 result = (int) ((arg1)->m_zPosition);
10716
10717 resultobj = SWIG_FromInt((int)result);
10718 return resultobj;
10719 fail:
10720 return NULL;
10721 }
10722
10723
10724 static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10725 PyObject *resultobj;
10726 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10727 int arg2 ;
10728 PyObject * obj0 = 0 ;
10729 PyObject * obj1 = 0 ;
10730 char *kwnames[] = {
10731 (char *) "self",(char *) "m_buttonChange", NULL
10732 };
10733
10734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail;
10735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10737 arg2 = (int) SWIG_AsInt(obj1);
10738 if (PyErr_Occurred()) SWIG_fail;
10739 if (arg1) (arg1)->m_buttonChange = arg2;
10740
10741 Py_INCREF(Py_None); resultobj = Py_None;
10742 return resultobj;
10743 fail:
10744 return NULL;
10745 }
10746
10747
10748 static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10749 PyObject *resultobj;
10750 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10751 int result;
10752 PyObject * obj0 = 0 ;
10753 char *kwnames[] = {
10754 (char *) "self", NULL
10755 };
10756
10757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
10758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10760 result = (int) ((arg1)->m_buttonChange);
10761
10762 resultobj = SWIG_FromInt((int)result);
10763 return resultobj;
10764 fail:
10765 return NULL;
10766 }
10767
10768
10769 static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10770 PyObject *resultobj;
10771 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10772 int arg2 ;
10773 PyObject * obj0 = 0 ;
10774 PyObject * obj1 = 0 ;
10775 char *kwnames[] = {
10776 (char *) "self",(char *) "m_buttonState", NULL
10777 };
10778
10779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail;
10780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10782 arg2 = (int) SWIG_AsInt(obj1);
10783 if (PyErr_Occurred()) SWIG_fail;
10784 if (arg1) (arg1)->m_buttonState = arg2;
10785
10786 Py_INCREF(Py_None); resultobj = Py_None;
10787 return resultobj;
10788 fail:
10789 return NULL;
10790 }
10791
10792
10793 static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10794 PyObject *resultobj;
10795 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10796 int result;
10797 PyObject * obj0 = 0 ;
10798 char *kwnames[] = {
10799 (char *) "self", NULL
10800 };
10801
10802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
10803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10805 result = (int) ((arg1)->m_buttonState);
10806
10807 resultobj = SWIG_FromInt((int)result);
10808 return resultobj;
10809 fail:
10810 return NULL;
10811 }
10812
10813
10814 static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10815 PyObject *resultobj;
10816 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10817 int arg2 ;
10818 PyObject * obj0 = 0 ;
10819 PyObject * obj1 = 0 ;
10820 char *kwnames[] = {
10821 (char *) "self",(char *) "m_joyStick", NULL
10822 };
10823
10824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail;
10825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10827 arg2 = (int) SWIG_AsInt(obj1);
10828 if (PyErr_Occurred()) SWIG_fail;
10829 if (arg1) (arg1)->m_joyStick = arg2;
10830
10831 Py_INCREF(Py_None); resultobj = Py_None;
10832 return resultobj;
10833 fail:
10834 return NULL;
10835 }
10836
10837
10838 static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10839 PyObject *resultobj;
10840 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10841 int result;
10842 PyObject * obj0 = 0 ;
10843 char *kwnames[] = {
10844 (char *) "self", NULL
10845 };
10846
10847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
10848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10850 result = (int) ((arg1)->m_joyStick);
10851
10852 resultobj = SWIG_FromInt((int)result);
10853 return resultobj;
10854 fail:
10855 return NULL;
10856 }
10857
10858
10859 static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
10860 PyObject *resultobj;
10861 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
10862 int arg2 = (int) 0 ;
10863 int arg3 = (int) wxJOYSTICK1 ;
10864 int arg4 = (int) 0 ;
10865 wxJoystickEvent *result;
10866 PyObject * obj0 = 0 ;
10867 PyObject * obj1 = 0 ;
10868 PyObject * obj2 = 0 ;
10869 PyObject * obj3 = 0 ;
10870 char *kwnames[] = {
10871 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
10872 };
10873
10874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10875 if (obj0) {
10876 arg1 = (wxEventType) SWIG_AsInt(obj0);
10877 if (PyErr_Occurred()) SWIG_fail;
10878 }
10879 if (obj1) {
10880 arg2 = (int) SWIG_AsInt(obj1);
10881 if (PyErr_Occurred()) SWIG_fail;
10882 }
10883 if (obj2) {
10884 arg3 = (int) SWIG_AsInt(obj2);
10885 if (PyErr_Occurred()) SWIG_fail;
10886 }
10887 if (obj3) {
10888 arg4 = (int) SWIG_AsInt(obj3);
10889 if (PyErr_Occurred()) SWIG_fail;
10890 }
10891 {
10892 PyThreadState* __tstate = wxPyBeginAllowThreads();
10893 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
10894
10895 wxPyEndAllowThreads(__tstate);
10896 if (PyErr_Occurred()) SWIG_fail;
10897 }
10898 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
10899 return resultobj;
10900 fail:
10901 return NULL;
10902 }
10903
10904
10905 static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10906 PyObject *resultobj;
10907 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10908 wxPoint result;
10909 PyObject * obj0 = 0 ;
10910 char *kwnames[] = {
10911 (char *) "self", NULL
10912 };
10913
10914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
10915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10917 {
10918 PyThreadState* __tstate = wxPyBeginAllowThreads();
10919 result = ((wxJoystickEvent const *)arg1)->GetPosition();
10920
10921 wxPyEndAllowThreads(__tstate);
10922 if (PyErr_Occurred()) SWIG_fail;
10923 }
10924 {
10925 wxPoint * resultptr;
10926 resultptr = new wxPoint((wxPoint &) result);
10927 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
10928 }
10929 return resultobj;
10930 fail:
10931 return NULL;
10932 }
10933
10934
10935 static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10936 PyObject *resultobj;
10937 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10938 int result;
10939 PyObject * obj0 = 0 ;
10940 char *kwnames[] = {
10941 (char *) "self", NULL
10942 };
10943
10944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
10945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10947 {
10948 PyThreadState* __tstate = wxPyBeginAllowThreads();
10949 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
10950
10951 wxPyEndAllowThreads(__tstate);
10952 if (PyErr_Occurred()) SWIG_fail;
10953 }
10954 resultobj = SWIG_FromInt((int)result);
10955 return resultobj;
10956 fail:
10957 return NULL;
10958 }
10959
10960
10961 static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
10962 PyObject *resultobj;
10963 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10964 int result;
10965 PyObject * obj0 = 0 ;
10966 char *kwnames[] = {
10967 (char *) "self", NULL
10968 };
10969
10970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
10971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10973 {
10974 PyThreadState* __tstate = wxPyBeginAllowThreads();
10975 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
10976
10977 wxPyEndAllowThreads(__tstate);
10978 if (PyErr_Occurred()) SWIG_fail;
10979 }
10980 resultobj = SWIG_FromInt((int)result);
10981 return resultobj;
10982 fail:
10983 return NULL;
10984 }
10985
10986
10987 static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
10988 PyObject *resultobj;
10989 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10990 int result;
10991 PyObject * obj0 = 0 ;
10992 char *kwnames[] = {
10993 (char *) "self", NULL
10994 };
10995
10996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
10997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10999 {
11000 PyThreadState* __tstate = wxPyBeginAllowThreads();
11001 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
11002
11003 wxPyEndAllowThreads(__tstate);
11004 if (PyErr_Occurred()) SWIG_fail;
11005 }
11006 resultobj = SWIG_FromInt((int)result);
11007 return resultobj;
11008 fail:
11009 return NULL;
11010 }
11011
11012
11013 static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
11014 PyObject *resultobj;
11015 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11016 int result;
11017 PyObject * obj0 = 0 ;
11018 char *kwnames[] = {
11019 (char *) "self", NULL
11020 };
11021
11022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
11023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11025 {
11026 PyThreadState* __tstate = wxPyBeginAllowThreads();
11027 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
11028
11029 wxPyEndAllowThreads(__tstate);
11030 if (PyErr_Occurred()) SWIG_fail;
11031 }
11032 resultobj = SWIG_FromInt((int)result);
11033 return resultobj;
11034 fail:
11035 return NULL;
11036 }
11037
11038
11039 static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
11040 PyObject *resultobj;
11041 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11042 int arg2 ;
11043 PyObject * obj0 = 0 ;
11044 PyObject * obj1 = 0 ;
11045 char *kwnames[] = {
11046 (char *) "self",(char *) "stick", NULL
11047 };
11048
11049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
11050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11052 arg2 = (int) SWIG_AsInt(obj1);
11053 if (PyErr_Occurred()) SWIG_fail;
11054 {
11055 PyThreadState* __tstate = wxPyBeginAllowThreads();
11056 (arg1)->SetJoystick(arg2);
11057
11058 wxPyEndAllowThreads(__tstate);
11059 if (PyErr_Occurred()) SWIG_fail;
11060 }
11061 Py_INCREF(Py_None); resultobj = Py_None;
11062 return resultobj;
11063 fail:
11064 return NULL;
11065 }
11066
11067
11068 static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
11069 PyObject *resultobj;
11070 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11071 int arg2 ;
11072 PyObject * obj0 = 0 ;
11073 PyObject * obj1 = 0 ;
11074 char *kwnames[] = {
11075 (char *) "self",(char *) "state", NULL
11076 };
11077
11078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
11079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11081 arg2 = (int) SWIG_AsInt(obj1);
11082 if (PyErr_Occurred()) SWIG_fail;
11083 {
11084 PyThreadState* __tstate = wxPyBeginAllowThreads();
11085 (arg1)->SetButtonState(arg2);
11086
11087 wxPyEndAllowThreads(__tstate);
11088 if (PyErr_Occurred()) SWIG_fail;
11089 }
11090 Py_INCREF(Py_None); resultobj = Py_None;
11091 return resultobj;
11092 fail:
11093 return NULL;
11094 }
11095
11096
11097 static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
11098 PyObject *resultobj;
11099 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11100 int arg2 ;
11101 PyObject * obj0 = 0 ;
11102 PyObject * obj1 = 0 ;
11103 char *kwnames[] = {
11104 (char *) "self",(char *) "change", NULL
11105 };
11106
11107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
11108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11110 arg2 = (int) SWIG_AsInt(obj1);
11111 if (PyErr_Occurred()) SWIG_fail;
11112 {
11113 PyThreadState* __tstate = wxPyBeginAllowThreads();
11114 (arg1)->SetButtonChange(arg2);
11115
11116 wxPyEndAllowThreads(__tstate);
11117 if (PyErr_Occurred()) SWIG_fail;
11118 }
11119 Py_INCREF(Py_None); resultobj = Py_None;
11120 return resultobj;
11121 fail:
11122 return NULL;
11123 }
11124
11125
11126 static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11127 PyObject *resultobj;
11128 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11129 wxPoint *arg2 = 0 ;
11130 wxPoint temp2 ;
11131 PyObject * obj0 = 0 ;
11132 PyObject * obj1 = 0 ;
11133 char *kwnames[] = {
11134 (char *) "self",(char *) "pos", NULL
11135 };
11136
11137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11140 {
11141 arg2 = &temp2;
11142 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11143 }
11144 {
11145 PyThreadState* __tstate = wxPyBeginAllowThreads();
11146 (arg1)->SetPosition((wxPoint const &)*arg2);
11147
11148 wxPyEndAllowThreads(__tstate);
11149 if (PyErr_Occurred()) SWIG_fail;
11150 }
11151 Py_INCREF(Py_None); resultobj = Py_None;
11152 return resultobj;
11153 fail:
11154 return NULL;
11155 }
11156
11157
11158 static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11159 PyObject *resultobj;
11160 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11161 int arg2 ;
11162 PyObject * obj0 = 0 ;
11163 PyObject * obj1 = 0 ;
11164 char *kwnames[] = {
11165 (char *) "self",(char *) "zPos", NULL
11166 };
11167
11168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
11169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11171 arg2 = (int) SWIG_AsInt(obj1);
11172 if (PyErr_Occurred()) SWIG_fail;
11173 {
11174 PyThreadState* __tstate = wxPyBeginAllowThreads();
11175 (arg1)->SetZPosition(arg2);
11176
11177 wxPyEndAllowThreads(__tstate);
11178 if (PyErr_Occurred()) SWIG_fail;
11179 }
11180 Py_INCREF(Py_None); resultobj = Py_None;
11181 return resultobj;
11182 fail:
11183 return NULL;
11184 }
11185
11186
11187 static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11188 PyObject *resultobj;
11189 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11190 bool result;
11191 PyObject * obj0 = 0 ;
11192 char *kwnames[] = {
11193 (char *) "self", NULL
11194 };
11195
11196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
11197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11199 {
11200 PyThreadState* __tstate = wxPyBeginAllowThreads();
11201 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
11202
11203 wxPyEndAllowThreads(__tstate);
11204 if (PyErr_Occurred()) SWIG_fail;
11205 }
11206 {
11207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11208 }
11209 return resultobj;
11210 fail:
11211 return NULL;
11212 }
11213
11214
11215 static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11216 PyObject *resultobj;
11217 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11218 bool result;
11219 PyObject * obj0 = 0 ;
11220 char *kwnames[] = {
11221 (char *) "self", NULL
11222 };
11223
11224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
11225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11227 {
11228 PyThreadState* __tstate = wxPyBeginAllowThreads();
11229 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
11230
11231 wxPyEndAllowThreads(__tstate);
11232 if (PyErr_Occurred()) SWIG_fail;
11233 }
11234 {
11235 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11236 }
11237 return resultobj;
11238 fail:
11239 return NULL;
11240 }
11241
11242
11243 static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11244 PyObject *resultobj;
11245 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11246 bool result;
11247 PyObject * obj0 = 0 ;
11248 char *kwnames[] = {
11249 (char *) "self", NULL
11250 };
11251
11252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
11253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11255 {
11256 PyThreadState* __tstate = wxPyBeginAllowThreads();
11257 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
11258
11259 wxPyEndAllowThreads(__tstate);
11260 if (PyErr_Occurred()) SWIG_fail;
11261 }
11262 {
11263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11264 }
11265 return resultobj;
11266 fail:
11267 return NULL;
11268 }
11269
11270
11271 static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11272 PyObject *resultobj;
11273 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11274 int arg2 = (int) wxJOY_BUTTON_ANY ;
11275 bool result;
11276 PyObject * obj0 = 0 ;
11277 PyObject * obj1 = 0 ;
11278 char *kwnames[] = {
11279 (char *) "self",(char *) "but", NULL
11280 };
11281
11282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
11283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11285 if (obj1) {
11286 arg2 = (int) SWIG_AsInt(obj1);
11287 if (PyErr_Occurred()) SWIG_fail;
11288 }
11289 {
11290 PyThreadState* __tstate = wxPyBeginAllowThreads();
11291 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
11292
11293 wxPyEndAllowThreads(__tstate);
11294 if (PyErr_Occurred()) SWIG_fail;
11295 }
11296 {
11297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11298 }
11299 return resultobj;
11300 fail:
11301 return NULL;
11302 }
11303
11304
11305 static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) {
11306 PyObject *resultobj;
11307 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11308 int arg2 = (int) wxJOY_BUTTON_ANY ;
11309 bool result;
11310 PyObject * obj0 = 0 ;
11311 PyObject * obj1 = 0 ;
11312 char *kwnames[] = {
11313 (char *) "self",(char *) "but", NULL
11314 };
11315
11316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
11317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11319 if (obj1) {
11320 arg2 = (int) SWIG_AsInt(obj1);
11321 if (PyErr_Occurred()) SWIG_fail;
11322 }
11323 {
11324 PyThreadState* __tstate = wxPyBeginAllowThreads();
11325 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
11326
11327 wxPyEndAllowThreads(__tstate);
11328 if (PyErr_Occurred()) SWIG_fail;
11329 }
11330 {
11331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11332 }
11333 return resultobj;
11334 fail:
11335 return NULL;
11336 }
11337
11338
11339 static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11340 PyObject *resultobj;
11341 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11342 int arg2 = (int) wxJOY_BUTTON_ANY ;
11343 bool result;
11344 PyObject * obj0 = 0 ;
11345 PyObject * obj1 = 0 ;
11346 char *kwnames[] = {
11347 (char *) "self",(char *) "but", NULL
11348 };
11349
11350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
11351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11353 if (obj1) {
11354 arg2 = (int) SWIG_AsInt(obj1);
11355 if (PyErr_Occurred()) SWIG_fail;
11356 }
11357 {
11358 PyThreadState* __tstate = wxPyBeginAllowThreads();
11359 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
11360
11361 wxPyEndAllowThreads(__tstate);
11362 if (PyErr_Occurred()) SWIG_fail;
11363 }
11364 {
11365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11366 }
11367 return resultobj;
11368 fail:
11369 return NULL;
11370 }
11371
11372
11373 static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) {
11374 PyObject *obj;
11375 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11376 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
11377 Py_INCREF(obj);
11378 return Py_BuildValue((char *)"");
11379 }
11380 static PyObject *_wrap_new_Sound__SWIG_0(PyObject *self, PyObject *args) {
11381 PyObject *resultobj;
11382 wxSound *result;
11383
11384 if(!PyArg_ParseTuple(args,(char *)":new_Sound")) goto fail;
11385 {
11386 PyThreadState* __tstate = wxPyBeginAllowThreads();
11387 result = (wxSound *)new wxSound();
11388
11389 wxPyEndAllowThreads(__tstate);
11390 if (PyErr_Occurred()) SWIG_fail;
11391 }
11392 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11393 return resultobj;
11394 fail:
11395 return NULL;
11396 }
11397
11398
11399 static PyObject *_wrap_new_Sound__SWIG_1(PyObject *self, PyObject *args) {
11400 PyObject *resultobj;
11401 wxString *arg1 = 0 ;
11402 bool arg2 = (bool) false ;
11403 wxSound *result;
11404 bool temp1 = False ;
11405 PyObject * obj0 = 0 ;
11406 PyObject * obj1 = 0 ;
11407
11408 if(!PyArg_ParseTuple(args,(char *)"O|O:new_Sound",&obj0,&obj1)) goto fail;
11409 {
11410 arg1 = wxString_in_helper(obj0);
11411 if (arg1 == NULL) SWIG_fail;
11412 temp1 = True;
11413 }
11414 if (obj1) {
11415 arg2 = (bool) SWIG_AsBool(obj1);
11416 if (PyErr_Occurred()) SWIG_fail;
11417 }
11418 {
11419 PyThreadState* __tstate = wxPyBeginAllowThreads();
11420 result = (wxSound *)new wxSound((wxString const &)*arg1,arg2);
11421
11422 wxPyEndAllowThreads(__tstate);
11423 if (PyErr_Occurred()) SWIG_fail;
11424 }
11425 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11426 {
11427 if (temp1)
11428 delete arg1;
11429 }
11430 return resultobj;
11431 fail:
11432 {
11433 if (temp1)
11434 delete arg1;
11435 }
11436 return NULL;
11437 }
11438
11439
11440 static PyObject *_wrap_new_Sound__SWIG_2(PyObject *self, PyObject *args) {
11441 PyObject *resultobj;
11442 int arg1 ;
11443 wxByte *arg2 = (wxByte *) 0 ;
11444 wxSound *result;
11445 PyObject * obj0 = 0 ;
11446 PyObject * obj1 = 0 ;
11447
11448 if(!PyArg_ParseTuple(args,(char *)"OO:new_Sound",&obj0,&obj1)) goto fail;
11449 arg1 = (int) SWIG_AsInt(obj0);
11450 if (PyErr_Occurred()) SWIG_fail;
11451 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxByte,
11452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11453 {
11454 PyThreadState* __tstate = wxPyBeginAllowThreads();
11455 result = (wxSound *)new wxSound(arg1,(wxByte const *)arg2);
11456
11457 wxPyEndAllowThreads(__tstate);
11458 if (PyErr_Occurred()) SWIG_fail;
11459 }
11460 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11461 return resultobj;
11462 fail:
11463 return NULL;
11464 }
11465
11466
11467 static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args) {
11468 int argc;
11469 PyObject *argv[3];
11470 int ii;
11471
11472 argc = PyObject_Length(args);
11473 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
11474 argv[ii] = PyTuple_GetItem(args,ii);
11475 }
11476 if (argc == 0) {
11477 return _wrap_new_Sound__SWIG_0(self,args);
11478 }
11479 if ((argc >= 1) && (argc <= 2)) {
11480 int _v;
11481 {
11482 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
11483 }
11484 if (_v) {
11485 if (argc <= 1) {
11486 return _wrap_new_Sound__SWIG_1(self,args);
11487 }
11488 _v = SWIG_CheckBool(argv[1]);
11489 if (_v) {
11490 return _wrap_new_Sound__SWIG_1(self,args);
11491 }
11492 }
11493 }
11494 if (argc == 2) {
11495 int _v;
11496 _v = SWIG_CheckInt(argv[0]);
11497 if (_v) {
11498 {
11499 void *ptr;
11500 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxByte, 0) == -1) {
11501 _v = 0;
11502 PyErr_Clear();
11503 } else {
11504 _v = 1;
11505 }
11506 }
11507 if (_v) {
11508 return _wrap_new_Sound__SWIG_2(self,args);
11509 }
11510 }
11511 }
11512
11513 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Sound'");
11514 return NULL;
11515 }
11516
11517
11518 static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
11519 PyObject *resultobj;
11520 wxSound *arg1 = (wxSound *) 0 ;
11521 PyObject * obj0 = 0 ;
11522 char *kwnames[] = {
11523 (char *) "self", NULL
11524 };
11525
11526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
11527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11529 {
11530 PyThreadState* __tstate = wxPyBeginAllowThreads();
11531 delete arg1;
11532
11533 wxPyEndAllowThreads(__tstate);
11534 if (PyErr_Occurred()) SWIG_fail;
11535 }
11536 Py_INCREF(Py_None); resultobj = Py_None;
11537 return resultobj;
11538 fail:
11539 return NULL;
11540 }
11541
11542
11543 static PyObject *_wrap_Sound_Create__SWIG_0(PyObject *self, PyObject *args) {
11544 PyObject *resultobj;
11545 wxSound *arg1 = (wxSound *) 0 ;
11546 wxString *arg2 = 0 ;
11547 bool arg3 = (bool) false ;
11548 bool result;
11549 bool temp2 = False ;
11550 PyObject * obj0 = 0 ;
11551 PyObject * obj1 = 0 ;
11552 PyObject * obj2 = 0 ;
11553
11554 if(!PyArg_ParseTuple(args,(char *)"OO|O:Sound_Create",&obj0,&obj1,&obj2)) goto fail;
11555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11557 {
11558 arg2 = wxString_in_helper(obj1);
11559 if (arg2 == NULL) SWIG_fail;
11560 temp2 = True;
11561 }
11562 if (obj2) {
11563 arg3 = (bool) SWIG_AsBool(obj2);
11564 if (PyErr_Occurred()) SWIG_fail;
11565 }
11566 {
11567 PyThreadState* __tstate = wxPyBeginAllowThreads();
11568 result = (bool)(arg1)->Create((wxString const &)*arg2,arg3);
11569
11570 wxPyEndAllowThreads(__tstate);
11571 if (PyErr_Occurred()) SWIG_fail;
11572 }
11573 {
11574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11575 }
11576 {
11577 if (temp2)
11578 delete arg2;
11579 }
11580 return resultobj;
11581 fail:
11582 {
11583 if (temp2)
11584 delete arg2;
11585 }
11586 return NULL;
11587 }
11588
11589
11590 static PyObject *_wrap_Sound_Create__SWIG_1(PyObject *self, PyObject *args) {
11591 PyObject *resultobj;
11592 wxSound *arg1 = (wxSound *) 0 ;
11593 int arg2 ;
11594 wxByte *arg3 = (wxByte *) 0 ;
11595 bool result;
11596 PyObject * obj0 = 0 ;
11597 PyObject * obj1 = 0 ;
11598 PyObject * obj2 = 0 ;
11599
11600 if(!PyArg_ParseTuple(args,(char *)"OOO:Sound_Create",&obj0,&obj1,&obj2)) goto fail;
11601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11603 arg2 = (int) SWIG_AsInt(obj1);
11604 if (PyErr_Occurred()) SWIG_fail;
11605 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxByte,
11606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11607 {
11608 PyThreadState* __tstate = wxPyBeginAllowThreads();
11609 result = (bool)(arg1)->Create(arg2,(wxByte const *)arg3);
11610
11611 wxPyEndAllowThreads(__tstate);
11612 if (PyErr_Occurred()) SWIG_fail;
11613 }
11614 {
11615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11616 }
11617 return resultobj;
11618 fail:
11619 return NULL;
11620 }
11621
11622
11623 static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args) {
11624 int argc;
11625 PyObject *argv[4];
11626 int ii;
11627
11628 argc = PyObject_Length(args);
11629 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
11630 argv[ii] = PyTuple_GetItem(args,ii);
11631 }
11632 if ((argc >= 2) && (argc <= 3)) {
11633 int _v;
11634 {
11635 void *ptr;
11636 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxSound, 0) == -1) {
11637 _v = 0;
11638 PyErr_Clear();
11639 } else {
11640 _v = 1;
11641 }
11642 }
11643 if (_v) {
11644 {
11645 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
11646 }
11647 if (_v) {
11648 if (argc <= 2) {
11649 return _wrap_Sound_Create__SWIG_0(self,args);
11650 }
11651 _v = SWIG_CheckBool(argv[2]);
11652 if (_v) {
11653 return _wrap_Sound_Create__SWIG_0(self,args);
11654 }
11655 }
11656 }
11657 }
11658 if (argc == 3) {
11659 int _v;
11660 {
11661 void *ptr;
11662 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxSound, 0) == -1) {
11663 _v = 0;
11664 PyErr_Clear();
11665 } else {
11666 _v = 1;
11667 }
11668 }
11669 if (_v) {
11670 _v = SWIG_CheckInt(argv[1]);
11671 if (_v) {
11672 {
11673 void *ptr;
11674 if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxByte, 0) == -1) {
11675 _v = 0;
11676 PyErr_Clear();
11677 } else {
11678 _v = 1;
11679 }
11680 }
11681 if (_v) {
11682 return _wrap_Sound_Create__SWIG_1(self,args);
11683 }
11684 }
11685 }
11686 }
11687
11688 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Sound_Create'");
11689 return NULL;
11690 }
11691
11692
11693 static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
11694 PyObject *resultobj;
11695 wxSound *arg1 = (wxSound *) 0 ;
11696 bool result;
11697 PyObject * obj0 = 0 ;
11698 char *kwnames[] = {
11699 (char *) "self", NULL
11700 };
11701
11702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
11703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11705 {
11706 PyThreadState* __tstate = wxPyBeginAllowThreads();
11707 result = (bool)(arg1)->IsOk();
11708
11709 wxPyEndAllowThreads(__tstate);
11710 if (PyErr_Occurred()) SWIG_fail;
11711 }
11712 {
11713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11714 }
11715 return resultobj;
11716 fail:
11717 return NULL;
11718 }
11719
11720
11721 static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args) {
11722 PyObject *resultobj;
11723 wxSound *arg1 = (wxSound *) 0 ;
11724 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11725 bool result;
11726 PyObject * obj0 = 0 ;
11727 PyObject * obj1 = 0 ;
11728
11729 if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_Play",&obj0,&obj1)) goto fail;
11730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11732 if (obj1) {
11733 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11734 if (PyErr_Occurred()) SWIG_fail;
11735 }
11736 {
11737 PyThreadState* __tstate = wxPyBeginAllowThreads();
11738 result = (bool)((wxSound const *)arg1)->Play(arg2);
11739
11740 wxPyEndAllowThreads(__tstate);
11741 if (PyErr_Occurred()) SWIG_fail;
11742 }
11743 {
11744 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11745 }
11746 return resultobj;
11747 fail:
11748 return NULL;
11749 }
11750
11751
11752 static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args) {
11753 PyObject *resultobj;
11754 wxString *arg1 = 0 ;
11755 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11756 bool result;
11757 bool temp1 = False ;
11758 PyObject * obj0 = 0 ;
11759 PyObject * obj1 = 0 ;
11760
11761 if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_PlaySound",&obj0,&obj1)) goto fail;
11762 {
11763 arg1 = wxString_in_helper(obj0);
11764 if (arg1 == NULL) SWIG_fail;
11765 temp1 = True;
11766 }
11767 if (obj1) {
11768 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11769 if (PyErr_Occurred()) SWIG_fail;
11770 }
11771 {
11772 PyThreadState* __tstate = wxPyBeginAllowThreads();
11773 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
11774
11775 wxPyEndAllowThreads(__tstate);
11776 if (PyErr_Occurred()) SWIG_fail;
11777 }
11778 {
11779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11780 }
11781 {
11782 if (temp1)
11783 delete arg1;
11784 }
11785 return resultobj;
11786 fail:
11787 {
11788 if (temp1)
11789 delete arg1;
11790 }
11791 return NULL;
11792 }
11793
11794
11795 static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
11796 PyObject *resultobj;
11797 char *kwnames[] = {
11798 NULL
11799 };
11800
11801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
11802 {
11803 PyThreadState* __tstate = wxPyBeginAllowThreads();
11804 wxSound::Stop();
11805
11806 wxPyEndAllowThreads(__tstate);
11807 if (PyErr_Occurred()) SWIG_fail;
11808 }
11809 Py_INCREF(Py_None); resultobj = Py_None;
11810 return resultobj;
11811 fail:
11812 return NULL;
11813 }
11814
11815
11816 static PyObject * Sound_swigregister(PyObject *self, PyObject *args) {
11817 PyObject *obj;
11818 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11819 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
11820 Py_INCREF(obj);
11821 return Py_BuildValue((char *)"");
11822 }
11823 static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11824 PyObject *resultobj;
11825 wxString *arg1 = 0 ;
11826 wxString *arg2 = 0 ;
11827 wxString *arg3 = 0 ;
11828 wxString *arg4 = 0 ;
11829 wxFileTypeInfo *result;
11830 bool temp1 = False ;
11831 bool temp2 = False ;
11832 bool temp3 = False ;
11833 bool temp4 = False ;
11834 PyObject * obj0 = 0 ;
11835 PyObject * obj1 = 0 ;
11836 PyObject * obj2 = 0 ;
11837 PyObject * obj3 = 0 ;
11838 char *kwnames[] = {
11839 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
11840 };
11841
11842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11843 {
11844 arg1 = wxString_in_helper(obj0);
11845 if (arg1 == NULL) SWIG_fail;
11846 temp1 = True;
11847 }
11848 {
11849 arg2 = wxString_in_helper(obj1);
11850 if (arg2 == NULL) SWIG_fail;
11851 temp2 = True;
11852 }
11853 {
11854 arg3 = wxString_in_helper(obj2);
11855 if (arg3 == NULL) SWIG_fail;
11856 temp3 = True;
11857 }
11858 {
11859 arg4 = wxString_in_helper(obj3);
11860 if (arg4 == NULL) SWIG_fail;
11861 temp4 = True;
11862 }
11863 {
11864 PyThreadState* __tstate = wxPyBeginAllowThreads();
11865 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
11866
11867 wxPyEndAllowThreads(__tstate);
11868 if (PyErr_Occurred()) SWIG_fail;
11869 }
11870 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11871 {
11872 if (temp1)
11873 delete arg1;
11874 }
11875 {
11876 if (temp2)
11877 delete arg2;
11878 }
11879 {
11880 if (temp3)
11881 delete arg3;
11882 }
11883 {
11884 if (temp4)
11885 delete arg4;
11886 }
11887 return resultobj;
11888 fail:
11889 {
11890 if (temp1)
11891 delete arg1;
11892 }
11893 {
11894 if (temp2)
11895 delete arg2;
11896 }
11897 {
11898 if (temp3)
11899 delete arg3;
11900 }
11901 {
11902 if (temp4)
11903 delete arg4;
11904 }
11905 return NULL;
11906 }
11907
11908
11909 static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) {
11910 PyObject *resultobj;
11911 wxArrayString *arg1 = 0 ;
11912 wxFileTypeInfo *result;
11913 bool temp1 = False ;
11914 PyObject * obj0 = 0 ;
11915 char *kwnames[] = {
11916 (char *) "sArray", NULL
11917 };
11918
11919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
11920 {
11921 if (! PySequence_Check(obj0)) {
11922 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11923 SWIG_fail;
11924 }
11925 arg1 = new wxArrayString;
11926 temp1 = True;
11927 int i, len=PySequence_Length(obj0);
11928 for (i=0; i<len; i++) {
11929 PyObject* item = PySequence_GetItem(obj0, i);
11930 #if wxUSE_UNICODE
11931 PyObject* str = PyObject_Unicode(item);
11932 #else
11933 PyObject* str = PyObject_Str(item);
11934 #endif
11935 arg1->Add(Py2wxString(str));
11936 Py_DECREF(item);
11937 Py_DECREF(str);
11938 }
11939 }
11940 {
11941 PyThreadState* __tstate = wxPyBeginAllowThreads();
11942 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
11943
11944 wxPyEndAllowThreads(__tstate);
11945 if (PyErr_Occurred()) SWIG_fail;
11946 }
11947 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11948 {
11949 if (temp1) delete arg1;
11950 }
11951 return resultobj;
11952 fail:
11953 {
11954 if (temp1) delete arg1;
11955 }
11956 return NULL;
11957 }
11958
11959
11960 static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11961 PyObject *resultobj;
11962 wxFileTypeInfo *result;
11963 char *kwnames[] = {
11964 NULL
11965 };
11966
11967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
11968 {
11969 PyThreadState* __tstate = wxPyBeginAllowThreads();
11970 result = (wxFileTypeInfo *)new wxFileTypeInfo();
11971
11972 wxPyEndAllowThreads(__tstate);
11973 if (PyErr_Occurred()) SWIG_fail;
11974 }
11975 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11976 return resultobj;
11977 fail:
11978 return NULL;
11979 }
11980
11981
11982 static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
11983 PyObject *resultobj;
11984 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11985 bool result;
11986 PyObject * obj0 = 0 ;
11987 char *kwnames[] = {
11988 (char *) "self", NULL
11989 };
11990
11991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
11992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
11993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11994 {
11995 PyThreadState* __tstate = wxPyBeginAllowThreads();
11996 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
11997
11998 wxPyEndAllowThreads(__tstate);
11999 if (PyErr_Occurred()) SWIG_fail;
12000 }
12001 {
12002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12003 }
12004 return resultobj;
12005 fail:
12006 return NULL;
12007 }
12008
12009
12010 static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12011 PyObject *resultobj;
12012 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12013 wxString *arg2 = 0 ;
12014 int arg3 = (int) 0 ;
12015 bool temp2 = False ;
12016 PyObject * obj0 = 0 ;
12017 PyObject * obj1 = 0 ;
12018 PyObject * obj2 = 0 ;
12019 char *kwnames[] = {
12020 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
12021 };
12022
12023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12026 {
12027 arg2 = wxString_in_helper(obj1);
12028 if (arg2 == NULL) SWIG_fail;
12029 temp2 = True;
12030 }
12031 if (obj2) {
12032 arg3 = (int) SWIG_AsInt(obj2);
12033 if (PyErr_Occurred()) SWIG_fail;
12034 }
12035 {
12036 PyThreadState* __tstate = wxPyBeginAllowThreads();
12037 (arg1)->SetIcon((wxString const &)*arg2,arg3);
12038
12039 wxPyEndAllowThreads(__tstate);
12040 if (PyErr_Occurred()) SWIG_fail;
12041 }
12042 Py_INCREF(Py_None); resultobj = Py_None;
12043 {
12044 if (temp2)
12045 delete arg2;
12046 }
12047 return resultobj;
12048 fail:
12049 {
12050 if (temp2)
12051 delete arg2;
12052 }
12053 return NULL;
12054 }
12055
12056
12057 static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12058 PyObject *resultobj;
12059 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12060 wxString *arg2 = 0 ;
12061 bool temp2 = False ;
12062 PyObject * obj0 = 0 ;
12063 PyObject * obj1 = 0 ;
12064 char *kwnames[] = {
12065 (char *) "self",(char *) "shortDesc", NULL
12066 };
12067
12068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
12069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12071 {
12072 arg2 = wxString_in_helper(obj1);
12073 if (arg2 == NULL) SWIG_fail;
12074 temp2 = True;
12075 }
12076 {
12077 PyThreadState* __tstate = wxPyBeginAllowThreads();
12078 (arg1)->SetShortDesc((wxString const &)*arg2);
12079
12080 wxPyEndAllowThreads(__tstate);
12081 if (PyErr_Occurred()) SWIG_fail;
12082 }
12083 Py_INCREF(Py_None); resultobj = Py_None;
12084 {
12085 if (temp2)
12086 delete arg2;
12087 }
12088 return resultobj;
12089 fail:
12090 {
12091 if (temp2)
12092 delete arg2;
12093 }
12094 return NULL;
12095 }
12096
12097
12098 static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12099 PyObject *resultobj;
12100 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12101 wxString *result;
12102 PyObject * obj0 = 0 ;
12103 char *kwnames[] = {
12104 (char *) "self", NULL
12105 };
12106
12107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
12108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12110 {
12111 PyThreadState* __tstate = wxPyBeginAllowThreads();
12112 {
12113 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
12114 result = (wxString *) &_result_ref;
12115 }
12116
12117 wxPyEndAllowThreads(__tstate);
12118 if (PyErr_Occurred()) SWIG_fail;
12119 }
12120 {
12121 #if wxUSE_UNICODE
12122 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12123 #else
12124 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12125 #endif
12126 }
12127 return resultobj;
12128 fail:
12129 return NULL;
12130 }
12131
12132
12133 static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12134 PyObject *resultobj;
12135 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12136 wxString *result;
12137 PyObject * obj0 = 0 ;
12138 char *kwnames[] = {
12139 (char *) "self", NULL
12140 };
12141
12142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
12143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12145 {
12146 PyThreadState* __tstate = wxPyBeginAllowThreads();
12147 {
12148 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
12149 result = (wxString *) &_result_ref;
12150 }
12151
12152 wxPyEndAllowThreads(__tstate);
12153 if (PyErr_Occurred()) SWIG_fail;
12154 }
12155 {
12156 #if wxUSE_UNICODE
12157 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12158 #else
12159 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12160 #endif
12161 }
12162 return resultobj;
12163 fail:
12164 return NULL;
12165 }
12166
12167
12168 static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12169 PyObject *resultobj;
12170 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12171 wxString *result;
12172 PyObject * obj0 = 0 ;
12173 char *kwnames[] = {
12174 (char *) "self", NULL
12175 };
12176
12177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
12178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12180 {
12181 PyThreadState* __tstate = wxPyBeginAllowThreads();
12182 {
12183 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
12184 result = (wxString *) &_result_ref;
12185 }
12186
12187 wxPyEndAllowThreads(__tstate);
12188 if (PyErr_Occurred()) SWIG_fail;
12189 }
12190 {
12191 #if wxUSE_UNICODE
12192 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12193 #else
12194 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12195 #endif
12196 }
12197 return resultobj;
12198 fail:
12199 return NULL;
12200 }
12201
12202
12203 static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12204 PyObject *resultobj;
12205 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12206 wxString *result;
12207 PyObject * obj0 = 0 ;
12208 char *kwnames[] = {
12209 (char *) "self", NULL
12210 };
12211
12212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
12213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12215 {
12216 PyThreadState* __tstate = wxPyBeginAllowThreads();
12217 {
12218 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
12219 result = (wxString *) &_result_ref;
12220 }
12221
12222 wxPyEndAllowThreads(__tstate);
12223 if (PyErr_Occurred()) SWIG_fail;
12224 }
12225 {
12226 #if wxUSE_UNICODE
12227 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12228 #else
12229 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12230 #endif
12231 }
12232 return resultobj;
12233 fail:
12234 return NULL;
12235 }
12236
12237
12238 static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12239 PyObject *resultobj;
12240 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12241 wxString *result;
12242 PyObject * obj0 = 0 ;
12243 char *kwnames[] = {
12244 (char *) "self", NULL
12245 };
12246
12247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
12248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12250 {
12251 PyThreadState* __tstate = wxPyBeginAllowThreads();
12252 {
12253 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
12254 result = (wxString *) &_result_ref;
12255 }
12256
12257 wxPyEndAllowThreads(__tstate);
12258 if (PyErr_Occurred()) SWIG_fail;
12259 }
12260 {
12261 #if wxUSE_UNICODE
12262 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12263 #else
12264 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12265 #endif
12266 }
12267 return resultobj;
12268 fail:
12269 return NULL;
12270 }
12271
12272
12273 static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12274 PyObject *resultobj;
12275 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12276 wxArrayString *result;
12277 PyObject * obj0 = 0 ;
12278 char *kwnames[] = {
12279 (char *) "self", NULL
12280 };
12281
12282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
12283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12285 {
12286 PyThreadState* __tstate = wxPyBeginAllowThreads();
12287 {
12288 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
12289 result = (wxArrayString *) &_result_ref;
12290 }
12291
12292 wxPyEndAllowThreads(__tstate);
12293 if (PyErr_Occurred()) SWIG_fail;
12294 }
12295 {
12296 resultobj = wxArrayString2PyList_helper(*result);
12297 }
12298 return resultobj;
12299 fail:
12300 return NULL;
12301 }
12302
12303
12304 static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12305 PyObject *resultobj;
12306 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12307 int result;
12308 PyObject * obj0 = 0 ;
12309 char *kwnames[] = {
12310 (char *) "self", NULL
12311 };
12312
12313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
12314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12316 {
12317 PyThreadState* __tstate = wxPyBeginAllowThreads();
12318 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
12319
12320 wxPyEndAllowThreads(__tstate);
12321 if (PyErr_Occurred()) SWIG_fail;
12322 }
12323 resultobj = SWIG_FromInt((int)result);
12324 return resultobj;
12325 fail:
12326 return NULL;
12327 }
12328
12329
12330 static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) {
12331 PyObject *resultobj;
12332 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12333 wxString *result;
12334 PyObject * obj0 = 0 ;
12335 char *kwnames[] = {
12336 (char *) "self", NULL
12337 };
12338
12339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
12340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12342 {
12343 PyThreadState* __tstate = wxPyBeginAllowThreads();
12344 {
12345 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
12346 result = (wxString *) &_result_ref;
12347 }
12348
12349 wxPyEndAllowThreads(__tstate);
12350 if (PyErr_Occurred()) SWIG_fail;
12351 }
12352 {
12353 #if wxUSE_UNICODE
12354 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12355 #else
12356 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12357 #endif
12358 }
12359 return resultobj;
12360 fail:
12361 return NULL;
12362 }
12363
12364
12365 static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
12366 PyObject *resultobj;
12367 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12368 int result;
12369 PyObject * obj0 = 0 ;
12370 char *kwnames[] = {
12371 (char *) "self", NULL
12372 };
12373
12374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
12375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12377 {
12378 PyThreadState* __tstate = wxPyBeginAllowThreads();
12379 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
12380
12381 wxPyEndAllowThreads(__tstate);
12382 if (PyErr_Occurred()) SWIG_fail;
12383 }
12384 resultobj = SWIG_FromInt((int)result);
12385 return resultobj;
12386 fail:
12387 return NULL;
12388 }
12389
12390
12391 static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) {
12392 PyObject *obj;
12393 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12394 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
12395 Py_INCREF(obj);
12396 return Py_BuildValue((char *)"");
12397 }
12398 static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12399 PyObject *resultobj;
12400 wxFileTypeInfo *arg1 = 0 ;
12401 wxFileType *result;
12402 PyObject * obj0 = 0 ;
12403 char *kwnames[] = {
12404 (char *) "ftInfo", NULL
12405 };
12406
12407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
12408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12409 SWIG_POINTER_EXCEPTION | 0)) == -1)
12410 SWIG_fail;
12411 if (arg1 == NULL) {
12412 PyErr_SetString(PyExc_TypeError,"null reference");
12413 SWIG_fail;
12414 }
12415 {
12416 PyThreadState* __tstate = wxPyBeginAllowThreads();
12417 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
12418
12419 wxPyEndAllowThreads(__tstate);
12420 if (PyErr_Occurred()) SWIG_fail;
12421 }
12422 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
12423 return resultobj;
12424 fail:
12425 return NULL;
12426 }
12427
12428
12429 static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12430 PyObject *resultobj;
12431 wxFileType *arg1 = (wxFileType *) 0 ;
12432 PyObject * obj0 = 0 ;
12433 char *kwnames[] = {
12434 (char *) "self", NULL
12435 };
12436
12437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
12438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12440 {
12441 PyThreadState* __tstate = wxPyBeginAllowThreads();
12442 delete arg1;
12443
12444 wxPyEndAllowThreads(__tstate);
12445 if (PyErr_Occurred()) SWIG_fail;
12446 }
12447 Py_INCREF(Py_None); resultobj = Py_None;
12448 return resultobj;
12449 fail:
12450 return NULL;
12451 }
12452
12453
12454 static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12455 PyObject *resultobj;
12456 wxFileType *arg1 = (wxFileType *) 0 ;
12457 PyObject *result;
12458 PyObject * obj0 = 0 ;
12459 char *kwnames[] = {
12460 (char *) "self", NULL
12461 };
12462
12463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
12464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12466 {
12467 PyThreadState* __tstate = wxPyBeginAllowThreads();
12468 result = (PyObject *)wxFileType_GetMimeType(arg1);
12469
12470 wxPyEndAllowThreads(__tstate);
12471 if (PyErr_Occurred()) SWIG_fail;
12472 }
12473 resultobj = result;
12474 return resultobj;
12475 fail:
12476 return NULL;
12477 }
12478
12479
12480 static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
12481 PyObject *resultobj;
12482 wxFileType *arg1 = (wxFileType *) 0 ;
12483 PyObject *result;
12484 PyObject * obj0 = 0 ;
12485 char *kwnames[] = {
12486 (char *) "self", NULL
12487 };
12488
12489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
12490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12492 {
12493 PyThreadState* __tstate = wxPyBeginAllowThreads();
12494 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
12495
12496 wxPyEndAllowThreads(__tstate);
12497 if (PyErr_Occurred()) SWIG_fail;
12498 }
12499 resultobj = result;
12500 return resultobj;
12501 fail:
12502 return NULL;
12503 }
12504
12505
12506 static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12507 PyObject *resultobj;
12508 wxFileType *arg1 = (wxFileType *) 0 ;
12509 PyObject *result;
12510 PyObject * obj0 = 0 ;
12511 char *kwnames[] = {
12512 (char *) "self", NULL
12513 };
12514
12515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
12516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12518 {
12519 PyThreadState* __tstate = wxPyBeginAllowThreads();
12520 result = (PyObject *)wxFileType_GetExtensions(arg1);
12521
12522 wxPyEndAllowThreads(__tstate);
12523 if (PyErr_Occurred()) SWIG_fail;
12524 }
12525 resultobj = result;
12526 return resultobj;
12527 fail:
12528 return NULL;
12529 }
12530
12531
12532 static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12533 PyObject *resultobj;
12534 wxFileType *arg1 = (wxFileType *) 0 ;
12535 wxIcon *result;
12536 PyObject * obj0 = 0 ;
12537 char *kwnames[] = {
12538 (char *) "self", NULL
12539 };
12540
12541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
12542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12544 {
12545 PyThreadState* __tstate = wxPyBeginAllowThreads();
12546 result = (wxIcon *)wxFileType_GetIcon(arg1);
12547
12548 wxPyEndAllowThreads(__tstate);
12549 if (PyErr_Occurred()) SWIG_fail;
12550 }
12551 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
12552 return resultobj;
12553 fail:
12554 return NULL;
12555 }
12556
12557
12558 static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12559 PyObject *resultobj;
12560 wxFileType *arg1 = (wxFileType *) 0 ;
12561 PyObject *result;
12562 PyObject * obj0 = 0 ;
12563 char *kwnames[] = {
12564 (char *) "self", NULL
12565 };
12566
12567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
12568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12570 {
12571 PyThreadState* __tstate = wxPyBeginAllowThreads();
12572 result = (PyObject *)wxFileType_GetIconInfo(arg1);
12573
12574 wxPyEndAllowThreads(__tstate);
12575 if (PyErr_Occurred()) SWIG_fail;
12576 }
12577 resultobj = result;
12578 return resultobj;
12579 fail:
12580 return NULL;
12581 }
12582
12583
12584 static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12585 PyObject *resultobj;
12586 wxFileType *arg1 = (wxFileType *) 0 ;
12587 PyObject *result;
12588 PyObject * obj0 = 0 ;
12589 char *kwnames[] = {
12590 (char *) "self", NULL
12591 };
12592
12593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
12594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12596 {
12597 PyThreadState* __tstate = wxPyBeginAllowThreads();
12598 result = (PyObject *)wxFileType_GetDescription(arg1);
12599
12600 wxPyEndAllowThreads(__tstate);
12601 if (PyErr_Occurred()) SWIG_fail;
12602 }
12603 resultobj = result;
12604 return resultobj;
12605 fail:
12606 return NULL;
12607 }
12608
12609
12610 static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12611 PyObject *resultobj;
12612 wxFileType *arg1 = (wxFileType *) 0 ;
12613 wxString *arg2 = 0 ;
12614 wxString const &arg3_defvalue = wxPyEmptyString ;
12615 wxString *arg3 = (wxString *) &arg3_defvalue ;
12616 PyObject *result;
12617 bool temp2 = False ;
12618 bool temp3 = False ;
12619 PyObject * obj0 = 0 ;
12620 PyObject * obj1 = 0 ;
12621 PyObject * obj2 = 0 ;
12622 char *kwnames[] = {
12623 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12624 };
12625
12626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12629 {
12630 arg2 = wxString_in_helper(obj1);
12631 if (arg2 == NULL) SWIG_fail;
12632 temp2 = True;
12633 }
12634 if (obj2) {
12635 {
12636 arg3 = wxString_in_helper(obj2);
12637 if (arg3 == NULL) SWIG_fail;
12638 temp3 = True;
12639 }
12640 }
12641 {
12642 PyThreadState* __tstate = wxPyBeginAllowThreads();
12643 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12644
12645 wxPyEndAllowThreads(__tstate);
12646 if (PyErr_Occurred()) SWIG_fail;
12647 }
12648 resultobj = result;
12649 {
12650 if (temp2)
12651 delete arg2;
12652 }
12653 {
12654 if (temp3)
12655 delete arg3;
12656 }
12657 return resultobj;
12658 fail:
12659 {
12660 if (temp2)
12661 delete arg2;
12662 }
12663 {
12664 if (temp3)
12665 delete arg3;
12666 }
12667 return NULL;
12668 }
12669
12670
12671 static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12672 PyObject *resultobj;
12673 wxFileType *arg1 = (wxFileType *) 0 ;
12674 wxString *arg2 = 0 ;
12675 wxString const &arg3_defvalue = wxPyEmptyString ;
12676 wxString *arg3 = (wxString *) &arg3_defvalue ;
12677 PyObject *result;
12678 bool temp2 = False ;
12679 bool temp3 = False ;
12680 PyObject * obj0 = 0 ;
12681 PyObject * obj1 = 0 ;
12682 PyObject * obj2 = 0 ;
12683 char *kwnames[] = {
12684 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12685 };
12686
12687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12690 {
12691 arg2 = wxString_in_helper(obj1);
12692 if (arg2 == NULL) SWIG_fail;
12693 temp2 = True;
12694 }
12695 if (obj2) {
12696 {
12697 arg3 = wxString_in_helper(obj2);
12698 if (arg3 == NULL) SWIG_fail;
12699 temp3 = True;
12700 }
12701 }
12702 {
12703 PyThreadState* __tstate = wxPyBeginAllowThreads();
12704 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12705
12706 wxPyEndAllowThreads(__tstate);
12707 if (PyErr_Occurred()) SWIG_fail;
12708 }
12709 resultobj = result;
12710 {
12711 if (temp2)
12712 delete arg2;
12713 }
12714 {
12715 if (temp3)
12716 delete arg3;
12717 }
12718 return resultobj;
12719 fail:
12720 {
12721 if (temp2)
12722 delete arg2;
12723 }
12724 {
12725 if (temp3)
12726 delete arg3;
12727 }
12728 return NULL;
12729 }
12730
12731
12732 static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) {
12733 PyObject *resultobj;
12734 wxFileType *arg1 = (wxFileType *) 0 ;
12735 wxString *arg2 = 0 ;
12736 wxString const &arg3_defvalue = wxPyEmptyString ;
12737 wxString *arg3 = (wxString *) &arg3_defvalue ;
12738 PyObject *result;
12739 bool temp2 = False ;
12740 bool temp3 = False ;
12741 PyObject * obj0 = 0 ;
12742 PyObject * obj1 = 0 ;
12743 PyObject * obj2 = 0 ;
12744 char *kwnames[] = {
12745 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12746 };
12747
12748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
12749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12751 {
12752 arg2 = wxString_in_helper(obj1);
12753 if (arg2 == NULL) SWIG_fail;
12754 temp2 = True;
12755 }
12756 if (obj2) {
12757 {
12758 arg3 = wxString_in_helper(obj2);
12759 if (arg3 == NULL) SWIG_fail;
12760 temp3 = True;
12761 }
12762 }
12763 {
12764 PyThreadState* __tstate = wxPyBeginAllowThreads();
12765 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12766
12767 wxPyEndAllowThreads(__tstate);
12768 if (PyErr_Occurred()) SWIG_fail;
12769 }
12770 resultobj = result;
12771 {
12772 if (temp2)
12773 delete arg2;
12774 }
12775 {
12776 if (temp3)
12777 delete arg3;
12778 }
12779 return resultobj;
12780 fail:
12781 {
12782 if (temp2)
12783 delete arg2;
12784 }
12785 {
12786 if (temp3)
12787 delete arg3;
12788 }
12789 return NULL;
12790 }
12791
12792
12793 static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12794 PyObject *resultobj;
12795 wxFileType *arg1 = (wxFileType *) 0 ;
12796 wxString *arg2 = 0 ;
12797 wxString *arg3 = 0 ;
12798 bool arg4 = (bool) True ;
12799 bool result;
12800 bool temp2 = False ;
12801 bool temp3 = False ;
12802 PyObject * obj0 = 0 ;
12803 PyObject * obj1 = 0 ;
12804 PyObject * obj2 = 0 ;
12805 PyObject * obj3 = 0 ;
12806 char *kwnames[] = {
12807 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
12808 };
12809
12810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12813 {
12814 arg2 = wxString_in_helper(obj1);
12815 if (arg2 == NULL) SWIG_fail;
12816 temp2 = True;
12817 }
12818 {
12819 arg3 = wxString_in_helper(obj2);
12820 if (arg3 == NULL) SWIG_fail;
12821 temp3 = True;
12822 }
12823 if (obj3) {
12824 arg4 = (bool) SWIG_AsBool(obj3);
12825 if (PyErr_Occurred()) SWIG_fail;
12826 }
12827 {
12828 PyThreadState* __tstate = wxPyBeginAllowThreads();
12829 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
12830
12831 wxPyEndAllowThreads(__tstate);
12832 if (PyErr_Occurred()) SWIG_fail;
12833 }
12834 {
12835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12836 }
12837 {
12838 if (temp2)
12839 delete arg2;
12840 }
12841 {
12842 if (temp3)
12843 delete arg3;
12844 }
12845 return resultobj;
12846 fail:
12847 {
12848 if (temp2)
12849 delete arg2;
12850 }
12851 {
12852 if (temp3)
12853 delete arg3;
12854 }
12855 return NULL;
12856 }
12857
12858
12859 static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12860 PyObject *resultobj;
12861 wxFileType *arg1 = (wxFileType *) 0 ;
12862 wxString const &arg2_defvalue = wxPyEmptyString ;
12863 wxString *arg2 = (wxString *) &arg2_defvalue ;
12864 int arg3 = (int) 0 ;
12865 bool result;
12866 bool temp2 = False ;
12867 PyObject * obj0 = 0 ;
12868 PyObject * obj1 = 0 ;
12869 PyObject * obj2 = 0 ;
12870 char *kwnames[] = {
12871 (char *) "self",(char *) "cmd",(char *) "index", NULL
12872 };
12873
12874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12877 if (obj1) {
12878 {
12879 arg2 = wxString_in_helper(obj1);
12880 if (arg2 == NULL) SWIG_fail;
12881 temp2 = True;
12882 }
12883 }
12884 if (obj2) {
12885 arg3 = (int) SWIG_AsInt(obj2);
12886 if (PyErr_Occurred()) SWIG_fail;
12887 }
12888 {
12889 PyThreadState* __tstate = wxPyBeginAllowThreads();
12890 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
12891
12892 wxPyEndAllowThreads(__tstate);
12893 if (PyErr_Occurred()) SWIG_fail;
12894 }
12895 {
12896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12897 }
12898 {
12899 if (temp2)
12900 delete arg2;
12901 }
12902 return resultobj;
12903 fail:
12904 {
12905 if (temp2)
12906 delete arg2;
12907 }
12908 return NULL;
12909 }
12910
12911
12912 static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
12913 PyObject *resultobj;
12914 wxFileType *arg1 = (wxFileType *) 0 ;
12915 bool result;
12916 PyObject * obj0 = 0 ;
12917 char *kwnames[] = {
12918 (char *) "self", NULL
12919 };
12920
12921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
12922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12924 {
12925 PyThreadState* __tstate = wxPyBeginAllowThreads();
12926 result = (bool)(arg1)->Unassociate();
12927
12928 wxPyEndAllowThreads(__tstate);
12929 if (PyErr_Occurred()) SWIG_fail;
12930 }
12931 {
12932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12933 }
12934 return resultobj;
12935 fail:
12936 return NULL;
12937 }
12938
12939
12940 static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12941 PyObject *resultobj;
12942 wxString *arg1 = 0 ;
12943 wxString *arg2 = 0 ;
12944 wxString const &arg3_defvalue = wxPyEmptyString ;
12945 wxString *arg3 = (wxString *) &arg3_defvalue ;
12946 wxString result;
12947 bool temp1 = False ;
12948 bool temp2 = False ;
12949 bool temp3 = False ;
12950 PyObject * obj0 = 0 ;
12951 PyObject * obj1 = 0 ;
12952 PyObject * obj2 = 0 ;
12953 char *kwnames[] = {
12954 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
12955 };
12956
12957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12958 {
12959 arg1 = wxString_in_helper(obj0);
12960 if (arg1 == NULL) SWIG_fail;
12961 temp1 = True;
12962 }
12963 {
12964 arg2 = wxString_in_helper(obj1);
12965 if (arg2 == NULL) SWIG_fail;
12966 temp2 = True;
12967 }
12968 if (obj2) {
12969 {
12970 arg3 = wxString_in_helper(obj2);
12971 if (arg3 == NULL) SWIG_fail;
12972 temp3 = True;
12973 }
12974 }
12975 {
12976 PyThreadState* __tstate = wxPyBeginAllowThreads();
12977 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12978
12979 wxPyEndAllowThreads(__tstate);
12980 if (PyErr_Occurred()) SWIG_fail;
12981 }
12982 {
12983 #if wxUSE_UNICODE
12984 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12985 #else
12986 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12987 #endif
12988 }
12989 {
12990 if (temp1)
12991 delete arg1;
12992 }
12993 {
12994 if (temp2)
12995 delete arg2;
12996 }
12997 {
12998 if (temp3)
12999 delete arg3;
13000 }
13001 return resultobj;
13002 fail:
13003 {
13004 if (temp1)
13005 delete arg1;
13006 }
13007 {
13008 if (temp2)
13009 delete arg2;
13010 }
13011 {
13012 if (temp3)
13013 delete arg3;
13014 }
13015 return NULL;
13016 }
13017
13018
13019 static PyObject * FileType_swigregister(PyObject *self, PyObject *args) {
13020 PyObject *obj;
13021 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13022 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
13023 Py_INCREF(obj);
13024 return Py_BuildValue((char *)"");
13025 }
13026 static int _wrap_TheMimeTypesManager_set(PyObject *_val) {
13027 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
13028 return 1;
13029 }
13030
13031
13032 static PyObject *_wrap_TheMimeTypesManager_get() {
13033 PyObject *pyobj;
13034
13035 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
13036 return pyobj;
13037 }
13038
13039
13040 static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) {
13041 PyObject *resultobj;
13042 wxString *arg1 = 0 ;
13043 wxString *arg2 = 0 ;
13044 bool result;
13045 bool temp1 = False ;
13046 bool temp2 = False ;
13047 PyObject * obj0 = 0 ;
13048 PyObject * obj1 = 0 ;
13049 char *kwnames[] = {
13050 (char *) "mimeType",(char *) "wildcard", NULL
13051 };
13052
13053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
13054 {
13055 arg1 = wxString_in_helper(obj0);
13056 if (arg1 == NULL) SWIG_fail;
13057 temp1 = True;
13058 }
13059 {
13060 arg2 = wxString_in_helper(obj1);
13061 if (arg2 == NULL) SWIG_fail;
13062 temp2 = True;
13063 }
13064 {
13065 PyThreadState* __tstate = wxPyBeginAllowThreads();
13066 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
13067
13068 wxPyEndAllowThreads(__tstate);
13069 if (PyErr_Occurred()) SWIG_fail;
13070 }
13071 {
13072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13073 }
13074 {
13075 if (temp1)
13076 delete arg1;
13077 }
13078 {
13079 if (temp2)
13080 delete arg2;
13081 }
13082 return resultobj;
13083 fail:
13084 {
13085 if (temp1)
13086 delete arg1;
13087 }
13088 {
13089 if (temp2)
13090 delete arg2;
13091 }
13092 return NULL;
13093 }
13094
13095
13096 static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13097 PyObject *resultobj;
13098 wxMimeTypesManager *result;
13099 char *kwnames[] = {
13100 NULL
13101 };
13102
13103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
13104 {
13105 PyThreadState* __tstate = wxPyBeginAllowThreads();
13106 result = (wxMimeTypesManager *)new wxMimeTypesManager();
13107
13108 wxPyEndAllowThreads(__tstate);
13109 if (PyErr_Occurred()) SWIG_fail;
13110 }
13111 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
13112 return resultobj;
13113 fail:
13114 return NULL;
13115 }
13116
13117
13118 static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
13119 PyObject *resultobj;
13120 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13121 int arg2 = (int) wxMAILCAP_ALL ;
13122 wxString const &arg3_defvalue = wxPyEmptyString ;
13123 wxString *arg3 = (wxString *) &arg3_defvalue ;
13124 bool temp3 = False ;
13125 PyObject * obj0 = 0 ;
13126 PyObject * obj1 = 0 ;
13127 PyObject * obj2 = 0 ;
13128 char *kwnames[] = {
13129 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
13130 };
13131
13132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13135 if (obj1) {
13136 arg2 = (int) SWIG_AsInt(obj1);
13137 if (PyErr_Occurred()) SWIG_fail;
13138 }
13139 if (obj2) {
13140 {
13141 arg3 = wxString_in_helper(obj2);
13142 if (arg3 == NULL) SWIG_fail;
13143 temp3 = True;
13144 }
13145 }
13146 {
13147 PyThreadState* __tstate = wxPyBeginAllowThreads();
13148 (arg1)->Initialize(arg2,(wxString const &)*arg3);
13149
13150 wxPyEndAllowThreads(__tstate);
13151 if (PyErr_Occurred()) SWIG_fail;
13152 }
13153 Py_INCREF(Py_None); resultobj = Py_None;
13154 {
13155 if (temp3)
13156 delete arg3;
13157 }
13158 return resultobj;
13159 fail:
13160 {
13161 if (temp3)
13162 delete arg3;
13163 }
13164 return NULL;
13165 }
13166
13167
13168 static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) {
13169 PyObject *resultobj;
13170 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13171 PyObject * obj0 = 0 ;
13172 char *kwnames[] = {
13173 (char *) "self", NULL
13174 };
13175
13176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
13177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13179 {
13180 PyThreadState* __tstate = wxPyBeginAllowThreads();
13181 (arg1)->ClearData();
13182
13183 wxPyEndAllowThreads(__tstate);
13184 if (PyErr_Occurred()) SWIG_fail;
13185 }
13186 Py_INCREF(Py_None); resultobj = Py_None;
13187 return resultobj;
13188 fail:
13189 return NULL;
13190 }
13191
13192
13193 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
13194 PyObject *resultobj;
13195 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13196 wxString *arg2 = 0 ;
13197 wxFileType *result;
13198 bool temp2 = False ;
13199 PyObject * obj0 = 0 ;
13200 PyObject * obj1 = 0 ;
13201 char *kwnames[] = {
13202 (char *) "self",(char *) "ext", NULL
13203 };
13204
13205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
13206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13208 {
13209 arg2 = wxString_in_helper(obj1);
13210 if (arg2 == NULL) SWIG_fail;
13211 temp2 = True;
13212 }
13213 {
13214 PyThreadState* __tstate = wxPyBeginAllowThreads();
13215 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
13216
13217 wxPyEndAllowThreads(__tstate);
13218 if (PyErr_Occurred()) SWIG_fail;
13219 }
13220 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13221 {
13222 if (temp2)
13223 delete arg2;
13224 }
13225 return resultobj;
13226 fail:
13227 {
13228 if (temp2)
13229 delete arg2;
13230 }
13231 return NULL;
13232 }
13233
13234
13235 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
13236 PyObject *resultobj;
13237 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13238 wxString *arg2 = 0 ;
13239 wxFileType *result;
13240 bool temp2 = False ;
13241 PyObject * obj0 = 0 ;
13242 PyObject * obj1 = 0 ;
13243 char *kwnames[] = {
13244 (char *) "self",(char *) "mimeType", NULL
13245 };
13246
13247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
13248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13250 {
13251 arg2 = wxString_in_helper(obj1);
13252 if (arg2 == NULL) SWIG_fail;
13253 temp2 = True;
13254 }
13255 {
13256 PyThreadState* __tstate = wxPyBeginAllowThreads();
13257 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
13258
13259 wxPyEndAllowThreads(__tstate);
13260 if (PyErr_Occurred()) SWIG_fail;
13261 }
13262 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13263 {
13264 if (temp2)
13265 delete arg2;
13266 }
13267 return resultobj;
13268 fail:
13269 {
13270 if (temp2)
13271 delete arg2;
13272 }
13273 return NULL;
13274 }
13275
13276
13277 static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) {
13278 PyObject *resultobj;
13279 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13280 wxString *arg2 = 0 ;
13281 bool arg3 = (bool) False ;
13282 bool result;
13283 bool temp2 = False ;
13284 PyObject * obj0 = 0 ;
13285 PyObject * obj1 = 0 ;
13286 PyObject * obj2 = 0 ;
13287 char *kwnames[] = {
13288 (char *) "self",(char *) "filename",(char *) "fallback", NULL
13289 };
13290
13291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
13292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13294 {
13295 arg2 = wxString_in_helper(obj1);
13296 if (arg2 == NULL) SWIG_fail;
13297 temp2 = True;
13298 }
13299 if (obj2) {
13300 arg3 = (bool) SWIG_AsBool(obj2);
13301 if (PyErr_Occurred()) SWIG_fail;
13302 }
13303 {
13304 PyThreadState* __tstate = wxPyBeginAllowThreads();
13305 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
13306
13307 wxPyEndAllowThreads(__tstate);
13308 if (PyErr_Occurred()) SWIG_fail;
13309 }
13310 {
13311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13312 }
13313 {
13314 if (temp2)
13315 delete arg2;
13316 }
13317 return resultobj;
13318 fail:
13319 {
13320 if (temp2)
13321 delete arg2;
13322 }
13323 return NULL;
13324 }
13325
13326
13327 static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13328 PyObject *resultobj;
13329 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13330 wxString *arg2 = 0 ;
13331 bool result;
13332 bool temp2 = False ;
13333 PyObject * obj0 = 0 ;
13334 PyObject * obj1 = 0 ;
13335 char *kwnames[] = {
13336 (char *) "self",(char *) "filename", NULL
13337 };
13338
13339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
13340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13342 {
13343 arg2 = wxString_in_helper(obj1);
13344 if (arg2 == NULL) SWIG_fail;
13345 temp2 = True;
13346 }
13347 {
13348 PyThreadState* __tstate = wxPyBeginAllowThreads();
13349 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
13350
13351 wxPyEndAllowThreads(__tstate);
13352 if (PyErr_Occurred()) SWIG_fail;
13353 }
13354 {
13355 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13356 }
13357 {
13358 if (temp2)
13359 delete arg2;
13360 }
13361 return resultobj;
13362 fail:
13363 {
13364 if (temp2)
13365 delete arg2;
13366 }
13367 return NULL;
13368 }
13369
13370
13371 static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13372 PyObject *resultobj;
13373 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13374 PyObject *result;
13375 PyObject * obj0 = 0 ;
13376 char *kwnames[] = {
13377 (char *) "self", NULL
13378 };
13379
13380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
13381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13383 {
13384 PyThreadState* __tstate = wxPyBeginAllowThreads();
13385 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
13386
13387 wxPyEndAllowThreads(__tstate);
13388 if (PyErr_Occurred()) SWIG_fail;
13389 }
13390 resultobj = result;
13391 return resultobj;
13392 fail:
13393 return NULL;
13394 }
13395
13396
13397 static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) {
13398 PyObject *resultobj;
13399 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13400 wxFileTypeInfo *arg2 = 0 ;
13401 PyObject * obj0 = 0 ;
13402 PyObject * obj1 = 0 ;
13403 char *kwnames[] = {
13404 (char *) "self",(char *) "ft", NULL
13405 };
13406
13407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
13408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13410 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13411 SWIG_POINTER_EXCEPTION | 0)) == -1)
13412 SWIG_fail;
13413 if (arg2 == NULL) {
13414 PyErr_SetString(PyExc_TypeError,"null reference");
13415 SWIG_fail;
13416 }
13417 {
13418 PyThreadState* __tstate = wxPyBeginAllowThreads();
13419 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
13420
13421 wxPyEndAllowThreads(__tstate);
13422 if (PyErr_Occurred()) SWIG_fail;
13423 }
13424 Py_INCREF(Py_None); resultobj = Py_None;
13425 return resultobj;
13426 fail:
13427 return NULL;
13428 }
13429
13430
13431 static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) {
13432 PyObject *resultobj;
13433 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13434 wxFileTypeInfo *arg2 = 0 ;
13435 wxFileType *result;
13436 PyObject * obj0 = 0 ;
13437 PyObject * obj1 = 0 ;
13438 char *kwnames[] = {
13439 (char *) "self",(char *) "ftInfo", NULL
13440 };
13441
13442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
13443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13445 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13446 SWIG_POINTER_EXCEPTION | 0)) == -1)
13447 SWIG_fail;
13448 if (arg2 == NULL) {
13449 PyErr_SetString(PyExc_TypeError,"null reference");
13450 SWIG_fail;
13451 }
13452 {
13453 PyThreadState* __tstate = wxPyBeginAllowThreads();
13454 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
13455
13456 wxPyEndAllowThreads(__tstate);
13457 if (PyErr_Occurred()) SWIG_fail;
13458 }
13459 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13460 return resultobj;
13461 fail:
13462 return NULL;
13463 }
13464
13465
13466 static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
13467 PyObject *resultobj;
13468 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13469 wxFileType *arg2 = (wxFileType *) 0 ;
13470 bool result;
13471 PyObject * obj0 = 0 ;
13472 PyObject * obj1 = 0 ;
13473 char *kwnames[] = {
13474 (char *) "self",(char *) "ft", NULL
13475 };
13476
13477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
13478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13480 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType,
13481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13482 {
13483 PyThreadState* __tstate = wxPyBeginAllowThreads();
13484 result = (bool)(arg1)->Unassociate(arg2);
13485
13486 wxPyEndAllowThreads(__tstate);
13487 if (PyErr_Occurred()) SWIG_fail;
13488 }
13489 {
13490 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13491 }
13492 return resultobj;
13493 fail:
13494 return NULL;
13495 }
13496
13497
13498 static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13499 PyObject *resultobj;
13500 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13501 PyObject * obj0 = 0 ;
13502 char *kwnames[] = {
13503 (char *) "self", NULL
13504 };
13505
13506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
13507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13509 {
13510 PyThreadState* __tstate = wxPyBeginAllowThreads();
13511 delete arg1;
13512
13513 wxPyEndAllowThreads(__tstate);
13514 if (PyErr_Occurred()) SWIG_fail;
13515 }
13516 Py_INCREF(Py_None); resultobj = Py_None;
13517 return resultobj;
13518 fail:
13519 return NULL;
13520 }
13521
13522
13523 static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) {
13524 PyObject *obj;
13525 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13526 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
13527 Py_INCREF(obj);
13528 return Py_BuildValue((char *)"");
13529 }
13530 static int _wrap_ART_TOOLBAR_set(PyObject *_val) {
13531 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
13532 return 1;
13533 }
13534
13535
13536 static PyObject *_wrap_ART_TOOLBAR_get() {
13537 PyObject *pyobj;
13538
13539 {
13540 #if wxUSE_UNICODE
13541 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13542 #else
13543 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13544 #endif
13545 }
13546 return pyobj;
13547 }
13548
13549
13550 static int _wrap_ART_MENU_set(PyObject *_val) {
13551 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
13552 return 1;
13553 }
13554
13555
13556 static PyObject *_wrap_ART_MENU_get() {
13557 PyObject *pyobj;
13558
13559 {
13560 #if wxUSE_UNICODE
13561 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13562 #else
13563 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13564 #endif
13565 }
13566 return pyobj;
13567 }
13568
13569
13570 static int _wrap_ART_FRAME_ICON_set(PyObject *_val) {
13571 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
13572 return 1;
13573 }
13574
13575
13576 static PyObject *_wrap_ART_FRAME_ICON_get() {
13577 PyObject *pyobj;
13578
13579 {
13580 #if wxUSE_UNICODE
13581 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13582 #else
13583 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13584 #endif
13585 }
13586 return pyobj;
13587 }
13588
13589
13590 static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) {
13591 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
13592 return 1;
13593 }
13594
13595
13596 static PyObject *_wrap_ART_CMN_DIALOG_get() {
13597 PyObject *pyobj;
13598
13599 {
13600 #if wxUSE_UNICODE
13601 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13602 #else
13603 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13604 #endif
13605 }
13606 return pyobj;
13607 }
13608
13609
13610 static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) {
13611 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
13612 return 1;
13613 }
13614
13615
13616 static PyObject *_wrap_ART_HELP_BROWSER_get() {
13617 PyObject *pyobj;
13618
13619 {
13620 #if wxUSE_UNICODE
13621 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13622 #else
13623 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13624 #endif
13625 }
13626 return pyobj;
13627 }
13628
13629
13630 static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) {
13631 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
13632 return 1;
13633 }
13634
13635
13636 static PyObject *_wrap_ART_MESSAGE_BOX_get() {
13637 PyObject *pyobj;
13638
13639 {
13640 #if wxUSE_UNICODE
13641 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13642 #else
13643 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13644 #endif
13645 }
13646 return pyobj;
13647 }
13648
13649
13650 static int _wrap_ART_OTHER_set(PyObject *_val) {
13651 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
13652 return 1;
13653 }
13654
13655
13656 static PyObject *_wrap_ART_OTHER_get() {
13657 PyObject *pyobj;
13658
13659 {
13660 #if wxUSE_UNICODE
13661 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13662 #else
13663 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13664 #endif
13665 }
13666 return pyobj;
13667 }
13668
13669
13670 static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) {
13671 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
13672 return 1;
13673 }
13674
13675
13676 static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
13677 PyObject *pyobj;
13678
13679 {
13680 #if wxUSE_UNICODE
13681 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13682 #else
13683 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13684 #endif
13685 }
13686 return pyobj;
13687 }
13688
13689
13690 static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) {
13691 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
13692 return 1;
13693 }
13694
13695
13696 static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
13697 PyObject *pyobj;
13698
13699 {
13700 #if wxUSE_UNICODE
13701 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13702 #else
13703 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13704 #endif
13705 }
13706 return pyobj;
13707 }
13708
13709
13710 static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) {
13711 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
13712 return 1;
13713 }
13714
13715
13716 static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
13717 PyObject *pyobj;
13718
13719 {
13720 #if wxUSE_UNICODE
13721 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13722 #else
13723 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13724 #endif
13725 }
13726 return pyobj;
13727 }
13728
13729
13730 static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) {
13731 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
13732 return 1;
13733 }
13734
13735
13736 static PyObject *_wrap_ART_HELP_SETTINGS_get() {
13737 PyObject *pyobj;
13738
13739 {
13740 #if wxUSE_UNICODE
13741 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13742 #else
13743 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13744 #endif
13745 }
13746 return pyobj;
13747 }
13748
13749
13750 static int _wrap_ART_HELP_BOOK_set(PyObject *_val) {
13751 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
13752 return 1;
13753 }
13754
13755
13756 static PyObject *_wrap_ART_HELP_BOOK_get() {
13757 PyObject *pyobj;
13758
13759 {
13760 #if wxUSE_UNICODE
13761 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13762 #else
13763 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13764 #endif
13765 }
13766 return pyobj;
13767 }
13768
13769
13770 static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) {
13771 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
13772 return 1;
13773 }
13774
13775
13776 static PyObject *_wrap_ART_HELP_FOLDER_get() {
13777 PyObject *pyobj;
13778
13779 {
13780 #if wxUSE_UNICODE
13781 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13782 #else
13783 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13784 #endif
13785 }
13786 return pyobj;
13787 }
13788
13789
13790 static int _wrap_ART_HELP_PAGE_set(PyObject *_val) {
13791 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
13792 return 1;
13793 }
13794
13795
13796 static PyObject *_wrap_ART_HELP_PAGE_get() {
13797 PyObject *pyobj;
13798
13799 {
13800 #if wxUSE_UNICODE
13801 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13802 #else
13803 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13804 #endif
13805 }
13806 return pyobj;
13807 }
13808
13809
13810 static int _wrap_ART_GO_BACK_set(PyObject *_val) {
13811 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
13812 return 1;
13813 }
13814
13815
13816 static PyObject *_wrap_ART_GO_BACK_get() {
13817 PyObject *pyobj;
13818
13819 {
13820 #if wxUSE_UNICODE
13821 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13822 #else
13823 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13824 #endif
13825 }
13826 return pyobj;
13827 }
13828
13829
13830 static int _wrap_ART_GO_FORWARD_set(PyObject *_val) {
13831 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
13832 return 1;
13833 }
13834
13835
13836 static PyObject *_wrap_ART_GO_FORWARD_get() {
13837 PyObject *pyobj;
13838
13839 {
13840 #if wxUSE_UNICODE
13841 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13842 #else
13843 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13844 #endif
13845 }
13846 return pyobj;
13847 }
13848
13849
13850 static int _wrap_ART_GO_UP_set(PyObject *_val) {
13851 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
13852 return 1;
13853 }
13854
13855
13856 static PyObject *_wrap_ART_GO_UP_get() {
13857 PyObject *pyobj;
13858
13859 {
13860 #if wxUSE_UNICODE
13861 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13862 #else
13863 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13864 #endif
13865 }
13866 return pyobj;
13867 }
13868
13869
13870 static int _wrap_ART_GO_DOWN_set(PyObject *_val) {
13871 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
13872 return 1;
13873 }
13874
13875
13876 static PyObject *_wrap_ART_GO_DOWN_get() {
13877 PyObject *pyobj;
13878
13879 {
13880 #if wxUSE_UNICODE
13881 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13882 #else
13883 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13884 #endif
13885 }
13886 return pyobj;
13887 }
13888
13889
13890 static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) {
13891 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
13892 return 1;
13893 }
13894
13895
13896 static PyObject *_wrap_ART_GO_TO_PARENT_get() {
13897 PyObject *pyobj;
13898
13899 {
13900 #if wxUSE_UNICODE
13901 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
13902 #else
13903 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
13904 #endif
13905 }
13906 return pyobj;
13907 }
13908
13909
13910 static int _wrap_ART_GO_HOME_set(PyObject *_val) {
13911 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
13912 return 1;
13913 }
13914
13915
13916 static PyObject *_wrap_ART_GO_HOME_get() {
13917 PyObject *pyobj;
13918
13919 {
13920 #if wxUSE_UNICODE
13921 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
13922 #else
13923 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
13924 #endif
13925 }
13926 return pyobj;
13927 }
13928
13929
13930 static int _wrap_ART_FILE_OPEN_set(PyObject *_val) {
13931 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
13932 return 1;
13933 }
13934
13935
13936 static PyObject *_wrap_ART_FILE_OPEN_get() {
13937 PyObject *pyobj;
13938
13939 {
13940 #if wxUSE_UNICODE
13941 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
13942 #else
13943 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
13944 #endif
13945 }
13946 return pyobj;
13947 }
13948
13949
13950 static int _wrap_ART_PRINT_set(PyObject *_val) {
13951 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
13952 return 1;
13953 }
13954
13955
13956 static PyObject *_wrap_ART_PRINT_get() {
13957 PyObject *pyobj;
13958
13959 {
13960 #if wxUSE_UNICODE
13961 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
13962 #else
13963 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
13964 #endif
13965 }
13966 return pyobj;
13967 }
13968
13969
13970 static int _wrap_ART_HELP_set(PyObject *_val) {
13971 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
13972 return 1;
13973 }
13974
13975
13976 static PyObject *_wrap_ART_HELP_get() {
13977 PyObject *pyobj;
13978
13979 {
13980 #if wxUSE_UNICODE
13981 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
13982 #else
13983 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
13984 #endif
13985 }
13986 return pyobj;
13987 }
13988
13989
13990 static int _wrap_ART_TIP_set(PyObject *_val) {
13991 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
13992 return 1;
13993 }
13994
13995
13996 static PyObject *_wrap_ART_TIP_get() {
13997 PyObject *pyobj;
13998
13999 {
14000 #if wxUSE_UNICODE
14001 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14002 #else
14003 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14004 #endif
14005 }
14006 return pyobj;
14007 }
14008
14009
14010 static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) {
14011 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
14012 return 1;
14013 }
14014
14015
14016 static PyObject *_wrap_ART_REPORT_VIEW_get() {
14017 PyObject *pyobj;
14018
14019 {
14020 #if wxUSE_UNICODE
14021 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14022 #else
14023 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14024 #endif
14025 }
14026 return pyobj;
14027 }
14028
14029
14030 static int _wrap_ART_LIST_VIEW_set(PyObject *_val) {
14031 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
14032 return 1;
14033 }
14034
14035
14036 static PyObject *_wrap_ART_LIST_VIEW_get() {
14037 PyObject *pyobj;
14038
14039 {
14040 #if wxUSE_UNICODE
14041 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14042 #else
14043 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14044 #endif
14045 }
14046 return pyobj;
14047 }
14048
14049
14050 static int _wrap_ART_NEW_DIR_set(PyObject *_val) {
14051 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
14052 return 1;
14053 }
14054
14055
14056 static PyObject *_wrap_ART_NEW_DIR_get() {
14057 PyObject *pyobj;
14058
14059 {
14060 #if wxUSE_UNICODE
14061 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14062 #else
14063 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14064 #endif
14065 }
14066 return pyobj;
14067 }
14068
14069
14070 static int _wrap_ART_FOLDER_set(PyObject *_val) {
14071 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
14072 return 1;
14073 }
14074
14075
14076 static PyObject *_wrap_ART_FOLDER_get() {
14077 PyObject *pyobj;
14078
14079 {
14080 #if wxUSE_UNICODE
14081 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14082 #else
14083 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14084 #endif
14085 }
14086 return pyobj;
14087 }
14088
14089
14090 static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) {
14091 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
14092 return 1;
14093 }
14094
14095
14096 static PyObject *_wrap_ART_GO_DIR_UP_get() {
14097 PyObject *pyobj;
14098
14099 {
14100 #if wxUSE_UNICODE
14101 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14102 #else
14103 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14104 #endif
14105 }
14106 return pyobj;
14107 }
14108
14109
14110 static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) {
14111 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
14112 return 1;
14113 }
14114
14115
14116 static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
14117 PyObject *pyobj;
14118
14119 {
14120 #if wxUSE_UNICODE
14121 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14122 #else
14123 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14124 #endif
14125 }
14126 return pyobj;
14127 }
14128
14129
14130 static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) {
14131 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
14132 return 1;
14133 }
14134
14135
14136 static PyObject *_wrap_ART_NORMAL_FILE_get() {
14137 PyObject *pyobj;
14138
14139 {
14140 #if wxUSE_UNICODE
14141 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14142 #else
14143 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14144 #endif
14145 }
14146 return pyobj;
14147 }
14148
14149
14150 static int _wrap_ART_TICK_MARK_set(PyObject *_val) {
14151 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
14152 return 1;
14153 }
14154
14155
14156 static PyObject *_wrap_ART_TICK_MARK_get() {
14157 PyObject *pyobj;
14158
14159 {
14160 #if wxUSE_UNICODE
14161 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14162 #else
14163 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14164 #endif
14165 }
14166 return pyobj;
14167 }
14168
14169
14170 static int _wrap_ART_CROSS_MARK_set(PyObject *_val) {
14171 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
14172 return 1;
14173 }
14174
14175
14176 static PyObject *_wrap_ART_CROSS_MARK_get() {
14177 PyObject *pyobj;
14178
14179 {
14180 #if wxUSE_UNICODE
14181 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14182 #else
14183 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14184 #endif
14185 }
14186 return pyobj;
14187 }
14188
14189
14190 static int _wrap_ART_ERROR_set(PyObject *_val) {
14191 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
14192 return 1;
14193 }
14194
14195
14196 static PyObject *_wrap_ART_ERROR_get() {
14197 PyObject *pyobj;
14198
14199 {
14200 #if wxUSE_UNICODE
14201 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14202 #else
14203 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14204 #endif
14205 }
14206 return pyobj;
14207 }
14208
14209
14210 static int _wrap_ART_QUESTION_set(PyObject *_val) {
14211 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
14212 return 1;
14213 }
14214
14215
14216 static PyObject *_wrap_ART_QUESTION_get() {
14217 PyObject *pyobj;
14218
14219 {
14220 #if wxUSE_UNICODE
14221 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14222 #else
14223 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14224 #endif
14225 }
14226 return pyobj;
14227 }
14228
14229
14230 static int _wrap_ART_WARNING_set(PyObject *_val) {
14231 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
14232 return 1;
14233 }
14234
14235
14236 static PyObject *_wrap_ART_WARNING_get() {
14237 PyObject *pyobj;
14238
14239 {
14240 #if wxUSE_UNICODE
14241 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14242 #else
14243 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14244 #endif
14245 }
14246 return pyobj;
14247 }
14248
14249
14250 static int _wrap_ART_INFORMATION_set(PyObject *_val) {
14251 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
14252 return 1;
14253 }
14254
14255
14256 static PyObject *_wrap_ART_INFORMATION_get() {
14257 PyObject *pyobj;
14258
14259 {
14260 #if wxUSE_UNICODE
14261 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14262 #else
14263 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14264 #endif
14265 }
14266 return pyobj;
14267 }
14268
14269
14270 static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) {
14271 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
14272 return 1;
14273 }
14274
14275
14276 static PyObject *_wrap_ART_MISSING_IMAGE_get() {
14277 PyObject *pyobj;
14278
14279 {
14280 #if wxUSE_UNICODE
14281 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14282 #else
14283 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14284 #endif
14285 }
14286 return pyobj;
14287 }
14288
14289
14290 static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14291 PyObject *resultobj;
14292 wxPyArtProvider *result;
14293 char *kwnames[] = {
14294 NULL
14295 };
14296
14297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
14298 {
14299 PyThreadState* __tstate = wxPyBeginAllowThreads();
14300 result = (wxPyArtProvider *)new wxPyArtProvider();
14301
14302 wxPyEndAllowThreads(__tstate);
14303 if (PyErr_Occurred()) SWIG_fail;
14304 }
14305 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
14306 return resultobj;
14307 fail:
14308 return NULL;
14309 }
14310
14311
14312 static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
14313 PyObject *resultobj;
14314 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14315 PyObject *arg2 = (PyObject *) 0 ;
14316 PyObject *arg3 = (PyObject *) 0 ;
14317 PyObject * obj0 = 0 ;
14318 PyObject * obj1 = 0 ;
14319 PyObject * obj2 = 0 ;
14320 char *kwnames[] = {
14321 (char *) "self",(char *) "self",(char *) "_class", NULL
14322 };
14323
14324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
14325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14327 arg2 = obj1;
14328 arg3 = obj2;
14329 {
14330 PyThreadState* __tstate = wxPyBeginAllowThreads();
14331 (arg1)->_setCallbackInfo(arg2,arg3);
14332
14333 wxPyEndAllowThreads(__tstate);
14334 if (PyErr_Occurred()) SWIG_fail;
14335 }
14336 Py_INCREF(Py_None); resultobj = Py_None;
14337 return resultobj;
14338 fail:
14339 return NULL;
14340 }
14341
14342
14343 static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14344 PyObject *resultobj;
14345 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14346 PyObject * obj0 = 0 ;
14347 char *kwnames[] = {
14348 (char *) "provider", NULL
14349 };
14350
14351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
14352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14354 {
14355 PyThreadState* __tstate = wxPyBeginAllowThreads();
14356 wxPyArtProvider::PushProvider(arg1);
14357
14358 wxPyEndAllowThreads(__tstate);
14359 if (PyErr_Occurred()) SWIG_fail;
14360 }
14361 Py_INCREF(Py_None); resultobj = Py_None;
14362 return resultobj;
14363 fail:
14364 return NULL;
14365 }
14366
14367
14368 static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14369 PyObject *resultobj;
14370 bool result;
14371 char *kwnames[] = {
14372 NULL
14373 };
14374
14375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
14376 {
14377 PyThreadState* __tstate = wxPyBeginAllowThreads();
14378 result = (bool)wxPyArtProvider::PopProvider();
14379
14380 wxPyEndAllowThreads(__tstate);
14381 if (PyErr_Occurred()) SWIG_fail;
14382 }
14383 {
14384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14385 }
14386 return resultobj;
14387 fail:
14388 return NULL;
14389 }
14390
14391
14392 static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14393 PyObject *resultobj;
14394 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14395 bool result;
14396 PyObject * obj0 = 0 ;
14397 char *kwnames[] = {
14398 (char *) "provider", NULL
14399 };
14400
14401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
14402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14404 {
14405 PyThreadState* __tstate = wxPyBeginAllowThreads();
14406 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
14407
14408 wxPyEndAllowThreads(__tstate);
14409 if (PyErr_Occurred()) SWIG_fail;
14410 }
14411 {
14412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14413 }
14414 return resultobj;
14415 fail:
14416 return NULL;
14417 }
14418
14419
14420 static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
14421 PyObject *resultobj;
14422 wxString *arg1 = 0 ;
14423 wxString const &arg2_defvalue = wxPyART_OTHER ;
14424 wxString *arg2 = (wxString *) &arg2_defvalue ;
14425 wxSize const &arg3_defvalue = wxDefaultSize ;
14426 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14427 wxBitmap result;
14428 bool temp1 = False ;
14429 bool temp2 = False ;
14430 wxSize temp3 ;
14431 PyObject * obj0 = 0 ;
14432 PyObject * obj1 = 0 ;
14433 PyObject * obj2 = 0 ;
14434 char *kwnames[] = {
14435 (char *) "id",(char *) "client",(char *) "size", NULL
14436 };
14437
14438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
14439 {
14440 arg1 = wxString_in_helper(obj0);
14441 if (arg1 == NULL) SWIG_fail;
14442 temp1 = True;
14443 }
14444 if (obj1) {
14445 {
14446 arg2 = wxString_in_helper(obj1);
14447 if (arg2 == NULL) SWIG_fail;
14448 temp2 = True;
14449 }
14450 }
14451 if (obj2) {
14452 {
14453 arg3 = &temp3;
14454 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14455 }
14456 }
14457 {
14458 PyThreadState* __tstate = wxPyBeginAllowThreads();
14459 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14460
14461 wxPyEndAllowThreads(__tstate);
14462 if (PyErr_Occurred()) SWIG_fail;
14463 }
14464 {
14465 wxBitmap * resultptr;
14466 resultptr = new wxBitmap((wxBitmap &) result);
14467 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
14468 }
14469 {
14470 if (temp1)
14471 delete arg1;
14472 }
14473 {
14474 if (temp2)
14475 delete arg2;
14476 }
14477 return resultobj;
14478 fail:
14479 {
14480 if (temp1)
14481 delete arg1;
14482 }
14483 {
14484 if (temp2)
14485 delete arg2;
14486 }
14487 return NULL;
14488 }
14489
14490
14491 static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
14492 PyObject *resultobj;
14493 wxString *arg1 = 0 ;
14494 wxString const &arg2_defvalue = wxPyART_OTHER ;
14495 wxString *arg2 = (wxString *) &arg2_defvalue ;
14496 wxSize const &arg3_defvalue = wxDefaultSize ;
14497 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14498 wxIcon result;
14499 bool temp1 = False ;
14500 bool temp2 = False ;
14501 wxSize temp3 ;
14502 PyObject * obj0 = 0 ;
14503 PyObject * obj1 = 0 ;
14504 PyObject * obj2 = 0 ;
14505 char *kwnames[] = {
14506 (char *) "id",(char *) "client",(char *) "size", NULL
14507 };
14508
14509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
14510 {
14511 arg1 = wxString_in_helper(obj0);
14512 if (arg1 == NULL) SWIG_fail;
14513 temp1 = True;
14514 }
14515 if (obj1) {
14516 {
14517 arg2 = wxString_in_helper(obj1);
14518 if (arg2 == NULL) SWIG_fail;
14519 temp2 = True;
14520 }
14521 }
14522 if (obj2) {
14523 {
14524 arg3 = &temp3;
14525 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14526 }
14527 }
14528 {
14529 PyThreadState* __tstate = wxPyBeginAllowThreads();
14530 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14531
14532 wxPyEndAllowThreads(__tstate);
14533 if (PyErr_Occurred()) SWIG_fail;
14534 }
14535 {
14536 wxIcon * resultptr;
14537 resultptr = new wxIcon((wxIcon &) result);
14538 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
14539 }
14540 {
14541 if (temp1)
14542 delete arg1;
14543 }
14544 {
14545 if (temp2)
14546 delete arg2;
14547 }
14548 return resultobj;
14549 fail:
14550 {
14551 if (temp1)
14552 delete arg1;
14553 }
14554 {
14555 if (temp2)
14556 delete arg2;
14557 }
14558 return NULL;
14559 }
14560
14561
14562 static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
14563 PyObject *resultobj;
14564 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14565 PyObject * obj0 = 0 ;
14566 char *kwnames[] = {
14567 (char *) "self", NULL
14568 };
14569
14570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
14571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14573 {
14574 PyThreadState* __tstate = wxPyBeginAllowThreads();
14575 wxPyArtProvider_Destroy(arg1);
14576
14577 wxPyEndAllowThreads(__tstate);
14578 if (PyErr_Occurred()) SWIG_fail;
14579 }
14580 Py_INCREF(Py_None); resultobj = Py_None;
14581 return resultobj;
14582 fail:
14583 return NULL;
14584 }
14585
14586
14587 static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) {
14588 PyObject *obj;
14589 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14590 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
14591 Py_INCREF(obj);
14592 return Py_BuildValue((char *)"");
14593 }
14594 static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) {
14595 PyObject *resultobj;
14596 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14597 PyObject * obj0 = 0 ;
14598 char *kwnames[] = {
14599 (char *) "self", NULL
14600 };
14601
14602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
14603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14605 {
14606 PyThreadState* __tstate = wxPyBeginAllowThreads();
14607 delete arg1;
14608
14609 wxPyEndAllowThreads(__tstate);
14610 if (PyErr_Occurred()) SWIG_fail;
14611 }
14612 Py_INCREF(Py_None); resultobj = Py_None;
14613 return resultobj;
14614 fail:
14615 return NULL;
14616 }
14617
14618
14619 static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
14620 PyObject *resultobj;
14621 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14622 wxConfigBase *result;
14623 PyObject * obj0 = 0 ;
14624 char *kwnames[] = {
14625 (char *) "config", NULL
14626 };
14627
14628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
14629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14631 {
14632 PyThreadState* __tstate = wxPyBeginAllowThreads();
14633 result = (wxConfigBase *)wxConfigBase::Set(arg1);
14634
14635 wxPyEndAllowThreads(__tstate);
14636 if (PyErr_Occurred()) SWIG_fail;
14637 }
14638 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14639 return resultobj;
14640 fail:
14641 return NULL;
14642 }
14643
14644
14645 static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
14646 PyObject *resultobj;
14647 bool arg1 = (bool) True ;
14648 wxConfigBase *result;
14649 PyObject * obj0 = 0 ;
14650 char *kwnames[] = {
14651 (char *) "createOnDemand", NULL
14652 };
14653
14654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
14655 if (obj0) {
14656 arg1 = (bool) SWIG_AsBool(obj0);
14657 if (PyErr_Occurred()) SWIG_fail;
14658 }
14659 {
14660 PyThreadState* __tstate = wxPyBeginAllowThreads();
14661 result = (wxConfigBase *)wxConfigBase::Get(arg1);
14662
14663 wxPyEndAllowThreads(__tstate);
14664 if (PyErr_Occurred()) SWIG_fail;
14665 }
14666 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14667 return resultobj;
14668 fail:
14669 return NULL;
14670 }
14671
14672
14673 static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14674 PyObject *resultobj;
14675 wxConfigBase *result;
14676 char *kwnames[] = {
14677 NULL
14678 };
14679
14680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
14681 {
14682 PyThreadState* __tstate = wxPyBeginAllowThreads();
14683 result = (wxConfigBase *)wxConfigBase::Create();
14684
14685 wxPyEndAllowThreads(__tstate);
14686 if (PyErr_Occurred()) SWIG_fail;
14687 }
14688 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14689 return resultobj;
14690 fail:
14691 return NULL;
14692 }
14693
14694
14695 static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
14696 PyObject *resultobj;
14697 char *kwnames[] = {
14698 NULL
14699 };
14700
14701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
14702 {
14703 PyThreadState* __tstate = wxPyBeginAllowThreads();
14704 wxConfigBase::DontCreateOnDemand();
14705
14706 wxPyEndAllowThreads(__tstate);
14707 if (PyErr_Occurred()) SWIG_fail;
14708 }
14709 Py_INCREF(Py_None); resultobj = Py_None;
14710 return resultobj;
14711 fail:
14712 return NULL;
14713 }
14714
14715
14716 static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14717 PyObject *resultobj;
14718 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14719 wxString *arg2 = 0 ;
14720 bool temp2 = False ;
14721 PyObject * obj0 = 0 ;
14722 PyObject * obj1 = 0 ;
14723 char *kwnames[] = {
14724 (char *) "self",(char *) "path", NULL
14725 };
14726
14727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
14728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14730 {
14731 arg2 = wxString_in_helper(obj1);
14732 if (arg2 == NULL) SWIG_fail;
14733 temp2 = True;
14734 }
14735 {
14736 PyThreadState* __tstate = wxPyBeginAllowThreads();
14737 (arg1)->SetPath((wxString const &)*arg2);
14738
14739 wxPyEndAllowThreads(__tstate);
14740 if (PyErr_Occurred()) SWIG_fail;
14741 }
14742 Py_INCREF(Py_None); resultobj = Py_None;
14743 {
14744 if (temp2)
14745 delete arg2;
14746 }
14747 return resultobj;
14748 fail:
14749 {
14750 if (temp2)
14751 delete arg2;
14752 }
14753 return NULL;
14754 }
14755
14756
14757 static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14758 PyObject *resultobj;
14759 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14760 wxString *result;
14761 PyObject * obj0 = 0 ;
14762 char *kwnames[] = {
14763 (char *) "self", NULL
14764 };
14765
14766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
14767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14769 {
14770 PyThreadState* __tstate = wxPyBeginAllowThreads();
14771 {
14772 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
14773 result = (wxString *) &_result_ref;
14774 }
14775
14776 wxPyEndAllowThreads(__tstate);
14777 if (PyErr_Occurred()) SWIG_fail;
14778 }
14779 {
14780 #if wxUSE_UNICODE
14781 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14782 #else
14783 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14784 #endif
14785 }
14786 return resultobj;
14787 fail:
14788 return NULL;
14789 }
14790
14791
14792 static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14793 PyObject *resultobj;
14794 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14795 PyObject *result;
14796 PyObject * obj0 = 0 ;
14797 char *kwnames[] = {
14798 (char *) "self", NULL
14799 };
14800
14801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
14802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14804 {
14805 PyThreadState* __tstate = wxPyBeginAllowThreads();
14806 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
14807
14808 wxPyEndAllowThreads(__tstate);
14809 if (PyErr_Occurred()) SWIG_fail;
14810 }
14811 resultobj = result;
14812 return resultobj;
14813 fail:
14814 return NULL;
14815 }
14816
14817
14818 static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14819 PyObject *resultobj;
14820 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14821 long arg2 ;
14822 PyObject *result;
14823 PyObject * obj0 = 0 ;
14824 PyObject * obj1 = 0 ;
14825 char *kwnames[] = {
14826 (char *) "self",(char *) "index", NULL
14827 };
14828
14829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
14830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14832 arg2 = (long) SWIG_AsLong(obj1);
14833 if (PyErr_Occurred()) SWIG_fail;
14834 {
14835 PyThreadState* __tstate = wxPyBeginAllowThreads();
14836 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
14837
14838 wxPyEndAllowThreads(__tstate);
14839 if (PyErr_Occurred()) SWIG_fail;
14840 }
14841 resultobj = result;
14842 return resultobj;
14843 fail:
14844 return NULL;
14845 }
14846
14847
14848 static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14849 PyObject *resultobj;
14850 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14851 PyObject *result;
14852 PyObject * obj0 = 0 ;
14853 char *kwnames[] = {
14854 (char *) "self", NULL
14855 };
14856
14857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
14858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14860 {
14861 PyThreadState* __tstate = wxPyBeginAllowThreads();
14862 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
14863
14864 wxPyEndAllowThreads(__tstate);
14865 if (PyErr_Occurred()) SWIG_fail;
14866 }
14867 resultobj = result;
14868 return resultobj;
14869 fail:
14870 return NULL;
14871 }
14872
14873
14874 static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14875 PyObject *resultobj;
14876 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14877 long arg2 ;
14878 PyObject *result;
14879 PyObject * obj0 = 0 ;
14880 PyObject * obj1 = 0 ;
14881 char *kwnames[] = {
14882 (char *) "self",(char *) "index", NULL
14883 };
14884
14885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
14886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14888 arg2 = (long) SWIG_AsLong(obj1);
14889 if (PyErr_Occurred()) SWIG_fail;
14890 {
14891 PyThreadState* __tstate = wxPyBeginAllowThreads();
14892 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
14893
14894 wxPyEndAllowThreads(__tstate);
14895 if (PyErr_Occurred()) SWIG_fail;
14896 }
14897 resultobj = result;
14898 return resultobj;
14899 fail:
14900 return NULL;
14901 }
14902
14903
14904 static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) {
14905 PyObject *resultobj;
14906 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14907 bool arg2 = (bool) False ;
14908 size_t result;
14909 PyObject * obj0 = 0 ;
14910 PyObject * obj1 = 0 ;
14911 char *kwnames[] = {
14912 (char *) "self",(char *) "recursive", NULL
14913 };
14914
14915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
14916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14918 if (obj1) {
14919 arg2 = (bool) SWIG_AsBool(obj1);
14920 if (PyErr_Occurred()) SWIG_fail;
14921 }
14922 {
14923 PyThreadState* __tstate = wxPyBeginAllowThreads();
14924 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
14925
14926 wxPyEndAllowThreads(__tstate);
14927 if (PyErr_Occurred()) SWIG_fail;
14928 }
14929 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
14930 return resultobj;
14931 fail:
14932 return NULL;
14933 }
14934
14935
14936 static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) {
14937 PyObject *resultobj;
14938 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14939 bool arg2 = (bool) False ;
14940 size_t result;
14941 PyObject * obj0 = 0 ;
14942 PyObject * obj1 = 0 ;
14943 char *kwnames[] = {
14944 (char *) "self",(char *) "recursive", NULL
14945 };
14946
14947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
14948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14950 if (obj1) {
14951 arg2 = (bool) SWIG_AsBool(obj1);
14952 if (PyErr_Occurred()) SWIG_fail;
14953 }
14954 {
14955 PyThreadState* __tstate = wxPyBeginAllowThreads();
14956 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
14957
14958 wxPyEndAllowThreads(__tstate);
14959 if (PyErr_Occurred()) SWIG_fail;
14960 }
14961 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
14962 return resultobj;
14963 fail:
14964 return NULL;
14965 }
14966
14967
14968 static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14969 PyObject *resultobj;
14970 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14971 wxString *arg2 = 0 ;
14972 bool result;
14973 bool temp2 = False ;
14974 PyObject * obj0 = 0 ;
14975 PyObject * obj1 = 0 ;
14976 char *kwnames[] = {
14977 (char *) "self",(char *) "name", NULL
14978 };
14979
14980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
14981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14983 {
14984 arg2 = wxString_in_helper(obj1);
14985 if (arg2 == NULL) SWIG_fail;
14986 temp2 = True;
14987 }
14988 {
14989 PyThreadState* __tstate = wxPyBeginAllowThreads();
14990 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
14991
14992 wxPyEndAllowThreads(__tstate);
14993 if (PyErr_Occurred()) SWIG_fail;
14994 }
14995 {
14996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14997 }
14998 {
14999 if (temp2)
15000 delete arg2;
15001 }
15002 return resultobj;
15003 fail:
15004 {
15005 if (temp2)
15006 delete arg2;
15007 }
15008 return NULL;
15009 }
15010
15011
15012 static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15013 PyObject *resultobj;
15014 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15015 wxString *arg2 = 0 ;
15016 bool result;
15017 bool temp2 = False ;
15018 PyObject * obj0 = 0 ;
15019 PyObject * obj1 = 0 ;
15020 char *kwnames[] = {
15021 (char *) "self",(char *) "name", NULL
15022 };
15023
15024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
15025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15027 {
15028 arg2 = wxString_in_helper(obj1);
15029 if (arg2 == NULL) SWIG_fail;
15030 temp2 = True;
15031 }
15032 {
15033 PyThreadState* __tstate = wxPyBeginAllowThreads();
15034 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
15035
15036 wxPyEndAllowThreads(__tstate);
15037 if (PyErr_Occurred()) SWIG_fail;
15038 }
15039 {
15040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15041 }
15042 {
15043 if (temp2)
15044 delete arg2;
15045 }
15046 return resultobj;
15047 fail:
15048 {
15049 if (temp2)
15050 delete arg2;
15051 }
15052 return NULL;
15053 }
15054
15055
15056 static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
15057 PyObject *resultobj;
15058 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15059 wxString *arg2 = 0 ;
15060 bool result;
15061 bool temp2 = False ;
15062 PyObject * obj0 = 0 ;
15063 PyObject * obj1 = 0 ;
15064 char *kwnames[] = {
15065 (char *) "self",(char *) "name", NULL
15066 };
15067
15068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
15069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15071 {
15072 arg2 = wxString_in_helper(obj1);
15073 if (arg2 == NULL) SWIG_fail;
15074 temp2 = True;
15075 }
15076 {
15077 PyThreadState* __tstate = wxPyBeginAllowThreads();
15078 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
15079
15080 wxPyEndAllowThreads(__tstate);
15081 if (PyErr_Occurred()) SWIG_fail;
15082 }
15083 {
15084 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15085 }
15086 {
15087 if (temp2)
15088 delete arg2;
15089 }
15090 return resultobj;
15091 fail:
15092 {
15093 if (temp2)
15094 delete arg2;
15095 }
15096 return NULL;
15097 }
15098
15099
15100 static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) {
15101 PyObject *resultobj;
15102 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15103 wxString *arg2 = 0 ;
15104 int result;
15105 bool temp2 = False ;
15106 PyObject * obj0 = 0 ;
15107 PyObject * obj1 = 0 ;
15108 char *kwnames[] = {
15109 (char *) "self",(char *) "name", NULL
15110 };
15111
15112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
15113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15115 {
15116 arg2 = wxString_in_helper(obj1);
15117 if (arg2 == NULL) SWIG_fail;
15118 temp2 = True;
15119 }
15120 {
15121 PyThreadState* __tstate = wxPyBeginAllowThreads();
15122 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
15123
15124 wxPyEndAllowThreads(__tstate);
15125 if (PyErr_Occurred()) SWIG_fail;
15126 }
15127 resultobj = SWIG_FromInt((int)result);
15128 {
15129 if (temp2)
15130 delete arg2;
15131 }
15132 return resultobj;
15133 fail:
15134 {
15135 if (temp2)
15136 delete arg2;
15137 }
15138 return NULL;
15139 }
15140
15141
15142 static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) {
15143 PyObject *resultobj;
15144 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15145 wxString *arg2 = 0 ;
15146 wxString const &arg3_defvalue = wxPyEmptyString ;
15147 wxString *arg3 = (wxString *) &arg3_defvalue ;
15148 wxString result;
15149 bool temp2 = False ;
15150 bool temp3 = False ;
15151 PyObject * obj0 = 0 ;
15152 PyObject * obj1 = 0 ;
15153 PyObject * obj2 = 0 ;
15154 char *kwnames[] = {
15155 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15156 };
15157
15158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
15159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15161 {
15162 arg2 = wxString_in_helper(obj1);
15163 if (arg2 == NULL) SWIG_fail;
15164 temp2 = True;
15165 }
15166 if (obj2) {
15167 {
15168 arg3 = wxString_in_helper(obj2);
15169 if (arg3 == NULL) SWIG_fail;
15170 temp3 = True;
15171 }
15172 }
15173 {
15174 PyThreadState* __tstate = wxPyBeginAllowThreads();
15175 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
15176
15177 wxPyEndAllowThreads(__tstate);
15178 if (PyErr_Occurred()) SWIG_fail;
15179 }
15180 {
15181 #if wxUSE_UNICODE
15182 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15183 #else
15184 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15185 #endif
15186 }
15187 {
15188 if (temp2)
15189 delete arg2;
15190 }
15191 {
15192 if (temp3)
15193 delete arg3;
15194 }
15195 return resultobj;
15196 fail:
15197 {
15198 if (temp2)
15199 delete arg2;
15200 }
15201 {
15202 if (temp3)
15203 delete arg3;
15204 }
15205 return NULL;
15206 }
15207
15208
15209 static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15210 PyObject *resultobj;
15211 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15212 wxString *arg2 = 0 ;
15213 long arg3 = (long) 0 ;
15214 long result;
15215 bool temp2 = False ;
15216 PyObject * obj0 = 0 ;
15217 PyObject * obj1 = 0 ;
15218 PyObject * obj2 = 0 ;
15219 char *kwnames[] = {
15220 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15221 };
15222
15223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15226 {
15227 arg2 = wxString_in_helper(obj1);
15228 if (arg2 == NULL) SWIG_fail;
15229 temp2 = True;
15230 }
15231 if (obj2) {
15232 arg3 = (long) SWIG_AsLong(obj2);
15233 if (PyErr_Occurred()) SWIG_fail;
15234 }
15235 {
15236 PyThreadState* __tstate = wxPyBeginAllowThreads();
15237 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
15238
15239 wxPyEndAllowThreads(__tstate);
15240 if (PyErr_Occurred()) SWIG_fail;
15241 }
15242 resultobj = SWIG_FromLong((long)result);
15243 {
15244 if (temp2)
15245 delete arg2;
15246 }
15247 return resultobj;
15248 fail:
15249 {
15250 if (temp2)
15251 delete arg2;
15252 }
15253 return NULL;
15254 }
15255
15256
15257 static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15258 PyObject *resultobj;
15259 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15260 wxString *arg2 = 0 ;
15261 double arg3 = (double) 0.0 ;
15262 double result;
15263 bool temp2 = False ;
15264 PyObject * obj0 = 0 ;
15265 PyObject * obj1 = 0 ;
15266 PyObject * obj2 = 0 ;
15267 char *kwnames[] = {
15268 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15269 };
15270
15271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15274 {
15275 arg2 = wxString_in_helper(obj1);
15276 if (arg2 == NULL) SWIG_fail;
15277 temp2 = True;
15278 }
15279 if (obj2) {
15280 arg3 = (double) SWIG_AsDouble(obj2);
15281 if (PyErr_Occurred()) SWIG_fail;
15282 }
15283 {
15284 PyThreadState* __tstate = wxPyBeginAllowThreads();
15285 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
15286
15287 wxPyEndAllowThreads(__tstate);
15288 if (PyErr_Occurred()) SWIG_fail;
15289 }
15290 resultobj = SWIG_FromDouble((double)result);
15291 {
15292 if (temp2)
15293 delete arg2;
15294 }
15295 return resultobj;
15296 fail:
15297 {
15298 if (temp2)
15299 delete arg2;
15300 }
15301 return NULL;
15302 }
15303
15304
15305 static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15306 PyObject *resultobj;
15307 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15308 wxString *arg2 = 0 ;
15309 bool arg3 = (bool) False ;
15310 bool result;
15311 bool temp2 = False ;
15312 PyObject * obj0 = 0 ;
15313 PyObject * obj1 = 0 ;
15314 PyObject * obj2 = 0 ;
15315 char *kwnames[] = {
15316 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15317 };
15318
15319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15322 {
15323 arg2 = wxString_in_helper(obj1);
15324 if (arg2 == NULL) SWIG_fail;
15325 temp2 = True;
15326 }
15327 if (obj2) {
15328 arg3 = (bool) SWIG_AsBool(obj2);
15329 if (PyErr_Occurred()) SWIG_fail;
15330 }
15331 {
15332 PyThreadState* __tstate = wxPyBeginAllowThreads();
15333 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
15334
15335 wxPyEndAllowThreads(__tstate);
15336 if (PyErr_Occurred()) SWIG_fail;
15337 }
15338 {
15339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15340 }
15341 {
15342 if (temp2)
15343 delete arg2;
15344 }
15345 return resultobj;
15346 fail:
15347 {
15348 if (temp2)
15349 delete arg2;
15350 }
15351 return NULL;
15352 }
15353
15354
15355 static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) {
15356 PyObject *resultobj;
15357 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15358 wxString *arg2 = 0 ;
15359 wxString *arg3 = 0 ;
15360 bool result;
15361 bool temp2 = False ;
15362 bool temp3 = False ;
15363 PyObject * obj0 = 0 ;
15364 PyObject * obj1 = 0 ;
15365 PyObject * obj2 = 0 ;
15366 char *kwnames[] = {
15367 (char *) "self",(char *) "key",(char *) "value", NULL
15368 };
15369
15370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
15371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15373 {
15374 arg2 = wxString_in_helper(obj1);
15375 if (arg2 == NULL) SWIG_fail;
15376 temp2 = True;
15377 }
15378 {
15379 arg3 = wxString_in_helper(obj2);
15380 if (arg3 == NULL) SWIG_fail;
15381 temp3 = True;
15382 }
15383 {
15384 PyThreadState* __tstate = wxPyBeginAllowThreads();
15385 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
15386
15387 wxPyEndAllowThreads(__tstate);
15388 if (PyErr_Occurred()) SWIG_fail;
15389 }
15390 {
15391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15392 }
15393 {
15394 if (temp2)
15395 delete arg2;
15396 }
15397 {
15398 if (temp3)
15399 delete arg3;
15400 }
15401 return resultobj;
15402 fail:
15403 {
15404 if (temp2)
15405 delete arg2;
15406 }
15407 {
15408 if (temp3)
15409 delete arg3;
15410 }
15411 return NULL;
15412 }
15413
15414
15415 static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15416 PyObject *resultobj;
15417 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15418 wxString *arg2 = 0 ;
15419 long arg3 ;
15420 bool result;
15421 bool temp2 = False ;
15422 PyObject * obj0 = 0 ;
15423 PyObject * obj1 = 0 ;
15424 PyObject * obj2 = 0 ;
15425 char *kwnames[] = {
15426 (char *) "self",(char *) "key",(char *) "value", NULL
15427 };
15428
15429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15432 {
15433 arg2 = wxString_in_helper(obj1);
15434 if (arg2 == NULL) SWIG_fail;
15435 temp2 = True;
15436 }
15437 arg3 = (long) SWIG_AsLong(obj2);
15438 if (PyErr_Occurred()) SWIG_fail;
15439 {
15440 PyThreadState* __tstate = wxPyBeginAllowThreads();
15441 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15442
15443 wxPyEndAllowThreads(__tstate);
15444 if (PyErr_Occurred()) SWIG_fail;
15445 }
15446 {
15447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15448 }
15449 {
15450 if (temp2)
15451 delete arg2;
15452 }
15453 return resultobj;
15454 fail:
15455 {
15456 if (temp2)
15457 delete arg2;
15458 }
15459 return NULL;
15460 }
15461
15462
15463 static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15464 PyObject *resultobj;
15465 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15466 wxString *arg2 = 0 ;
15467 double arg3 ;
15468 bool result;
15469 bool temp2 = False ;
15470 PyObject * obj0 = 0 ;
15471 PyObject * obj1 = 0 ;
15472 PyObject * obj2 = 0 ;
15473 char *kwnames[] = {
15474 (char *) "self",(char *) "key",(char *) "value", NULL
15475 };
15476
15477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15480 {
15481 arg2 = wxString_in_helper(obj1);
15482 if (arg2 == NULL) SWIG_fail;
15483 temp2 = True;
15484 }
15485 arg3 = (double) SWIG_AsDouble(obj2);
15486 if (PyErr_Occurred()) SWIG_fail;
15487 {
15488 PyThreadState* __tstate = wxPyBeginAllowThreads();
15489 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15490
15491 wxPyEndAllowThreads(__tstate);
15492 if (PyErr_Occurred()) SWIG_fail;
15493 }
15494 {
15495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15496 }
15497 {
15498 if (temp2)
15499 delete arg2;
15500 }
15501 return resultobj;
15502 fail:
15503 {
15504 if (temp2)
15505 delete arg2;
15506 }
15507 return NULL;
15508 }
15509
15510
15511 static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15512 PyObject *resultobj;
15513 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15514 wxString *arg2 = 0 ;
15515 bool arg3 ;
15516 bool result;
15517 bool temp2 = False ;
15518 PyObject * obj0 = 0 ;
15519 PyObject * obj1 = 0 ;
15520 PyObject * obj2 = 0 ;
15521 char *kwnames[] = {
15522 (char *) "self",(char *) "key",(char *) "value", NULL
15523 };
15524
15525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15528 {
15529 arg2 = wxString_in_helper(obj1);
15530 if (arg2 == NULL) SWIG_fail;
15531 temp2 = True;
15532 }
15533 arg3 = (bool) SWIG_AsBool(obj2);
15534 if (PyErr_Occurred()) SWIG_fail;
15535 {
15536 PyThreadState* __tstate = wxPyBeginAllowThreads();
15537 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15538
15539 wxPyEndAllowThreads(__tstate);
15540 if (PyErr_Occurred()) SWIG_fail;
15541 }
15542 {
15543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15544 }
15545 {
15546 if (temp2)
15547 delete arg2;
15548 }
15549 return resultobj;
15550 fail:
15551 {
15552 if (temp2)
15553 delete arg2;
15554 }
15555 return NULL;
15556 }
15557
15558
15559 static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
15560 PyObject *resultobj;
15561 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15562 bool arg2 = (bool) False ;
15563 bool result;
15564 PyObject * obj0 = 0 ;
15565 PyObject * obj1 = 0 ;
15566 char *kwnames[] = {
15567 (char *) "self",(char *) "currentOnly", NULL
15568 };
15569
15570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
15571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15573 if (obj1) {
15574 arg2 = (bool) SWIG_AsBool(obj1);
15575 if (PyErr_Occurred()) SWIG_fail;
15576 }
15577 {
15578 PyThreadState* __tstate = wxPyBeginAllowThreads();
15579 result = (bool)(arg1)->Flush(arg2);
15580
15581 wxPyEndAllowThreads(__tstate);
15582 if (PyErr_Occurred()) SWIG_fail;
15583 }
15584 {
15585 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15586 }
15587 return resultobj;
15588 fail:
15589 return NULL;
15590 }
15591
15592
15593 static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15594 PyObject *resultobj;
15595 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15596 wxString *arg2 = 0 ;
15597 wxString *arg3 = 0 ;
15598 bool result;
15599 bool temp2 = False ;
15600 bool temp3 = False ;
15601 PyObject * obj0 = 0 ;
15602 PyObject * obj1 = 0 ;
15603 PyObject * obj2 = 0 ;
15604 char *kwnames[] = {
15605 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15606 };
15607
15608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15611 {
15612 arg2 = wxString_in_helper(obj1);
15613 if (arg2 == NULL) SWIG_fail;
15614 temp2 = True;
15615 }
15616 {
15617 arg3 = wxString_in_helper(obj2);
15618 if (arg3 == NULL) SWIG_fail;
15619 temp3 = True;
15620 }
15621 {
15622 PyThreadState* __tstate = wxPyBeginAllowThreads();
15623 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
15624
15625 wxPyEndAllowThreads(__tstate);
15626 if (PyErr_Occurred()) SWIG_fail;
15627 }
15628 {
15629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15630 }
15631 {
15632 if (temp2)
15633 delete arg2;
15634 }
15635 {
15636 if (temp3)
15637 delete arg3;
15638 }
15639 return resultobj;
15640 fail:
15641 {
15642 if (temp2)
15643 delete arg2;
15644 }
15645 {
15646 if (temp3)
15647 delete arg3;
15648 }
15649 return NULL;
15650 }
15651
15652
15653 static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15654 PyObject *resultobj;
15655 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15656 wxString *arg2 = 0 ;
15657 wxString *arg3 = 0 ;
15658 bool result;
15659 bool temp2 = False ;
15660 bool temp3 = False ;
15661 PyObject * obj0 = 0 ;
15662 PyObject * obj1 = 0 ;
15663 PyObject * obj2 = 0 ;
15664 char *kwnames[] = {
15665 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15666 };
15667
15668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
15669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15671 {
15672 arg2 = wxString_in_helper(obj1);
15673 if (arg2 == NULL) SWIG_fail;
15674 temp2 = True;
15675 }
15676 {
15677 arg3 = wxString_in_helper(obj2);
15678 if (arg3 == NULL) SWIG_fail;
15679 temp3 = True;
15680 }
15681 {
15682 PyThreadState* __tstate = wxPyBeginAllowThreads();
15683 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
15684
15685 wxPyEndAllowThreads(__tstate);
15686 if (PyErr_Occurred()) SWIG_fail;
15687 }
15688 {
15689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15690 }
15691 {
15692 if (temp2)
15693 delete arg2;
15694 }
15695 {
15696 if (temp3)
15697 delete arg3;
15698 }
15699 return resultobj;
15700 fail:
15701 {
15702 if (temp2)
15703 delete arg2;
15704 }
15705 {
15706 if (temp3)
15707 delete arg3;
15708 }
15709 return NULL;
15710 }
15711
15712
15713 static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15714 PyObject *resultobj;
15715 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15716 wxString *arg2 = 0 ;
15717 bool arg3 = (bool) True ;
15718 bool result;
15719 bool temp2 = False ;
15720 PyObject * obj0 = 0 ;
15721 PyObject * obj1 = 0 ;
15722 PyObject * obj2 = 0 ;
15723 char *kwnames[] = {
15724 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
15725 };
15726
15727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15730 {
15731 arg2 = wxString_in_helper(obj1);
15732 if (arg2 == NULL) SWIG_fail;
15733 temp2 = True;
15734 }
15735 if (obj2) {
15736 arg3 = (bool) SWIG_AsBool(obj2);
15737 if (PyErr_Occurred()) SWIG_fail;
15738 }
15739 {
15740 PyThreadState* __tstate = wxPyBeginAllowThreads();
15741 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
15742
15743 wxPyEndAllowThreads(__tstate);
15744 if (PyErr_Occurred()) SWIG_fail;
15745 }
15746 {
15747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15748 }
15749 {
15750 if (temp2)
15751 delete arg2;
15752 }
15753 return resultobj;
15754 fail:
15755 {
15756 if (temp2)
15757 delete arg2;
15758 }
15759 return NULL;
15760 }
15761
15762
15763 static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15764 PyObject *resultobj;
15765 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15766 wxString *arg2 = 0 ;
15767 bool result;
15768 bool temp2 = False ;
15769 PyObject * obj0 = 0 ;
15770 PyObject * obj1 = 0 ;
15771 char *kwnames[] = {
15772 (char *) "self",(char *) "key", NULL
15773 };
15774
15775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
15776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15778 {
15779 arg2 = wxString_in_helper(obj1);
15780 if (arg2 == NULL) SWIG_fail;
15781 temp2 = True;
15782 }
15783 {
15784 PyThreadState* __tstate = wxPyBeginAllowThreads();
15785 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
15786
15787 wxPyEndAllowThreads(__tstate);
15788 if (PyErr_Occurred()) SWIG_fail;
15789 }
15790 {
15791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15792 }
15793 {
15794 if (temp2)
15795 delete arg2;
15796 }
15797 return resultobj;
15798 fail:
15799 {
15800 if (temp2)
15801 delete arg2;
15802 }
15803 return NULL;
15804 }
15805
15806
15807 static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) {
15808 PyObject *resultobj;
15809 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15810 bool result;
15811 PyObject * obj0 = 0 ;
15812 char *kwnames[] = {
15813 (char *) "self", NULL
15814 };
15815
15816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
15817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15819 {
15820 PyThreadState* __tstate = wxPyBeginAllowThreads();
15821 result = (bool)(arg1)->DeleteAll();
15822
15823 wxPyEndAllowThreads(__tstate);
15824 if (PyErr_Occurred()) SWIG_fail;
15825 }
15826 {
15827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15828 }
15829 return resultobj;
15830 fail:
15831 return NULL;
15832 }
15833
15834
15835 static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15836 PyObject *resultobj;
15837 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15838 bool arg2 = (bool) True ;
15839 PyObject * obj0 = 0 ;
15840 PyObject * obj1 = 0 ;
15841 char *kwnames[] = {
15842 (char *) "self",(char *) "doIt", NULL
15843 };
15844
15845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
15846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15848 if (obj1) {
15849 arg2 = (bool) SWIG_AsBool(obj1);
15850 if (PyErr_Occurred()) SWIG_fail;
15851 }
15852 {
15853 PyThreadState* __tstate = wxPyBeginAllowThreads();
15854 (arg1)->SetExpandEnvVars(arg2);
15855
15856 wxPyEndAllowThreads(__tstate);
15857 if (PyErr_Occurred()) SWIG_fail;
15858 }
15859 Py_INCREF(Py_None); resultobj = Py_None;
15860 return resultobj;
15861 fail:
15862 return NULL;
15863 }
15864
15865
15866 static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15867 PyObject *resultobj;
15868 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15869 bool result;
15870 PyObject * obj0 = 0 ;
15871 char *kwnames[] = {
15872 (char *) "self", NULL
15873 };
15874
15875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
15876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15878 {
15879 PyThreadState* __tstate = wxPyBeginAllowThreads();
15880 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
15881
15882 wxPyEndAllowThreads(__tstate);
15883 if (PyErr_Occurred()) SWIG_fail;
15884 }
15885 {
15886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15887 }
15888 return resultobj;
15889 fail:
15890 return NULL;
15891 }
15892
15893
15894 static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
15895 PyObject *resultobj;
15896 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15897 bool arg2 = (bool) True ;
15898 PyObject * obj0 = 0 ;
15899 PyObject * obj1 = 0 ;
15900 char *kwnames[] = {
15901 (char *) "self",(char *) "doIt", NULL
15902 };
15903
15904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
15905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15907 if (obj1) {
15908 arg2 = (bool) SWIG_AsBool(obj1);
15909 if (PyErr_Occurred()) SWIG_fail;
15910 }
15911 {
15912 PyThreadState* __tstate = wxPyBeginAllowThreads();
15913 (arg1)->SetRecordDefaults(arg2);
15914
15915 wxPyEndAllowThreads(__tstate);
15916 if (PyErr_Occurred()) SWIG_fail;
15917 }
15918 Py_INCREF(Py_None); resultobj = Py_None;
15919 return resultobj;
15920 fail:
15921 return NULL;
15922 }
15923
15924
15925 static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
15926 PyObject *resultobj;
15927 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15928 bool result;
15929 PyObject * obj0 = 0 ;
15930 char *kwnames[] = {
15931 (char *) "self", NULL
15932 };
15933
15934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
15935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15937 {
15938 PyThreadState* __tstate = wxPyBeginAllowThreads();
15939 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
15940
15941 wxPyEndAllowThreads(__tstate);
15942 if (PyErr_Occurred()) SWIG_fail;
15943 }
15944 {
15945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15946 }
15947 return resultobj;
15948 fail:
15949 return NULL;
15950 }
15951
15952
15953 static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15954 PyObject *resultobj;
15955 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15956 wxString *arg2 = 0 ;
15957 wxString result;
15958 bool temp2 = False ;
15959 PyObject * obj0 = 0 ;
15960 PyObject * obj1 = 0 ;
15961 char *kwnames[] = {
15962 (char *) "self",(char *) "str", NULL
15963 };
15964
15965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
15966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15968 {
15969 arg2 = wxString_in_helper(obj1);
15970 if (arg2 == NULL) SWIG_fail;
15971 temp2 = True;
15972 }
15973 {
15974 PyThreadState* __tstate = wxPyBeginAllowThreads();
15975 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
15976
15977 wxPyEndAllowThreads(__tstate);
15978 if (PyErr_Occurred()) SWIG_fail;
15979 }
15980 {
15981 #if wxUSE_UNICODE
15982 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15983 #else
15984 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15985 #endif
15986 }
15987 {
15988 if (temp2)
15989 delete arg2;
15990 }
15991 return resultobj;
15992 fail:
15993 {
15994 if (temp2)
15995 delete arg2;
15996 }
15997 return NULL;
15998 }
15999
16000
16001 static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
16002 PyObject *resultobj;
16003 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16004 wxString result;
16005 PyObject * obj0 = 0 ;
16006 char *kwnames[] = {
16007 (char *) "self", NULL
16008 };
16009
16010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
16011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16013 {
16014 PyThreadState* __tstate = wxPyBeginAllowThreads();
16015 result = ((wxConfigBase const *)arg1)->GetAppName();
16016
16017 wxPyEndAllowThreads(__tstate);
16018 if (PyErr_Occurred()) SWIG_fail;
16019 }
16020 {
16021 #if wxUSE_UNICODE
16022 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16023 #else
16024 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16025 #endif
16026 }
16027 return resultobj;
16028 fail:
16029 return NULL;
16030 }
16031
16032
16033 static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
16034 PyObject *resultobj;
16035 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16036 wxString result;
16037 PyObject * obj0 = 0 ;
16038 char *kwnames[] = {
16039 (char *) "self", NULL
16040 };
16041
16042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
16043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16045 {
16046 PyThreadState* __tstate = wxPyBeginAllowThreads();
16047 result = ((wxConfigBase const *)arg1)->GetVendorName();
16048
16049 wxPyEndAllowThreads(__tstate);
16050 if (PyErr_Occurred()) SWIG_fail;
16051 }
16052 {
16053 #if wxUSE_UNICODE
16054 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16055 #else
16056 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16057 #endif
16058 }
16059 return resultobj;
16060 fail:
16061 return NULL;
16062 }
16063
16064
16065 static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
16066 PyObject *resultobj;
16067 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16068 wxString *arg2 = 0 ;
16069 bool temp2 = False ;
16070 PyObject * obj0 = 0 ;
16071 PyObject * obj1 = 0 ;
16072 char *kwnames[] = {
16073 (char *) "self",(char *) "appName", NULL
16074 };
16075
16076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
16077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16079 {
16080 arg2 = wxString_in_helper(obj1);
16081 if (arg2 == NULL) SWIG_fail;
16082 temp2 = True;
16083 }
16084 {
16085 PyThreadState* __tstate = wxPyBeginAllowThreads();
16086 (arg1)->SetAppName((wxString const &)*arg2);
16087
16088 wxPyEndAllowThreads(__tstate);
16089 if (PyErr_Occurred()) SWIG_fail;
16090 }
16091 Py_INCREF(Py_None); resultobj = Py_None;
16092 {
16093 if (temp2)
16094 delete arg2;
16095 }
16096 return resultobj;
16097 fail:
16098 {
16099 if (temp2)
16100 delete arg2;
16101 }
16102 return NULL;
16103 }
16104
16105
16106 static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
16107 PyObject *resultobj;
16108 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16109 wxString *arg2 = 0 ;
16110 bool temp2 = False ;
16111 PyObject * obj0 = 0 ;
16112 PyObject * obj1 = 0 ;
16113 char *kwnames[] = {
16114 (char *) "self",(char *) "vendorName", NULL
16115 };
16116
16117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
16118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16120 {
16121 arg2 = wxString_in_helper(obj1);
16122 if (arg2 == NULL) SWIG_fail;
16123 temp2 = True;
16124 }
16125 {
16126 PyThreadState* __tstate = wxPyBeginAllowThreads();
16127 (arg1)->SetVendorName((wxString const &)*arg2);
16128
16129 wxPyEndAllowThreads(__tstate);
16130 if (PyErr_Occurred()) SWIG_fail;
16131 }
16132 Py_INCREF(Py_None); resultobj = Py_None;
16133 {
16134 if (temp2)
16135 delete arg2;
16136 }
16137 return resultobj;
16138 fail:
16139 {
16140 if (temp2)
16141 delete arg2;
16142 }
16143 return NULL;
16144 }
16145
16146
16147 static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16148 PyObject *resultobj;
16149 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16150 long arg2 ;
16151 PyObject * obj0 = 0 ;
16152 PyObject * obj1 = 0 ;
16153 char *kwnames[] = {
16154 (char *) "self",(char *) "style", NULL
16155 };
16156
16157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
16158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16160 arg2 = (long) SWIG_AsLong(obj1);
16161 if (PyErr_Occurred()) SWIG_fail;
16162 {
16163 PyThreadState* __tstate = wxPyBeginAllowThreads();
16164 (arg1)->SetStyle(arg2);
16165
16166 wxPyEndAllowThreads(__tstate);
16167 if (PyErr_Occurred()) SWIG_fail;
16168 }
16169 Py_INCREF(Py_None); resultobj = Py_None;
16170 return resultobj;
16171 fail:
16172 return NULL;
16173 }
16174
16175
16176 static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16177 PyObject *resultobj;
16178 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16179 long result;
16180 PyObject * obj0 = 0 ;
16181 char *kwnames[] = {
16182 (char *) "self", NULL
16183 };
16184
16185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
16186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16188 {
16189 PyThreadState* __tstate = wxPyBeginAllowThreads();
16190 result = (long)((wxConfigBase const *)arg1)->GetStyle();
16191
16192 wxPyEndAllowThreads(__tstate);
16193 if (PyErr_Occurred()) SWIG_fail;
16194 }
16195 resultobj = SWIG_FromLong((long)result);
16196 return resultobj;
16197 fail:
16198 return NULL;
16199 }
16200
16201
16202 static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) {
16203 PyObject *obj;
16204 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16205 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
16206 Py_INCREF(obj);
16207 return Py_BuildValue((char *)"");
16208 }
16209 static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16210 PyObject *resultobj;
16211 wxString const &arg1_defvalue = wxPyEmptyString ;
16212 wxString *arg1 = (wxString *) &arg1_defvalue ;
16213 wxString const &arg2_defvalue = wxPyEmptyString ;
16214 wxString *arg2 = (wxString *) &arg2_defvalue ;
16215 wxString const &arg3_defvalue = wxPyEmptyString ;
16216 wxString *arg3 = (wxString *) &arg3_defvalue ;
16217 wxString const &arg4_defvalue = wxPyEmptyString ;
16218 wxString *arg4 = (wxString *) &arg4_defvalue ;
16219 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16220 wxConfig *result;
16221 bool temp1 = False ;
16222 bool temp2 = False ;
16223 bool temp3 = False ;
16224 bool temp4 = False ;
16225 PyObject * obj0 = 0 ;
16226 PyObject * obj1 = 0 ;
16227 PyObject * obj2 = 0 ;
16228 PyObject * obj3 = 0 ;
16229 PyObject * obj4 = 0 ;
16230 char *kwnames[] = {
16231 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16232 };
16233
16234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16235 if (obj0) {
16236 {
16237 arg1 = wxString_in_helper(obj0);
16238 if (arg1 == NULL) SWIG_fail;
16239 temp1 = True;
16240 }
16241 }
16242 if (obj1) {
16243 {
16244 arg2 = wxString_in_helper(obj1);
16245 if (arg2 == NULL) SWIG_fail;
16246 temp2 = True;
16247 }
16248 }
16249 if (obj2) {
16250 {
16251 arg3 = wxString_in_helper(obj2);
16252 if (arg3 == NULL) SWIG_fail;
16253 temp3 = True;
16254 }
16255 }
16256 if (obj3) {
16257 {
16258 arg4 = wxString_in_helper(obj3);
16259 if (arg4 == NULL) SWIG_fail;
16260 temp4 = True;
16261 }
16262 }
16263 if (obj4) {
16264 arg5 = (long) SWIG_AsLong(obj4);
16265 if (PyErr_Occurred()) SWIG_fail;
16266 }
16267 {
16268 PyThreadState* __tstate = wxPyBeginAllowThreads();
16269 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16270
16271 wxPyEndAllowThreads(__tstate);
16272 if (PyErr_Occurred()) SWIG_fail;
16273 }
16274 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
16275 {
16276 if (temp1)
16277 delete arg1;
16278 }
16279 {
16280 if (temp2)
16281 delete arg2;
16282 }
16283 {
16284 if (temp3)
16285 delete arg3;
16286 }
16287 {
16288 if (temp4)
16289 delete arg4;
16290 }
16291 return resultobj;
16292 fail:
16293 {
16294 if (temp1)
16295 delete arg1;
16296 }
16297 {
16298 if (temp2)
16299 delete arg2;
16300 }
16301 {
16302 if (temp3)
16303 delete arg3;
16304 }
16305 {
16306 if (temp4)
16307 delete arg4;
16308 }
16309 return NULL;
16310 }
16311
16312
16313 static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16314 PyObject *resultobj;
16315 wxConfig *arg1 = (wxConfig *) 0 ;
16316 PyObject * obj0 = 0 ;
16317 char *kwnames[] = {
16318 (char *) "self", NULL
16319 };
16320
16321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
16322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig,
16323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16324 {
16325 PyThreadState* __tstate = wxPyBeginAllowThreads();
16326 delete arg1;
16327
16328 wxPyEndAllowThreads(__tstate);
16329 if (PyErr_Occurred()) SWIG_fail;
16330 }
16331 Py_INCREF(Py_None); resultobj = Py_None;
16332 return resultobj;
16333 fail:
16334 return NULL;
16335 }
16336
16337
16338 static PyObject * Config_swigregister(PyObject *self, PyObject *args) {
16339 PyObject *obj;
16340 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16341 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
16342 Py_INCREF(obj);
16343 return Py_BuildValue((char *)"");
16344 }
16345 static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16346 PyObject *resultobj;
16347 wxString const &arg1_defvalue = wxPyEmptyString ;
16348 wxString *arg1 = (wxString *) &arg1_defvalue ;
16349 wxString const &arg2_defvalue = wxPyEmptyString ;
16350 wxString *arg2 = (wxString *) &arg2_defvalue ;
16351 wxString const &arg3_defvalue = wxPyEmptyString ;
16352 wxString *arg3 = (wxString *) &arg3_defvalue ;
16353 wxString const &arg4_defvalue = wxPyEmptyString ;
16354 wxString *arg4 = (wxString *) &arg4_defvalue ;
16355 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16356 wxFileConfig *result;
16357 bool temp1 = False ;
16358 bool temp2 = False ;
16359 bool temp3 = False ;
16360 bool temp4 = False ;
16361 PyObject * obj0 = 0 ;
16362 PyObject * obj1 = 0 ;
16363 PyObject * obj2 = 0 ;
16364 PyObject * obj3 = 0 ;
16365 PyObject * obj4 = 0 ;
16366 char *kwnames[] = {
16367 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16368 };
16369
16370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16371 if (obj0) {
16372 {
16373 arg1 = wxString_in_helper(obj0);
16374 if (arg1 == NULL) SWIG_fail;
16375 temp1 = True;
16376 }
16377 }
16378 if (obj1) {
16379 {
16380 arg2 = wxString_in_helper(obj1);
16381 if (arg2 == NULL) SWIG_fail;
16382 temp2 = True;
16383 }
16384 }
16385 if (obj2) {
16386 {
16387 arg3 = wxString_in_helper(obj2);
16388 if (arg3 == NULL) SWIG_fail;
16389 temp3 = True;
16390 }
16391 }
16392 if (obj3) {
16393 {
16394 arg4 = wxString_in_helper(obj3);
16395 if (arg4 == NULL) SWIG_fail;
16396 temp4 = True;
16397 }
16398 }
16399 if (obj4) {
16400 arg5 = (long) SWIG_AsLong(obj4);
16401 if (PyErr_Occurred()) SWIG_fail;
16402 }
16403 {
16404 PyThreadState* __tstate = wxPyBeginAllowThreads();
16405 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16406
16407 wxPyEndAllowThreads(__tstate);
16408 if (PyErr_Occurred()) SWIG_fail;
16409 }
16410 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
16411 {
16412 if (temp1)
16413 delete arg1;
16414 }
16415 {
16416 if (temp2)
16417 delete arg2;
16418 }
16419 {
16420 if (temp3)
16421 delete arg3;
16422 }
16423 {
16424 if (temp4)
16425 delete arg4;
16426 }
16427 return resultobj;
16428 fail:
16429 {
16430 if (temp1)
16431 delete arg1;
16432 }
16433 {
16434 if (temp2)
16435 delete arg2;
16436 }
16437 {
16438 if (temp3)
16439 delete arg3;
16440 }
16441 {
16442 if (temp4)
16443 delete arg4;
16444 }
16445 return NULL;
16446 }
16447
16448
16449 static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16450 PyObject *resultobj;
16451 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
16452 PyObject * obj0 = 0 ;
16453 char *kwnames[] = {
16454 (char *) "self", NULL
16455 };
16456
16457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
16458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig,
16459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16460 {
16461 PyThreadState* __tstate = wxPyBeginAllowThreads();
16462 delete arg1;
16463
16464 wxPyEndAllowThreads(__tstate);
16465 if (PyErr_Occurred()) SWIG_fail;
16466 }
16467 Py_INCREF(Py_None); resultobj = Py_None;
16468 return resultobj;
16469 fail:
16470 return NULL;
16471 }
16472
16473
16474 static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) {
16475 PyObject *obj;
16476 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16477 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
16478 Py_INCREF(obj);
16479 return Py_BuildValue((char *)"");
16480 }
16481 static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16482 PyObject *resultobj;
16483 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16484 wxString *arg2 = 0 ;
16485 wxConfigPathChanger *result;
16486 bool temp2 = False ;
16487 PyObject * obj0 = 0 ;
16488 PyObject * obj1 = 0 ;
16489 char *kwnames[] = {
16490 (char *) "config",(char *) "entry", NULL
16491 };
16492
16493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
16494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16496 {
16497 arg2 = wxString_in_helper(obj1);
16498 if (arg2 == NULL) SWIG_fail;
16499 temp2 = True;
16500 }
16501 {
16502 PyThreadState* __tstate = wxPyBeginAllowThreads();
16503 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
16504
16505 wxPyEndAllowThreads(__tstate);
16506 if (PyErr_Occurred()) SWIG_fail;
16507 }
16508 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
16509 {
16510 if (temp2)
16511 delete arg2;
16512 }
16513 return resultobj;
16514 fail:
16515 {
16516 if (temp2)
16517 delete arg2;
16518 }
16519 return NULL;
16520 }
16521
16522
16523 static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16524 PyObject *resultobj;
16525 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16526 PyObject * obj0 = 0 ;
16527 char *kwnames[] = {
16528 (char *) "self", NULL
16529 };
16530
16531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
16532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16534 {
16535 PyThreadState* __tstate = wxPyBeginAllowThreads();
16536 delete arg1;
16537
16538 wxPyEndAllowThreads(__tstate);
16539 if (PyErr_Occurred()) SWIG_fail;
16540 }
16541 Py_INCREF(Py_None); resultobj = Py_None;
16542 return resultobj;
16543 fail:
16544 return NULL;
16545 }
16546
16547
16548 static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) {
16549 PyObject *resultobj;
16550 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16551 wxString *result;
16552 PyObject * obj0 = 0 ;
16553 char *kwnames[] = {
16554 (char *) "self", NULL
16555 };
16556
16557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
16558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16560 {
16561 PyThreadState* __tstate = wxPyBeginAllowThreads();
16562 {
16563 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
16564 result = (wxString *) &_result_ref;
16565 }
16566
16567 wxPyEndAllowThreads(__tstate);
16568 if (PyErr_Occurred()) SWIG_fail;
16569 }
16570 {
16571 #if wxUSE_UNICODE
16572 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16573 #else
16574 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16575 #endif
16576 }
16577 return resultobj;
16578 fail:
16579 return NULL;
16580 }
16581
16582
16583 static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) {
16584 PyObject *obj;
16585 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16586 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
16587 Py_INCREF(obj);
16588 return Py_BuildValue((char *)"");
16589 }
16590 static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16591 PyObject *resultobj;
16592 wxString *arg1 = 0 ;
16593 wxString result;
16594 bool temp1 = False ;
16595 PyObject * obj0 = 0 ;
16596 char *kwnames[] = {
16597 (char *) "sz", NULL
16598 };
16599
16600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
16601 {
16602 arg1 = wxString_in_helper(obj0);
16603 if (arg1 == NULL) SWIG_fail;
16604 temp1 = True;
16605 }
16606 {
16607 PyThreadState* __tstate = wxPyBeginAllowThreads();
16608 result = wxExpandEnvVars((wxString const &)*arg1);
16609
16610 wxPyEndAllowThreads(__tstate);
16611 if (PyErr_Occurred()) SWIG_fail;
16612 }
16613 {
16614 #if wxUSE_UNICODE
16615 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16616 #else
16617 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16618 #endif
16619 }
16620 {
16621 if (temp1)
16622 delete arg1;
16623 }
16624 return resultobj;
16625 fail:
16626 {
16627 if (temp1)
16628 delete arg1;
16629 }
16630 return NULL;
16631 }
16632
16633
16634 static int _wrap_DateFormatStr_set(PyObject *_val) {
16635 PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only.");
16636 return 1;
16637 }
16638
16639
16640 static PyObject *_wrap_DateFormatStr_get() {
16641 PyObject *pyobj;
16642
16643 {
16644 #if wxUSE_UNICODE
16645 pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16646 #else
16647 pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16648 #endif
16649 }
16650 return pyobj;
16651 }
16652
16653
16654 static int _wrap_TimeSpanFormatStr_set(PyObject *_val) {
16655 PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only.");
16656 return 1;
16657 }
16658
16659
16660 static PyObject *_wrap_TimeSpanFormatStr_get() {
16661 PyObject *pyobj;
16662
16663 {
16664 #if wxUSE_UNICODE
16665 pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16666 #else
16667 pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16668 #endif
16669 }
16670 return pyobj;
16671 }
16672
16673
16674 static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16675 PyObject *resultobj;
16676 int arg1 ;
16677 PyObject * obj0 = 0 ;
16678 char *kwnames[] = {
16679 (char *) "country", NULL
16680 };
16681
16682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
16683 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16684 if (PyErr_Occurred()) SWIG_fail;
16685 {
16686 PyThreadState* __tstate = wxPyBeginAllowThreads();
16687 wxDateTime::SetCountry((wxDateTime::Country )arg1);
16688
16689 wxPyEndAllowThreads(__tstate);
16690 if (PyErr_Occurred()) SWIG_fail;
16691 }
16692 Py_INCREF(Py_None); resultobj = Py_None;
16693 return resultobj;
16694 fail:
16695 return NULL;
16696 }
16697
16698
16699 static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16700 PyObject *resultobj;
16701 int result;
16702 char *kwnames[] = {
16703 NULL
16704 };
16705
16706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
16707 {
16708 PyThreadState* __tstate = wxPyBeginAllowThreads();
16709 result = (int)wxDateTime::GetCountry();
16710
16711 wxPyEndAllowThreads(__tstate);
16712 if (PyErr_Occurred()) SWIG_fail;
16713 }
16714 resultobj = SWIG_FromInt((int)result);
16715 return resultobj;
16716 fail:
16717 return NULL;
16718 }
16719
16720
16721 static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16722 PyObject *resultobj;
16723 int arg1 = (int) wxDateTime::Country_Default ;
16724 bool result;
16725 PyObject * obj0 = 0 ;
16726 char *kwnames[] = {
16727 (char *) "country", NULL
16728 };
16729
16730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
16731 if (obj0) {
16732 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16733 if (PyErr_Occurred()) SWIG_fail;
16734 }
16735 {
16736 PyThreadState* __tstate = wxPyBeginAllowThreads();
16737 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
16738
16739 wxPyEndAllowThreads(__tstate);
16740 if (PyErr_Occurred()) SWIG_fail;
16741 }
16742 {
16743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16744 }
16745 return resultobj;
16746 fail:
16747 return NULL;
16748 }
16749
16750
16751 static PyObject *_wrap_DateTime_GetCurrentYear(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_GetCurrentYear",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::GetCurrentYear((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_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) {
16780 PyObject *resultobj;
16781 int arg1 ;
16782 int result;
16783 PyObject * obj0 = 0 ;
16784 char *kwnames[] = {
16785 (char *) "year", NULL
16786 };
16787
16788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
16789 arg1 = (int) SWIG_AsInt(obj0);
16790 if (PyErr_Occurred()) SWIG_fail;
16791 {
16792 PyThreadState* __tstate = wxPyBeginAllowThreads();
16793 result = (int)wxDateTime::ConvertYearToBC(arg1);
16794
16795 wxPyEndAllowThreads(__tstate);
16796 if (PyErr_Occurred()) SWIG_fail;
16797 }
16798 resultobj = SWIG_FromInt((int)result);
16799 return resultobj;
16800 fail:
16801 return NULL;
16802 }
16803
16804
16805 static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16806 PyObject *resultobj;
16807 int arg1 = (int) wxDateTime::Gregorian ;
16808 int result;
16809 PyObject * obj0 = 0 ;
16810 char *kwnames[] = {
16811 (char *) "cal", NULL
16812 };
16813
16814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
16815 if (obj0) {
16816 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16817 if (PyErr_Occurred()) SWIG_fail;
16818 }
16819 {
16820 PyThreadState* __tstate = wxPyBeginAllowThreads();
16821 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
16822
16823 wxPyEndAllowThreads(__tstate);
16824 if (PyErr_Occurred()) SWIG_fail;
16825 }
16826 resultobj = SWIG_FromInt((int)result);
16827 return resultobj;
16828 fail:
16829 return NULL;
16830 }
16831
16832
16833 static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16834 PyObject *resultobj;
16835 int arg1 = (int) wxDateTime::Inv_Year ;
16836 int arg2 = (int) wxDateTime::Gregorian ;
16837 bool result;
16838 PyObject * obj0 = 0 ;
16839 PyObject * obj1 = 0 ;
16840 char *kwnames[] = {
16841 (char *) "year",(char *) "cal", NULL
16842 };
16843
16844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
16845 if (obj0) {
16846 arg1 = (int) SWIG_AsInt(obj0);
16847 if (PyErr_Occurred()) SWIG_fail;
16848 }
16849 if (obj1) {
16850 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
16851 if (PyErr_Occurred()) SWIG_fail;
16852 }
16853 {
16854 PyThreadState* __tstate = wxPyBeginAllowThreads();
16855 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
16856
16857 wxPyEndAllowThreads(__tstate);
16858 if (PyErr_Occurred()) SWIG_fail;
16859 }
16860 {
16861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16862 }
16863 return resultobj;
16864 fail:
16865 return NULL;
16866 }
16867
16868
16869 static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) {
16870 PyObject *resultobj;
16871 int arg1 = (int) wxDateTime::Inv_Year ;
16872 int result;
16873 PyObject * obj0 = 0 ;
16874 char *kwnames[] = {
16875 (char *) "year", NULL
16876 };
16877
16878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
16879 if (obj0) {
16880 arg1 = (int) SWIG_AsInt(obj0);
16881 if (PyErr_Occurred()) SWIG_fail;
16882 }
16883 {
16884 PyThreadState* __tstate = wxPyBeginAllowThreads();
16885 result = (int)wxDateTime::GetCentury(arg1);
16886
16887 wxPyEndAllowThreads(__tstate);
16888 if (PyErr_Occurred()) SWIG_fail;
16889 }
16890 resultobj = SWIG_FromInt((int)result);
16891 return resultobj;
16892 fail:
16893 return NULL;
16894 }
16895
16896
16897 static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16898 PyObject *resultobj;
16899 int arg1 ;
16900 int arg2 = (int) wxDateTime::Gregorian ;
16901 int result;
16902 PyObject * obj0 = 0 ;
16903 PyObject * obj1 = 0 ;
16904 char *kwnames[] = {
16905 (char *) "year",(char *) "cal", NULL
16906 };
16907
16908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
16909 arg1 = (int) SWIG_AsInt(obj0);
16910 if (PyErr_Occurred()) SWIG_fail;
16911 if (obj1) {
16912 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
16913 if (PyErr_Occurred()) SWIG_fail;
16914 }
16915 {
16916 PyThreadState* __tstate = wxPyBeginAllowThreads();
16917 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
16918
16919 wxPyEndAllowThreads(__tstate);
16920 if (PyErr_Occurred()) SWIG_fail;
16921 }
16922 resultobj = SWIG_FromInt((int)result);
16923 return resultobj;
16924 fail:
16925 return NULL;
16926 }
16927
16928
16929 static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16930 PyObject *resultobj;
16931 int arg1 ;
16932 int arg2 = (int) wxDateTime::Inv_Year ;
16933 int arg3 = (int) wxDateTime::Gregorian ;
16934 int result;
16935 PyObject * obj0 = 0 ;
16936 PyObject * obj1 = 0 ;
16937 PyObject * obj2 = 0 ;
16938 char *kwnames[] = {
16939 (char *) "month",(char *) "year",(char *) "cal", NULL
16940 };
16941
16942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
16943 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
16944 if (PyErr_Occurred()) SWIG_fail;
16945 if (obj1) {
16946 arg2 = (int) SWIG_AsInt(obj1);
16947 if (PyErr_Occurred()) SWIG_fail;
16948 }
16949 if (obj2) {
16950 arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2);
16951 if (PyErr_Occurred()) SWIG_fail;
16952 }
16953 {
16954 PyThreadState* __tstate = wxPyBeginAllowThreads();
16955 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
16956
16957 wxPyEndAllowThreads(__tstate);
16958 if (PyErr_Occurred()) SWIG_fail;
16959 }
16960 resultobj = SWIG_FromInt((int)result);
16961 return resultobj;
16962 fail:
16963 return NULL;
16964 }
16965
16966
16967 static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) {
16968 PyObject *resultobj;
16969 int arg1 ;
16970 int arg2 = (int) wxDateTime::Name_Full ;
16971 wxString result;
16972 PyObject * obj0 = 0 ;
16973 PyObject * obj1 = 0 ;
16974 char *kwnames[] = {
16975 (char *) "month",(char *) "flags", NULL
16976 };
16977
16978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
16979 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
16980 if (PyErr_Occurred()) SWIG_fail;
16981 if (obj1) {
16982 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
16983 if (PyErr_Occurred()) SWIG_fail;
16984 }
16985 {
16986 PyThreadState* __tstate = wxPyBeginAllowThreads();
16987 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
16988
16989 wxPyEndAllowThreads(__tstate);
16990 if (PyErr_Occurred()) SWIG_fail;
16991 }
16992 {
16993 #if wxUSE_UNICODE
16994 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16995 #else
16996 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16997 #endif
16998 }
16999 return resultobj;
17000 fail:
17001 return NULL;
17002 }
17003
17004
17005 static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) {
17006 PyObject *resultobj;
17007 int arg1 ;
17008 int arg2 = (int) wxDateTime::Name_Full ;
17009 wxString result;
17010 PyObject * obj0 = 0 ;
17011 PyObject * obj1 = 0 ;
17012 char *kwnames[] = {
17013 (char *) "weekday",(char *) "flags", NULL
17014 };
17015
17016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
17017 arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0);
17018 if (PyErr_Occurred()) SWIG_fail;
17019 if (obj1) {
17020 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
17021 if (PyErr_Occurred()) SWIG_fail;
17022 }
17023 {
17024 PyThreadState* __tstate = wxPyBeginAllowThreads();
17025 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
17026
17027 wxPyEndAllowThreads(__tstate);
17028 if (PyErr_Occurred()) SWIG_fail;
17029 }
17030 {
17031 #if wxUSE_UNICODE
17032 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17033 #else
17034 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17035 #endif
17036 }
17037 return resultobj;
17038 fail:
17039 return NULL;
17040 }
17041
17042
17043 static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
17044 PyObject *resultobj;
17045 wxString *arg1 = (wxString *) 0 ;
17046 wxString *arg2 = (wxString *) 0 ;
17047 bool temp1 = False ;
17048 bool temp2 = False ;
17049 PyObject * obj0 = 0 ;
17050 PyObject * obj1 = 0 ;
17051 char *kwnames[] = {
17052 (char *) "OUTPUT",(char *) "OUTPUT", NULL
17053 };
17054
17055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
17056 {
17057 arg1 = wxString_in_helper(obj0);
17058 if (arg1 == NULL) SWIG_fail;
17059 temp1 = True;
17060 }
17061 {
17062 arg2 = wxString_in_helper(obj1);
17063 if (arg2 == NULL) SWIG_fail;
17064 temp2 = True;
17065 }
17066 {
17067 PyThreadState* __tstate = wxPyBeginAllowThreads();
17068 wxDateTime::GetAmPmStrings(arg1,arg2);
17069
17070 wxPyEndAllowThreads(__tstate);
17071 if (PyErr_Occurred()) SWIG_fail;
17072 }
17073 Py_INCREF(Py_None); resultobj = Py_None;
17074 {
17075 if (temp1)
17076 delete arg1;
17077 }
17078 {
17079 if (temp2)
17080 delete arg2;
17081 }
17082 return resultobj;
17083 fail:
17084 {
17085 if (temp1)
17086 delete arg1;
17087 }
17088 {
17089 if (temp2)
17090 delete arg2;
17091 }
17092 return NULL;
17093 }
17094
17095
17096 static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) {
17097 PyObject *resultobj;
17098 int arg1 = (int) wxDateTime::Inv_Year ;
17099 int arg2 = (int) wxDateTime::Country_Default ;
17100 bool result;
17101 PyObject * obj0 = 0 ;
17102 PyObject * obj1 = 0 ;
17103 char *kwnames[] = {
17104 (char *) "year",(char *) "country", NULL
17105 };
17106
17107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
17108 if (obj0) {
17109 arg1 = (int) SWIG_AsInt(obj0);
17110 if (PyErr_Occurred()) SWIG_fail;
17111 }
17112 if (obj1) {
17113 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17114 if (PyErr_Occurred()) SWIG_fail;
17115 }
17116 {
17117 PyThreadState* __tstate = wxPyBeginAllowThreads();
17118 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
17119
17120 wxPyEndAllowThreads(__tstate);
17121 if (PyErr_Occurred()) SWIG_fail;
17122 }
17123 {
17124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17125 }
17126 return resultobj;
17127 fail:
17128 return NULL;
17129 }
17130
17131
17132 static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17133 PyObject *resultobj;
17134 int arg1 = (int) wxDateTime::Inv_Year ;
17135 int arg2 = (int) wxDateTime::Country_Default ;
17136 wxDateTime result;
17137 PyObject * obj0 = 0 ;
17138 PyObject * obj1 = 0 ;
17139 char *kwnames[] = {
17140 (char *) "year",(char *) "country", NULL
17141 };
17142
17143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
17144 if (obj0) {
17145 arg1 = (int) SWIG_AsInt(obj0);
17146 if (PyErr_Occurred()) SWIG_fail;
17147 }
17148 if (obj1) {
17149 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17150 if (PyErr_Occurred()) SWIG_fail;
17151 }
17152 {
17153 PyThreadState* __tstate = wxPyBeginAllowThreads();
17154 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
17155
17156 wxPyEndAllowThreads(__tstate);
17157 if (PyErr_Occurred()) SWIG_fail;
17158 }
17159 {
17160 wxDateTime * resultptr;
17161 resultptr = new wxDateTime((wxDateTime &) result);
17162 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17163 }
17164 return resultobj;
17165 fail:
17166 return NULL;
17167 }
17168
17169
17170 static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17171 PyObject *resultobj;
17172 int arg1 = (int) wxDateTime::Inv_Year ;
17173 int arg2 = (int) wxDateTime::Country_Default ;
17174 wxDateTime result;
17175 PyObject * obj0 = 0 ;
17176 PyObject * obj1 = 0 ;
17177 char *kwnames[] = {
17178 (char *) "year",(char *) "country", NULL
17179 };
17180
17181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
17182 if (obj0) {
17183 arg1 = (int) SWIG_AsInt(obj0);
17184 if (PyErr_Occurred()) SWIG_fail;
17185 }
17186 if (obj1) {
17187 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17188 if (PyErr_Occurred()) SWIG_fail;
17189 }
17190 {
17191 PyThreadState* __tstate = wxPyBeginAllowThreads();
17192 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
17193
17194 wxPyEndAllowThreads(__tstate);
17195 if (PyErr_Occurred()) SWIG_fail;
17196 }
17197 {
17198 wxDateTime * resultptr;
17199 resultptr = new wxDateTime((wxDateTime &) result);
17200 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17201 }
17202 return resultobj;
17203 fail:
17204 return NULL;
17205 }
17206
17207
17208 static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
17209 PyObject *resultobj;
17210 wxDateTime result;
17211 char *kwnames[] = {
17212 NULL
17213 };
17214
17215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
17216 {
17217 PyThreadState* __tstate = wxPyBeginAllowThreads();
17218 result = wxDateTime::Now();
17219
17220 wxPyEndAllowThreads(__tstate);
17221 if (PyErr_Occurred()) SWIG_fail;
17222 }
17223 {
17224 wxDateTime * resultptr;
17225 resultptr = new wxDateTime((wxDateTime &) result);
17226 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17227 }
17228 return resultobj;
17229 fail:
17230 return NULL;
17231 }
17232
17233
17234 static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) {
17235 PyObject *resultobj;
17236 wxDateTime result;
17237 char *kwnames[] = {
17238 NULL
17239 };
17240
17241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
17242 {
17243 PyThreadState* __tstate = wxPyBeginAllowThreads();
17244 result = wxDateTime::UNow();
17245
17246 wxPyEndAllowThreads(__tstate);
17247 if (PyErr_Occurred()) SWIG_fail;
17248 }
17249 {
17250 wxDateTime * resultptr;
17251 resultptr = new wxDateTime((wxDateTime &) result);
17252 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17253 }
17254 return resultobj;
17255 fail:
17256 return NULL;
17257 }
17258
17259
17260 static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) {
17261 PyObject *resultobj;
17262 wxDateTime result;
17263 char *kwnames[] = {
17264 NULL
17265 };
17266
17267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
17268 {
17269 PyThreadState* __tstate = wxPyBeginAllowThreads();
17270 result = wxDateTime::Today();
17271
17272 wxPyEndAllowThreads(__tstate);
17273 if (PyErr_Occurred()) SWIG_fail;
17274 }
17275 {
17276 wxDateTime * resultptr;
17277 resultptr = new wxDateTime((wxDateTime &) result);
17278 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17279 }
17280 return resultobj;
17281 fail:
17282 return NULL;
17283 }
17284
17285
17286 static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17287 PyObject *resultobj;
17288 wxDateTime *result;
17289 char *kwnames[] = {
17290 NULL
17291 };
17292
17293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
17294 {
17295 PyThreadState* __tstate = wxPyBeginAllowThreads();
17296 result = (wxDateTime *)new wxDateTime();
17297
17298 wxPyEndAllowThreads(__tstate);
17299 if (PyErr_Occurred()) SWIG_fail;
17300 }
17301 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17302 return resultobj;
17303 fail:
17304 return NULL;
17305 }
17306
17307
17308 static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17309 PyObject *resultobj;
17310 time_t arg1 ;
17311 wxDateTime *result;
17312 PyObject * obj0 = 0 ;
17313 char *kwnames[] = {
17314 (char *) "timet", NULL
17315 };
17316
17317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
17318 arg1 = (time_t) SWIG_AsUnsignedInt(obj0);
17319 if (PyErr_Occurred()) SWIG_fail;
17320 {
17321 PyThreadState* __tstate = wxPyBeginAllowThreads();
17322 result = (wxDateTime *)new wxDateTime(arg1);
17323
17324 wxPyEndAllowThreads(__tstate);
17325 if (PyErr_Occurred()) SWIG_fail;
17326 }
17327 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17328 return resultobj;
17329 fail:
17330 return NULL;
17331 }
17332
17333
17334 static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17335 PyObject *resultobj;
17336 double arg1 ;
17337 wxDateTime *result;
17338 PyObject * obj0 = 0 ;
17339 char *kwnames[] = {
17340 (char *) "jdn", NULL
17341 };
17342
17343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
17344 arg1 = (double) SWIG_AsDouble(obj0);
17345 if (PyErr_Occurred()) SWIG_fail;
17346 {
17347 PyThreadState* __tstate = wxPyBeginAllowThreads();
17348 result = (wxDateTime *)new wxDateTime(arg1);
17349
17350 wxPyEndAllowThreads(__tstate);
17351 if (PyErr_Occurred()) SWIG_fail;
17352 }
17353 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17354 return resultobj;
17355 fail:
17356 return NULL;
17357 }
17358
17359
17360 static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17361 PyObject *resultobj;
17362 int arg1 ;
17363 int arg2 = (int) 0 ;
17364 int arg3 = (int) 0 ;
17365 int arg4 = (int) 0 ;
17366 wxDateTime *result;
17367 PyObject * obj0 = 0 ;
17368 PyObject * obj1 = 0 ;
17369 PyObject * obj2 = 0 ;
17370 PyObject * obj3 = 0 ;
17371 char *kwnames[] = {
17372 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17373 };
17374
17375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17376 arg1 = (int) SWIG_AsInt(obj0);
17377 if (PyErr_Occurred()) SWIG_fail;
17378 if (obj1) {
17379 arg2 = (int) SWIG_AsInt(obj1);
17380 if (PyErr_Occurred()) SWIG_fail;
17381 }
17382 if (obj2) {
17383 arg3 = (int) SWIG_AsInt(obj2);
17384 if (PyErr_Occurred()) SWIG_fail;
17385 }
17386 if (obj3) {
17387 arg4 = (int) SWIG_AsInt(obj3);
17388 if (PyErr_Occurred()) SWIG_fail;
17389 }
17390 {
17391 PyThreadState* __tstate = wxPyBeginAllowThreads();
17392 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
17393
17394 wxPyEndAllowThreads(__tstate);
17395 if (PyErr_Occurred()) SWIG_fail;
17396 }
17397 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17398 return resultobj;
17399 fail:
17400 return NULL;
17401 }
17402
17403
17404 static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) {
17405 PyObject *resultobj;
17406 int arg1 ;
17407 int arg2 = (int) wxDateTime::Inv_Month ;
17408 int arg3 = (int) wxDateTime::Inv_Year ;
17409 int arg4 = (int) 0 ;
17410 int arg5 = (int) 0 ;
17411 int arg6 = (int) 0 ;
17412 int arg7 = (int) 0 ;
17413 wxDateTime *result;
17414 PyObject * obj0 = 0 ;
17415 PyObject * obj1 = 0 ;
17416 PyObject * obj2 = 0 ;
17417 PyObject * obj3 = 0 ;
17418 PyObject * obj4 = 0 ;
17419 PyObject * obj5 = 0 ;
17420 PyObject * obj6 = 0 ;
17421 char *kwnames[] = {
17422 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17423 };
17424
17425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17426 arg1 = (int) SWIG_AsInt(obj0);
17427 if (PyErr_Occurred()) SWIG_fail;
17428 if (obj1) {
17429 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17430 if (PyErr_Occurred()) SWIG_fail;
17431 }
17432 if (obj2) {
17433 arg3 = (int) SWIG_AsInt(obj2);
17434 if (PyErr_Occurred()) SWIG_fail;
17435 }
17436 if (obj3) {
17437 arg4 = (int) SWIG_AsInt(obj3);
17438 if (PyErr_Occurred()) SWIG_fail;
17439 }
17440 if (obj4) {
17441 arg5 = (int) SWIG_AsInt(obj4);
17442 if (PyErr_Occurred()) SWIG_fail;
17443 }
17444 if (obj5) {
17445 arg6 = (int) SWIG_AsInt(obj5);
17446 if (PyErr_Occurred()) SWIG_fail;
17447 }
17448 if (obj6) {
17449 arg7 = (int) SWIG_AsInt(obj6);
17450 if (PyErr_Occurred()) SWIG_fail;
17451 }
17452 {
17453 PyThreadState* __tstate = wxPyBeginAllowThreads();
17454 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
17455
17456 wxPyEndAllowThreads(__tstate);
17457 if (PyErr_Occurred()) SWIG_fail;
17458 }
17459 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17460 return resultobj;
17461 fail:
17462 return NULL;
17463 }
17464
17465
17466 static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17467 PyObject *resultobj;
17468 wxDateTime *arg1 = (wxDateTime *) 0 ;
17469 PyObject * obj0 = 0 ;
17470 char *kwnames[] = {
17471 (char *) "self", NULL
17472 };
17473
17474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
17475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17477 {
17478 PyThreadState* __tstate = wxPyBeginAllowThreads();
17479 delete arg1;
17480
17481 wxPyEndAllowThreads(__tstate);
17482 if (PyErr_Occurred()) SWIG_fail;
17483 }
17484 Py_INCREF(Py_None); resultobj = Py_None;
17485 return resultobj;
17486 fail:
17487 return NULL;
17488 }
17489
17490
17491 static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
17492 PyObject *resultobj;
17493 wxDateTime *arg1 = (wxDateTime *) 0 ;
17494 wxDateTime *result;
17495 PyObject * obj0 = 0 ;
17496 char *kwnames[] = {
17497 (char *) "self", NULL
17498 };
17499
17500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
17501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17503 {
17504 PyThreadState* __tstate = wxPyBeginAllowThreads();
17505 {
17506 wxDateTime &_result_ref = (arg1)->SetToCurrent();
17507 result = (wxDateTime *) &_result_ref;
17508 }
17509
17510 wxPyEndAllowThreads(__tstate);
17511 if (PyErr_Occurred()) SWIG_fail;
17512 }
17513 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17514 return resultobj;
17515 fail:
17516 return NULL;
17517 }
17518
17519
17520 static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17521 PyObject *resultobj;
17522 wxDateTime *arg1 = (wxDateTime *) 0 ;
17523 time_t arg2 ;
17524 wxDateTime *result;
17525 PyObject * obj0 = 0 ;
17526 PyObject * obj1 = 0 ;
17527 char *kwnames[] = {
17528 (char *) "self",(char *) "timet", NULL
17529 };
17530
17531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
17532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17534 arg2 = (time_t) SWIG_AsUnsignedInt(obj1);
17535 if (PyErr_Occurred()) SWIG_fail;
17536 {
17537 PyThreadState* __tstate = wxPyBeginAllowThreads();
17538 {
17539 wxDateTime &_result_ref = (arg1)->Set(arg2);
17540 result = (wxDateTime *) &_result_ref;
17541 }
17542
17543 wxPyEndAllowThreads(__tstate);
17544 if (PyErr_Occurred()) SWIG_fail;
17545 }
17546 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17547 return resultobj;
17548 fail:
17549 return NULL;
17550 }
17551
17552
17553 static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17554 PyObject *resultobj;
17555 wxDateTime *arg1 = (wxDateTime *) 0 ;
17556 double arg2 ;
17557 wxDateTime *result;
17558 PyObject * obj0 = 0 ;
17559 PyObject * obj1 = 0 ;
17560 char *kwnames[] = {
17561 (char *) "self",(char *) "jdn", NULL
17562 };
17563
17564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
17565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17567 arg2 = (double) SWIG_AsDouble(obj1);
17568 if (PyErr_Occurred()) SWIG_fail;
17569 {
17570 PyThreadState* __tstate = wxPyBeginAllowThreads();
17571 {
17572 wxDateTime &_result_ref = (arg1)->Set(arg2);
17573 result = (wxDateTime *) &_result_ref;
17574 }
17575
17576 wxPyEndAllowThreads(__tstate);
17577 if (PyErr_Occurred()) SWIG_fail;
17578 }
17579 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17580 return resultobj;
17581 fail:
17582 return NULL;
17583 }
17584
17585
17586 static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17587 PyObject *resultobj;
17588 wxDateTime *arg1 = (wxDateTime *) 0 ;
17589 int arg2 ;
17590 int arg3 = (int) 0 ;
17591 int arg4 = (int) 0 ;
17592 int arg5 = (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 char *kwnames[] = {
17600 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17601 };
17602
17603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17606 arg2 = (int) SWIG_AsInt(obj1);
17607 if (PyErr_Occurred()) SWIG_fail;
17608 if (obj2) {
17609 arg3 = (int) SWIG_AsInt(obj2);
17610 if (PyErr_Occurred()) SWIG_fail;
17611 }
17612 if (obj3) {
17613 arg4 = (int) SWIG_AsInt(obj3);
17614 if (PyErr_Occurred()) SWIG_fail;
17615 }
17616 if (obj4) {
17617 arg5 = (int) SWIG_AsInt(obj4);
17618 if (PyErr_Occurred()) SWIG_fail;
17619 }
17620 {
17621 PyThreadState* __tstate = wxPyBeginAllowThreads();
17622 {
17623 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
17624 result = (wxDateTime *) &_result_ref;
17625 }
17626
17627 wxPyEndAllowThreads(__tstate);
17628 if (PyErr_Occurred()) SWIG_fail;
17629 }
17630 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17631 return resultobj;
17632 fail:
17633 return NULL;
17634 }
17635
17636
17637 static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17638 PyObject *resultobj;
17639 wxDateTime *arg1 = (wxDateTime *) 0 ;
17640 int arg2 ;
17641 int arg3 = (int) wxDateTime::Inv_Month ;
17642 int arg4 = (int) wxDateTime::Inv_Year ;
17643 int arg5 = (int) 0 ;
17644 int arg6 = (int) 0 ;
17645 int arg7 = (int) 0 ;
17646 int arg8 = (int) 0 ;
17647 wxDateTime *result;
17648 PyObject * obj0 = 0 ;
17649 PyObject * obj1 = 0 ;
17650 PyObject * obj2 = 0 ;
17651 PyObject * obj3 = 0 ;
17652 PyObject * obj4 = 0 ;
17653 PyObject * obj5 = 0 ;
17654 PyObject * obj6 = 0 ;
17655 PyObject * obj7 = 0 ;
17656 char *kwnames[] = {
17657 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17658 };
17659
17660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17663 arg2 = (int) SWIG_AsInt(obj1);
17664 if (PyErr_Occurred()) SWIG_fail;
17665 if (obj2) {
17666 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
17667 if (PyErr_Occurred()) SWIG_fail;
17668 }
17669 if (obj3) {
17670 arg4 = (int) SWIG_AsInt(obj3);
17671 if (PyErr_Occurred()) SWIG_fail;
17672 }
17673 if (obj4) {
17674 arg5 = (int) SWIG_AsInt(obj4);
17675 if (PyErr_Occurred()) SWIG_fail;
17676 }
17677 if (obj5) {
17678 arg6 = (int) SWIG_AsInt(obj5);
17679 if (PyErr_Occurred()) SWIG_fail;
17680 }
17681 if (obj6) {
17682 arg7 = (int) SWIG_AsInt(obj6);
17683 if (PyErr_Occurred()) SWIG_fail;
17684 }
17685 if (obj7) {
17686 arg8 = (int) SWIG_AsInt(obj7);
17687 if (PyErr_Occurred()) SWIG_fail;
17688 }
17689 {
17690 PyThreadState* __tstate = wxPyBeginAllowThreads();
17691 {
17692 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
17693 result = (wxDateTime *) &_result_ref;
17694 }
17695
17696 wxPyEndAllowThreads(__tstate);
17697 if (PyErr_Occurred()) SWIG_fail;
17698 }
17699 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17700 return resultobj;
17701 fail:
17702 return NULL;
17703 }
17704
17705
17706 static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17707 PyObject *resultobj;
17708 wxDateTime *arg1 = (wxDateTime *) 0 ;
17709 wxDateTime *result;
17710 PyObject * obj0 = 0 ;
17711 char *kwnames[] = {
17712 (char *) "self", NULL
17713 };
17714
17715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
17716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17718 {
17719 PyThreadState* __tstate = wxPyBeginAllowThreads();
17720 {
17721 wxDateTime &_result_ref = (arg1)->ResetTime();
17722 result = (wxDateTime *) &_result_ref;
17723 }
17724
17725 wxPyEndAllowThreads(__tstate);
17726 if (PyErr_Occurred()) SWIG_fail;
17727 }
17728 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17729 return resultobj;
17730 fail:
17731 return NULL;
17732 }
17733
17734
17735 static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17736 PyObject *resultobj;
17737 wxDateTime *arg1 = (wxDateTime *) 0 ;
17738 int arg2 ;
17739 wxDateTime *result;
17740 PyObject * obj0 = 0 ;
17741 PyObject * obj1 = 0 ;
17742 char *kwnames[] = {
17743 (char *) "self",(char *) "year", NULL
17744 };
17745
17746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
17747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17749 arg2 = (int) SWIG_AsInt(obj1);
17750 if (PyErr_Occurred()) SWIG_fail;
17751 {
17752 PyThreadState* __tstate = wxPyBeginAllowThreads();
17753 {
17754 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
17755 result = (wxDateTime *) &_result_ref;
17756 }
17757
17758 wxPyEndAllowThreads(__tstate);
17759 if (PyErr_Occurred()) SWIG_fail;
17760 }
17761 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17762 return resultobj;
17763 fail:
17764 return NULL;
17765 }
17766
17767
17768 static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17769 PyObject *resultobj;
17770 wxDateTime *arg1 = (wxDateTime *) 0 ;
17771 int arg2 ;
17772 wxDateTime *result;
17773 PyObject * obj0 = 0 ;
17774 PyObject * obj1 = 0 ;
17775 char *kwnames[] = {
17776 (char *) "self",(char *) "month", NULL
17777 };
17778
17779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
17780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17782 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17783 if (PyErr_Occurred()) SWIG_fail;
17784 {
17785 PyThreadState* __tstate = wxPyBeginAllowThreads();
17786 {
17787 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
17788 result = (wxDateTime *) &_result_ref;
17789 }
17790
17791 wxPyEndAllowThreads(__tstate);
17792 if (PyErr_Occurred()) SWIG_fail;
17793 }
17794 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17795 return resultobj;
17796 fail:
17797 return NULL;
17798 }
17799
17800
17801 static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17802 PyObject *resultobj;
17803 wxDateTime *arg1 = (wxDateTime *) 0 ;
17804 int arg2 ;
17805 wxDateTime *result;
17806 PyObject * obj0 = 0 ;
17807 PyObject * obj1 = 0 ;
17808 char *kwnames[] = {
17809 (char *) "self",(char *) "day", NULL
17810 };
17811
17812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
17813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17815 arg2 = (int) SWIG_AsInt(obj1);
17816 if (PyErr_Occurred()) SWIG_fail;
17817 {
17818 PyThreadState* __tstate = wxPyBeginAllowThreads();
17819 {
17820 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
17821 result = (wxDateTime *) &_result_ref;
17822 }
17823
17824 wxPyEndAllowThreads(__tstate);
17825 if (PyErr_Occurred()) SWIG_fail;
17826 }
17827 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17828 return resultobj;
17829 fail:
17830 return NULL;
17831 }
17832
17833
17834 static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
17835 PyObject *resultobj;
17836 wxDateTime *arg1 = (wxDateTime *) 0 ;
17837 int arg2 ;
17838 wxDateTime *result;
17839 PyObject * obj0 = 0 ;
17840 PyObject * obj1 = 0 ;
17841 char *kwnames[] = {
17842 (char *) "self",(char *) "hour", NULL
17843 };
17844
17845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
17846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17848 arg2 = (int) SWIG_AsInt(obj1);
17849 if (PyErr_Occurred()) SWIG_fail;
17850 {
17851 PyThreadState* __tstate = wxPyBeginAllowThreads();
17852 {
17853 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
17854 result = (wxDateTime *) &_result_ref;
17855 }
17856
17857 wxPyEndAllowThreads(__tstate);
17858 if (PyErr_Occurred()) SWIG_fail;
17859 }
17860 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17861 return resultobj;
17862 fail:
17863 return NULL;
17864 }
17865
17866
17867 static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
17868 PyObject *resultobj;
17869 wxDateTime *arg1 = (wxDateTime *) 0 ;
17870 int arg2 ;
17871 wxDateTime *result;
17872 PyObject * obj0 = 0 ;
17873 PyObject * obj1 = 0 ;
17874 char *kwnames[] = {
17875 (char *) "self",(char *) "minute", NULL
17876 };
17877
17878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
17879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17881 arg2 = (int) SWIG_AsInt(obj1);
17882 if (PyErr_Occurred()) SWIG_fail;
17883 {
17884 PyThreadState* __tstate = wxPyBeginAllowThreads();
17885 {
17886 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
17887 result = (wxDateTime *) &_result_ref;
17888 }
17889
17890 wxPyEndAllowThreads(__tstate);
17891 if (PyErr_Occurred()) SWIG_fail;
17892 }
17893 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17894 return resultobj;
17895 fail:
17896 return NULL;
17897 }
17898
17899
17900 static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
17901 PyObject *resultobj;
17902 wxDateTime *arg1 = (wxDateTime *) 0 ;
17903 int arg2 ;
17904 wxDateTime *result;
17905 PyObject * obj0 = 0 ;
17906 PyObject * obj1 = 0 ;
17907 char *kwnames[] = {
17908 (char *) "self",(char *) "second", NULL
17909 };
17910
17911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
17912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17914 arg2 = (int) SWIG_AsInt(obj1);
17915 if (PyErr_Occurred()) SWIG_fail;
17916 {
17917 PyThreadState* __tstate = wxPyBeginAllowThreads();
17918 {
17919 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
17920 result = (wxDateTime *) &_result_ref;
17921 }
17922
17923 wxPyEndAllowThreads(__tstate);
17924 if (PyErr_Occurred()) SWIG_fail;
17925 }
17926 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17927 return resultobj;
17928 fail:
17929 return NULL;
17930 }
17931
17932
17933 static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
17934 PyObject *resultobj;
17935 wxDateTime *arg1 = (wxDateTime *) 0 ;
17936 int arg2 ;
17937 wxDateTime *result;
17938 PyObject * obj0 = 0 ;
17939 PyObject * obj1 = 0 ;
17940 char *kwnames[] = {
17941 (char *) "self",(char *) "millisecond", NULL
17942 };
17943
17944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
17945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17947 arg2 = (int) SWIG_AsInt(obj1);
17948 if (PyErr_Occurred()) SWIG_fail;
17949 {
17950 PyThreadState* __tstate = wxPyBeginAllowThreads();
17951 {
17952 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
17953 result = (wxDateTime *) &_result_ref;
17954 }
17955
17956 wxPyEndAllowThreads(__tstate);
17957 if (PyErr_Occurred()) SWIG_fail;
17958 }
17959 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17960 return resultobj;
17961 fail:
17962 return NULL;
17963 }
17964
17965
17966 static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
17967 PyObject *resultobj;
17968 wxDateTime *arg1 = (wxDateTime *) 0 ;
17969 int arg2 ;
17970 int arg3 = (int) wxDateTime::Monday_First ;
17971 wxDateTime *result;
17972 PyObject * obj0 = 0 ;
17973 PyObject * obj1 = 0 ;
17974 PyObject * obj2 = 0 ;
17975 char *kwnames[] = {
17976 (char *) "self",(char *) "weekday",(char *) "flags", NULL
17977 };
17978
17979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
17980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17982 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17983 if (PyErr_Occurred()) SWIG_fail;
17984 if (obj2) {
17985 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
17986 if (PyErr_Occurred()) SWIG_fail;
17987 }
17988 {
17989 PyThreadState* __tstate = wxPyBeginAllowThreads();
17990 {
17991 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
17992 result = (wxDateTime *) &_result_ref;
17993 }
17994
17995 wxPyEndAllowThreads(__tstate);
17996 if (PyErr_Occurred()) SWIG_fail;
17997 }
17998 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17999 return resultobj;
18000 fail:
18001 return NULL;
18002 }
18003
18004
18005 static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18006 PyObject *resultobj;
18007 wxDateTime *arg1 = (wxDateTime *) 0 ;
18008 int arg2 ;
18009 int arg3 = (int) wxDateTime::Monday_First ;
18010 wxDateTime result;
18011 PyObject * obj0 = 0 ;
18012 PyObject * obj1 = 0 ;
18013 PyObject * obj2 = 0 ;
18014 char *kwnames[] = {
18015 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18016 };
18017
18018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18021 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18022 if (PyErr_Occurred()) SWIG_fail;
18023 if (obj2) {
18024 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
18025 if (PyErr_Occurred()) SWIG_fail;
18026 }
18027 {
18028 PyThreadState* __tstate = wxPyBeginAllowThreads();
18029 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18030
18031 wxPyEndAllowThreads(__tstate);
18032 if (PyErr_Occurred()) SWIG_fail;
18033 }
18034 {
18035 wxDateTime * resultptr;
18036 resultptr = new wxDateTime((wxDateTime &) result);
18037 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18038 }
18039 return resultobj;
18040 fail:
18041 return NULL;
18042 }
18043
18044
18045 static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18046 PyObject *resultobj;
18047 wxDateTime *arg1 = (wxDateTime *) 0 ;
18048 int arg2 ;
18049 wxDateTime *result;
18050 PyObject * obj0 = 0 ;
18051 PyObject * obj1 = 0 ;
18052 char *kwnames[] = {
18053 (char *) "self",(char *) "weekday", NULL
18054 };
18055
18056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18059 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18060 if (PyErr_Occurred()) SWIG_fail;
18061 {
18062 PyThreadState* __tstate = wxPyBeginAllowThreads();
18063 {
18064 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
18065 result = (wxDateTime *) &_result_ref;
18066 }
18067
18068 wxPyEndAllowThreads(__tstate);
18069 if (PyErr_Occurred()) SWIG_fail;
18070 }
18071 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18072 return resultobj;
18073 fail:
18074 return NULL;
18075 }
18076
18077
18078 static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18079 PyObject *resultobj;
18080 wxDateTime *arg1 = (wxDateTime *) 0 ;
18081 int arg2 ;
18082 wxDateTime result;
18083 PyObject * obj0 = 0 ;
18084 PyObject * obj1 = 0 ;
18085 char *kwnames[] = {
18086 (char *) "self",(char *) "weekday", NULL
18087 };
18088
18089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18092 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18093 if (PyErr_Occurred()) SWIG_fail;
18094 {
18095 PyThreadState* __tstate = wxPyBeginAllowThreads();
18096 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
18097
18098 wxPyEndAllowThreads(__tstate);
18099 if (PyErr_Occurred()) SWIG_fail;
18100 }
18101 {
18102 wxDateTime * resultptr;
18103 resultptr = new wxDateTime((wxDateTime &) result);
18104 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18105 }
18106 return resultobj;
18107 fail:
18108 return NULL;
18109 }
18110
18111
18112 static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18113 PyObject *resultobj;
18114 wxDateTime *arg1 = (wxDateTime *) 0 ;
18115 int arg2 ;
18116 wxDateTime *result;
18117 PyObject * obj0 = 0 ;
18118 PyObject * obj1 = 0 ;
18119 char *kwnames[] = {
18120 (char *) "self",(char *) "weekday", NULL
18121 };
18122
18123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18126 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18127 if (PyErr_Occurred()) SWIG_fail;
18128 {
18129 PyThreadState* __tstate = wxPyBeginAllowThreads();
18130 {
18131 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
18132 result = (wxDateTime *) &_result_ref;
18133 }
18134
18135 wxPyEndAllowThreads(__tstate);
18136 if (PyErr_Occurred()) SWIG_fail;
18137 }
18138 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18139 return resultobj;
18140 fail:
18141 return NULL;
18142 }
18143
18144
18145 static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18146 PyObject *resultobj;
18147 wxDateTime *arg1 = (wxDateTime *) 0 ;
18148 int arg2 ;
18149 wxDateTime result;
18150 PyObject * obj0 = 0 ;
18151 PyObject * obj1 = 0 ;
18152 char *kwnames[] = {
18153 (char *) "self",(char *) "weekday", NULL
18154 };
18155
18156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18159 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18160 if (PyErr_Occurred()) SWIG_fail;
18161 {
18162 PyThreadState* __tstate = wxPyBeginAllowThreads();
18163 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2);
18164
18165 wxPyEndAllowThreads(__tstate);
18166 if (PyErr_Occurred()) SWIG_fail;
18167 }
18168 {
18169 wxDateTime * resultptr;
18170 resultptr = new wxDateTime((wxDateTime &) result);
18171 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18172 }
18173 return resultobj;
18174 fail:
18175 return NULL;
18176 }
18177
18178
18179 static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18180 PyObject *resultobj;
18181 wxDateTime *arg1 = (wxDateTime *) 0 ;
18182 int arg2 ;
18183 int arg3 = (int) 1 ;
18184 int arg4 = (int) wxDateTime::Inv_Month ;
18185 int arg5 = (int) wxDateTime::Inv_Year ;
18186 bool result;
18187 PyObject * obj0 = 0 ;
18188 PyObject * obj1 = 0 ;
18189 PyObject * obj2 = 0 ;
18190 PyObject * obj3 = 0 ;
18191 PyObject * obj4 = 0 ;
18192 char *kwnames[] = {
18193 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
18194 };
18195
18196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18199 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18200 if (PyErr_Occurred()) SWIG_fail;
18201 if (obj2) {
18202 arg3 = (int) SWIG_AsInt(obj2);
18203 if (PyErr_Occurred()) SWIG_fail;
18204 }
18205 if (obj3) {
18206 arg4 = (wxDateTime::Month) SWIG_AsInt(obj3);
18207 if (PyErr_Occurred()) SWIG_fail;
18208 }
18209 if (obj4) {
18210 arg5 = (int) SWIG_AsInt(obj4);
18211 if (PyErr_Occurred()) SWIG_fail;
18212 }
18213 {
18214 PyThreadState* __tstate = wxPyBeginAllowThreads();
18215 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
18216
18217 wxPyEndAllowThreads(__tstate);
18218 if (PyErr_Occurred()) SWIG_fail;
18219 }
18220 {
18221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18222 }
18223 return resultobj;
18224 fail:
18225 return NULL;
18226 }
18227
18228
18229 static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18230 PyObject *resultobj;
18231 wxDateTime *arg1 = (wxDateTime *) 0 ;
18232 int arg2 ;
18233 int arg3 = (int) wxDateTime::Inv_Month ;
18234 int arg4 = (int) wxDateTime::Inv_Year ;
18235 bool result;
18236 PyObject * obj0 = 0 ;
18237 PyObject * obj1 = 0 ;
18238 PyObject * obj2 = 0 ;
18239 PyObject * obj3 = 0 ;
18240 char *kwnames[] = {
18241 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18242 };
18243
18244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18247 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18248 if (PyErr_Occurred()) SWIG_fail;
18249 if (obj2) {
18250 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18251 if (PyErr_Occurred()) SWIG_fail;
18252 }
18253 if (obj3) {
18254 arg4 = (int) SWIG_AsInt(obj3);
18255 if (PyErr_Occurred()) SWIG_fail;
18256 }
18257 {
18258 PyThreadState* __tstate = wxPyBeginAllowThreads();
18259 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18260
18261 wxPyEndAllowThreads(__tstate);
18262 if (PyErr_Occurred()) SWIG_fail;
18263 }
18264 {
18265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18266 }
18267 return resultobj;
18268 fail:
18269 return NULL;
18270 }
18271
18272
18273 static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18274 PyObject *resultobj;
18275 wxDateTime *arg1 = (wxDateTime *) 0 ;
18276 int arg2 ;
18277 int arg3 = (int) wxDateTime::Inv_Month ;
18278 int arg4 = (int) wxDateTime::Inv_Year ;
18279 wxDateTime result;
18280 PyObject * obj0 = 0 ;
18281 PyObject * obj1 = 0 ;
18282 PyObject * obj2 = 0 ;
18283 PyObject * obj3 = 0 ;
18284 char *kwnames[] = {
18285 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18286 };
18287
18288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18291 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18292 if (PyErr_Occurred()) SWIG_fail;
18293 if (obj2) {
18294 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18295 if (PyErr_Occurred()) SWIG_fail;
18296 }
18297 if (obj3) {
18298 arg4 = (int) SWIG_AsInt(obj3);
18299 if (PyErr_Occurred()) SWIG_fail;
18300 }
18301 {
18302 PyThreadState* __tstate = wxPyBeginAllowThreads();
18303 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18304
18305 wxPyEndAllowThreads(__tstate);
18306 if (PyErr_Occurred()) SWIG_fail;
18307 }
18308 {
18309 wxDateTime * resultptr;
18310 resultptr = new wxDateTime((wxDateTime &) result);
18311 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18312 }
18313 return resultobj;
18314 fail:
18315 return NULL;
18316 }
18317
18318
18319 static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18320 PyObject *resultobj;
18321 wxDateTime *arg1 = (wxDateTime *) 0 ;
18322 int arg2 ;
18323 int arg3 = (int) wxDateTime::Mon ;
18324 int arg4 = (int) wxDateTime::Monday_First ;
18325 bool result;
18326 PyObject * obj0 = 0 ;
18327 PyObject * obj1 = 0 ;
18328 PyObject * obj2 = 0 ;
18329 PyObject * obj3 = 0 ;
18330 char *kwnames[] = {
18331 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18332 };
18333
18334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18337 arg2 = (int) SWIG_AsInt(obj1);
18338 if (PyErr_Occurred()) SWIG_fail;
18339 if (obj2) {
18340 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18341 if (PyErr_Occurred()) SWIG_fail;
18342 }
18343 if (obj3) {
18344 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18345 if (PyErr_Occurred()) SWIG_fail;
18346 }
18347 {
18348 PyThreadState* __tstate = wxPyBeginAllowThreads();
18349 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18350
18351 wxPyEndAllowThreads(__tstate);
18352 if (PyErr_Occurred()) SWIG_fail;
18353 }
18354 {
18355 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18356 }
18357 return resultobj;
18358 fail:
18359 return NULL;
18360 }
18361
18362
18363 static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18364 PyObject *resultobj;
18365 wxDateTime *arg1 = (wxDateTime *) 0 ;
18366 int arg2 ;
18367 int arg3 = (int) wxDateTime::Mon ;
18368 int arg4 = (int) wxDateTime::Monday_First ;
18369 wxDateTime result;
18370 PyObject * obj0 = 0 ;
18371 PyObject * obj1 = 0 ;
18372 PyObject * obj2 = 0 ;
18373 PyObject * obj3 = 0 ;
18374 char *kwnames[] = {
18375 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18376 };
18377
18378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18381 arg2 = (int) SWIG_AsInt(obj1);
18382 if (PyErr_Occurred()) SWIG_fail;
18383 if (obj2) {
18384 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18385 if (PyErr_Occurred()) SWIG_fail;
18386 }
18387 if (obj3) {
18388 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18389 if (PyErr_Occurred()) SWIG_fail;
18390 }
18391 {
18392 PyThreadState* __tstate = wxPyBeginAllowThreads();
18393 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18394
18395 wxPyEndAllowThreads(__tstate);
18396 if (PyErr_Occurred()) SWIG_fail;
18397 }
18398 {
18399 wxDateTime * resultptr;
18400 resultptr = new wxDateTime((wxDateTime &) result);
18401 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18402 }
18403 return resultobj;
18404 fail:
18405 return NULL;
18406 }
18407
18408
18409 static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18410 PyObject *resultobj;
18411 wxDateTime *arg1 = (wxDateTime *) 0 ;
18412 int arg2 = (int) wxDateTime::Inv_Month ;
18413 int arg3 = (int) wxDateTime::Inv_Year ;
18414 wxDateTime *result;
18415 PyObject * obj0 = 0 ;
18416 PyObject * obj1 = 0 ;
18417 PyObject * obj2 = 0 ;
18418 char *kwnames[] = {
18419 (char *) "self",(char *) "month",(char *) "year", NULL
18420 };
18421
18422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18425 if (obj1) {
18426 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18427 if (PyErr_Occurred()) SWIG_fail;
18428 }
18429 if (obj2) {
18430 arg3 = (int) SWIG_AsInt(obj2);
18431 if (PyErr_Occurred()) SWIG_fail;
18432 }
18433 {
18434 PyThreadState* __tstate = wxPyBeginAllowThreads();
18435 {
18436 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
18437 result = (wxDateTime *) &_result_ref;
18438 }
18439
18440 wxPyEndAllowThreads(__tstate);
18441 if (PyErr_Occurred()) SWIG_fail;
18442 }
18443 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18444 return resultobj;
18445 fail:
18446 return NULL;
18447 }
18448
18449
18450 static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18451 PyObject *resultobj;
18452 wxDateTime *arg1 = (wxDateTime *) 0 ;
18453 int arg2 = (int) wxDateTime::Inv_Month ;
18454 int arg3 = (int) wxDateTime::Inv_Year ;
18455 wxDateTime result;
18456 PyObject * obj0 = 0 ;
18457 PyObject * obj1 = 0 ;
18458 PyObject * obj2 = 0 ;
18459 char *kwnames[] = {
18460 (char *) "self",(char *) "month",(char *) "year", NULL
18461 };
18462
18463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18466 if (obj1) {
18467 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18468 if (PyErr_Occurred()) SWIG_fail;
18469 }
18470 if (obj2) {
18471 arg3 = (int) SWIG_AsInt(obj2);
18472 if (PyErr_Occurred()) SWIG_fail;
18473 }
18474 {
18475 PyThreadState* __tstate = wxPyBeginAllowThreads();
18476 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
18477
18478 wxPyEndAllowThreads(__tstate);
18479 if (PyErr_Occurred()) SWIG_fail;
18480 }
18481 {
18482 wxDateTime * resultptr;
18483 resultptr = new wxDateTime((wxDateTime &) result);
18484 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18485 }
18486 return resultobj;
18487 fail:
18488 return NULL;
18489 }
18490
18491
18492 static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18493 PyObject *resultobj;
18494 wxDateTime *arg1 = (wxDateTime *) 0 ;
18495 int arg2 ;
18496 wxDateTime *result;
18497 PyObject * obj0 = 0 ;
18498 PyObject * obj1 = 0 ;
18499 char *kwnames[] = {
18500 (char *) "self",(char *) "yday", NULL
18501 };
18502
18503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
18504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18506 arg2 = (int) SWIG_AsInt(obj1);
18507 if (PyErr_Occurred()) SWIG_fail;
18508 {
18509 PyThreadState* __tstate = wxPyBeginAllowThreads();
18510 {
18511 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
18512 result = (wxDateTime *) &_result_ref;
18513 }
18514
18515 wxPyEndAllowThreads(__tstate);
18516 if (PyErr_Occurred()) SWIG_fail;
18517 }
18518 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18519 return resultobj;
18520 fail:
18521 return NULL;
18522 }
18523
18524
18525 static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18526 PyObject *resultobj;
18527 wxDateTime *arg1 = (wxDateTime *) 0 ;
18528 int arg2 ;
18529 wxDateTime result;
18530 PyObject * obj0 = 0 ;
18531 PyObject * obj1 = 0 ;
18532 char *kwnames[] = {
18533 (char *) "self",(char *) "yday", NULL
18534 };
18535
18536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
18537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18539 arg2 = (int) SWIG_AsInt(obj1);
18540 if (PyErr_Occurred()) SWIG_fail;
18541 {
18542 PyThreadState* __tstate = wxPyBeginAllowThreads();
18543 result = (arg1)->GetYearDay(arg2);
18544
18545 wxPyEndAllowThreads(__tstate);
18546 if (PyErr_Occurred()) SWIG_fail;
18547 }
18548 {
18549 wxDateTime * resultptr;
18550 resultptr = new wxDateTime((wxDateTime &) result);
18551 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18552 }
18553 return resultobj;
18554 fail:
18555 return NULL;
18556 }
18557
18558
18559 static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18560 PyObject *resultobj;
18561 wxDateTime *arg1 = (wxDateTime *) 0 ;
18562 double result;
18563 PyObject * obj0 = 0 ;
18564 char *kwnames[] = {
18565 (char *) "self", NULL
18566 };
18567
18568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
18569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18571 {
18572 PyThreadState* __tstate = wxPyBeginAllowThreads();
18573 result = (double)(arg1)->GetJulianDayNumber();
18574
18575 wxPyEndAllowThreads(__tstate);
18576 if (PyErr_Occurred()) SWIG_fail;
18577 }
18578 resultobj = SWIG_FromDouble((double)result);
18579 return resultobj;
18580 fail:
18581 return NULL;
18582 }
18583
18584
18585 static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
18586 PyObject *resultobj;
18587 wxDateTime *arg1 = (wxDateTime *) 0 ;
18588 double result;
18589 PyObject * obj0 = 0 ;
18590 char *kwnames[] = {
18591 (char *) "self", NULL
18592 };
18593
18594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
18595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18597 {
18598 PyThreadState* __tstate = wxPyBeginAllowThreads();
18599 result = (double)(arg1)->GetJDN();
18600
18601 wxPyEndAllowThreads(__tstate);
18602 if (PyErr_Occurred()) SWIG_fail;
18603 }
18604 resultobj = SWIG_FromDouble((double)result);
18605 return resultobj;
18606 fail:
18607 return NULL;
18608 }
18609
18610
18611 static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18612 PyObject *resultobj;
18613 wxDateTime *arg1 = (wxDateTime *) 0 ;
18614 double result;
18615 PyObject * obj0 = 0 ;
18616 char *kwnames[] = {
18617 (char *) "self", NULL
18618 };
18619
18620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
18621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18623 {
18624 PyThreadState* __tstate = wxPyBeginAllowThreads();
18625 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
18626
18627 wxPyEndAllowThreads(__tstate);
18628 if (PyErr_Occurred()) SWIG_fail;
18629 }
18630 resultobj = SWIG_FromDouble((double)result);
18631 return resultobj;
18632 fail:
18633 return NULL;
18634 }
18635
18636
18637 static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) {
18638 PyObject *resultobj;
18639 wxDateTime *arg1 = (wxDateTime *) 0 ;
18640 double result;
18641 PyObject * obj0 = 0 ;
18642 char *kwnames[] = {
18643 (char *) "self", NULL
18644 };
18645
18646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
18647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18649 {
18650 PyThreadState* __tstate = wxPyBeginAllowThreads();
18651 result = (double)(arg1)->GetMJD();
18652
18653 wxPyEndAllowThreads(__tstate);
18654 if (PyErr_Occurred()) SWIG_fail;
18655 }
18656 resultobj = SWIG_FromDouble((double)result);
18657 return resultobj;
18658 fail:
18659 return NULL;
18660 }
18661
18662
18663 static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) {
18664 PyObject *resultobj;
18665 wxDateTime *arg1 = (wxDateTime *) 0 ;
18666 double result;
18667 PyObject * obj0 = 0 ;
18668 char *kwnames[] = {
18669 (char *) "self", NULL
18670 };
18671
18672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
18673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18675 {
18676 PyThreadState* __tstate = wxPyBeginAllowThreads();
18677 result = (double)(arg1)->GetRataDie();
18678
18679 wxPyEndAllowThreads(__tstate);
18680 if (PyErr_Occurred()) SWIG_fail;
18681 }
18682 resultobj = SWIG_FromDouble((double)result);
18683 return resultobj;
18684 fail:
18685 return NULL;
18686 }
18687
18688
18689 static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18690 PyObject *resultobj;
18691 wxDateTime *arg1 = (wxDateTime *) 0 ;
18692 wxDateTime::TimeZone *arg2 = 0 ;
18693 bool arg3 = (bool) False ;
18694 wxDateTime result;
18695 bool temp2 = False ;
18696 PyObject * obj0 = 0 ;
18697 PyObject * obj1 = 0 ;
18698 PyObject * obj2 = 0 ;
18699 char *kwnames[] = {
18700 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18701 };
18702
18703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18706 {
18707 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18708 temp2 = True;
18709 }
18710 if (obj2) {
18711 arg3 = (bool) SWIG_AsBool(obj2);
18712 if (PyErr_Occurred()) SWIG_fail;
18713 }
18714 {
18715 PyThreadState* __tstate = wxPyBeginAllowThreads();
18716 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18717
18718 wxPyEndAllowThreads(__tstate);
18719 if (PyErr_Occurred()) SWIG_fail;
18720 }
18721 {
18722 wxDateTime * resultptr;
18723 resultptr = new wxDateTime((wxDateTime &) result);
18724 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18725 }
18726 {
18727 if (temp2) delete arg2;
18728 }
18729 return resultobj;
18730 fail:
18731 {
18732 if (temp2) delete arg2;
18733 }
18734 return NULL;
18735 }
18736
18737
18738 static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18739 PyObject *resultobj;
18740 wxDateTime *arg1 = (wxDateTime *) 0 ;
18741 wxDateTime::TimeZone *arg2 = 0 ;
18742 bool arg3 = (bool) False ;
18743 wxDateTime *result;
18744 bool temp2 = False ;
18745 PyObject * obj0 = 0 ;
18746 PyObject * obj1 = 0 ;
18747 PyObject * obj2 = 0 ;
18748 char *kwnames[] = {
18749 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18750 };
18751
18752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18755 {
18756 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18757 temp2 = True;
18758 }
18759 if (obj2) {
18760 arg3 = (bool) SWIG_AsBool(obj2);
18761 if (PyErr_Occurred()) SWIG_fail;
18762 }
18763 {
18764 PyThreadState* __tstate = wxPyBeginAllowThreads();
18765 {
18766 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18767 result = (wxDateTime *) &_result_ref;
18768 }
18769
18770 wxPyEndAllowThreads(__tstate);
18771 if (PyErr_Occurred()) SWIG_fail;
18772 }
18773 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18774 {
18775 if (temp2) delete arg2;
18776 }
18777 return resultobj;
18778 fail:
18779 {
18780 if (temp2) delete arg2;
18781 }
18782 return NULL;
18783 }
18784
18785
18786 static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18787 PyObject *resultobj;
18788 wxDateTime *arg1 = (wxDateTime *) 0 ;
18789 bool arg2 = (bool) False ;
18790 wxDateTime result;
18791 PyObject * obj0 = 0 ;
18792 PyObject * obj1 = 0 ;
18793 char *kwnames[] = {
18794 (char *) "self",(char *) "noDST", NULL
18795 };
18796
18797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
18798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18800 if (obj1) {
18801 arg2 = (bool) SWIG_AsBool(obj1);
18802 if (PyErr_Occurred()) SWIG_fail;
18803 }
18804 {
18805 PyThreadState* __tstate = wxPyBeginAllowThreads();
18806 result = (arg1)->ToGMT(arg2);
18807
18808 wxPyEndAllowThreads(__tstate);
18809 if (PyErr_Occurred()) SWIG_fail;
18810 }
18811 {
18812 wxDateTime * resultptr;
18813 resultptr = new wxDateTime((wxDateTime &) result);
18814 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18815 }
18816 return resultobj;
18817 fail:
18818 return NULL;
18819 }
18820
18821
18822 static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18823 PyObject *resultobj;
18824 wxDateTime *arg1 = (wxDateTime *) 0 ;
18825 bool arg2 = (bool) False ;
18826 wxDateTime *result;
18827 PyObject * obj0 = 0 ;
18828 PyObject * obj1 = 0 ;
18829 char *kwnames[] = {
18830 (char *) "self",(char *) "noDST", NULL
18831 };
18832
18833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
18834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18836 if (obj1) {
18837 arg2 = (bool) SWIG_AsBool(obj1);
18838 if (PyErr_Occurred()) SWIG_fail;
18839 }
18840 {
18841 PyThreadState* __tstate = wxPyBeginAllowThreads();
18842 {
18843 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
18844 result = (wxDateTime *) &_result_ref;
18845 }
18846
18847 wxPyEndAllowThreads(__tstate);
18848 if (PyErr_Occurred()) SWIG_fail;
18849 }
18850 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18851 return resultobj;
18852 fail:
18853 return NULL;
18854 }
18855
18856
18857 static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) {
18858 PyObject *resultobj;
18859 wxDateTime *arg1 = (wxDateTime *) 0 ;
18860 int arg2 = (int) wxDateTime::Country_Default ;
18861 int result;
18862 PyObject * obj0 = 0 ;
18863 PyObject * obj1 = 0 ;
18864 char *kwnames[] = {
18865 (char *) "self",(char *) "country", NULL
18866 };
18867
18868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
18869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18871 if (obj1) {
18872 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
18873 if (PyErr_Occurred()) SWIG_fail;
18874 }
18875 {
18876 PyThreadState* __tstate = wxPyBeginAllowThreads();
18877 result = (int)(arg1)->IsDST((wxDateTime::Country )arg2);
18878
18879 wxPyEndAllowThreads(__tstate);
18880 if (PyErr_Occurred()) SWIG_fail;
18881 }
18882 resultobj = SWIG_FromInt((int)result);
18883 return resultobj;
18884 fail:
18885 return NULL;
18886 }
18887
18888
18889 static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
18890 PyObject *resultobj;
18891 wxDateTime *arg1 = (wxDateTime *) 0 ;
18892 bool result;
18893 PyObject * obj0 = 0 ;
18894 char *kwnames[] = {
18895 (char *) "self", NULL
18896 };
18897
18898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
18899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18901 {
18902 PyThreadState* __tstate = wxPyBeginAllowThreads();
18903 result = (bool)((wxDateTime const *)arg1)->IsValid();
18904
18905 wxPyEndAllowThreads(__tstate);
18906 if (PyErr_Occurred()) SWIG_fail;
18907 }
18908 {
18909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18910 }
18911 return resultobj;
18912 fail:
18913 return NULL;
18914 }
18915
18916
18917 static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
18918 PyObject *resultobj;
18919 wxDateTime *arg1 = (wxDateTime *) 0 ;
18920 time_t result;
18921 PyObject * obj0 = 0 ;
18922 char *kwnames[] = {
18923 (char *) "self", NULL
18924 };
18925
18926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
18927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18929 {
18930 PyThreadState* __tstate = wxPyBeginAllowThreads();
18931 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
18932
18933 wxPyEndAllowThreads(__tstate);
18934 if (PyErr_Occurred()) SWIG_fail;
18935 }
18936 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
18937 return resultobj;
18938 fail:
18939 return NULL;
18940 }
18941
18942
18943 static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
18944 PyObject *resultobj;
18945 wxDateTime *arg1 = (wxDateTime *) 0 ;
18946 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18947 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18948 int result;
18949 bool temp2 = False ;
18950 PyObject * obj0 = 0 ;
18951 PyObject * obj1 = 0 ;
18952 char *kwnames[] = {
18953 (char *) "self",(char *) "tz", NULL
18954 };
18955
18956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
18957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18959 if (obj1) {
18960 {
18961 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18962 temp2 = True;
18963 }
18964 }
18965 {
18966 PyThreadState* __tstate = wxPyBeginAllowThreads();
18967 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
18968
18969 wxPyEndAllowThreads(__tstate);
18970 if (PyErr_Occurred()) SWIG_fail;
18971 }
18972 resultobj = SWIG_FromInt((int)result);
18973 {
18974 if (temp2) delete arg2;
18975 }
18976 return resultobj;
18977 fail:
18978 {
18979 if (temp2) delete arg2;
18980 }
18981 return NULL;
18982 }
18983
18984
18985 static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
18986 PyObject *resultobj;
18987 wxDateTime *arg1 = (wxDateTime *) 0 ;
18988 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18989 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18990 int result;
18991 bool temp2 = False ;
18992 PyObject * obj0 = 0 ;
18993 PyObject * obj1 = 0 ;
18994 char *kwnames[] = {
18995 (char *) "self",(char *) "tz", NULL
18996 };
18997
18998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
18999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19001 if (obj1) {
19002 {
19003 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19004 temp2 = True;
19005 }
19006 }
19007 {
19008 PyThreadState* __tstate = wxPyBeginAllowThreads();
19009 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
19010
19011 wxPyEndAllowThreads(__tstate);
19012 if (PyErr_Occurred()) SWIG_fail;
19013 }
19014 resultobj = SWIG_FromInt((int)result);
19015 {
19016 if (temp2) delete arg2;
19017 }
19018 return resultobj;
19019 fail:
19020 {
19021 if (temp2) delete arg2;
19022 }
19023 return NULL;
19024 }
19025
19026
19027 static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19028 PyObject *resultobj;
19029 wxDateTime *arg1 = (wxDateTime *) 0 ;
19030 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19031 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19032 int result;
19033 bool temp2 = False ;
19034 PyObject * obj0 = 0 ;
19035 PyObject * obj1 = 0 ;
19036 char *kwnames[] = {
19037 (char *) "self",(char *) "tz", NULL
19038 };
19039
19040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
19041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19043 if (obj1) {
19044 {
19045 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19046 temp2 = True;
19047 }
19048 }
19049 {
19050 PyThreadState* __tstate = wxPyBeginAllowThreads();
19051 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
19052
19053 wxPyEndAllowThreads(__tstate);
19054 if (PyErr_Occurred()) SWIG_fail;
19055 }
19056 resultobj = SWIG_FromInt((int)result);
19057 {
19058 if (temp2) delete arg2;
19059 }
19060 return resultobj;
19061 fail:
19062 {
19063 if (temp2) delete arg2;
19064 }
19065 return NULL;
19066 }
19067
19068
19069 static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19070 PyObject *resultobj;
19071 wxDateTime *arg1 = (wxDateTime *) 0 ;
19072 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19073 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19074 int result;
19075 bool temp2 = False ;
19076 PyObject * obj0 = 0 ;
19077 PyObject * obj1 = 0 ;
19078 char *kwnames[] = {
19079 (char *) "self",(char *) "tz", NULL
19080 };
19081
19082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
19083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19085 if (obj1) {
19086 {
19087 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19088 temp2 = True;
19089 }
19090 }
19091 {
19092 PyThreadState* __tstate = wxPyBeginAllowThreads();
19093 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
19094
19095 wxPyEndAllowThreads(__tstate);
19096 if (PyErr_Occurred()) SWIG_fail;
19097 }
19098 resultobj = SWIG_FromInt((int)result);
19099 {
19100 if (temp2) delete arg2;
19101 }
19102 return resultobj;
19103 fail:
19104 {
19105 if (temp2) delete arg2;
19106 }
19107 return NULL;
19108 }
19109
19110
19111 static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
19112 PyObject *resultobj;
19113 wxDateTime *arg1 = (wxDateTime *) 0 ;
19114 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19115 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19116 int result;
19117 bool temp2 = False ;
19118 PyObject * obj0 = 0 ;
19119 PyObject * obj1 = 0 ;
19120 char *kwnames[] = {
19121 (char *) "self",(char *) "tz", NULL
19122 };
19123
19124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
19125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19127 if (obj1) {
19128 {
19129 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19130 temp2 = True;
19131 }
19132 }
19133 {
19134 PyThreadState* __tstate = wxPyBeginAllowThreads();
19135 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
19136
19137 wxPyEndAllowThreads(__tstate);
19138 if (PyErr_Occurred()) SWIG_fail;
19139 }
19140 resultobj = SWIG_FromInt((int)result);
19141 {
19142 if (temp2) delete arg2;
19143 }
19144 return resultobj;
19145 fail:
19146 {
19147 if (temp2) delete arg2;
19148 }
19149 return NULL;
19150 }
19151
19152
19153 static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
19154 PyObject *resultobj;
19155 wxDateTime *arg1 = (wxDateTime *) 0 ;
19156 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19157 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19158 int result;
19159 bool temp2 = False ;
19160 PyObject * obj0 = 0 ;
19161 PyObject * obj1 = 0 ;
19162 char *kwnames[] = {
19163 (char *) "self",(char *) "tz", NULL
19164 };
19165
19166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
19167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19169 if (obj1) {
19170 {
19171 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19172 temp2 = True;
19173 }
19174 }
19175 {
19176 PyThreadState* __tstate = wxPyBeginAllowThreads();
19177 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
19178
19179 wxPyEndAllowThreads(__tstate);
19180 if (PyErr_Occurred()) SWIG_fail;
19181 }
19182 resultobj = SWIG_FromInt((int)result);
19183 {
19184 if (temp2) delete arg2;
19185 }
19186 return resultobj;
19187 fail:
19188 {
19189 if (temp2) delete arg2;
19190 }
19191 return NULL;
19192 }
19193
19194
19195 static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19196 PyObject *resultobj;
19197 wxDateTime *arg1 = (wxDateTime *) 0 ;
19198 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19199 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19200 int result;
19201 bool temp2 = False ;
19202 PyObject * obj0 = 0 ;
19203 PyObject * obj1 = 0 ;
19204 char *kwnames[] = {
19205 (char *) "self",(char *) "tz", NULL
19206 };
19207
19208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
19209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19211 if (obj1) {
19212 {
19213 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19214 temp2 = True;
19215 }
19216 }
19217 {
19218 PyThreadState* __tstate = wxPyBeginAllowThreads();
19219 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
19220
19221 wxPyEndAllowThreads(__tstate);
19222 if (PyErr_Occurred()) SWIG_fail;
19223 }
19224 resultobj = SWIG_FromInt((int)result);
19225 {
19226 if (temp2) delete arg2;
19227 }
19228 return resultobj;
19229 fail:
19230 {
19231 if (temp2) delete arg2;
19232 }
19233 return NULL;
19234 }
19235
19236
19237 static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19238 PyObject *resultobj;
19239 wxDateTime *arg1 = (wxDateTime *) 0 ;
19240 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19241 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19242 int result;
19243 bool temp2 = False ;
19244 PyObject * obj0 = 0 ;
19245 PyObject * obj1 = 0 ;
19246 char *kwnames[] = {
19247 (char *) "self",(char *) "tz", NULL
19248 };
19249
19250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
19251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19253 if (obj1) {
19254 {
19255 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19256 temp2 = True;
19257 }
19258 }
19259 {
19260 PyThreadState* __tstate = wxPyBeginAllowThreads();
19261 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
19262
19263 wxPyEndAllowThreads(__tstate);
19264 if (PyErr_Occurred()) SWIG_fail;
19265 }
19266 resultobj = SWIG_FromInt((int)result);
19267 {
19268 if (temp2) delete arg2;
19269 }
19270 return resultobj;
19271 fail:
19272 {
19273 if (temp2) delete arg2;
19274 }
19275 return NULL;
19276 }
19277
19278
19279 static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19280 PyObject *resultobj;
19281 wxDateTime *arg1 = (wxDateTime *) 0 ;
19282 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19283 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19284 int result;
19285 bool temp2 = False ;
19286 PyObject * obj0 = 0 ;
19287 PyObject * obj1 = 0 ;
19288 char *kwnames[] = {
19289 (char *) "self",(char *) "tz", NULL
19290 };
19291
19292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
19293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19295 if (obj1) {
19296 {
19297 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19298 temp2 = True;
19299 }
19300 }
19301 {
19302 PyThreadState* __tstate = wxPyBeginAllowThreads();
19303 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
19304
19305 wxPyEndAllowThreads(__tstate);
19306 if (PyErr_Occurred()) SWIG_fail;
19307 }
19308 resultobj = SWIG_FromInt((int)result);
19309 {
19310 if (temp2) delete arg2;
19311 }
19312 return resultobj;
19313 fail:
19314 {
19315 if (temp2) delete arg2;
19316 }
19317 return NULL;
19318 }
19319
19320
19321 static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19322 PyObject *resultobj;
19323 wxDateTime *arg1 = (wxDateTime *) 0 ;
19324 int arg2 = (int) wxDateTime::Monday_First ;
19325 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19326 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19327 int result;
19328 bool temp3 = False ;
19329 PyObject * obj0 = 0 ;
19330 PyObject * obj1 = 0 ;
19331 PyObject * obj2 = 0 ;
19332 char *kwnames[] = {
19333 (char *) "self",(char *) "flags",(char *) "tz", NULL
19334 };
19335
19336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
19337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19339 if (obj1) {
19340 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19341 if (PyErr_Occurred()) SWIG_fail;
19342 }
19343 if (obj2) {
19344 {
19345 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19346 temp3 = True;
19347 }
19348 }
19349 {
19350 PyThreadState* __tstate = wxPyBeginAllowThreads();
19351 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19352
19353 wxPyEndAllowThreads(__tstate);
19354 if (PyErr_Occurred()) SWIG_fail;
19355 }
19356 resultobj = SWIG_FromInt((int)result);
19357 {
19358 if (temp3) delete arg3;
19359 }
19360 return resultobj;
19361 fail:
19362 {
19363 if (temp3) delete arg3;
19364 }
19365 return NULL;
19366 }
19367
19368
19369 static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
19370 PyObject *resultobj;
19371 wxDateTime *arg1 = (wxDateTime *) 0 ;
19372 int arg2 = (int) wxDateTime::Monday_First ;
19373 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19374 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19375 int result;
19376 bool temp3 = False ;
19377 PyObject * obj0 = 0 ;
19378 PyObject * obj1 = 0 ;
19379 PyObject * obj2 = 0 ;
19380 char *kwnames[] = {
19381 (char *) "self",(char *) "flags",(char *) "tz", NULL
19382 };
19383
19384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
19385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19387 if (obj1) {
19388 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19389 if (PyErr_Occurred()) SWIG_fail;
19390 }
19391 if (obj2) {
19392 {
19393 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19394 temp3 = True;
19395 }
19396 }
19397 {
19398 PyThreadState* __tstate = wxPyBeginAllowThreads();
19399 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19400
19401 wxPyEndAllowThreads(__tstate);
19402 if (PyErr_Occurred()) SWIG_fail;
19403 }
19404 resultobj = SWIG_FromInt((int)result);
19405 {
19406 if (temp3) delete arg3;
19407 }
19408 return resultobj;
19409 fail:
19410 {
19411 if (temp3) delete arg3;
19412 }
19413 return NULL;
19414 }
19415
19416
19417 static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19418 PyObject *resultobj;
19419 wxDateTime *arg1 = (wxDateTime *) 0 ;
19420 int arg2 = (int) wxDateTime::Country_Default ;
19421 bool result;
19422 PyObject * obj0 = 0 ;
19423 PyObject * obj1 = 0 ;
19424 char *kwnames[] = {
19425 (char *) "self",(char *) "country", NULL
19426 };
19427
19428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail;
19429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19431 if (obj1) {
19432 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
19433 if (PyErr_Occurred()) SWIG_fail;
19434 }
19435 {
19436 PyThreadState* __tstate = wxPyBeginAllowThreads();
19437 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
19438
19439 wxPyEndAllowThreads(__tstate);
19440 if (PyErr_Occurred()) SWIG_fail;
19441 }
19442 {
19443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19444 }
19445 return resultobj;
19446 fail:
19447 return NULL;
19448 }
19449
19450
19451 static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19452 PyObject *resultobj;
19453 wxDateTime *arg1 = (wxDateTime *) 0 ;
19454 wxDateTime *arg2 = 0 ;
19455 bool result;
19456 PyObject * obj0 = 0 ;
19457 PyObject * obj1 = 0 ;
19458 char *kwnames[] = {
19459 (char *) "self",(char *) "datetime", NULL
19460 };
19461
19462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
19463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19465 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19466 SWIG_POINTER_EXCEPTION | 0)) == -1)
19467 SWIG_fail;
19468 if (arg2 == NULL) {
19469 PyErr_SetString(PyExc_TypeError,"null reference");
19470 SWIG_fail;
19471 }
19472 {
19473 PyThreadState* __tstate = wxPyBeginAllowThreads();
19474 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
19475
19476 wxPyEndAllowThreads(__tstate);
19477 if (PyErr_Occurred()) SWIG_fail;
19478 }
19479 {
19480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19481 }
19482 return resultobj;
19483 fail:
19484 return NULL;
19485 }
19486
19487
19488 static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19489 PyObject *resultobj;
19490 wxDateTime *arg1 = (wxDateTime *) 0 ;
19491 wxDateTime *arg2 = 0 ;
19492 bool result;
19493 PyObject * obj0 = 0 ;
19494 PyObject * obj1 = 0 ;
19495 char *kwnames[] = {
19496 (char *) "self",(char *) "datetime", NULL
19497 };
19498
19499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
19500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19502 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19503 SWIG_POINTER_EXCEPTION | 0)) == -1)
19504 SWIG_fail;
19505 if (arg2 == NULL) {
19506 PyErr_SetString(PyExc_TypeError,"null reference");
19507 SWIG_fail;
19508 }
19509 {
19510 PyThreadState* __tstate = wxPyBeginAllowThreads();
19511 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
19512
19513 wxPyEndAllowThreads(__tstate);
19514 if (PyErr_Occurred()) SWIG_fail;
19515 }
19516 {
19517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19518 }
19519 return resultobj;
19520 fail:
19521 return NULL;
19522 }
19523
19524
19525 static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19526 PyObject *resultobj;
19527 wxDateTime *arg1 = (wxDateTime *) 0 ;
19528 wxDateTime *arg2 = 0 ;
19529 bool result;
19530 PyObject * obj0 = 0 ;
19531 PyObject * obj1 = 0 ;
19532 char *kwnames[] = {
19533 (char *) "self",(char *) "datetime", NULL
19534 };
19535
19536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
19537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19539 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19540 SWIG_POINTER_EXCEPTION | 0)) == -1)
19541 SWIG_fail;
19542 if (arg2 == NULL) {
19543 PyErr_SetString(PyExc_TypeError,"null reference");
19544 SWIG_fail;
19545 }
19546 {
19547 PyThreadState* __tstate = wxPyBeginAllowThreads();
19548 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
19549
19550 wxPyEndAllowThreads(__tstate);
19551 if (PyErr_Occurred()) SWIG_fail;
19552 }
19553 {
19554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19555 }
19556 return resultobj;
19557 fail:
19558 return NULL;
19559 }
19560
19561
19562 static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19563 PyObject *resultobj;
19564 wxDateTime *arg1 = (wxDateTime *) 0 ;
19565 wxDateTime *arg2 = 0 ;
19566 wxDateTime *arg3 = 0 ;
19567 bool result;
19568 PyObject * obj0 = 0 ;
19569 PyObject * obj1 = 0 ;
19570 PyObject * obj2 = 0 ;
19571 char *kwnames[] = {
19572 (char *) "self",(char *) "t1",(char *) "t2", NULL
19573 };
19574
19575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19578 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19579 SWIG_POINTER_EXCEPTION | 0)) == -1)
19580 SWIG_fail;
19581 if (arg2 == NULL) {
19582 PyErr_SetString(PyExc_TypeError,"null reference");
19583 SWIG_fail;
19584 }
19585 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19586 SWIG_POINTER_EXCEPTION | 0)) == -1)
19587 SWIG_fail;
19588 if (arg3 == NULL) {
19589 PyErr_SetString(PyExc_TypeError,"null reference");
19590 SWIG_fail;
19591 }
19592 {
19593 PyThreadState* __tstate = wxPyBeginAllowThreads();
19594 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19595
19596 wxPyEndAllowThreads(__tstate);
19597 if (PyErr_Occurred()) SWIG_fail;
19598 }
19599 {
19600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19601 }
19602 return resultobj;
19603 fail:
19604 return NULL;
19605 }
19606
19607
19608 static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19609 PyObject *resultobj;
19610 wxDateTime *arg1 = (wxDateTime *) 0 ;
19611 wxDateTime *arg2 = 0 ;
19612 wxDateTime *arg3 = 0 ;
19613 bool result;
19614 PyObject * obj0 = 0 ;
19615 PyObject * obj1 = 0 ;
19616 PyObject * obj2 = 0 ;
19617 char *kwnames[] = {
19618 (char *) "self",(char *) "t1",(char *) "t2", NULL
19619 };
19620
19621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19624 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19625 SWIG_POINTER_EXCEPTION | 0)) == -1)
19626 SWIG_fail;
19627 if (arg2 == NULL) {
19628 PyErr_SetString(PyExc_TypeError,"null reference");
19629 SWIG_fail;
19630 }
19631 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19632 SWIG_POINTER_EXCEPTION | 0)) == -1)
19633 SWIG_fail;
19634 if (arg3 == NULL) {
19635 PyErr_SetString(PyExc_TypeError,"null reference");
19636 SWIG_fail;
19637 }
19638 {
19639 PyThreadState* __tstate = wxPyBeginAllowThreads();
19640 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19641
19642 wxPyEndAllowThreads(__tstate);
19643 if (PyErr_Occurred()) SWIG_fail;
19644 }
19645 {
19646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19647 }
19648 return resultobj;
19649 fail:
19650 return NULL;
19651 }
19652
19653
19654 static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) {
19655 PyObject *resultobj;
19656 wxDateTime *arg1 = (wxDateTime *) 0 ;
19657 wxDateTime *arg2 = 0 ;
19658 bool result;
19659 PyObject * obj0 = 0 ;
19660 PyObject * obj1 = 0 ;
19661 char *kwnames[] = {
19662 (char *) "self",(char *) "dt", NULL
19663 };
19664
19665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
19666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19668 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19669 SWIG_POINTER_EXCEPTION | 0)) == -1)
19670 SWIG_fail;
19671 if (arg2 == NULL) {
19672 PyErr_SetString(PyExc_TypeError,"null reference");
19673 SWIG_fail;
19674 }
19675 {
19676 PyThreadState* __tstate = wxPyBeginAllowThreads();
19677 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
19678
19679 wxPyEndAllowThreads(__tstate);
19680 if (PyErr_Occurred()) SWIG_fail;
19681 }
19682 {
19683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19684 }
19685 return resultobj;
19686 fail:
19687 return NULL;
19688 }
19689
19690
19691 static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) {
19692 PyObject *resultobj;
19693 wxDateTime *arg1 = (wxDateTime *) 0 ;
19694 wxDateTime *arg2 = 0 ;
19695 bool result;
19696 PyObject * obj0 = 0 ;
19697 PyObject * obj1 = 0 ;
19698 char *kwnames[] = {
19699 (char *) "self",(char *) "dt", NULL
19700 };
19701
19702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
19703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19705 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19706 SWIG_POINTER_EXCEPTION | 0)) == -1)
19707 SWIG_fail;
19708 if (arg2 == NULL) {
19709 PyErr_SetString(PyExc_TypeError,"null reference");
19710 SWIG_fail;
19711 }
19712 {
19713 PyThreadState* __tstate = wxPyBeginAllowThreads();
19714 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
19715
19716 wxPyEndAllowThreads(__tstate);
19717 if (PyErr_Occurred()) SWIG_fail;
19718 }
19719 {
19720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19721 }
19722 return resultobj;
19723 fail:
19724 return NULL;
19725 }
19726
19727
19728 static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19729 PyObject *resultobj;
19730 wxDateTime *arg1 = (wxDateTime *) 0 ;
19731 wxDateTime *arg2 = 0 ;
19732 wxTimeSpan *arg3 = 0 ;
19733 bool result;
19734 PyObject * obj0 = 0 ;
19735 PyObject * obj1 = 0 ;
19736 PyObject * obj2 = 0 ;
19737 char *kwnames[] = {
19738 (char *) "self",(char *) "dt",(char *) "ts", NULL
19739 };
19740
19741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
19742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19744 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19745 SWIG_POINTER_EXCEPTION | 0)) == -1)
19746 SWIG_fail;
19747 if (arg2 == NULL) {
19748 PyErr_SetString(PyExc_TypeError,"null reference");
19749 SWIG_fail;
19750 }
19751 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan,
19752 SWIG_POINTER_EXCEPTION | 0)) == -1)
19753 SWIG_fail;
19754 if (arg3 == NULL) {
19755 PyErr_SetString(PyExc_TypeError,"null reference");
19756 SWIG_fail;
19757 }
19758 {
19759 PyThreadState* __tstate = wxPyBeginAllowThreads();
19760 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
19761
19762 wxPyEndAllowThreads(__tstate);
19763 if (PyErr_Occurred()) SWIG_fail;
19764 }
19765 {
19766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19767 }
19768 return resultobj;
19769 fail:
19770 return NULL;
19771 }
19772
19773
19774 static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19775 PyObject *resultobj;
19776 wxDateTime *arg1 = (wxDateTime *) 0 ;
19777 wxTimeSpan *arg2 = 0 ;
19778 wxDateTime *result;
19779 PyObject * obj0 = 0 ;
19780 PyObject * obj1 = 0 ;
19781 char *kwnames[] = {
19782 (char *) "self",(char *) "diff", NULL
19783 };
19784
19785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
19786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19788 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19789 SWIG_POINTER_EXCEPTION | 0)) == -1)
19790 SWIG_fail;
19791 if (arg2 == NULL) {
19792 PyErr_SetString(PyExc_TypeError,"null reference");
19793 SWIG_fail;
19794 }
19795 {
19796 PyThreadState* __tstate = wxPyBeginAllowThreads();
19797 {
19798 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
19799 result = (wxDateTime *) &_result_ref;
19800 }
19801
19802 wxPyEndAllowThreads(__tstate);
19803 if (PyErr_Occurred()) SWIG_fail;
19804 }
19805 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19806 return resultobj;
19807 fail:
19808 return NULL;
19809 }
19810
19811
19812 static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) {
19813 PyObject *resultobj;
19814 wxDateTime *arg1 = (wxDateTime *) 0 ;
19815 wxDateSpan *arg2 = 0 ;
19816 wxDateTime *result;
19817 PyObject * obj0 = 0 ;
19818 PyObject * obj1 = 0 ;
19819 char *kwnames[] = {
19820 (char *) "self",(char *) "diff", NULL
19821 };
19822
19823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
19824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19826 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19827 SWIG_POINTER_EXCEPTION | 0)) == -1)
19828 SWIG_fail;
19829 if (arg2 == NULL) {
19830 PyErr_SetString(PyExc_TypeError,"null reference");
19831 SWIG_fail;
19832 }
19833 {
19834 PyThreadState* __tstate = wxPyBeginAllowThreads();
19835 {
19836 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
19837 result = (wxDateTime *) &_result_ref;
19838 }
19839
19840 wxPyEndAllowThreads(__tstate);
19841 if (PyErr_Occurred()) SWIG_fail;
19842 }
19843 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19844 return resultobj;
19845 fail:
19846 return NULL;
19847 }
19848
19849
19850 static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19851 PyObject *resultobj;
19852 wxDateTime *arg1 = (wxDateTime *) 0 ;
19853 wxTimeSpan *arg2 = 0 ;
19854 wxDateTime *result;
19855 PyObject * obj0 = 0 ;
19856 PyObject * obj1 = 0 ;
19857 char *kwnames[] = {
19858 (char *) "self",(char *) "diff", NULL
19859 };
19860
19861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
19862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19864 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19865 SWIG_POINTER_EXCEPTION | 0)) == -1)
19866 SWIG_fail;
19867 if (arg2 == NULL) {
19868 PyErr_SetString(PyExc_TypeError,"null reference");
19869 SWIG_fail;
19870 }
19871 {
19872 PyThreadState* __tstate = wxPyBeginAllowThreads();
19873 {
19874 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
19875 result = (wxDateTime *) &_result_ref;
19876 }
19877
19878 wxPyEndAllowThreads(__tstate);
19879 if (PyErr_Occurred()) SWIG_fail;
19880 }
19881 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19882 return resultobj;
19883 fail:
19884 return NULL;
19885 }
19886
19887
19888 static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) {
19889 PyObject *resultobj;
19890 wxDateTime *arg1 = (wxDateTime *) 0 ;
19891 wxDateSpan *arg2 = 0 ;
19892 wxDateTime *result;
19893 PyObject * obj0 = 0 ;
19894 PyObject * obj1 = 0 ;
19895 char *kwnames[] = {
19896 (char *) "self",(char *) "diff", NULL
19897 };
19898
19899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
19900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19902 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19903 SWIG_POINTER_EXCEPTION | 0)) == -1)
19904 SWIG_fail;
19905 if (arg2 == NULL) {
19906 PyErr_SetString(PyExc_TypeError,"null reference");
19907 SWIG_fail;
19908 }
19909 {
19910 PyThreadState* __tstate = wxPyBeginAllowThreads();
19911 {
19912 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
19913 result = (wxDateTime *) &_result_ref;
19914 }
19915
19916 wxPyEndAllowThreads(__tstate);
19917 if (PyErr_Occurred()) SWIG_fail;
19918 }
19919 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19920 return resultobj;
19921 fail:
19922 return NULL;
19923 }
19924
19925
19926 static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
19927 PyObject *resultobj;
19928 wxDateTime *arg1 = (wxDateTime *) 0 ;
19929 wxDateTime *arg2 = 0 ;
19930 wxTimeSpan result;
19931 PyObject * obj0 = 0 ;
19932 PyObject * obj1 = 0 ;
19933 char *kwnames[] = {
19934 (char *) "self",(char *) "dt", NULL
19935 };
19936
19937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
19938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19940 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19941 SWIG_POINTER_EXCEPTION | 0)) == -1)
19942 SWIG_fail;
19943 if (arg2 == NULL) {
19944 PyErr_SetString(PyExc_TypeError,"null reference");
19945 SWIG_fail;
19946 }
19947 {
19948 PyThreadState* __tstate = wxPyBeginAllowThreads();
19949 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
19950
19951 wxPyEndAllowThreads(__tstate);
19952 if (PyErr_Occurred()) SWIG_fail;
19953 }
19954 {
19955 wxTimeSpan * resultptr;
19956 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19957 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
19958 }
19959 return resultobj;
19960 fail:
19961 return NULL;
19962 }
19963
19964
19965 static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) {
19966 PyObject *resultobj;
19967 wxDateTime *arg1 = (wxDateTime *) 0 ;
19968 wxTimeSpan *arg2 = 0 ;
19969 wxDateTime *result;
19970 PyObject * obj0 = 0 ;
19971 PyObject * obj1 = 0 ;
19972
19973 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
19974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19976 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19977 SWIG_POINTER_EXCEPTION | 0)) == -1)
19978 SWIG_fail;
19979 if (arg2 == NULL) {
19980 PyErr_SetString(PyExc_TypeError,"null reference");
19981 SWIG_fail;
19982 }
19983 {
19984 PyThreadState* __tstate = wxPyBeginAllowThreads();
19985 {
19986 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
19987 result = (wxDateTime *) &_result_ref;
19988 }
19989
19990 wxPyEndAllowThreads(__tstate);
19991 if (PyErr_Occurred()) SWIG_fail;
19992 }
19993 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19994 return resultobj;
19995 fail:
19996 return NULL;
19997 }
19998
19999
20000 static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) {
20001 PyObject *resultobj;
20002 wxDateTime *arg1 = (wxDateTime *) 0 ;
20003 wxDateSpan *arg2 = 0 ;
20004 wxDateTime *result;
20005 PyObject * obj0 = 0 ;
20006 PyObject * obj1 = 0 ;
20007
20008 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20011 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20012 SWIG_POINTER_EXCEPTION | 0)) == -1)
20013 SWIG_fail;
20014 if (arg2 == NULL) {
20015 PyErr_SetString(PyExc_TypeError,"null reference");
20016 SWIG_fail;
20017 }
20018 {
20019 PyThreadState* __tstate = wxPyBeginAllowThreads();
20020 {
20021 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
20022 result = (wxDateTime *) &_result_ref;
20023 }
20024
20025 wxPyEndAllowThreads(__tstate);
20026 if (PyErr_Occurred()) SWIG_fail;
20027 }
20028 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20029 return resultobj;
20030 fail:
20031 return NULL;
20032 }
20033
20034
20035 static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
20036 int argc;
20037 PyObject *argv[3];
20038 int ii;
20039
20040 argc = PyObject_Length(args);
20041 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20042 argv[ii] = PyTuple_GetItem(args,ii);
20043 }
20044 if (argc == 2) {
20045 int _v;
20046 {
20047 void *ptr;
20048 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20049 _v = 0;
20050 PyErr_Clear();
20051 } else {
20052 _v = 1;
20053 }
20054 }
20055 if (_v) {
20056 {
20057 void *ptr;
20058 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20059 _v = 0;
20060 PyErr_Clear();
20061 } else {
20062 _v = 1;
20063 }
20064 }
20065 if (_v) {
20066 return _wrap_DateTime___iadd____SWIG_0(self,args);
20067 }
20068 }
20069 }
20070 if (argc == 2) {
20071 int _v;
20072 {
20073 void *ptr;
20074 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20075 _v = 0;
20076 PyErr_Clear();
20077 } else {
20078 _v = 1;
20079 }
20080 }
20081 if (_v) {
20082 {
20083 void *ptr;
20084 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20085 _v = 0;
20086 PyErr_Clear();
20087 } else {
20088 _v = 1;
20089 }
20090 }
20091 if (_v) {
20092 return _wrap_DateTime___iadd____SWIG_1(self,args);
20093 }
20094 }
20095 }
20096
20097 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
20098 return NULL;
20099 }
20100
20101
20102 static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) {
20103 PyObject *resultobj;
20104 wxDateTime *arg1 = (wxDateTime *) 0 ;
20105 wxTimeSpan *arg2 = 0 ;
20106 wxDateTime *result;
20107 PyObject * obj0 = 0 ;
20108 PyObject * obj1 = 0 ;
20109
20110 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20113 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20114 SWIG_POINTER_EXCEPTION | 0)) == -1)
20115 SWIG_fail;
20116 if (arg2 == NULL) {
20117 PyErr_SetString(PyExc_TypeError,"null reference");
20118 SWIG_fail;
20119 }
20120 {
20121 PyThreadState* __tstate = wxPyBeginAllowThreads();
20122 {
20123 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
20124 result = (wxDateTime *) &_result_ref;
20125 }
20126
20127 wxPyEndAllowThreads(__tstate);
20128 if (PyErr_Occurred()) SWIG_fail;
20129 }
20130 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20131 return resultobj;
20132 fail:
20133 return NULL;
20134 }
20135
20136
20137 static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) {
20138 PyObject *resultobj;
20139 wxDateTime *arg1 = (wxDateTime *) 0 ;
20140 wxDateSpan *arg2 = 0 ;
20141 wxDateTime *result;
20142 PyObject * obj0 = 0 ;
20143 PyObject * obj1 = 0 ;
20144
20145 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20148 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20149 SWIG_POINTER_EXCEPTION | 0)) == -1)
20150 SWIG_fail;
20151 if (arg2 == NULL) {
20152 PyErr_SetString(PyExc_TypeError,"null reference");
20153 SWIG_fail;
20154 }
20155 {
20156 PyThreadState* __tstate = wxPyBeginAllowThreads();
20157 {
20158 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
20159 result = (wxDateTime *) &_result_ref;
20160 }
20161
20162 wxPyEndAllowThreads(__tstate);
20163 if (PyErr_Occurred()) SWIG_fail;
20164 }
20165 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20166 return resultobj;
20167 fail:
20168 return NULL;
20169 }
20170
20171
20172 static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
20173 int argc;
20174 PyObject *argv[3];
20175 int ii;
20176
20177 argc = PyObject_Length(args);
20178 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20179 argv[ii] = PyTuple_GetItem(args,ii);
20180 }
20181 if (argc == 2) {
20182 int _v;
20183 {
20184 void *ptr;
20185 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20186 _v = 0;
20187 PyErr_Clear();
20188 } else {
20189 _v = 1;
20190 }
20191 }
20192 if (_v) {
20193 {
20194 void *ptr;
20195 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20196 _v = 0;
20197 PyErr_Clear();
20198 } else {
20199 _v = 1;
20200 }
20201 }
20202 if (_v) {
20203 return _wrap_DateTime___isub____SWIG_0(self,args);
20204 }
20205 }
20206 }
20207 if (argc == 2) {
20208 int _v;
20209 {
20210 void *ptr;
20211 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20212 _v = 0;
20213 PyErr_Clear();
20214 } else {
20215 _v = 1;
20216 }
20217 }
20218 if (_v) {
20219 {
20220 void *ptr;
20221 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20222 _v = 0;
20223 PyErr_Clear();
20224 } else {
20225 _v = 1;
20226 }
20227 }
20228 if (_v) {
20229 return _wrap_DateTime___isub____SWIG_1(self,args);
20230 }
20231 }
20232 }
20233
20234 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
20235 return NULL;
20236 }
20237
20238
20239 static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) {
20240 PyObject *resultobj;
20241 wxDateTime *arg1 = (wxDateTime *) 0 ;
20242 wxTimeSpan *arg2 = 0 ;
20243 wxDateTime result;
20244 PyObject * obj0 = 0 ;
20245 PyObject * obj1 = 0 ;
20246
20247 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20250 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20251 SWIG_POINTER_EXCEPTION | 0)) == -1)
20252 SWIG_fail;
20253 if (arg2 == NULL) {
20254 PyErr_SetString(PyExc_TypeError,"null reference");
20255 SWIG_fail;
20256 }
20257 {
20258 PyThreadState* __tstate = wxPyBeginAllowThreads();
20259 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
20260
20261 wxPyEndAllowThreads(__tstate);
20262 if (PyErr_Occurred()) SWIG_fail;
20263 }
20264 {
20265 wxDateTime * resultptr;
20266 resultptr = new wxDateTime((wxDateTime &) result);
20267 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20268 }
20269 return resultobj;
20270 fail:
20271 return NULL;
20272 }
20273
20274
20275 static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) {
20276 PyObject *resultobj;
20277 wxDateTime *arg1 = (wxDateTime *) 0 ;
20278 wxDateSpan *arg2 = 0 ;
20279 wxDateTime result;
20280 PyObject * obj0 = 0 ;
20281 PyObject * obj1 = 0 ;
20282
20283 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20286 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20287 SWIG_POINTER_EXCEPTION | 0)) == -1)
20288 SWIG_fail;
20289 if (arg2 == NULL) {
20290 PyErr_SetString(PyExc_TypeError,"null reference");
20291 SWIG_fail;
20292 }
20293 {
20294 PyThreadState* __tstate = wxPyBeginAllowThreads();
20295 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
20296
20297 wxPyEndAllowThreads(__tstate);
20298 if (PyErr_Occurred()) SWIG_fail;
20299 }
20300 {
20301 wxDateTime * resultptr;
20302 resultptr = new wxDateTime((wxDateTime &) result);
20303 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20304 }
20305 return resultobj;
20306 fail:
20307 return NULL;
20308 }
20309
20310
20311 static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
20312 int argc;
20313 PyObject *argv[3];
20314 int ii;
20315
20316 argc = PyObject_Length(args);
20317 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20318 argv[ii] = PyTuple_GetItem(args,ii);
20319 }
20320 if (argc == 2) {
20321 int _v;
20322 {
20323 void *ptr;
20324 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20325 _v = 0;
20326 PyErr_Clear();
20327 } else {
20328 _v = 1;
20329 }
20330 }
20331 if (_v) {
20332 {
20333 void *ptr;
20334 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20335 _v = 0;
20336 PyErr_Clear();
20337 } else {
20338 _v = 1;
20339 }
20340 }
20341 if (_v) {
20342 return _wrap_DateTime___add____SWIG_0(self,args);
20343 }
20344 }
20345 }
20346 if (argc == 2) {
20347 int _v;
20348 {
20349 void *ptr;
20350 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20351 _v = 0;
20352 PyErr_Clear();
20353 } else {
20354 _v = 1;
20355 }
20356 }
20357 if (_v) {
20358 {
20359 void *ptr;
20360 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20361 _v = 0;
20362 PyErr_Clear();
20363 } else {
20364 _v = 1;
20365 }
20366 }
20367 if (_v) {
20368 return _wrap_DateTime___add____SWIG_1(self,args);
20369 }
20370 }
20371 }
20372
20373 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
20374 return NULL;
20375 }
20376
20377
20378 static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) {
20379 PyObject *resultobj;
20380 wxDateTime *arg1 = (wxDateTime *) 0 ;
20381 wxDateTime *arg2 = 0 ;
20382 wxTimeSpan result;
20383 PyObject * obj0 = 0 ;
20384 PyObject * obj1 = 0 ;
20385
20386 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20389 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20390 SWIG_POINTER_EXCEPTION | 0)) == -1)
20391 SWIG_fail;
20392 if (arg2 == NULL) {
20393 PyErr_SetString(PyExc_TypeError,"null reference");
20394 SWIG_fail;
20395 }
20396 {
20397 PyThreadState* __tstate = wxPyBeginAllowThreads();
20398 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
20399
20400 wxPyEndAllowThreads(__tstate);
20401 if (PyErr_Occurred()) SWIG_fail;
20402 }
20403 {
20404 wxTimeSpan * resultptr;
20405 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20406 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20407 }
20408 return resultobj;
20409 fail:
20410 return NULL;
20411 }
20412
20413
20414 static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) {
20415 PyObject *resultobj;
20416 wxDateTime *arg1 = (wxDateTime *) 0 ;
20417 wxTimeSpan *arg2 = 0 ;
20418 wxDateTime result;
20419 PyObject * obj0 = 0 ;
20420 PyObject * obj1 = 0 ;
20421
20422 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20425 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20426 SWIG_POINTER_EXCEPTION | 0)) == -1)
20427 SWIG_fail;
20428 if (arg2 == NULL) {
20429 PyErr_SetString(PyExc_TypeError,"null reference");
20430 SWIG_fail;
20431 }
20432 {
20433 PyThreadState* __tstate = wxPyBeginAllowThreads();
20434 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
20435
20436 wxPyEndAllowThreads(__tstate);
20437 if (PyErr_Occurred()) SWIG_fail;
20438 }
20439 {
20440 wxDateTime * resultptr;
20441 resultptr = new wxDateTime((wxDateTime &) result);
20442 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20443 }
20444 return resultobj;
20445 fail:
20446 return NULL;
20447 }
20448
20449
20450 static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) {
20451 PyObject *resultobj;
20452 wxDateTime *arg1 = (wxDateTime *) 0 ;
20453 wxDateSpan *arg2 = 0 ;
20454 wxDateTime result;
20455 PyObject * obj0 = 0 ;
20456 PyObject * obj1 = 0 ;
20457
20458 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20461 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20462 SWIG_POINTER_EXCEPTION | 0)) == -1)
20463 SWIG_fail;
20464 if (arg2 == NULL) {
20465 PyErr_SetString(PyExc_TypeError,"null reference");
20466 SWIG_fail;
20467 }
20468 {
20469 PyThreadState* __tstate = wxPyBeginAllowThreads();
20470 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
20471
20472 wxPyEndAllowThreads(__tstate);
20473 if (PyErr_Occurred()) SWIG_fail;
20474 }
20475 {
20476 wxDateTime * resultptr;
20477 resultptr = new wxDateTime((wxDateTime &) result);
20478 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20479 }
20480 return resultobj;
20481 fail:
20482 return NULL;
20483 }
20484
20485
20486 static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
20487 int argc;
20488 PyObject *argv[3];
20489 int ii;
20490
20491 argc = PyObject_Length(args);
20492 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20493 argv[ii] = PyTuple_GetItem(args,ii);
20494 }
20495 if (argc == 2) {
20496 int _v;
20497 {
20498 void *ptr;
20499 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20500 _v = 0;
20501 PyErr_Clear();
20502 } else {
20503 _v = 1;
20504 }
20505 }
20506 if (_v) {
20507 {
20508 void *ptr;
20509 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20510 _v = 0;
20511 PyErr_Clear();
20512 } else {
20513 _v = 1;
20514 }
20515 }
20516 if (_v) {
20517 return _wrap_DateTime___sub____SWIG_0(self,args);
20518 }
20519 }
20520 }
20521 if (argc == 2) {
20522 int _v;
20523 {
20524 void *ptr;
20525 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20526 _v = 0;
20527 PyErr_Clear();
20528 } else {
20529 _v = 1;
20530 }
20531 }
20532 if (_v) {
20533 {
20534 void *ptr;
20535 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20536 _v = 0;
20537 PyErr_Clear();
20538 } else {
20539 _v = 1;
20540 }
20541 }
20542 if (_v) {
20543 return _wrap_DateTime___sub____SWIG_1(self,args);
20544 }
20545 }
20546 }
20547 if (argc == 2) {
20548 int _v;
20549 {
20550 void *ptr;
20551 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20552 _v = 0;
20553 PyErr_Clear();
20554 } else {
20555 _v = 1;
20556 }
20557 }
20558 if (_v) {
20559 {
20560 void *ptr;
20561 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20562 _v = 0;
20563 PyErr_Clear();
20564 } else {
20565 _v = 1;
20566 }
20567 }
20568 if (_v) {
20569 return _wrap_DateTime___sub____SWIG_2(self,args);
20570 }
20571 }
20572 }
20573
20574 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
20575 return NULL;
20576 }
20577
20578
20579 static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) {
20580 PyObject *resultobj;
20581 wxDateTime *arg1 = (wxDateTime *) 0 ;
20582 wxDateTime *arg2 = (wxDateTime *) 0 ;
20583 bool result;
20584 PyObject * obj0 = 0 ;
20585 PyObject * obj1 = 0 ;
20586
20587 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
20588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20590 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20592 {
20593 PyThreadState* __tstate = wxPyBeginAllowThreads();
20594 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
20595
20596 wxPyEndAllowThreads(__tstate);
20597 if (PyErr_Occurred()) SWIG_fail;
20598 }
20599 {
20600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20601 }
20602 return resultobj;
20603 fail:
20604 return NULL;
20605 }
20606
20607
20608 static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) {
20609 PyObject *resultobj;
20610 wxDateTime *arg1 = (wxDateTime *) 0 ;
20611 wxDateTime *arg2 = (wxDateTime *) 0 ;
20612 bool result;
20613 PyObject * obj0 = 0 ;
20614 PyObject * obj1 = 0 ;
20615
20616 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
20617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20619 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20621 {
20622 PyThreadState* __tstate = wxPyBeginAllowThreads();
20623 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
20624
20625 wxPyEndAllowThreads(__tstate);
20626 if (PyErr_Occurred()) SWIG_fail;
20627 }
20628 {
20629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20630 }
20631 return resultobj;
20632 fail:
20633 return NULL;
20634 }
20635
20636
20637 static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) {
20638 PyObject *resultobj;
20639 wxDateTime *arg1 = (wxDateTime *) 0 ;
20640 wxDateTime *arg2 = (wxDateTime *) 0 ;
20641 bool result;
20642 PyObject * obj0 = 0 ;
20643 PyObject * obj1 = 0 ;
20644
20645 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
20646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20648 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20650 {
20651 PyThreadState* __tstate = wxPyBeginAllowThreads();
20652 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
20653
20654 wxPyEndAllowThreads(__tstate);
20655 if (PyErr_Occurred()) SWIG_fail;
20656 }
20657 {
20658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20659 }
20660 return resultobj;
20661 fail:
20662 return NULL;
20663 }
20664
20665
20666 static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) {
20667 PyObject *resultobj;
20668 wxDateTime *arg1 = (wxDateTime *) 0 ;
20669 wxDateTime *arg2 = (wxDateTime *) 0 ;
20670 bool result;
20671 PyObject * obj0 = 0 ;
20672 PyObject * obj1 = 0 ;
20673
20674 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail;
20675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20677 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20679 {
20680 PyThreadState* __tstate = wxPyBeginAllowThreads();
20681 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
20682
20683 wxPyEndAllowThreads(__tstate);
20684 if (PyErr_Occurred()) SWIG_fail;
20685 }
20686 {
20687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20688 }
20689 return resultobj;
20690 fail:
20691 return NULL;
20692 }
20693
20694
20695 static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) {
20696 PyObject *resultobj;
20697 wxDateTime *arg1 = (wxDateTime *) 0 ;
20698 wxDateTime *arg2 = (wxDateTime *) 0 ;
20699 bool result;
20700 PyObject * obj0 = 0 ;
20701 PyObject * obj1 = 0 ;
20702
20703 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail;
20704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20706 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20708 {
20709 PyThreadState* __tstate = wxPyBeginAllowThreads();
20710 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
20711
20712 wxPyEndAllowThreads(__tstate);
20713 if (PyErr_Occurred()) SWIG_fail;
20714 }
20715 {
20716 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20717 }
20718 return resultobj;
20719 fail:
20720 return NULL;
20721 }
20722
20723
20724 static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) {
20725 PyObject *resultobj;
20726 wxDateTime *arg1 = (wxDateTime *) 0 ;
20727 wxDateTime *arg2 = (wxDateTime *) 0 ;
20728 bool result;
20729 PyObject * obj0 = 0 ;
20730 PyObject * obj1 = 0 ;
20731
20732 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail;
20733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20735 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20737 {
20738 PyThreadState* __tstate = wxPyBeginAllowThreads();
20739 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
20740
20741 wxPyEndAllowThreads(__tstate);
20742 if (PyErr_Occurred()) SWIG_fail;
20743 }
20744 {
20745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20746 }
20747 return resultobj;
20748 fail:
20749 return NULL;
20750 }
20751
20752
20753 static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) {
20754 PyObject *resultobj;
20755 wxDateTime *arg1 = (wxDateTime *) 0 ;
20756 wxString *arg2 = 0 ;
20757 int result;
20758 bool temp2 = False ;
20759 PyObject * obj0 = 0 ;
20760 PyObject * obj1 = 0 ;
20761 char *kwnames[] = {
20762 (char *) "self",(char *) "date", NULL
20763 };
20764
20765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
20766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20768 {
20769 arg2 = wxString_in_helper(obj1);
20770 if (arg2 == NULL) SWIG_fail;
20771 temp2 = True;
20772 }
20773 {
20774 PyThreadState* __tstate = wxPyBeginAllowThreads();
20775 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
20776
20777 wxPyEndAllowThreads(__tstate);
20778 if (PyErr_Occurred()) SWIG_fail;
20779 }
20780 resultobj = SWIG_FromInt((int)result);
20781 {
20782 if (temp2)
20783 delete arg2;
20784 }
20785 return resultobj;
20786 fail:
20787 {
20788 if (temp2)
20789 delete arg2;
20790 }
20791 return NULL;
20792 }
20793
20794
20795 static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
20796 PyObject *resultobj;
20797 wxDateTime *arg1 = (wxDateTime *) 0 ;
20798 wxString *arg2 = 0 ;
20799 wxString const &arg3_defvalue = wxPyDateFormatStr ;
20800 wxString *arg3 = (wxString *) &arg3_defvalue ;
20801 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
20802 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
20803 int result;
20804 bool temp2 = False ;
20805 bool temp3 = False ;
20806 PyObject * obj0 = 0 ;
20807 PyObject * obj1 = 0 ;
20808 PyObject * obj2 = 0 ;
20809 PyObject * obj3 = 0 ;
20810 char *kwnames[] = {
20811 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
20812 };
20813
20814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20817 {
20818 arg2 = wxString_in_helper(obj1);
20819 if (arg2 == NULL) SWIG_fail;
20820 temp2 = True;
20821 }
20822 if (obj2) {
20823 {
20824 arg3 = wxString_in_helper(obj2);
20825 if (arg3 == NULL) SWIG_fail;
20826 temp3 = True;
20827 }
20828 }
20829 if (obj3) {
20830 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime,
20831 SWIG_POINTER_EXCEPTION | 0)) == -1)
20832 SWIG_fail;
20833 if (arg4 == NULL) {
20834 PyErr_SetString(PyExc_TypeError,"null reference");
20835 SWIG_fail;
20836 }
20837 }
20838 {
20839 PyThreadState* __tstate = wxPyBeginAllowThreads();
20840 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
20841
20842 wxPyEndAllowThreads(__tstate);
20843 if (PyErr_Occurred()) SWIG_fail;
20844 }
20845 resultobj = SWIG_FromInt((int)result);
20846 {
20847 if (temp2)
20848 delete arg2;
20849 }
20850 {
20851 if (temp3)
20852 delete arg3;
20853 }
20854 return resultobj;
20855 fail:
20856 {
20857 if (temp2)
20858 delete arg2;
20859 }
20860 {
20861 if (temp3)
20862 delete arg3;
20863 }
20864 return NULL;
20865 }
20866
20867
20868 static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20869 PyObject *resultobj;
20870 wxDateTime *arg1 = (wxDateTime *) 0 ;
20871 wxString *arg2 = 0 ;
20872 int result;
20873 bool temp2 = False ;
20874 PyObject * obj0 = 0 ;
20875 PyObject * obj1 = 0 ;
20876 char *kwnames[] = {
20877 (char *) "self",(char *) "datetime", NULL
20878 };
20879
20880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
20881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20883 {
20884 arg2 = wxString_in_helper(obj1);
20885 if (arg2 == NULL) SWIG_fail;
20886 temp2 = True;
20887 }
20888 {
20889 PyThreadState* __tstate = wxPyBeginAllowThreads();
20890 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
20891
20892 wxPyEndAllowThreads(__tstate);
20893 if (PyErr_Occurred()) SWIG_fail;
20894 }
20895 resultobj = SWIG_FromInt((int)result);
20896 {
20897 if (temp2)
20898 delete arg2;
20899 }
20900 return resultobj;
20901 fail:
20902 {
20903 if (temp2)
20904 delete arg2;
20905 }
20906 return NULL;
20907 }
20908
20909
20910 static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) {
20911 PyObject *resultobj;
20912 wxDateTime *arg1 = (wxDateTime *) 0 ;
20913 wxString *arg2 = 0 ;
20914 int result;
20915 bool temp2 = False ;
20916 PyObject * obj0 = 0 ;
20917 PyObject * obj1 = 0 ;
20918 char *kwnames[] = {
20919 (char *) "self",(char *) "date", NULL
20920 };
20921
20922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
20923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20925 {
20926 arg2 = wxString_in_helper(obj1);
20927 if (arg2 == NULL) SWIG_fail;
20928 temp2 = True;
20929 }
20930 {
20931 PyThreadState* __tstate = wxPyBeginAllowThreads();
20932 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
20933
20934 wxPyEndAllowThreads(__tstate);
20935 if (PyErr_Occurred()) SWIG_fail;
20936 }
20937 resultobj = SWIG_FromInt((int)result);
20938 {
20939 if (temp2)
20940 delete arg2;
20941 }
20942 return resultobj;
20943 fail:
20944 {
20945 if (temp2)
20946 delete arg2;
20947 }
20948 return NULL;
20949 }
20950
20951
20952 static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20953 PyObject *resultobj;
20954 wxDateTime *arg1 = (wxDateTime *) 0 ;
20955 wxString *arg2 = 0 ;
20956 int result;
20957 bool temp2 = False ;
20958 PyObject * obj0 = 0 ;
20959 PyObject * obj1 = 0 ;
20960 char *kwnames[] = {
20961 (char *) "self",(char *) "time", NULL
20962 };
20963
20964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
20965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20967 {
20968 arg2 = wxString_in_helper(obj1);
20969 if (arg2 == NULL) SWIG_fail;
20970 temp2 = True;
20971 }
20972 {
20973 PyThreadState* __tstate = wxPyBeginAllowThreads();
20974 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
20975
20976 wxPyEndAllowThreads(__tstate);
20977 if (PyErr_Occurred()) SWIG_fail;
20978 }
20979 resultobj = SWIG_FromInt((int)result);
20980 {
20981 if (temp2)
20982 delete arg2;
20983 }
20984 return resultobj;
20985 fail:
20986 {
20987 if (temp2)
20988 delete arg2;
20989 }
20990 return NULL;
20991 }
20992
20993
20994 static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
20995 PyObject *resultobj;
20996 wxDateTime *arg1 = (wxDateTime *) 0 ;
20997 wxString const &arg2_defvalue = wxPyDateFormatStr ;
20998 wxString *arg2 = (wxString *) &arg2_defvalue ;
20999 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
21000 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
21001 wxString result;
21002 bool temp2 = False ;
21003 bool temp3 = False ;
21004 PyObject * obj0 = 0 ;
21005 PyObject * obj1 = 0 ;
21006 PyObject * obj2 = 0 ;
21007 char *kwnames[] = {
21008 (char *) "self",(char *) "format",(char *) "tz", NULL
21009 };
21010
21011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
21012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21014 if (obj1) {
21015 {
21016 arg2 = wxString_in_helper(obj1);
21017 if (arg2 == NULL) SWIG_fail;
21018 temp2 = True;
21019 }
21020 }
21021 if (obj2) {
21022 {
21023 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
21024 temp3 = True;
21025 }
21026 }
21027 {
21028 PyThreadState* __tstate = wxPyBeginAllowThreads();
21029 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
21030
21031 wxPyEndAllowThreads(__tstate);
21032 if (PyErr_Occurred()) SWIG_fail;
21033 }
21034 {
21035 #if wxUSE_UNICODE
21036 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21037 #else
21038 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21039 #endif
21040 }
21041 {
21042 if (temp2)
21043 delete arg2;
21044 }
21045 {
21046 if (temp3) delete arg3;
21047 }
21048 return resultobj;
21049 fail:
21050 {
21051 if (temp2)
21052 delete arg2;
21053 }
21054 {
21055 if (temp3) delete arg3;
21056 }
21057 return NULL;
21058 }
21059
21060
21061 static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) {
21062 PyObject *resultobj;
21063 wxDateTime *arg1 = (wxDateTime *) 0 ;
21064 wxString result;
21065 PyObject * obj0 = 0 ;
21066 char *kwnames[] = {
21067 (char *) "self", NULL
21068 };
21069
21070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
21071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21073 {
21074 PyThreadState* __tstate = wxPyBeginAllowThreads();
21075 result = ((wxDateTime const *)arg1)->FormatDate();
21076
21077 wxPyEndAllowThreads(__tstate);
21078 if (PyErr_Occurred()) SWIG_fail;
21079 }
21080 {
21081 #if wxUSE_UNICODE
21082 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21083 #else
21084 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21085 #endif
21086 }
21087 return resultobj;
21088 fail:
21089 return NULL;
21090 }
21091
21092
21093 static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21094 PyObject *resultobj;
21095 wxDateTime *arg1 = (wxDateTime *) 0 ;
21096 wxString result;
21097 PyObject * obj0 = 0 ;
21098 char *kwnames[] = {
21099 (char *) "self", NULL
21100 };
21101
21102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
21103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21105 {
21106 PyThreadState* __tstate = wxPyBeginAllowThreads();
21107 result = ((wxDateTime const *)arg1)->FormatTime();
21108
21109 wxPyEndAllowThreads(__tstate);
21110 if (PyErr_Occurred()) SWIG_fail;
21111 }
21112 {
21113 #if wxUSE_UNICODE
21114 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21115 #else
21116 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21117 #endif
21118 }
21119 return resultobj;
21120 fail:
21121 return NULL;
21122 }
21123
21124
21125 static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) {
21126 PyObject *resultobj;
21127 wxDateTime *arg1 = (wxDateTime *) 0 ;
21128 wxString result;
21129 PyObject * obj0 = 0 ;
21130 char *kwnames[] = {
21131 (char *) "self", NULL
21132 };
21133
21134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
21135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21137 {
21138 PyThreadState* __tstate = wxPyBeginAllowThreads();
21139 result = ((wxDateTime const *)arg1)->FormatISODate();
21140
21141 wxPyEndAllowThreads(__tstate);
21142 if (PyErr_Occurred()) SWIG_fail;
21143 }
21144 {
21145 #if wxUSE_UNICODE
21146 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21147 #else
21148 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21149 #endif
21150 }
21151 return resultobj;
21152 fail:
21153 return NULL;
21154 }
21155
21156
21157 static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21158 PyObject *resultobj;
21159 wxDateTime *arg1 = (wxDateTime *) 0 ;
21160 wxString result;
21161 PyObject * obj0 = 0 ;
21162 char *kwnames[] = {
21163 (char *) "self", NULL
21164 };
21165
21166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
21167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21169 {
21170 PyThreadState* __tstate = wxPyBeginAllowThreads();
21171 result = ((wxDateTime const *)arg1)->FormatISOTime();
21172
21173 wxPyEndAllowThreads(__tstate);
21174 if (PyErr_Occurred()) SWIG_fail;
21175 }
21176 {
21177 #if wxUSE_UNICODE
21178 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21179 #else
21180 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21181 #endif
21182 }
21183 return resultobj;
21184 fail:
21185 return NULL;
21186 }
21187
21188
21189 static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) {
21190 PyObject *obj;
21191 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21192 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
21193 Py_INCREF(obj);
21194 return Py_BuildValue((char *)"");
21195 }
21196 static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) {
21197 PyObject *resultobj;
21198 long arg1 ;
21199 wxTimeSpan result;
21200 PyObject * obj0 = 0 ;
21201 char *kwnames[] = {
21202 (char *) "sec", NULL
21203 };
21204
21205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
21206 arg1 = (long) SWIG_AsLong(obj0);
21207 if (PyErr_Occurred()) SWIG_fail;
21208 {
21209 PyThreadState* __tstate = wxPyBeginAllowThreads();
21210 result = wxTimeSpan::Seconds(arg1);
21211
21212 wxPyEndAllowThreads(__tstate);
21213 if (PyErr_Occurred()) SWIG_fail;
21214 }
21215 {
21216 wxTimeSpan * resultptr;
21217 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21218 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21219 }
21220 return resultobj;
21221 fail:
21222 return NULL;
21223 }
21224
21225
21226 static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) {
21227 PyObject *resultobj;
21228 wxTimeSpan result;
21229 char *kwnames[] = {
21230 NULL
21231 };
21232
21233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
21234 {
21235 PyThreadState* __tstate = wxPyBeginAllowThreads();
21236 result = wxTimeSpan::Second();
21237
21238 wxPyEndAllowThreads(__tstate);
21239 if (PyErr_Occurred()) SWIG_fail;
21240 }
21241 {
21242 wxTimeSpan * resultptr;
21243 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21244 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21245 }
21246 return resultobj;
21247 fail:
21248 return NULL;
21249 }
21250
21251
21252 static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) {
21253 PyObject *resultobj;
21254 long arg1 ;
21255 wxTimeSpan result;
21256 PyObject * obj0 = 0 ;
21257 char *kwnames[] = {
21258 (char *) "min", NULL
21259 };
21260
21261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
21262 arg1 = (long) SWIG_AsLong(obj0);
21263 if (PyErr_Occurred()) SWIG_fail;
21264 {
21265 PyThreadState* __tstate = wxPyBeginAllowThreads();
21266 result = wxTimeSpan::Minutes(arg1);
21267
21268 wxPyEndAllowThreads(__tstate);
21269 if (PyErr_Occurred()) SWIG_fail;
21270 }
21271 {
21272 wxTimeSpan * resultptr;
21273 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21274 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21275 }
21276 return resultobj;
21277 fail:
21278 return NULL;
21279 }
21280
21281
21282 static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) {
21283 PyObject *resultobj;
21284 wxTimeSpan result;
21285 char *kwnames[] = {
21286 NULL
21287 };
21288
21289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
21290 {
21291 PyThreadState* __tstate = wxPyBeginAllowThreads();
21292 result = wxTimeSpan::Minute();
21293
21294 wxPyEndAllowThreads(__tstate);
21295 if (PyErr_Occurred()) SWIG_fail;
21296 }
21297 {
21298 wxTimeSpan * resultptr;
21299 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21300 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21301 }
21302 return resultobj;
21303 fail:
21304 return NULL;
21305 }
21306
21307
21308 static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) {
21309 PyObject *resultobj;
21310 long arg1 ;
21311 wxTimeSpan result;
21312 PyObject * obj0 = 0 ;
21313 char *kwnames[] = {
21314 (char *) "hours", NULL
21315 };
21316
21317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
21318 arg1 = (long) SWIG_AsLong(obj0);
21319 if (PyErr_Occurred()) SWIG_fail;
21320 {
21321 PyThreadState* __tstate = wxPyBeginAllowThreads();
21322 result = wxTimeSpan::Hours(arg1);
21323
21324 wxPyEndAllowThreads(__tstate);
21325 if (PyErr_Occurred()) SWIG_fail;
21326 }
21327 {
21328 wxTimeSpan * resultptr;
21329 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21330 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21331 }
21332 return resultobj;
21333 fail:
21334 return NULL;
21335 }
21336
21337
21338 static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) {
21339 PyObject *resultobj;
21340 wxTimeSpan result;
21341 char *kwnames[] = {
21342 NULL
21343 };
21344
21345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
21346 {
21347 PyThreadState* __tstate = wxPyBeginAllowThreads();
21348 result = wxTimeSpan::Hour();
21349
21350 wxPyEndAllowThreads(__tstate);
21351 if (PyErr_Occurred()) SWIG_fail;
21352 }
21353 {
21354 wxTimeSpan * resultptr;
21355 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21356 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21357 }
21358 return resultobj;
21359 fail:
21360 return NULL;
21361 }
21362
21363
21364 static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
21365 PyObject *resultobj;
21366 long arg1 ;
21367 wxTimeSpan result;
21368 PyObject * obj0 = 0 ;
21369 char *kwnames[] = {
21370 (char *) "days", NULL
21371 };
21372
21373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
21374 arg1 = (long) SWIG_AsLong(obj0);
21375 if (PyErr_Occurred()) SWIG_fail;
21376 {
21377 PyThreadState* __tstate = wxPyBeginAllowThreads();
21378 result = wxTimeSpan::Days(arg1);
21379
21380 wxPyEndAllowThreads(__tstate);
21381 if (PyErr_Occurred()) SWIG_fail;
21382 }
21383 {
21384 wxTimeSpan * resultptr;
21385 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21386 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21387 }
21388 return resultobj;
21389 fail:
21390 return NULL;
21391 }
21392
21393
21394 static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
21395 PyObject *resultobj;
21396 wxTimeSpan result;
21397 char *kwnames[] = {
21398 NULL
21399 };
21400
21401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
21402 {
21403 PyThreadState* __tstate = wxPyBeginAllowThreads();
21404 result = wxTimeSpan::Day();
21405
21406 wxPyEndAllowThreads(__tstate);
21407 if (PyErr_Occurred()) SWIG_fail;
21408 }
21409 {
21410 wxTimeSpan * resultptr;
21411 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21412 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21413 }
21414 return resultobj;
21415 fail:
21416 return NULL;
21417 }
21418
21419
21420 static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
21421 PyObject *resultobj;
21422 long arg1 ;
21423 wxTimeSpan result;
21424 PyObject * obj0 = 0 ;
21425 char *kwnames[] = {
21426 (char *) "days", NULL
21427 };
21428
21429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
21430 arg1 = (long) SWIG_AsLong(obj0);
21431 if (PyErr_Occurred()) SWIG_fail;
21432 {
21433 PyThreadState* __tstate = wxPyBeginAllowThreads();
21434 result = wxTimeSpan::Weeks(arg1);
21435
21436 wxPyEndAllowThreads(__tstate);
21437 if (PyErr_Occurred()) SWIG_fail;
21438 }
21439 {
21440 wxTimeSpan * resultptr;
21441 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21442 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21443 }
21444 return resultobj;
21445 fail:
21446 return NULL;
21447 }
21448
21449
21450 static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
21451 PyObject *resultobj;
21452 wxTimeSpan result;
21453 char *kwnames[] = {
21454 NULL
21455 };
21456
21457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
21458 {
21459 PyThreadState* __tstate = wxPyBeginAllowThreads();
21460 result = wxTimeSpan::Week();
21461
21462 wxPyEndAllowThreads(__tstate);
21463 if (PyErr_Occurred()) SWIG_fail;
21464 }
21465 {
21466 wxTimeSpan * resultptr;
21467 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21468 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21469 }
21470 return resultobj;
21471 fail:
21472 return NULL;
21473 }
21474
21475
21476 static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21477 PyObject *resultobj;
21478 long arg1 = (long) 0 ;
21479 long arg2 = (long) 0 ;
21480 long arg3 = (long) 0 ;
21481 long arg4 = (long) 0 ;
21482 wxTimeSpan *result;
21483 PyObject * obj0 = 0 ;
21484 PyObject * obj1 = 0 ;
21485 PyObject * obj2 = 0 ;
21486 PyObject * obj3 = 0 ;
21487 char *kwnames[] = {
21488 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
21489 };
21490
21491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21492 if (obj0) {
21493 arg1 = (long) SWIG_AsLong(obj0);
21494 if (PyErr_Occurred()) SWIG_fail;
21495 }
21496 if (obj1) {
21497 arg2 = (long) SWIG_AsLong(obj1);
21498 if (PyErr_Occurred()) SWIG_fail;
21499 }
21500 if (obj2) {
21501 arg3 = (long) SWIG_AsLong(obj2);
21502 if (PyErr_Occurred()) SWIG_fail;
21503 }
21504 if (obj3) {
21505 arg4 = (long) SWIG_AsLong(obj3);
21506 if (PyErr_Occurred()) SWIG_fail;
21507 }
21508 {
21509 PyThreadState* __tstate = wxPyBeginAllowThreads();
21510 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
21511
21512 wxPyEndAllowThreads(__tstate);
21513 if (PyErr_Occurred()) SWIG_fail;
21514 }
21515 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
21516 return resultobj;
21517 fail:
21518 return NULL;
21519 }
21520
21521
21522 static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21523 PyObject *resultobj;
21524 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21525 PyObject * obj0 = 0 ;
21526 char *kwnames[] = {
21527 (char *) "self", NULL
21528 };
21529
21530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
21531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21533 {
21534 PyThreadState* __tstate = wxPyBeginAllowThreads();
21535 delete arg1;
21536
21537 wxPyEndAllowThreads(__tstate);
21538 if (PyErr_Occurred()) SWIG_fail;
21539 }
21540 Py_INCREF(Py_None); resultobj = Py_None;
21541 return resultobj;
21542 fail:
21543 return NULL;
21544 }
21545
21546
21547 static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
21548 PyObject *resultobj;
21549 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21550 wxTimeSpan *arg2 = 0 ;
21551 wxTimeSpan *result;
21552 PyObject * obj0 = 0 ;
21553 PyObject * obj1 = 0 ;
21554 char *kwnames[] = {
21555 (char *) "self",(char *) "diff", NULL
21556 };
21557
21558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
21559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21561 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21562 SWIG_POINTER_EXCEPTION | 0)) == -1)
21563 SWIG_fail;
21564 if (arg2 == NULL) {
21565 PyErr_SetString(PyExc_TypeError,"null reference");
21566 SWIG_fail;
21567 }
21568 {
21569 PyThreadState* __tstate = wxPyBeginAllowThreads();
21570 {
21571 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
21572 result = (wxTimeSpan *) &_result_ref;
21573 }
21574
21575 wxPyEndAllowThreads(__tstate);
21576 if (PyErr_Occurred()) SWIG_fail;
21577 }
21578 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21579 return resultobj;
21580 fail:
21581 return NULL;
21582 }
21583
21584
21585 static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
21586 PyObject *resultobj;
21587 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21588 wxTimeSpan *arg2 = 0 ;
21589 wxTimeSpan *result;
21590 PyObject * obj0 = 0 ;
21591 PyObject * obj1 = 0 ;
21592 char *kwnames[] = {
21593 (char *) "self",(char *) "diff", NULL
21594 };
21595
21596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
21597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21599 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21600 SWIG_POINTER_EXCEPTION | 0)) == -1)
21601 SWIG_fail;
21602 if (arg2 == NULL) {
21603 PyErr_SetString(PyExc_TypeError,"null reference");
21604 SWIG_fail;
21605 }
21606 {
21607 PyThreadState* __tstate = wxPyBeginAllowThreads();
21608 {
21609 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
21610 result = (wxTimeSpan *) &_result_ref;
21611 }
21612
21613 wxPyEndAllowThreads(__tstate);
21614 if (PyErr_Occurred()) SWIG_fail;
21615 }
21616 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21617 return resultobj;
21618 fail:
21619 return NULL;
21620 }
21621
21622
21623 static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
21624 PyObject *resultobj;
21625 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21626 int arg2 ;
21627 wxTimeSpan *result;
21628 PyObject * obj0 = 0 ;
21629 PyObject * obj1 = 0 ;
21630 char *kwnames[] = {
21631 (char *) "self",(char *) "n", NULL
21632 };
21633
21634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
21635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21637 arg2 = (int) SWIG_AsInt(obj1);
21638 if (PyErr_Occurred()) SWIG_fail;
21639 {
21640 PyThreadState* __tstate = wxPyBeginAllowThreads();
21641 {
21642 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
21643 result = (wxTimeSpan *) &_result_ref;
21644 }
21645
21646 wxPyEndAllowThreads(__tstate);
21647 if (PyErr_Occurred()) SWIG_fail;
21648 }
21649 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21650 return resultobj;
21651 fail:
21652 return NULL;
21653 }
21654
21655
21656 static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
21657 PyObject *resultobj;
21658 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21659 wxTimeSpan *result;
21660 PyObject * obj0 = 0 ;
21661 char *kwnames[] = {
21662 (char *) "self", NULL
21663 };
21664
21665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
21666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21668 {
21669 PyThreadState* __tstate = wxPyBeginAllowThreads();
21670 {
21671 wxTimeSpan &_result_ref = (arg1)->Neg();
21672 result = (wxTimeSpan *) &_result_ref;
21673 }
21674
21675 wxPyEndAllowThreads(__tstate);
21676 if (PyErr_Occurred()) SWIG_fail;
21677 }
21678 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21679 return resultobj;
21680 fail:
21681 return NULL;
21682 }
21683
21684
21685 static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) {
21686 PyObject *resultobj;
21687 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21688 wxTimeSpan result;
21689 PyObject * obj0 = 0 ;
21690 char *kwnames[] = {
21691 (char *) "self", NULL
21692 };
21693
21694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
21695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21697 {
21698 PyThreadState* __tstate = wxPyBeginAllowThreads();
21699 result = ((wxTimeSpan const *)arg1)->Abs();
21700
21701 wxPyEndAllowThreads(__tstate);
21702 if (PyErr_Occurred()) SWIG_fail;
21703 }
21704 {
21705 wxTimeSpan * resultptr;
21706 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21707 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21708 }
21709 return resultobj;
21710 fail:
21711 return NULL;
21712 }
21713
21714
21715 static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
21716 PyObject *resultobj;
21717 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21718 wxTimeSpan *arg2 = 0 ;
21719 wxTimeSpan *result;
21720 PyObject * obj0 = 0 ;
21721 PyObject * obj1 = 0 ;
21722 char *kwnames[] = {
21723 (char *) "self",(char *) "diff", NULL
21724 };
21725
21726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
21727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21729 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21730 SWIG_POINTER_EXCEPTION | 0)) == -1)
21731 SWIG_fail;
21732 if (arg2 == NULL) {
21733 PyErr_SetString(PyExc_TypeError,"null reference");
21734 SWIG_fail;
21735 }
21736 {
21737 PyThreadState* __tstate = wxPyBeginAllowThreads();
21738 {
21739 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
21740 result = (wxTimeSpan *) &_result_ref;
21741 }
21742
21743 wxPyEndAllowThreads(__tstate);
21744 if (PyErr_Occurred()) SWIG_fail;
21745 }
21746 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21747 return resultobj;
21748 fail:
21749 return NULL;
21750 }
21751
21752
21753 static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21754 PyObject *resultobj;
21755 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21756 wxTimeSpan *arg2 = 0 ;
21757 wxTimeSpan *result;
21758 PyObject * obj0 = 0 ;
21759 PyObject * obj1 = 0 ;
21760 char *kwnames[] = {
21761 (char *) "self",(char *) "diff", NULL
21762 };
21763
21764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
21765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21767 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21768 SWIG_POINTER_EXCEPTION | 0)) == -1)
21769 SWIG_fail;
21770 if (arg2 == NULL) {
21771 PyErr_SetString(PyExc_TypeError,"null reference");
21772 SWIG_fail;
21773 }
21774 {
21775 PyThreadState* __tstate = wxPyBeginAllowThreads();
21776 {
21777 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
21778 result = (wxTimeSpan *) &_result_ref;
21779 }
21780
21781 wxPyEndAllowThreads(__tstate);
21782 if (PyErr_Occurred()) SWIG_fail;
21783 }
21784 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21785 return resultobj;
21786 fail:
21787 return NULL;
21788 }
21789
21790
21791 static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21792 PyObject *resultobj;
21793 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21794 int arg2 ;
21795 wxTimeSpan *result;
21796 PyObject * obj0 = 0 ;
21797 PyObject * obj1 = 0 ;
21798 char *kwnames[] = {
21799 (char *) "self",(char *) "n", NULL
21800 };
21801
21802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
21803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21805 arg2 = (int) SWIG_AsInt(obj1);
21806 if (PyErr_Occurred()) SWIG_fail;
21807 {
21808 PyThreadState* __tstate = wxPyBeginAllowThreads();
21809 {
21810 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
21811 result = (wxTimeSpan *) &_result_ref;
21812 }
21813
21814 wxPyEndAllowThreads(__tstate);
21815 if (PyErr_Occurred()) SWIG_fail;
21816 }
21817 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21818 return resultobj;
21819 fail:
21820 return NULL;
21821 }
21822
21823
21824 static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
21825 PyObject *resultobj;
21826 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21827 wxTimeSpan *result;
21828 PyObject * obj0 = 0 ;
21829 char *kwnames[] = {
21830 (char *) "self", NULL
21831 };
21832
21833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
21834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21836 {
21837 PyThreadState* __tstate = wxPyBeginAllowThreads();
21838 {
21839 wxTimeSpan &_result_ref = (arg1)->operator -();
21840 result = (wxTimeSpan *) &_result_ref;
21841 }
21842
21843 wxPyEndAllowThreads(__tstate);
21844 if (PyErr_Occurred()) SWIG_fail;
21845 }
21846 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21847 return resultobj;
21848 fail:
21849 return NULL;
21850 }
21851
21852
21853 static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
21854 PyObject *resultobj;
21855 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21856 wxTimeSpan *arg2 = 0 ;
21857 wxTimeSpan result;
21858 PyObject * obj0 = 0 ;
21859 PyObject * obj1 = 0 ;
21860 char *kwnames[] = {
21861 (char *) "self",(char *) "other", NULL
21862 };
21863
21864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
21865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21867 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21868 SWIG_POINTER_EXCEPTION | 0)) == -1)
21869 SWIG_fail;
21870 if (arg2 == NULL) {
21871 PyErr_SetString(PyExc_TypeError,"null reference");
21872 SWIG_fail;
21873 }
21874 {
21875 PyThreadState* __tstate = wxPyBeginAllowThreads();
21876 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
21877
21878 wxPyEndAllowThreads(__tstate);
21879 if (PyErr_Occurred()) SWIG_fail;
21880 }
21881 {
21882 wxTimeSpan * resultptr;
21883 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21884 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21885 }
21886 return resultobj;
21887 fail:
21888 return NULL;
21889 }
21890
21891
21892 static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21893 PyObject *resultobj;
21894 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21895 wxTimeSpan *arg2 = 0 ;
21896 wxTimeSpan result;
21897 PyObject * obj0 = 0 ;
21898 PyObject * obj1 = 0 ;
21899 char *kwnames[] = {
21900 (char *) "self",(char *) "other", NULL
21901 };
21902
21903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
21904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21906 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21907 SWIG_POINTER_EXCEPTION | 0)) == -1)
21908 SWIG_fail;
21909 if (arg2 == NULL) {
21910 PyErr_SetString(PyExc_TypeError,"null reference");
21911 SWIG_fail;
21912 }
21913 {
21914 PyThreadState* __tstate = wxPyBeginAllowThreads();
21915 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
21916
21917 wxPyEndAllowThreads(__tstate);
21918 if (PyErr_Occurred()) SWIG_fail;
21919 }
21920 {
21921 wxTimeSpan * resultptr;
21922 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21923 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21924 }
21925 return resultobj;
21926 fail:
21927 return NULL;
21928 }
21929
21930
21931 static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21932 PyObject *resultobj;
21933 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21934 int arg2 ;
21935 wxTimeSpan result;
21936 PyObject * obj0 = 0 ;
21937 PyObject * obj1 = 0 ;
21938 char *kwnames[] = {
21939 (char *) "self",(char *) "n", NULL
21940 };
21941
21942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
21943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21945 arg2 = (int) SWIG_AsInt(obj1);
21946 if (PyErr_Occurred()) SWIG_fail;
21947 {
21948 PyThreadState* __tstate = wxPyBeginAllowThreads();
21949 result = wxTimeSpan___mul__(arg1,arg2);
21950
21951 wxPyEndAllowThreads(__tstate);
21952 if (PyErr_Occurred()) SWIG_fail;
21953 }
21954 {
21955 wxTimeSpan * resultptr;
21956 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21957 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21958 }
21959 return resultobj;
21960 fail:
21961 return NULL;
21962 }
21963
21964
21965 static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21966 PyObject *resultobj;
21967 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21968 int arg2 ;
21969 wxTimeSpan result;
21970 PyObject * obj0 = 0 ;
21971 PyObject * obj1 = 0 ;
21972 char *kwnames[] = {
21973 (char *) "self",(char *) "n", NULL
21974 };
21975
21976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
21977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21979 arg2 = (int) SWIG_AsInt(obj1);
21980 if (PyErr_Occurred()) SWIG_fail;
21981 {
21982 PyThreadState* __tstate = wxPyBeginAllowThreads();
21983 result = wxTimeSpan___rmul__(arg1,arg2);
21984
21985 wxPyEndAllowThreads(__tstate);
21986 if (PyErr_Occurred()) SWIG_fail;
21987 }
21988 {
21989 wxTimeSpan * resultptr;
21990 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21991 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21992 }
21993 return resultobj;
21994 fail:
21995 return NULL;
21996 }
21997
21998
21999 static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) {
22000 PyObject *resultobj;
22001 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22002 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22003 bool result;
22004 PyObject * obj0 = 0 ;
22005 PyObject * obj1 = 0 ;
22006 char *kwnames[] = {
22007 (char *) "self",(char *) "other", NULL
22008 };
22009
22010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
22011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22013 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22015 {
22016 PyThreadState* __tstate = wxPyBeginAllowThreads();
22017 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
22018
22019 wxPyEndAllowThreads(__tstate);
22020 if (PyErr_Occurred()) SWIG_fail;
22021 }
22022 {
22023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22024 }
22025 return resultobj;
22026 fail:
22027 return NULL;
22028 }
22029
22030
22031 static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) {
22032 PyObject *resultobj;
22033 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22034 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22035 bool result;
22036 PyObject * obj0 = 0 ;
22037 PyObject * obj1 = 0 ;
22038 char *kwnames[] = {
22039 (char *) "self",(char *) "other", NULL
22040 };
22041
22042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
22043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22045 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22047 {
22048 PyThreadState* __tstate = wxPyBeginAllowThreads();
22049 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
22050
22051 wxPyEndAllowThreads(__tstate);
22052 if (PyErr_Occurred()) SWIG_fail;
22053 }
22054 {
22055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22056 }
22057 return resultobj;
22058 fail:
22059 return NULL;
22060 }
22061
22062
22063 static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) {
22064 PyObject *resultobj;
22065 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22066 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22067 bool result;
22068 PyObject * obj0 = 0 ;
22069 PyObject * obj1 = 0 ;
22070 char *kwnames[] = {
22071 (char *) "self",(char *) "other", NULL
22072 };
22073
22074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
22075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22077 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22079 {
22080 PyThreadState* __tstate = wxPyBeginAllowThreads();
22081 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
22082
22083 wxPyEndAllowThreads(__tstate);
22084 if (PyErr_Occurred()) SWIG_fail;
22085 }
22086 {
22087 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22088 }
22089 return resultobj;
22090 fail:
22091 return NULL;
22092 }
22093
22094
22095 static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) {
22096 PyObject *resultobj;
22097 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22098 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22099 bool result;
22100 PyObject * obj0 = 0 ;
22101 PyObject * obj1 = 0 ;
22102 char *kwnames[] = {
22103 (char *) "self",(char *) "other", NULL
22104 };
22105
22106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
22107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22109 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22111 {
22112 PyThreadState* __tstate = wxPyBeginAllowThreads();
22113 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
22114
22115 wxPyEndAllowThreads(__tstate);
22116 if (PyErr_Occurred()) SWIG_fail;
22117 }
22118 {
22119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22120 }
22121 return resultobj;
22122 fail:
22123 return NULL;
22124 }
22125
22126
22127 static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
22128 PyObject *resultobj;
22129 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22130 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22131 bool result;
22132 PyObject * obj0 = 0 ;
22133 PyObject * obj1 = 0 ;
22134 char *kwnames[] = {
22135 (char *) "self",(char *) "other", NULL
22136 };
22137
22138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
22139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22141 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22143 {
22144 PyThreadState* __tstate = wxPyBeginAllowThreads();
22145 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
22146
22147 wxPyEndAllowThreads(__tstate);
22148 if (PyErr_Occurred()) SWIG_fail;
22149 }
22150 {
22151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22152 }
22153 return resultobj;
22154 fail:
22155 return NULL;
22156 }
22157
22158
22159 static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
22160 PyObject *resultobj;
22161 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22162 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22163 bool result;
22164 PyObject * obj0 = 0 ;
22165 PyObject * obj1 = 0 ;
22166 char *kwnames[] = {
22167 (char *) "self",(char *) "other", NULL
22168 };
22169
22170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
22171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22173 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22175 {
22176 PyThreadState* __tstate = wxPyBeginAllowThreads();
22177 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
22178
22179 wxPyEndAllowThreads(__tstate);
22180 if (PyErr_Occurred()) SWIG_fail;
22181 }
22182 {
22183 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22184 }
22185 return resultobj;
22186 fail:
22187 return NULL;
22188 }
22189
22190
22191 static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
22192 PyObject *resultobj;
22193 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22194 bool result;
22195 PyObject * obj0 = 0 ;
22196 char *kwnames[] = {
22197 (char *) "self", NULL
22198 };
22199
22200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
22201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22203 {
22204 PyThreadState* __tstate = wxPyBeginAllowThreads();
22205 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
22206
22207 wxPyEndAllowThreads(__tstate);
22208 if (PyErr_Occurred()) SWIG_fail;
22209 }
22210 {
22211 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22212 }
22213 return resultobj;
22214 fail:
22215 return NULL;
22216 }
22217
22218
22219 static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) {
22220 PyObject *resultobj;
22221 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22222 bool result;
22223 PyObject * obj0 = 0 ;
22224 char *kwnames[] = {
22225 (char *) "self", NULL
22226 };
22227
22228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
22229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22231 {
22232 PyThreadState* __tstate = wxPyBeginAllowThreads();
22233 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
22234
22235 wxPyEndAllowThreads(__tstate);
22236 if (PyErr_Occurred()) SWIG_fail;
22237 }
22238 {
22239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22240 }
22241 return resultobj;
22242 fail:
22243 return NULL;
22244 }
22245
22246
22247 static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) {
22248 PyObject *resultobj;
22249 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22250 bool result;
22251 PyObject * obj0 = 0 ;
22252 char *kwnames[] = {
22253 (char *) "self", NULL
22254 };
22255
22256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
22257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22259 {
22260 PyThreadState* __tstate = wxPyBeginAllowThreads();
22261 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
22262
22263 wxPyEndAllowThreads(__tstate);
22264 if (PyErr_Occurred()) SWIG_fail;
22265 }
22266 {
22267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22268 }
22269 return resultobj;
22270 fail:
22271 return NULL;
22272 }
22273
22274
22275 static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
22276 PyObject *resultobj;
22277 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22278 wxTimeSpan *arg2 = 0 ;
22279 bool result;
22280 PyObject * obj0 = 0 ;
22281 PyObject * obj1 = 0 ;
22282 char *kwnames[] = {
22283 (char *) "self",(char *) "ts", NULL
22284 };
22285
22286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
22287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22289 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22290 SWIG_POINTER_EXCEPTION | 0)) == -1)
22291 SWIG_fail;
22292 if (arg2 == NULL) {
22293 PyErr_SetString(PyExc_TypeError,"null reference");
22294 SWIG_fail;
22295 }
22296 {
22297 PyThreadState* __tstate = wxPyBeginAllowThreads();
22298 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
22299
22300 wxPyEndAllowThreads(__tstate);
22301 if (PyErr_Occurred()) SWIG_fail;
22302 }
22303 {
22304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22305 }
22306 return resultobj;
22307 fail:
22308 return NULL;
22309 }
22310
22311
22312 static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22313 PyObject *resultobj;
22314 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22315 wxTimeSpan *arg2 = 0 ;
22316 bool result;
22317 PyObject * obj0 = 0 ;
22318 PyObject * obj1 = 0 ;
22319 char *kwnames[] = {
22320 (char *) "self",(char *) "ts", NULL
22321 };
22322
22323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
22324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22326 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22327 SWIG_POINTER_EXCEPTION | 0)) == -1)
22328 SWIG_fail;
22329 if (arg2 == NULL) {
22330 PyErr_SetString(PyExc_TypeError,"null reference");
22331 SWIG_fail;
22332 }
22333 {
22334 PyThreadState* __tstate = wxPyBeginAllowThreads();
22335 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
22336
22337 wxPyEndAllowThreads(__tstate);
22338 if (PyErr_Occurred()) SWIG_fail;
22339 }
22340 {
22341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22342 }
22343 return resultobj;
22344 fail:
22345 return NULL;
22346 }
22347
22348
22349 static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22350 PyObject *resultobj;
22351 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22352 wxTimeSpan *arg2 = 0 ;
22353 bool result;
22354 PyObject * obj0 = 0 ;
22355 PyObject * obj1 = 0 ;
22356 char *kwnames[] = {
22357 (char *) "self",(char *) "t", NULL
22358 };
22359
22360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
22361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22363 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22364 SWIG_POINTER_EXCEPTION | 0)) == -1)
22365 SWIG_fail;
22366 if (arg2 == NULL) {
22367 PyErr_SetString(PyExc_TypeError,"null reference");
22368 SWIG_fail;
22369 }
22370 {
22371 PyThreadState* __tstate = wxPyBeginAllowThreads();
22372 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
22373
22374 wxPyEndAllowThreads(__tstate);
22375 if (PyErr_Occurred()) SWIG_fail;
22376 }
22377 {
22378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22379 }
22380 return resultobj;
22381 fail:
22382 return NULL;
22383 }
22384
22385
22386 static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22387 PyObject *resultobj;
22388 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22389 int result;
22390 PyObject * obj0 = 0 ;
22391 char *kwnames[] = {
22392 (char *) "self", NULL
22393 };
22394
22395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
22396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22398 {
22399 PyThreadState* __tstate = wxPyBeginAllowThreads();
22400 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
22401
22402 wxPyEndAllowThreads(__tstate);
22403 if (PyErr_Occurred()) SWIG_fail;
22404 }
22405 resultobj = SWIG_FromInt((int)result);
22406 return resultobj;
22407 fail:
22408 return NULL;
22409 }
22410
22411
22412 static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22413 PyObject *resultobj;
22414 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22415 int result;
22416 PyObject * obj0 = 0 ;
22417 char *kwnames[] = {
22418 (char *) "self", NULL
22419 };
22420
22421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
22422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22424 {
22425 PyThreadState* __tstate = wxPyBeginAllowThreads();
22426 result = (int)((wxTimeSpan const *)arg1)->GetDays();
22427
22428 wxPyEndAllowThreads(__tstate);
22429 if (PyErr_Occurred()) SWIG_fail;
22430 }
22431 resultobj = SWIG_FromInt((int)result);
22432 return resultobj;
22433 fail:
22434 return NULL;
22435 }
22436
22437
22438 static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) {
22439 PyObject *resultobj;
22440 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22441 int result;
22442 PyObject * obj0 = 0 ;
22443 char *kwnames[] = {
22444 (char *) "self", NULL
22445 };
22446
22447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
22448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22450 {
22451 PyThreadState* __tstate = wxPyBeginAllowThreads();
22452 result = (int)((wxTimeSpan const *)arg1)->GetHours();
22453
22454 wxPyEndAllowThreads(__tstate);
22455 if (PyErr_Occurred()) SWIG_fail;
22456 }
22457 resultobj = SWIG_FromInt((int)result);
22458 return resultobj;
22459 fail:
22460 return NULL;
22461 }
22462
22463
22464 static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) {
22465 PyObject *resultobj;
22466 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22467 int result;
22468 PyObject * obj0 = 0 ;
22469 char *kwnames[] = {
22470 (char *) "self", NULL
22471 };
22472
22473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
22474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22476 {
22477 PyThreadState* __tstate = wxPyBeginAllowThreads();
22478 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
22479
22480 wxPyEndAllowThreads(__tstate);
22481 if (PyErr_Occurred()) SWIG_fail;
22482 }
22483 resultobj = SWIG_FromInt((int)result);
22484 return resultobj;
22485 fail:
22486 return NULL;
22487 }
22488
22489
22490 static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22491 PyObject *resultobj;
22492 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22493 wxLongLong result;
22494 PyObject * obj0 = 0 ;
22495 char *kwnames[] = {
22496 (char *) "self", NULL
22497 };
22498
22499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
22500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22502 {
22503 PyThreadState* __tstate = wxPyBeginAllowThreads();
22504 result = ((wxTimeSpan const *)arg1)->GetSeconds();
22505
22506 wxPyEndAllowThreads(__tstate);
22507 if (PyErr_Occurred()) SWIG_fail;
22508 }
22509 {
22510 PyObject *hi, *lo, *shifter, *shifted;
22511 hi = PyLong_FromLong( (&result)->GetHi() );
22512 lo = PyLong_FromLong( (&result)->GetLo() );
22513 shifter = PyLong_FromLong(32);
22514 shifted = PyNumber_Lshift(hi, shifter);
22515 resultobj = PyNumber_Or(shifted, lo);
22516 Py_DECREF(hi);
22517 Py_DECREF(lo);
22518 Py_DECREF(shifter);
22519 Py_DECREF(shifted);
22520 }
22521 return resultobj;
22522 fail:
22523 return NULL;
22524 }
22525
22526
22527 static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22528 PyObject *resultobj;
22529 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22530 wxLongLong result;
22531 PyObject * obj0 = 0 ;
22532 char *kwnames[] = {
22533 (char *) "self", NULL
22534 };
22535
22536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
22537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22539 {
22540 PyThreadState* __tstate = wxPyBeginAllowThreads();
22541 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
22542
22543 wxPyEndAllowThreads(__tstate);
22544 if (PyErr_Occurred()) SWIG_fail;
22545 }
22546 {
22547 PyObject *hi, *lo, *shifter, *shifted;
22548 hi = PyLong_FromLong( (&result)->GetHi() );
22549 lo = PyLong_FromLong( (&result)->GetLo() );
22550 shifter = PyLong_FromLong(32);
22551 shifted = PyNumber_Lshift(hi, shifter);
22552 resultobj = PyNumber_Or(shifted, lo);
22553 Py_DECREF(hi);
22554 Py_DECREF(lo);
22555 Py_DECREF(shifter);
22556 Py_DECREF(shifted);
22557 }
22558 return resultobj;
22559 fail:
22560 return NULL;
22561 }
22562
22563
22564 static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
22565 PyObject *resultobj;
22566 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22567 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
22568 wxString *arg2 = (wxString *) &arg2_defvalue ;
22569 wxString result;
22570 bool temp2 = False ;
22571 PyObject * obj0 = 0 ;
22572 PyObject * obj1 = 0 ;
22573 char *kwnames[] = {
22574 (char *) "self",(char *) "format", NULL
22575 };
22576
22577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
22578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22580 if (obj1) {
22581 {
22582 arg2 = wxString_in_helper(obj1);
22583 if (arg2 == NULL) SWIG_fail;
22584 temp2 = True;
22585 }
22586 }
22587 {
22588 PyThreadState* __tstate = wxPyBeginAllowThreads();
22589 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
22590
22591 wxPyEndAllowThreads(__tstate);
22592 if (PyErr_Occurred()) SWIG_fail;
22593 }
22594 {
22595 #if wxUSE_UNICODE
22596 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22597 #else
22598 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22599 #endif
22600 }
22601 {
22602 if (temp2)
22603 delete arg2;
22604 }
22605 return resultobj;
22606 fail:
22607 {
22608 if (temp2)
22609 delete arg2;
22610 }
22611 return NULL;
22612 }
22613
22614
22615 static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) {
22616 PyObject *obj;
22617 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22618 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
22619 Py_INCREF(obj);
22620 return Py_BuildValue((char *)"");
22621 }
22622 static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22623 PyObject *resultobj;
22624 int arg1 = (int) 0 ;
22625 int arg2 = (int) 0 ;
22626 int arg3 = (int) 0 ;
22627 int arg4 = (int) 0 ;
22628 wxDateSpan *result;
22629 PyObject * obj0 = 0 ;
22630 PyObject * obj1 = 0 ;
22631 PyObject * obj2 = 0 ;
22632 PyObject * obj3 = 0 ;
22633 char *kwnames[] = {
22634 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
22635 };
22636
22637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22638 if (obj0) {
22639 arg1 = (int) SWIG_AsInt(obj0);
22640 if (PyErr_Occurred()) SWIG_fail;
22641 }
22642 if (obj1) {
22643 arg2 = (int) SWIG_AsInt(obj1);
22644 if (PyErr_Occurred()) SWIG_fail;
22645 }
22646 if (obj2) {
22647 arg3 = (int) SWIG_AsInt(obj2);
22648 if (PyErr_Occurred()) SWIG_fail;
22649 }
22650 if (obj3) {
22651 arg4 = (int) SWIG_AsInt(obj3);
22652 if (PyErr_Occurred()) SWIG_fail;
22653 }
22654 {
22655 PyThreadState* __tstate = wxPyBeginAllowThreads();
22656 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
22657
22658 wxPyEndAllowThreads(__tstate);
22659 if (PyErr_Occurred()) SWIG_fail;
22660 }
22661 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
22662 return resultobj;
22663 fail:
22664 return NULL;
22665 }
22666
22667
22668 static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22669 PyObject *resultobj;
22670 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22671 PyObject * obj0 = 0 ;
22672 char *kwnames[] = {
22673 (char *) "self", NULL
22674 };
22675
22676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
22677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22679 {
22680 PyThreadState* __tstate = wxPyBeginAllowThreads();
22681 delete arg1;
22682
22683 wxPyEndAllowThreads(__tstate);
22684 if (PyErr_Occurred()) SWIG_fail;
22685 }
22686 Py_INCREF(Py_None); resultobj = Py_None;
22687 return resultobj;
22688 fail:
22689 return NULL;
22690 }
22691
22692
22693 static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
22694 PyObject *resultobj;
22695 int arg1 ;
22696 wxDateSpan result;
22697 PyObject * obj0 = 0 ;
22698 char *kwnames[] = {
22699 (char *) "days", NULL
22700 };
22701
22702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
22703 arg1 = (int) SWIG_AsInt(obj0);
22704 if (PyErr_Occurred()) SWIG_fail;
22705 {
22706 PyThreadState* __tstate = wxPyBeginAllowThreads();
22707 result = wxDateSpan::Days(arg1);
22708
22709 wxPyEndAllowThreads(__tstate);
22710 if (PyErr_Occurred()) SWIG_fail;
22711 }
22712 {
22713 wxDateSpan * resultptr;
22714 resultptr = new wxDateSpan((wxDateSpan &) result);
22715 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22716 }
22717 return resultobj;
22718 fail:
22719 return NULL;
22720 }
22721
22722
22723 static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
22724 PyObject *resultobj;
22725 wxDateSpan result;
22726 char *kwnames[] = {
22727 NULL
22728 };
22729
22730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
22731 {
22732 PyThreadState* __tstate = wxPyBeginAllowThreads();
22733 result = wxDateSpan::Day();
22734
22735 wxPyEndAllowThreads(__tstate);
22736 if (PyErr_Occurred()) SWIG_fail;
22737 }
22738 {
22739 wxDateSpan * resultptr;
22740 resultptr = new wxDateSpan((wxDateSpan &) result);
22741 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22742 }
22743 return resultobj;
22744 fail:
22745 return NULL;
22746 }
22747
22748
22749 static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22750 PyObject *resultobj;
22751 int arg1 ;
22752 wxDateSpan result;
22753 PyObject * obj0 = 0 ;
22754 char *kwnames[] = {
22755 (char *) "weeks", NULL
22756 };
22757
22758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
22759 arg1 = (int) SWIG_AsInt(obj0);
22760 if (PyErr_Occurred()) SWIG_fail;
22761 {
22762 PyThreadState* __tstate = wxPyBeginAllowThreads();
22763 result = wxDateSpan::Weeks(arg1);
22764
22765 wxPyEndAllowThreads(__tstate);
22766 if (PyErr_Occurred()) SWIG_fail;
22767 }
22768 {
22769 wxDateSpan * resultptr;
22770 resultptr = new wxDateSpan((wxDateSpan &) result);
22771 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22772 }
22773 return resultobj;
22774 fail:
22775 return NULL;
22776 }
22777
22778
22779 static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
22780 PyObject *resultobj;
22781 wxDateSpan result;
22782 char *kwnames[] = {
22783 NULL
22784 };
22785
22786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
22787 {
22788 PyThreadState* __tstate = wxPyBeginAllowThreads();
22789 result = wxDateSpan::Week();
22790
22791 wxPyEndAllowThreads(__tstate);
22792 if (PyErr_Occurred()) SWIG_fail;
22793 }
22794 {
22795 wxDateSpan * resultptr;
22796 resultptr = new wxDateSpan((wxDateSpan &) result);
22797 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22798 }
22799 return resultobj;
22800 fail:
22801 return NULL;
22802 }
22803
22804
22805 static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) {
22806 PyObject *resultobj;
22807 int arg1 ;
22808 wxDateSpan result;
22809 PyObject * obj0 = 0 ;
22810 char *kwnames[] = {
22811 (char *) "mon", NULL
22812 };
22813
22814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
22815 arg1 = (int) SWIG_AsInt(obj0);
22816 if (PyErr_Occurred()) SWIG_fail;
22817 {
22818 PyThreadState* __tstate = wxPyBeginAllowThreads();
22819 result = wxDateSpan::Months(arg1);
22820
22821 wxPyEndAllowThreads(__tstate);
22822 if (PyErr_Occurred()) SWIG_fail;
22823 }
22824 {
22825 wxDateSpan * resultptr;
22826 resultptr = new wxDateSpan((wxDateSpan &) result);
22827 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22828 }
22829 return resultobj;
22830 fail:
22831 return NULL;
22832 }
22833
22834
22835 static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) {
22836 PyObject *resultobj;
22837 wxDateSpan result;
22838 char *kwnames[] = {
22839 NULL
22840 };
22841
22842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
22843 {
22844 PyThreadState* __tstate = wxPyBeginAllowThreads();
22845 result = wxDateSpan::Month();
22846
22847 wxPyEndAllowThreads(__tstate);
22848 if (PyErr_Occurred()) SWIG_fail;
22849 }
22850 {
22851 wxDateSpan * resultptr;
22852 resultptr = new wxDateSpan((wxDateSpan &) result);
22853 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22854 }
22855 return resultobj;
22856 fail:
22857 return NULL;
22858 }
22859
22860
22861 static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) {
22862 PyObject *resultobj;
22863 int arg1 ;
22864 wxDateSpan result;
22865 PyObject * obj0 = 0 ;
22866 char *kwnames[] = {
22867 (char *) "years", NULL
22868 };
22869
22870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
22871 arg1 = (int) SWIG_AsInt(obj0);
22872 if (PyErr_Occurred()) SWIG_fail;
22873 {
22874 PyThreadState* __tstate = wxPyBeginAllowThreads();
22875 result = wxDateSpan::Years(arg1);
22876
22877 wxPyEndAllowThreads(__tstate);
22878 if (PyErr_Occurred()) SWIG_fail;
22879 }
22880 {
22881 wxDateSpan * resultptr;
22882 resultptr = new wxDateSpan((wxDateSpan &) result);
22883 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22884 }
22885 return resultobj;
22886 fail:
22887 return NULL;
22888 }
22889
22890
22891 static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) {
22892 PyObject *resultobj;
22893 wxDateSpan result;
22894 char *kwnames[] = {
22895 NULL
22896 };
22897
22898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
22899 {
22900 PyThreadState* __tstate = wxPyBeginAllowThreads();
22901 result = wxDateSpan::Year();
22902
22903 wxPyEndAllowThreads(__tstate);
22904 if (PyErr_Occurred()) SWIG_fail;
22905 }
22906 {
22907 wxDateSpan * resultptr;
22908 resultptr = new wxDateSpan((wxDateSpan &) result);
22909 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22910 }
22911 return resultobj;
22912 fail:
22913 return NULL;
22914 }
22915
22916
22917 static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
22918 PyObject *resultobj;
22919 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22920 int arg2 ;
22921 wxDateSpan *result;
22922 PyObject * obj0 = 0 ;
22923 PyObject * obj1 = 0 ;
22924 char *kwnames[] = {
22925 (char *) "self",(char *) "n", NULL
22926 };
22927
22928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
22929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22931 arg2 = (int) SWIG_AsInt(obj1);
22932 if (PyErr_Occurred()) SWIG_fail;
22933 {
22934 PyThreadState* __tstate = wxPyBeginAllowThreads();
22935 {
22936 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
22937 result = (wxDateSpan *) &_result_ref;
22938 }
22939
22940 wxPyEndAllowThreads(__tstate);
22941 if (PyErr_Occurred()) SWIG_fail;
22942 }
22943 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22944 return resultobj;
22945 fail:
22946 return NULL;
22947 }
22948
22949
22950 static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
22951 PyObject *resultobj;
22952 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22953 int arg2 ;
22954 wxDateSpan *result;
22955 PyObject * obj0 = 0 ;
22956 PyObject * obj1 = 0 ;
22957 char *kwnames[] = {
22958 (char *) "self",(char *) "n", NULL
22959 };
22960
22961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
22962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22964 arg2 = (int) SWIG_AsInt(obj1);
22965 if (PyErr_Occurred()) SWIG_fail;
22966 {
22967 PyThreadState* __tstate = wxPyBeginAllowThreads();
22968 {
22969 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
22970 result = (wxDateSpan *) &_result_ref;
22971 }
22972
22973 wxPyEndAllowThreads(__tstate);
22974 if (PyErr_Occurred()) SWIG_fail;
22975 }
22976 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22977 return resultobj;
22978 fail:
22979 return NULL;
22980 }
22981
22982
22983 static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22984 PyObject *resultobj;
22985 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22986 int arg2 ;
22987 wxDateSpan *result;
22988 PyObject * obj0 = 0 ;
22989 PyObject * obj1 = 0 ;
22990 char *kwnames[] = {
22991 (char *) "self",(char *) "n", NULL
22992 };
22993
22994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
22995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22997 arg2 = (int) SWIG_AsInt(obj1);
22998 if (PyErr_Occurred()) SWIG_fail;
22999 {
23000 PyThreadState* __tstate = wxPyBeginAllowThreads();
23001 {
23002 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
23003 result = (wxDateSpan *) &_result_ref;
23004 }
23005
23006 wxPyEndAllowThreads(__tstate);
23007 if (PyErr_Occurred()) SWIG_fail;
23008 }
23009 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23010 return resultobj;
23011 fail:
23012 return NULL;
23013 }
23014
23015
23016 static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23017 PyObject *resultobj;
23018 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23019 int arg2 ;
23020 wxDateSpan *result;
23021 PyObject * obj0 = 0 ;
23022 PyObject * obj1 = 0 ;
23023 char *kwnames[] = {
23024 (char *) "self",(char *) "n", NULL
23025 };
23026
23027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
23028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23030 arg2 = (int) SWIG_AsInt(obj1);
23031 if (PyErr_Occurred()) SWIG_fail;
23032 {
23033 PyThreadState* __tstate = wxPyBeginAllowThreads();
23034 {
23035 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
23036 result = (wxDateSpan *) &_result_ref;
23037 }
23038
23039 wxPyEndAllowThreads(__tstate);
23040 if (PyErr_Occurred()) SWIG_fail;
23041 }
23042 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23043 return resultobj;
23044 fail:
23045 return NULL;
23046 }
23047
23048
23049 static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
23050 PyObject *resultobj;
23051 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23052 int result;
23053 PyObject * obj0 = 0 ;
23054 char *kwnames[] = {
23055 (char *) "self", NULL
23056 };
23057
23058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
23059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23061 {
23062 PyThreadState* __tstate = wxPyBeginAllowThreads();
23063 result = (int)((wxDateSpan const *)arg1)->GetYears();
23064
23065 wxPyEndAllowThreads(__tstate);
23066 if (PyErr_Occurred()) SWIG_fail;
23067 }
23068 resultobj = SWIG_FromInt((int)result);
23069 return resultobj;
23070 fail:
23071 return NULL;
23072 }
23073
23074
23075 static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
23076 PyObject *resultobj;
23077 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23078 int result;
23079 PyObject * obj0 = 0 ;
23080 char *kwnames[] = {
23081 (char *) "self", NULL
23082 };
23083
23084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
23085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23087 {
23088 PyThreadState* __tstate = wxPyBeginAllowThreads();
23089 result = (int)((wxDateSpan const *)arg1)->GetMonths();
23090
23091 wxPyEndAllowThreads(__tstate);
23092 if (PyErr_Occurred()) SWIG_fail;
23093 }
23094 resultobj = SWIG_FromInt((int)result);
23095 return resultobj;
23096 fail:
23097 return NULL;
23098 }
23099
23100
23101 static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
23102 PyObject *resultobj;
23103 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23104 int result;
23105 PyObject * obj0 = 0 ;
23106 char *kwnames[] = {
23107 (char *) "self", NULL
23108 };
23109
23110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
23111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23113 {
23114 PyThreadState* __tstate = wxPyBeginAllowThreads();
23115 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
23116
23117 wxPyEndAllowThreads(__tstate);
23118 if (PyErr_Occurred()) SWIG_fail;
23119 }
23120 resultobj = SWIG_FromInt((int)result);
23121 return resultobj;
23122 fail:
23123 return NULL;
23124 }
23125
23126
23127 static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23128 PyObject *resultobj;
23129 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23130 int result;
23131 PyObject * obj0 = 0 ;
23132 char *kwnames[] = {
23133 (char *) "self", NULL
23134 };
23135
23136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
23137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23139 {
23140 PyThreadState* __tstate = wxPyBeginAllowThreads();
23141 result = (int)((wxDateSpan const *)arg1)->GetDays();
23142
23143 wxPyEndAllowThreads(__tstate);
23144 if (PyErr_Occurred()) SWIG_fail;
23145 }
23146 resultobj = SWIG_FromInt((int)result);
23147 return resultobj;
23148 fail:
23149 return NULL;
23150 }
23151
23152
23153 static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23154 PyObject *resultobj;
23155 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23156 int result;
23157 PyObject * obj0 = 0 ;
23158 char *kwnames[] = {
23159 (char *) "self", NULL
23160 };
23161
23162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
23163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23165 {
23166 PyThreadState* __tstate = wxPyBeginAllowThreads();
23167 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
23168
23169 wxPyEndAllowThreads(__tstate);
23170 if (PyErr_Occurred()) SWIG_fail;
23171 }
23172 resultobj = SWIG_FromInt((int)result);
23173 return resultobj;
23174 fail:
23175 return NULL;
23176 }
23177
23178
23179 static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
23180 PyObject *resultobj;
23181 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23182 wxDateSpan *arg2 = 0 ;
23183 wxDateSpan *result;
23184 PyObject * obj0 = 0 ;
23185 PyObject * obj1 = 0 ;
23186 char *kwnames[] = {
23187 (char *) "self",(char *) "other", NULL
23188 };
23189
23190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
23191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23193 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23194 SWIG_POINTER_EXCEPTION | 0)) == -1)
23195 SWIG_fail;
23196 if (arg2 == NULL) {
23197 PyErr_SetString(PyExc_TypeError,"null reference");
23198 SWIG_fail;
23199 }
23200 {
23201 PyThreadState* __tstate = wxPyBeginAllowThreads();
23202 {
23203 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
23204 result = (wxDateSpan *) &_result_ref;
23205 }
23206
23207 wxPyEndAllowThreads(__tstate);
23208 if (PyErr_Occurred()) SWIG_fail;
23209 }
23210 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23211 return resultobj;
23212 fail:
23213 return NULL;
23214 }
23215
23216
23217 static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
23218 PyObject *resultobj;
23219 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23220 wxDateSpan *arg2 = 0 ;
23221 wxDateSpan *result;
23222 PyObject * obj0 = 0 ;
23223 PyObject * obj1 = 0 ;
23224 char *kwnames[] = {
23225 (char *) "self",(char *) "other", NULL
23226 };
23227
23228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
23229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23231 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23232 SWIG_POINTER_EXCEPTION | 0)) == -1)
23233 SWIG_fail;
23234 if (arg2 == NULL) {
23235 PyErr_SetString(PyExc_TypeError,"null reference");
23236 SWIG_fail;
23237 }
23238 {
23239 PyThreadState* __tstate = wxPyBeginAllowThreads();
23240 {
23241 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
23242 result = (wxDateSpan *) &_result_ref;
23243 }
23244
23245 wxPyEndAllowThreads(__tstate);
23246 if (PyErr_Occurred()) SWIG_fail;
23247 }
23248 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23249 return resultobj;
23250 fail:
23251 return NULL;
23252 }
23253
23254
23255 static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
23256 PyObject *resultobj;
23257 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23258 wxDateSpan *result;
23259 PyObject * obj0 = 0 ;
23260 char *kwnames[] = {
23261 (char *) "self", NULL
23262 };
23263
23264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
23265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23267 {
23268 PyThreadState* __tstate = wxPyBeginAllowThreads();
23269 {
23270 wxDateSpan &_result_ref = (arg1)->Neg();
23271 result = (wxDateSpan *) &_result_ref;
23272 }
23273
23274 wxPyEndAllowThreads(__tstate);
23275 if (PyErr_Occurred()) SWIG_fail;
23276 }
23277 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23278 return resultobj;
23279 fail:
23280 return NULL;
23281 }
23282
23283
23284 static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
23285 PyObject *resultobj;
23286 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23287 int arg2 ;
23288 wxDateSpan *result;
23289 PyObject * obj0 = 0 ;
23290 PyObject * obj1 = 0 ;
23291 char *kwnames[] = {
23292 (char *) "self",(char *) "factor", NULL
23293 };
23294
23295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
23296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23298 arg2 = (int) SWIG_AsInt(obj1);
23299 if (PyErr_Occurred()) SWIG_fail;
23300 {
23301 PyThreadState* __tstate = wxPyBeginAllowThreads();
23302 {
23303 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
23304 result = (wxDateSpan *) &_result_ref;
23305 }
23306
23307 wxPyEndAllowThreads(__tstate);
23308 if (PyErr_Occurred()) SWIG_fail;
23309 }
23310 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23311 return resultobj;
23312 fail:
23313 return NULL;
23314 }
23315
23316
23317 static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
23318 PyObject *resultobj;
23319 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23320 wxDateSpan *arg2 = 0 ;
23321 wxDateSpan *result;
23322 PyObject * obj0 = 0 ;
23323 PyObject * obj1 = 0 ;
23324 char *kwnames[] = {
23325 (char *) "self",(char *) "other", NULL
23326 };
23327
23328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
23329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23331 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23332 SWIG_POINTER_EXCEPTION | 0)) == -1)
23333 SWIG_fail;
23334 if (arg2 == NULL) {
23335 PyErr_SetString(PyExc_TypeError,"null reference");
23336 SWIG_fail;
23337 }
23338 {
23339 PyThreadState* __tstate = wxPyBeginAllowThreads();
23340 {
23341 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
23342 result = (wxDateSpan *) &_result_ref;
23343 }
23344
23345 wxPyEndAllowThreads(__tstate);
23346 if (PyErr_Occurred()) SWIG_fail;
23347 }
23348 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23349 return resultobj;
23350 fail:
23351 return NULL;
23352 }
23353
23354
23355 static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23356 PyObject *resultobj;
23357 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23358 wxDateSpan *arg2 = 0 ;
23359 wxDateSpan *result;
23360 PyObject * obj0 = 0 ;
23361 PyObject * obj1 = 0 ;
23362 char *kwnames[] = {
23363 (char *) "self",(char *) "other", NULL
23364 };
23365
23366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
23367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23369 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23370 SWIG_POINTER_EXCEPTION | 0)) == -1)
23371 SWIG_fail;
23372 if (arg2 == NULL) {
23373 PyErr_SetString(PyExc_TypeError,"null reference");
23374 SWIG_fail;
23375 }
23376 {
23377 PyThreadState* __tstate = wxPyBeginAllowThreads();
23378 {
23379 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
23380 result = (wxDateSpan *) &_result_ref;
23381 }
23382
23383 wxPyEndAllowThreads(__tstate);
23384 if (PyErr_Occurred()) SWIG_fail;
23385 }
23386 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23387 return resultobj;
23388 fail:
23389 return NULL;
23390 }
23391
23392
23393 static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
23394 PyObject *resultobj;
23395 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23396 wxDateSpan *result;
23397 PyObject * obj0 = 0 ;
23398 char *kwnames[] = {
23399 (char *) "self", NULL
23400 };
23401
23402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
23403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23405 {
23406 PyThreadState* __tstate = wxPyBeginAllowThreads();
23407 {
23408 wxDateSpan &_result_ref = (arg1)->operator -();
23409 result = (wxDateSpan *) &_result_ref;
23410 }
23411
23412 wxPyEndAllowThreads(__tstate);
23413 if (PyErr_Occurred()) SWIG_fail;
23414 }
23415 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23416 return resultobj;
23417 fail:
23418 return NULL;
23419 }
23420
23421
23422 static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23423 PyObject *resultobj;
23424 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23425 int arg2 ;
23426 wxDateSpan *result;
23427 PyObject * obj0 = 0 ;
23428 PyObject * obj1 = 0 ;
23429 char *kwnames[] = {
23430 (char *) "self",(char *) "factor", NULL
23431 };
23432
23433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
23434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23436 arg2 = (int) SWIG_AsInt(obj1);
23437 if (PyErr_Occurred()) SWIG_fail;
23438 {
23439 PyThreadState* __tstate = wxPyBeginAllowThreads();
23440 {
23441 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
23442 result = (wxDateSpan *) &_result_ref;
23443 }
23444
23445 wxPyEndAllowThreads(__tstate);
23446 if (PyErr_Occurred()) SWIG_fail;
23447 }
23448 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23449 return resultobj;
23450 fail:
23451 return NULL;
23452 }
23453
23454
23455 static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
23456 PyObject *resultobj;
23457 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23458 wxDateSpan *arg2 = 0 ;
23459 wxDateSpan result;
23460 PyObject * obj0 = 0 ;
23461 PyObject * obj1 = 0 ;
23462 char *kwnames[] = {
23463 (char *) "self",(char *) "other", NULL
23464 };
23465
23466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
23467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23469 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23470 SWIG_POINTER_EXCEPTION | 0)) == -1)
23471 SWIG_fail;
23472 if (arg2 == NULL) {
23473 PyErr_SetString(PyExc_TypeError,"null reference");
23474 SWIG_fail;
23475 }
23476 {
23477 PyThreadState* __tstate = wxPyBeginAllowThreads();
23478 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
23479
23480 wxPyEndAllowThreads(__tstate);
23481 if (PyErr_Occurred()) SWIG_fail;
23482 }
23483 {
23484 wxDateSpan * resultptr;
23485 resultptr = new wxDateSpan((wxDateSpan &) result);
23486 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23487 }
23488 return resultobj;
23489 fail:
23490 return NULL;
23491 }
23492
23493
23494 static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23495 PyObject *resultobj;
23496 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23497 wxDateSpan *arg2 = 0 ;
23498 wxDateSpan result;
23499 PyObject * obj0 = 0 ;
23500 PyObject * obj1 = 0 ;
23501 char *kwnames[] = {
23502 (char *) "self",(char *) "other", NULL
23503 };
23504
23505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
23506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23508 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23509 SWIG_POINTER_EXCEPTION | 0)) == -1)
23510 SWIG_fail;
23511 if (arg2 == NULL) {
23512 PyErr_SetString(PyExc_TypeError,"null reference");
23513 SWIG_fail;
23514 }
23515 {
23516 PyThreadState* __tstate = wxPyBeginAllowThreads();
23517 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
23518
23519 wxPyEndAllowThreads(__tstate);
23520 if (PyErr_Occurred()) SWIG_fail;
23521 }
23522 {
23523 wxDateSpan * resultptr;
23524 resultptr = new wxDateSpan((wxDateSpan &) result);
23525 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23526 }
23527 return resultobj;
23528 fail:
23529 return NULL;
23530 }
23531
23532
23533 static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23534 PyObject *resultobj;
23535 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23536 int arg2 ;
23537 wxDateSpan result;
23538 PyObject * obj0 = 0 ;
23539 PyObject * obj1 = 0 ;
23540 char *kwnames[] = {
23541 (char *) "self",(char *) "n", NULL
23542 };
23543
23544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
23545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23547 arg2 = (int) SWIG_AsInt(obj1);
23548 if (PyErr_Occurred()) SWIG_fail;
23549 {
23550 PyThreadState* __tstate = wxPyBeginAllowThreads();
23551 result = wxDateSpan___mul__(arg1,arg2);
23552
23553 wxPyEndAllowThreads(__tstate);
23554 if (PyErr_Occurred()) SWIG_fail;
23555 }
23556 {
23557 wxDateSpan * resultptr;
23558 resultptr = new wxDateSpan((wxDateSpan &) result);
23559 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23560 }
23561 return resultobj;
23562 fail:
23563 return NULL;
23564 }
23565
23566
23567 static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23568 PyObject *resultobj;
23569 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23570 int arg2 ;
23571 wxDateSpan result;
23572 PyObject * obj0 = 0 ;
23573 PyObject * obj1 = 0 ;
23574 char *kwnames[] = {
23575 (char *) "self",(char *) "n", NULL
23576 };
23577
23578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
23579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23581 arg2 = (int) SWIG_AsInt(obj1);
23582 if (PyErr_Occurred()) SWIG_fail;
23583 {
23584 PyThreadState* __tstate = wxPyBeginAllowThreads();
23585 result = wxDateSpan___rmul__(arg1,arg2);
23586
23587 wxPyEndAllowThreads(__tstate);
23588 if (PyErr_Occurred()) SWIG_fail;
23589 }
23590 {
23591 wxDateSpan * resultptr;
23592 resultptr = new wxDateSpan((wxDateSpan &) result);
23593 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23594 }
23595 return resultobj;
23596 fail:
23597 return NULL;
23598 }
23599
23600
23601 static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
23602 PyObject *resultobj;
23603 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23604 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23605 bool result;
23606 PyObject * obj0 = 0 ;
23607 PyObject * obj1 = 0 ;
23608 char *kwnames[] = {
23609 (char *) "self",(char *) "other", NULL
23610 };
23611
23612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
23613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23615 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23617 {
23618 PyThreadState* __tstate = wxPyBeginAllowThreads();
23619 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
23620
23621 wxPyEndAllowThreads(__tstate);
23622 if (PyErr_Occurred()) SWIG_fail;
23623 }
23624 {
23625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23626 }
23627 return resultobj;
23628 fail:
23629 return NULL;
23630 }
23631
23632
23633 static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
23634 PyObject *resultobj;
23635 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23636 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23637 bool result;
23638 PyObject * obj0 = 0 ;
23639 PyObject * obj1 = 0 ;
23640 char *kwnames[] = {
23641 (char *) "self",(char *) "other", NULL
23642 };
23643
23644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
23645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23647 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23649 {
23650 PyThreadState* __tstate = wxPyBeginAllowThreads();
23651 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
23652
23653 wxPyEndAllowThreads(__tstate);
23654 if (PyErr_Occurred()) SWIG_fail;
23655 }
23656 {
23657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23658 }
23659 return resultobj;
23660 fail:
23661 return NULL;
23662 }
23663
23664
23665 static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) {
23666 PyObject *obj;
23667 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23668 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
23669 Py_INCREF(obj);
23670 return Py_BuildValue((char *)"");
23671 }
23672 static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23673 PyObject *resultobj;
23674 long result;
23675 char *kwnames[] = {
23676 NULL
23677 };
23678
23679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
23680 {
23681 PyThreadState* __tstate = wxPyBeginAllowThreads();
23682 result = (long)wxGetLocalTime();
23683
23684 wxPyEndAllowThreads(__tstate);
23685 if (PyErr_Occurred()) SWIG_fail;
23686 }
23687 resultobj = SWIG_FromLong((long)result);
23688 return resultobj;
23689 fail:
23690 return NULL;
23691 }
23692
23693
23694 static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23695 PyObject *resultobj;
23696 long result;
23697 char *kwnames[] = {
23698 NULL
23699 };
23700
23701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
23702 {
23703 PyThreadState* __tstate = wxPyBeginAllowThreads();
23704 result = (long)wxGetUTCTime();
23705
23706 wxPyEndAllowThreads(__tstate);
23707 if (PyErr_Occurred()) SWIG_fail;
23708 }
23709 resultobj = SWIG_FromLong((long)result);
23710 return resultobj;
23711 fail:
23712 return NULL;
23713 }
23714
23715
23716 static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23717 PyObject *resultobj;
23718 long result;
23719 char *kwnames[] = {
23720 NULL
23721 };
23722
23723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
23724 {
23725 PyThreadState* __tstate = wxPyBeginAllowThreads();
23726 result = (long)wxGetCurrentTime();
23727
23728 wxPyEndAllowThreads(__tstate);
23729 if (PyErr_Occurred()) SWIG_fail;
23730 }
23731 resultobj = SWIG_FromLong((long)result);
23732 return resultobj;
23733 fail:
23734 return NULL;
23735 }
23736
23737
23738 static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) {
23739 PyObject *resultobj;
23740 wxLongLong result;
23741 char *kwnames[] = {
23742 NULL
23743 };
23744
23745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
23746 {
23747 PyThreadState* __tstate = wxPyBeginAllowThreads();
23748 result = wxGetLocalTimeMillis();
23749
23750 wxPyEndAllowThreads(__tstate);
23751 if (PyErr_Occurred()) SWIG_fail;
23752 }
23753 {
23754 PyObject *hi, *lo, *shifter, *shifted;
23755 hi = PyLong_FromLong( (&result)->GetHi() );
23756 lo = PyLong_FromLong( (&result)->GetLo() );
23757 shifter = PyLong_FromLong(32);
23758 shifted = PyNumber_Lshift(hi, shifter);
23759 resultobj = PyNumber_Or(shifted, lo);
23760 Py_DECREF(hi);
23761 Py_DECREF(lo);
23762 Py_DECREF(shifter);
23763 Py_DECREF(shifted);
23764 }
23765 return resultobj;
23766 fail:
23767 return NULL;
23768 }
23769
23770
23771 static int _wrap_DefaultDateTime_set(PyObject *_val) {
23772 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
23773 return 1;
23774 }
23775
23776
23777 static PyObject *_wrap_DefaultDateTime_get() {
23778 PyObject *pyobj;
23779
23780 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
23781 return pyobj;
23782 }
23783
23784
23785 static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23786 PyObject *resultobj;
23787 int arg1 ;
23788 wxDataFormat *result;
23789 PyObject * obj0 = 0 ;
23790 char *kwnames[] = {
23791 (char *) "type", NULL
23792 };
23793
23794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
23795 arg1 = (wxDataFormatId) SWIG_AsInt(obj0);
23796 if (PyErr_Occurred()) SWIG_fail;
23797 {
23798 PyThreadState* __tstate = wxPyBeginAllowThreads();
23799 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
23800
23801 wxPyEndAllowThreads(__tstate);
23802 if (PyErr_Occurred()) SWIG_fail;
23803 }
23804 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23805 return resultobj;
23806 fail:
23807 return NULL;
23808 }
23809
23810
23811 static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23812 PyObject *resultobj;
23813 wxString *arg1 = 0 ;
23814 wxDataFormat *result;
23815 bool temp1 = False ;
23816 PyObject * obj0 = 0 ;
23817 char *kwnames[] = {
23818 (char *) "format", NULL
23819 };
23820
23821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
23822 {
23823 arg1 = wxString_in_helper(obj0);
23824 if (arg1 == NULL) SWIG_fail;
23825 temp1 = True;
23826 }
23827 {
23828 PyThreadState* __tstate = wxPyBeginAllowThreads();
23829 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
23830
23831 wxPyEndAllowThreads(__tstate);
23832 if (PyErr_Occurred()) SWIG_fail;
23833 }
23834 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23835 {
23836 if (temp1)
23837 delete arg1;
23838 }
23839 return resultobj;
23840 fail:
23841 {
23842 if (temp1)
23843 delete arg1;
23844 }
23845 return NULL;
23846 }
23847
23848
23849 static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23850 PyObject *resultobj;
23851 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23852 PyObject * obj0 = 0 ;
23853 char *kwnames[] = {
23854 (char *) "self", NULL
23855 };
23856
23857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
23858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23860 {
23861 PyThreadState* __tstate = wxPyBeginAllowThreads();
23862 delete arg1;
23863
23864 wxPyEndAllowThreads(__tstate);
23865 if (PyErr_Occurred()) SWIG_fail;
23866 }
23867 Py_INCREF(Py_None); resultobj = Py_None;
23868 return resultobj;
23869 fail:
23870 return NULL;
23871 }
23872
23873
23874 static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) {
23875 PyObject *resultobj;
23876 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23877 int arg2 ;
23878 bool result;
23879 PyObject * obj0 = 0 ;
23880 PyObject * obj1 = 0 ;
23881
23882 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
23883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23885 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23886 if (PyErr_Occurred()) SWIG_fail;
23887 {
23888 PyThreadState* __tstate = wxPyBeginAllowThreads();
23889 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
23890
23891 wxPyEndAllowThreads(__tstate);
23892 if (PyErr_Occurred()) SWIG_fail;
23893 }
23894 {
23895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23896 }
23897 return resultobj;
23898 fail:
23899 return NULL;
23900 }
23901
23902
23903 static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) {
23904 PyObject *resultobj;
23905 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23906 int arg2 ;
23907 bool result;
23908 PyObject * obj0 = 0 ;
23909 PyObject * obj1 = 0 ;
23910
23911 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
23912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23914 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23915 if (PyErr_Occurred()) SWIG_fail;
23916 {
23917 PyThreadState* __tstate = wxPyBeginAllowThreads();
23918 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2);
23919
23920 wxPyEndAllowThreads(__tstate);
23921 if (PyErr_Occurred()) SWIG_fail;
23922 }
23923 {
23924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23925 }
23926 return resultobj;
23927 fail:
23928 return NULL;
23929 }
23930
23931
23932 static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) {
23933 PyObject *resultobj;
23934 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23935 wxDataFormat *arg2 = 0 ;
23936 bool result;
23937 PyObject * obj0 = 0 ;
23938 PyObject * obj1 = 0 ;
23939
23940 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
23941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23943 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
23944 SWIG_POINTER_EXCEPTION | 0)) == -1)
23945 SWIG_fail;
23946 if (arg2 == NULL) {
23947 PyErr_SetString(PyExc_TypeError,"null reference");
23948 SWIG_fail;
23949 }
23950 {
23951 PyThreadState* __tstate = wxPyBeginAllowThreads();
23952 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
23953
23954 wxPyEndAllowThreads(__tstate);
23955 if (PyErr_Occurred()) SWIG_fail;
23956 }
23957 {
23958 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23959 }
23960 return resultobj;
23961 fail:
23962 return NULL;
23963 }
23964
23965
23966 static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
23967 int argc;
23968 PyObject *argv[3];
23969 int ii;
23970
23971 argc = PyObject_Length(args);
23972 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
23973 argv[ii] = PyTuple_GetItem(args,ii);
23974 }
23975 if (argc == 2) {
23976 int _v;
23977 {
23978 void *ptr;
23979 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23980 _v = 0;
23981 PyErr_Clear();
23982 } else {
23983 _v = 1;
23984 }
23985 }
23986 if (_v) {
23987 {
23988 void *ptr;
23989 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23990 _v = 0;
23991 PyErr_Clear();
23992 } else {
23993 _v = 1;
23994 }
23995 }
23996 if (_v) {
23997 return _wrap_DataFormat___eq____SWIG_1(self,args);
23998 }
23999 }
24000 }
24001 if (argc == 2) {
24002 int _v;
24003 {
24004 void *ptr;
24005 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24006 _v = 0;
24007 PyErr_Clear();
24008 } else {
24009 _v = 1;
24010 }
24011 }
24012 if (_v) {
24013 _v = SWIG_CheckInt(argv[1]);
24014 if (_v) {
24015 return _wrap_DataFormat___eq____SWIG_0(self,args);
24016 }
24017 }
24018 }
24019
24020 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
24021 return NULL;
24022 }
24023
24024
24025 static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) {
24026 PyObject *resultobj;
24027 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24028 wxDataFormat *arg2 = 0 ;
24029 bool result;
24030 PyObject * obj0 = 0 ;
24031 PyObject * obj1 = 0 ;
24032
24033 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24036 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24037 SWIG_POINTER_EXCEPTION | 0)) == -1)
24038 SWIG_fail;
24039 if (arg2 == NULL) {
24040 PyErr_SetString(PyExc_TypeError,"null reference");
24041 SWIG_fail;
24042 }
24043 {
24044 PyThreadState* __tstate = wxPyBeginAllowThreads();
24045 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
24046
24047 wxPyEndAllowThreads(__tstate);
24048 if (PyErr_Occurred()) SWIG_fail;
24049 }
24050 {
24051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24052 }
24053 return resultobj;
24054 fail:
24055 return NULL;
24056 }
24057
24058
24059 static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
24060 int argc;
24061 PyObject *argv[3];
24062 int ii;
24063
24064 argc = PyObject_Length(args);
24065 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24066 argv[ii] = PyTuple_GetItem(args,ii);
24067 }
24068 if (argc == 2) {
24069 int _v;
24070 {
24071 void *ptr;
24072 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24073 _v = 0;
24074 PyErr_Clear();
24075 } else {
24076 _v = 1;
24077 }
24078 }
24079 if (_v) {
24080 {
24081 void *ptr;
24082 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24083 _v = 0;
24084 PyErr_Clear();
24085 } else {
24086 _v = 1;
24087 }
24088 }
24089 if (_v) {
24090 return _wrap_DataFormat___ne____SWIG_1(self,args);
24091 }
24092 }
24093 }
24094 if (argc == 2) {
24095 int _v;
24096 {
24097 void *ptr;
24098 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24099 _v = 0;
24100 PyErr_Clear();
24101 } else {
24102 _v = 1;
24103 }
24104 }
24105 if (_v) {
24106 _v = SWIG_CheckInt(argv[1]);
24107 if (_v) {
24108 return _wrap_DataFormat___ne____SWIG_0(self,args);
24109 }
24110 }
24111 }
24112
24113 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
24114 return NULL;
24115 }
24116
24117
24118 static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24119 PyObject *resultobj;
24120 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24121 int arg2 ;
24122 PyObject * obj0 = 0 ;
24123 PyObject * obj1 = 0 ;
24124 char *kwnames[] = {
24125 (char *) "self",(char *) "format", NULL
24126 };
24127
24128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
24129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24131 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24132 if (PyErr_Occurred()) SWIG_fail;
24133 {
24134 PyThreadState* __tstate = wxPyBeginAllowThreads();
24135 (arg1)->SetType((wxDataFormatId )arg2);
24136
24137 wxPyEndAllowThreads(__tstate);
24138 if (PyErr_Occurred()) SWIG_fail;
24139 }
24140 Py_INCREF(Py_None); resultobj = Py_None;
24141 return resultobj;
24142 fail:
24143 return NULL;
24144 }
24145
24146
24147 static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24148 PyObject *resultobj;
24149 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24150 int result;
24151 PyObject * obj0 = 0 ;
24152 char *kwnames[] = {
24153 (char *) "self", NULL
24154 };
24155
24156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
24157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24159 {
24160 PyThreadState* __tstate = wxPyBeginAllowThreads();
24161 result = (int)((wxDataFormat const *)arg1)->GetType();
24162
24163 wxPyEndAllowThreads(__tstate);
24164 if (PyErr_Occurred()) SWIG_fail;
24165 }
24166 resultobj = SWIG_FromInt((int)result);
24167 return resultobj;
24168 fail:
24169 return NULL;
24170 }
24171
24172
24173 static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24174 PyObject *resultobj;
24175 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24176 wxString result;
24177 PyObject * obj0 = 0 ;
24178 char *kwnames[] = {
24179 (char *) "self", NULL
24180 };
24181
24182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
24183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24185 {
24186 PyThreadState* __tstate = wxPyBeginAllowThreads();
24187 result = ((wxDataFormat const *)arg1)->GetId();
24188
24189 wxPyEndAllowThreads(__tstate);
24190 if (PyErr_Occurred()) SWIG_fail;
24191 }
24192 {
24193 #if wxUSE_UNICODE
24194 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24195 #else
24196 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24197 #endif
24198 }
24199 return resultobj;
24200 fail:
24201 return NULL;
24202 }
24203
24204
24205 static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24206 PyObject *resultobj;
24207 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24208 wxString *arg2 = 0 ;
24209 bool temp2 = False ;
24210 PyObject * obj0 = 0 ;
24211 PyObject * obj1 = 0 ;
24212 char *kwnames[] = {
24213 (char *) "self",(char *) "format", NULL
24214 };
24215
24216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
24217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24219 {
24220 arg2 = wxString_in_helper(obj1);
24221 if (arg2 == NULL) SWIG_fail;
24222 temp2 = True;
24223 }
24224 {
24225 PyThreadState* __tstate = wxPyBeginAllowThreads();
24226 (arg1)->SetId((wxString const &)*arg2);
24227
24228 wxPyEndAllowThreads(__tstate);
24229 if (PyErr_Occurred()) SWIG_fail;
24230 }
24231 Py_INCREF(Py_None); resultobj = Py_None;
24232 {
24233 if (temp2)
24234 delete arg2;
24235 }
24236 return resultobj;
24237 fail:
24238 {
24239 if (temp2)
24240 delete arg2;
24241 }
24242 return NULL;
24243 }
24244
24245
24246 static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) {
24247 PyObject *obj;
24248 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24249 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
24250 Py_INCREF(obj);
24251 return Py_BuildValue((char *)"");
24252 }
24253 static int _wrap_FormatInvalid_set(PyObject *_val) {
24254 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
24255 return 1;
24256 }
24257
24258
24259 static PyObject *_wrap_FormatInvalid_get() {
24260 PyObject *pyobj;
24261
24262 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
24263 return pyobj;
24264 }
24265
24266
24267 static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24268 PyObject *resultobj;
24269 wxDataObject *arg1 = (wxDataObject *) 0 ;
24270 PyObject * obj0 = 0 ;
24271 char *kwnames[] = {
24272 (char *) "self", NULL
24273 };
24274
24275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
24276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24278 {
24279 PyThreadState* __tstate = wxPyBeginAllowThreads();
24280 delete arg1;
24281
24282 wxPyEndAllowThreads(__tstate);
24283 if (PyErr_Occurred()) SWIG_fail;
24284 }
24285 Py_INCREF(Py_None); resultobj = Py_None;
24286 return resultobj;
24287 fail:
24288 return NULL;
24289 }
24290
24291
24292 static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24293 PyObject *resultobj;
24294 wxDataObject *arg1 = (wxDataObject *) 0 ;
24295 int arg2 = (int) wxDataObject::Get ;
24296 SwigValueWrapper< wxDataFormat > result;
24297 PyObject * obj0 = 0 ;
24298 PyObject * obj1 = 0 ;
24299 char *kwnames[] = {
24300 (char *) "self",(char *) "dir", NULL
24301 };
24302
24303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
24304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24306 if (obj1) {
24307 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24308 if (PyErr_Occurred()) SWIG_fail;
24309 }
24310 {
24311 PyThreadState* __tstate = wxPyBeginAllowThreads();
24312 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
24313
24314 wxPyEndAllowThreads(__tstate);
24315 if (PyErr_Occurred()) SWIG_fail;
24316 }
24317 {
24318 wxDataFormat * resultptr;
24319 resultptr = new wxDataFormat((wxDataFormat &) result);
24320 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
24321 }
24322 return resultobj;
24323 fail:
24324 return NULL;
24325 }
24326
24327
24328 static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) {
24329 PyObject *resultobj;
24330 wxDataObject *arg1 = (wxDataObject *) 0 ;
24331 int arg2 = (int) wxDataObject::Get ;
24332 size_t result;
24333 PyObject * obj0 = 0 ;
24334 PyObject * obj1 = 0 ;
24335 char *kwnames[] = {
24336 (char *) "self",(char *) "dir", NULL
24337 };
24338
24339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
24340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24342 if (obj1) {
24343 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24344 if (PyErr_Occurred()) SWIG_fail;
24345 }
24346 {
24347 PyThreadState* __tstate = wxPyBeginAllowThreads();
24348 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
24349
24350 wxPyEndAllowThreads(__tstate);
24351 if (PyErr_Occurred()) SWIG_fail;
24352 }
24353 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24354 return resultobj;
24355 fail:
24356 return NULL;
24357 }
24358
24359
24360 static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
24361 PyObject *resultobj;
24362 wxDataObject *arg1 = (wxDataObject *) 0 ;
24363 wxDataFormat *arg2 = 0 ;
24364 int arg3 = (int) wxDataObject::Get ;
24365 bool result;
24366 PyObject * obj0 = 0 ;
24367 PyObject * obj1 = 0 ;
24368 PyObject * obj2 = 0 ;
24369 char *kwnames[] = {
24370 (char *) "self",(char *) "format",(char *) "dir", NULL
24371 };
24372
24373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
24374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24376 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24377 SWIG_POINTER_EXCEPTION | 0)) == -1)
24378 SWIG_fail;
24379 if (arg2 == NULL) {
24380 PyErr_SetString(PyExc_TypeError,"null reference");
24381 SWIG_fail;
24382 }
24383 if (obj2) {
24384 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24385 if (PyErr_Occurred()) SWIG_fail;
24386 }
24387 {
24388 PyThreadState* __tstate = wxPyBeginAllowThreads();
24389 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
24390
24391 wxPyEndAllowThreads(__tstate);
24392 if (PyErr_Occurred()) SWIG_fail;
24393 }
24394 {
24395 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24396 }
24397 return resultobj;
24398 fail:
24399 return NULL;
24400 }
24401
24402
24403 static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24404 PyObject *resultobj;
24405 wxDataObject *arg1 = (wxDataObject *) 0 ;
24406 wxDataFormat *arg2 = 0 ;
24407 size_t result;
24408 PyObject * obj0 = 0 ;
24409 PyObject * obj1 = 0 ;
24410 char *kwnames[] = {
24411 (char *) "self",(char *) "format", NULL
24412 };
24413
24414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
24415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24417 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24418 SWIG_POINTER_EXCEPTION | 0)) == -1)
24419 SWIG_fail;
24420 if (arg2 == NULL) {
24421 PyErr_SetString(PyExc_TypeError,"null reference");
24422 SWIG_fail;
24423 }
24424 {
24425 PyThreadState* __tstate = wxPyBeginAllowThreads();
24426 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
24427
24428 wxPyEndAllowThreads(__tstate);
24429 if (PyErr_Occurred()) SWIG_fail;
24430 }
24431 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24432 return resultobj;
24433 fail:
24434 return NULL;
24435 }
24436
24437
24438 static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) {
24439 PyObject *resultobj;
24440 wxDataObject *arg1 = (wxDataObject *) 0 ;
24441 wxDataFormat *arg2 = (wxDataFormat *) 0 ;
24442 int arg3 = (int) wxDataObject::Get ;
24443 PyObject * obj0 = 0 ;
24444 PyObject * obj1 = 0 ;
24445 PyObject * obj2 = 0 ;
24446 char *kwnames[] = {
24447 (char *) "self",(char *) "formats",(char *) "dir", NULL
24448 };
24449
24450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&obj2)) goto fail;
24451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24453 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24455 if (obj2) {
24456 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24457 if (PyErr_Occurred()) SWIG_fail;
24458 }
24459 {
24460 PyThreadState* __tstate = wxPyBeginAllowThreads();
24461 ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3);
24462
24463 wxPyEndAllowThreads(__tstate);
24464 if (PyErr_Occurred()) SWIG_fail;
24465 }
24466 Py_INCREF(Py_None); resultobj = Py_None;
24467 return resultobj;
24468 fail:
24469 return NULL;
24470 }
24471
24472
24473 static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24474 PyObject *resultobj;
24475 wxDataObject *arg1 = (wxDataObject *) 0 ;
24476 wxDataFormat *arg2 = 0 ;
24477 void *arg3 = (void *) 0 ;
24478 bool result;
24479 PyObject * obj0 = 0 ;
24480 PyObject * obj1 = 0 ;
24481 PyObject * obj2 = 0 ;
24482 char *kwnames[] = {
24483 (char *) "self",(char *) "format",(char *) "buf", NULL
24484 };
24485
24486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail;
24487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24489 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24490 SWIG_POINTER_EXCEPTION | 0)) == -1)
24491 SWIG_fail;
24492 if (arg2 == NULL) {
24493 PyErr_SetString(PyExc_TypeError,"null reference");
24494 SWIG_fail;
24495 }
24496 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24497 {
24498 PyThreadState* __tstate = wxPyBeginAllowThreads();
24499 result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3);
24500
24501 wxPyEndAllowThreads(__tstate);
24502 if (PyErr_Occurred()) SWIG_fail;
24503 }
24504 {
24505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24506 }
24507 return resultobj;
24508 fail:
24509 return NULL;
24510 }
24511
24512
24513 static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24514 PyObject *resultobj;
24515 wxDataObject *arg1 = (wxDataObject *) 0 ;
24516 wxDataFormat *arg2 = 0 ;
24517 size_t arg3 ;
24518 void *arg4 = (void *) 0 ;
24519 bool result;
24520 PyObject * obj0 = 0 ;
24521 PyObject * obj1 = 0 ;
24522 PyObject * obj2 = 0 ;
24523 PyObject * obj3 = 0 ;
24524 char *kwnames[] = {
24525 (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL
24526 };
24527
24528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
24529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24531 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24532 SWIG_POINTER_EXCEPTION | 0)) == -1)
24533 SWIG_fail;
24534 if (arg2 == NULL) {
24535 PyErr_SetString(PyExc_TypeError,"null reference");
24536 SWIG_fail;
24537 }
24538 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
24539 if (PyErr_Occurred()) SWIG_fail;
24540 if ((SWIG_ConvertPtr(obj3,&arg4,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24541 {
24542 PyThreadState* __tstate = wxPyBeginAllowThreads();
24543 result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4);
24544
24545 wxPyEndAllowThreads(__tstate);
24546 if (PyErr_Occurred()) SWIG_fail;
24547 }
24548 {
24549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24550 }
24551 return resultobj;
24552 fail:
24553 return NULL;
24554 }
24555
24556
24557 static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) {
24558 PyObject *obj;
24559 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24560 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
24561 Py_INCREF(obj);
24562 return Py_BuildValue((char *)"");
24563 }
24564 static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24565 PyObject *resultobj;
24566 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24567 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24568 wxDataObjectSimple *result;
24569 PyObject * obj0 = 0 ;
24570 char *kwnames[] = {
24571 (char *) "format", NULL
24572 };
24573
24574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
24575 if (obj0) {
24576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24577 SWIG_POINTER_EXCEPTION | 0)) == -1)
24578 SWIG_fail;
24579 if (arg1 == NULL) {
24580 PyErr_SetString(PyExc_TypeError,"null reference");
24581 SWIG_fail;
24582 }
24583 }
24584 {
24585 PyThreadState* __tstate = wxPyBeginAllowThreads();
24586 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
24587
24588 wxPyEndAllowThreads(__tstate);
24589 if (PyErr_Occurred()) SWIG_fail;
24590 }
24591 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
24592 return resultobj;
24593 fail:
24594 return NULL;
24595 }
24596
24597
24598 static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24599 PyObject *resultobj;
24600 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24601 wxDataFormat *result;
24602 PyObject * obj0 = 0 ;
24603 char *kwnames[] = {
24604 (char *) "self", NULL
24605 };
24606
24607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
24608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24610 {
24611 PyThreadState* __tstate = wxPyBeginAllowThreads();
24612 {
24613 wxDataFormat const &_result_ref = (arg1)->GetFormat();
24614 result = (wxDataFormat *) &_result_ref;
24615 }
24616
24617 wxPyEndAllowThreads(__tstate);
24618 if (PyErr_Occurred()) SWIG_fail;
24619 }
24620 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
24621 return resultobj;
24622 fail:
24623 return NULL;
24624 }
24625
24626
24627 static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24628 PyObject *resultobj;
24629 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24630 wxDataFormat *arg2 = 0 ;
24631 PyObject * obj0 = 0 ;
24632 PyObject * obj1 = 0 ;
24633 char *kwnames[] = {
24634 (char *) "self",(char *) "format", NULL
24635 };
24636
24637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
24638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24640 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24641 SWIG_POINTER_EXCEPTION | 0)) == -1)
24642 SWIG_fail;
24643 if (arg2 == NULL) {
24644 PyErr_SetString(PyExc_TypeError,"null reference");
24645 SWIG_fail;
24646 }
24647 {
24648 PyThreadState* __tstate = wxPyBeginAllowThreads();
24649 (arg1)->SetFormat((wxDataFormat const &)*arg2);
24650
24651 wxPyEndAllowThreads(__tstate);
24652 if (PyErr_Occurred()) SWIG_fail;
24653 }
24654 Py_INCREF(Py_None); resultobj = Py_None;
24655 return resultobj;
24656 fail:
24657 return NULL;
24658 }
24659
24660
24661 static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24662 PyObject *obj;
24663 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24664 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
24665 Py_INCREF(obj);
24666 return Py_BuildValue((char *)"");
24667 }
24668 static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24669 PyObject *resultobj;
24670 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24671 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24672 wxPyDataObjectSimple *result;
24673 PyObject * obj0 = 0 ;
24674 char *kwnames[] = {
24675 (char *) "format", NULL
24676 };
24677
24678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
24679 if (obj0) {
24680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24681 SWIG_POINTER_EXCEPTION | 0)) == -1)
24682 SWIG_fail;
24683 if (arg1 == NULL) {
24684 PyErr_SetString(PyExc_TypeError,"null reference");
24685 SWIG_fail;
24686 }
24687 }
24688 {
24689 PyThreadState* __tstate = wxPyBeginAllowThreads();
24690 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
24691
24692 wxPyEndAllowThreads(__tstate);
24693 if (PyErr_Occurred()) SWIG_fail;
24694 }
24695 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
24696 return resultobj;
24697 fail:
24698 return NULL;
24699 }
24700
24701
24702 static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24703 PyObject *resultobj;
24704 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
24705 PyObject *arg2 = (PyObject *) 0 ;
24706 PyObject *arg3 = (PyObject *) 0 ;
24707 PyObject * obj0 = 0 ;
24708 PyObject * obj1 = 0 ;
24709 PyObject * obj2 = 0 ;
24710 char *kwnames[] = {
24711 (char *) "self",(char *) "self",(char *) "_class", NULL
24712 };
24713
24714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple,
24716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24717 arg2 = obj1;
24718 arg3 = obj2;
24719 {
24720 PyThreadState* __tstate = wxPyBeginAllowThreads();
24721 (arg1)->_setCallbackInfo(arg2,arg3);
24722
24723 wxPyEndAllowThreads(__tstate);
24724 if (PyErr_Occurred()) SWIG_fail;
24725 }
24726 Py_INCREF(Py_None); resultobj = Py_None;
24727 return resultobj;
24728 fail:
24729 return NULL;
24730 }
24731
24732
24733 static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24734 PyObject *obj;
24735 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24736 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
24737 Py_INCREF(obj);
24738 return Py_BuildValue((char *)"");
24739 }
24740 static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) {
24741 PyObject *resultobj;
24742 wxDataObjectComposite *result;
24743 char *kwnames[] = {
24744 NULL
24745 };
24746
24747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
24748 {
24749 PyThreadState* __tstate = wxPyBeginAllowThreads();
24750 result = (wxDataObjectComposite *)new wxDataObjectComposite();
24751
24752 wxPyEndAllowThreads(__tstate);
24753 if (PyErr_Occurred()) SWIG_fail;
24754 }
24755 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
24756 return resultobj;
24757 fail:
24758 return NULL;
24759 }
24760
24761
24762 static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
24763 PyObject *resultobj;
24764 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
24765 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
24766 int arg3 = (int) False ;
24767 PyObject * obj0 = 0 ;
24768 PyObject * obj1 = 0 ;
24769 PyObject * obj2 = 0 ;
24770 char *kwnames[] = {
24771 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
24772 };
24773
24774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
24775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite,
24776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24777 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple,
24778 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24779 if (obj2) {
24780 arg3 = (int) SWIG_AsInt(obj2);
24781 if (PyErr_Occurred()) SWIG_fail;
24782 }
24783 {
24784 PyThreadState* __tstate = wxPyBeginAllowThreads();
24785 (arg1)->Add(arg2,arg3);
24786
24787 wxPyEndAllowThreads(__tstate);
24788 if (PyErr_Occurred()) SWIG_fail;
24789 }
24790 Py_INCREF(Py_None); resultobj = Py_None;
24791 return resultobj;
24792 fail:
24793 return NULL;
24794 }
24795
24796
24797 static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) {
24798 PyObject *obj;
24799 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24800 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
24801 Py_INCREF(obj);
24802 return Py_BuildValue((char *)"");
24803 }
24804 static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24805 PyObject *resultobj;
24806 wxString const &arg1_defvalue = wxPyEmptyString ;
24807 wxString *arg1 = (wxString *) &arg1_defvalue ;
24808 wxTextDataObject *result;
24809 bool temp1 = False ;
24810 PyObject * obj0 = 0 ;
24811 char *kwnames[] = {
24812 (char *) "text", NULL
24813 };
24814
24815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
24816 if (obj0) {
24817 {
24818 arg1 = wxString_in_helper(obj0);
24819 if (arg1 == NULL) SWIG_fail;
24820 temp1 = True;
24821 }
24822 }
24823 {
24824 PyThreadState* __tstate = wxPyBeginAllowThreads();
24825 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
24826
24827 wxPyEndAllowThreads(__tstate);
24828 if (PyErr_Occurred()) SWIG_fail;
24829 }
24830 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
24831 {
24832 if (temp1)
24833 delete arg1;
24834 }
24835 return resultobj;
24836 fail:
24837 {
24838 if (temp1)
24839 delete arg1;
24840 }
24841 return NULL;
24842 }
24843
24844
24845 static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) {
24846 PyObject *resultobj;
24847 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24848 size_t result;
24849 PyObject * obj0 = 0 ;
24850 char *kwnames[] = {
24851 (char *) "self", NULL
24852 };
24853
24854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
24855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24857 {
24858 PyThreadState* __tstate = wxPyBeginAllowThreads();
24859 result = (size_t)(arg1)->GetTextLength();
24860
24861 wxPyEndAllowThreads(__tstate);
24862 if (PyErr_Occurred()) SWIG_fail;
24863 }
24864 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24865 return resultobj;
24866 fail:
24867 return NULL;
24868 }
24869
24870
24871 static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
24872 PyObject *resultobj;
24873 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24874 wxString result;
24875 PyObject * obj0 = 0 ;
24876 char *kwnames[] = {
24877 (char *) "self", NULL
24878 };
24879
24880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
24881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24883 {
24884 PyThreadState* __tstate = wxPyBeginAllowThreads();
24885 result = (arg1)->GetText();
24886
24887 wxPyEndAllowThreads(__tstate);
24888 if (PyErr_Occurred()) SWIG_fail;
24889 }
24890 {
24891 #if wxUSE_UNICODE
24892 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24893 #else
24894 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24895 #endif
24896 }
24897 return resultobj;
24898 fail:
24899 return NULL;
24900 }
24901
24902
24903 static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
24904 PyObject *resultobj;
24905 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24906 wxString *arg2 = 0 ;
24907 bool temp2 = False ;
24908 PyObject * obj0 = 0 ;
24909 PyObject * obj1 = 0 ;
24910 char *kwnames[] = {
24911 (char *) "self",(char *) "text", NULL
24912 };
24913
24914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
24915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24917 {
24918 arg2 = wxString_in_helper(obj1);
24919 if (arg2 == NULL) SWIG_fail;
24920 temp2 = True;
24921 }
24922 {
24923 PyThreadState* __tstate = wxPyBeginAllowThreads();
24924 (arg1)->SetText((wxString const &)*arg2);
24925
24926 wxPyEndAllowThreads(__tstate);
24927 if (PyErr_Occurred()) SWIG_fail;
24928 }
24929 Py_INCREF(Py_None); resultobj = Py_None;
24930 {
24931 if (temp2)
24932 delete arg2;
24933 }
24934 return resultobj;
24935 fail:
24936 {
24937 if (temp2)
24938 delete arg2;
24939 }
24940 return NULL;
24941 }
24942
24943
24944 static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) {
24945 PyObject *obj;
24946 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24947 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
24948 Py_INCREF(obj);
24949 return Py_BuildValue((char *)"");
24950 }
24951 static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24952 PyObject *resultobj;
24953 wxString const &arg1_defvalue = wxPyEmptyString ;
24954 wxString *arg1 = (wxString *) &arg1_defvalue ;
24955 wxPyTextDataObject *result;
24956 bool temp1 = False ;
24957 PyObject * obj0 = 0 ;
24958 char *kwnames[] = {
24959 (char *) "text", NULL
24960 };
24961
24962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
24963 if (obj0) {
24964 {
24965 arg1 = wxString_in_helper(obj0);
24966 if (arg1 == NULL) SWIG_fail;
24967 temp1 = True;
24968 }
24969 }
24970 {
24971 PyThreadState* __tstate = wxPyBeginAllowThreads();
24972 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
24973
24974 wxPyEndAllowThreads(__tstate);
24975 if (PyErr_Occurred()) SWIG_fail;
24976 }
24977 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
24978 {
24979 if (temp1)
24980 delete arg1;
24981 }
24982 return resultobj;
24983 fail:
24984 {
24985 if (temp1)
24986 delete arg1;
24987 }
24988 return NULL;
24989 }
24990
24991
24992 static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24993 PyObject *resultobj;
24994 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
24995 PyObject *arg2 = (PyObject *) 0 ;
24996 PyObject *arg3 = (PyObject *) 0 ;
24997 PyObject * obj0 = 0 ;
24998 PyObject * obj1 = 0 ;
24999 PyObject * obj2 = 0 ;
25000 char *kwnames[] = {
25001 (char *) "self",(char *) "self",(char *) "_class", NULL
25002 };
25003
25004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject,
25006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25007 arg2 = obj1;
25008 arg3 = obj2;
25009 {
25010 PyThreadState* __tstate = wxPyBeginAllowThreads();
25011 (arg1)->_setCallbackInfo(arg2,arg3);
25012
25013 wxPyEndAllowThreads(__tstate);
25014 if (PyErr_Occurred()) SWIG_fail;
25015 }
25016 Py_INCREF(Py_None); resultobj = Py_None;
25017 return resultobj;
25018 fail:
25019 return NULL;
25020 }
25021
25022
25023 static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) {
25024 PyObject *obj;
25025 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25026 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
25027 Py_INCREF(obj);
25028 return Py_BuildValue((char *)"");
25029 }
25030 static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25031 PyObject *resultobj;
25032 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25033 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25034 wxBitmapDataObject *result;
25035 PyObject * obj0 = 0 ;
25036 char *kwnames[] = {
25037 (char *) "bitmap", NULL
25038 };
25039
25040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
25041 if (obj0) {
25042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25043 SWIG_POINTER_EXCEPTION | 0)) == -1)
25044 SWIG_fail;
25045 if (arg1 == NULL) {
25046 PyErr_SetString(PyExc_TypeError,"null reference");
25047 SWIG_fail;
25048 }
25049 }
25050 {
25051 PyThreadState* __tstate = wxPyBeginAllowThreads();
25052 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
25053
25054 wxPyEndAllowThreads(__tstate);
25055 if (PyErr_Occurred()) SWIG_fail;
25056 }
25057 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
25058 return resultobj;
25059 fail:
25060 return NULL;
25061 }
25062
25063
25064 static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
25065 PyObject *resultobj;
25066 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25067 wxBitmap result;
25068 PyObject * obj0 = 0 ;
25069 char *kwnames[] = {
25070 (char *) "self", NULL
25071 };
25072
25073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
25074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25076 {
25077 PyThreadState* __tstate = wxPyBeginAllowThreads();
25078 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
25079
25080 wxPyEndAllowThreads(__tstate);
25081 if (PyErr_Occurred()) SWIG_fail;
25082 }
25083 {
25084 wxBitmap * resultptr;
25085 resultptr = new wxBitmap((wxBitmap &) result);
25086 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
25087 }
25088 return resultobj;
25089 fail:
25090 return NULL;
25091 }
25092
25093
25094 static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
25095 PyObject *resultobj;
25096 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25097 wxBitmap *arg2 = 0 ;
25098 PyObject * obj0 = 0 ;
25099 PyObject * obj1 = 0 ;
25100 char *kwnames[] = {
25101 (char *) "self",(char *) "bitmap", NULL
25102 };
25103
25104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
25105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25107 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
25108 SWIG_POINTER_EXCEPTION | 0)) == -1)
25109 SWIG_fail;
25110 if (arg2 == NULL) {
25111 PyErr_SetString(PyExc_TypeError,"null reference");
25112 SWIG_fail;
25113 }
25114 {
25115 PyThreadState* __tstate = wxPyBeginAllowThreads();
25116 (arg1)->SetBitmap((wxBitmap const &)*arg2);
25117
25118 wxPyEndAllowThreads(__tstate);
25119 if (PyErr_Occurred()) SWIG_fail;
25120 }
25121 Py_INCREF(Py_None); resultobj = Py_None;
25122 return resultobj;
25123 fail:
25124 return NULL;
25125 }
25126
25127
25128 static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25129 PyObject *obj;
25130 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25131 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
25132 Py_INCREF(obj);
25133 return Py_BuildValue((char *)"");
25134 }
25135 static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25136 PyObject *resultobj;
25137 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25138 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25139 wxPyBitmapDataObject *result;
25140 PyObject * obj0 = 0 ;
25141 char *kwnames[] = {
25142 (char *) "bitmap", NULL
25143 };
25144
25145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
25146 if (obj0) {
25147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25148 SWIG_POINTER_EXCEPTION | 0)) == -1)
25149 SWIG_fail;
25150 if (arg1 == NULL) {
25151 PyErr_SetString(PyExc_TypeError,"null reference");
25152 SWIG_fail;
25153 }
25154 }
25155 {
25156 PyThreadState* __tstate = wxPyBeginAllowThreads();
25157 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
25158
25159 wxPyEndAllowThreads(__tstate);
25160 if (PyErr_Occurred()) SWIG_fail;
25161 }
25162 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
25163 return resultobj;
25164 fail:
25165 return NULL;
25166 }
25167
25168
25169 static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25170 PyObject *resultobj;
25171 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
25172 PyObject *arg2 = (PyObject *) 0 ;
25173 PyObject *arg3 = (PyObject *) 0 ;
25174 PyObject * obj0 = 0 ;
25175 PyObject * obj1 = 0 ;
25176 PyObject * obj2 = 0 ;
25177 char *kwnames[] = {
25178 (char *) "self",(char *) "self",(char *) "_class", NULL
25179 };
25180
25181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject,
25183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25184 arg2 = obj1;
25185 arg3 = obj2;
25186 {
25187 PyThreadState* __tstate = wxPyBeginAllowThreads();
25188 (arg1)->_setCallbackInfo(arg2,arg3);
25189
25190 wxPyEndAllowThreads(__tstate);
25191 if (PyErr_Occurred()) SWIG_fail;
25192 }
25193 Py_INCREF(Py_None); resultobj = Py_None;
25194 return resultobj;
25195 fail:
25196 return NULL;
25197 }
25198
25199
25200 static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25201 PyObject *obj;
25202 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25203 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
25204 Py_INCREF(obj);
25205 return Py_BuildValue((char *)"");
25206 }
25207 static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25208 PyObject *resultobj;
25209 wxFileDataObject *result;
25210 char *kwnames[] = {
25211 NULL
25212 };
25213
25214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
25215 {
25216 PyThreadState* __tstate = wxPyBeginAllowThreads();
25217 result = (wxFileDataObject *)new wxFileDataObject();
25218
25219 wxPyEndAllowThreads(__tstate);
25220 if (PyErr_Occurred()) SWIG_fail;
25221 }
25222 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
25223 return resultobj;
25224 fail:
25225 return NULL;
25226 }
25227
25228
25229 static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) {
25230 PyObject *resultobj;
25231 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25232 wxArrayString *result;
25233 PyObject * obj0 = 0 ;
25234 char *kwnames[] = {
25235 (char *) "self", NULL
25236 };
25237
25238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
25239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25241 {
25242 PyThreadState* __tstate = wxPyBeginAllowThreads();
25243 {
25244 wxArrayString const &_result_ref = (arg1)->GetFilenames();
25245 result = (wxArrayString *) &_result_ref;
25246 }
25247
25248 wxPyEndAllowThreads(__tstate);
25249 if (PyErr_Occurred()) SWIG_fail;
25250 }
25251 {
25252 resultobj = wxArrayString2PyList_helper(*result);
25253 }
25254 return resultobj;
25255 fail:
25256 return NULL;
25257 }
25258
25259
25260 static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) {
25261 PyObject *resultobj;
25262 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25263 wxString *arg2 = 0 ;
25264 bool temp2 = False ;
25265 PyObject * obj0 = 0 ;
25266 PyObject * obj1 = 0 ;
25267 char *kwnames[] = {
25268 (char *) "self",(char *) "filename", NULL
25269 };
25270
25271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
25272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25274 {
25275 arg2 = wxString_in_helper(obj1);
25276 if (arg2 == NULL) SWIG_fail;
25277 temp2 = True;
25278 }
25279 {
25280 PyThreadState* __tstate = wxPyBeginAllowThreads();
25281 (arg1)->AddFile((wxString const &)*arg2);
25282
25283 wxPyEndAllowThreads(__tstate);
25284 if (PyErr_Occurred()) SWIG_fail;
25285 }
25286 Py_INCREF(Py_None); resultobj = Py_None;
25287 {
25288 if (temp2)
25289 delete arg2;
25290 }
25291 return resultobj;
25292 fail:
25293 {
25294 if (temp2)
25295 delete arg2;
25296 }
25297 return NULL;
25298 }
25299
25300
25301 static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) {
25302 PyObject *obj;
25303 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25304 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
25305 Py_INCREF(obj);
25306 return Py_BuildValue((char *)"");
25307 }
25308 static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25309 PyObject *resultobj;
25310 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25311 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25312 wxCustomDataObject *result;
25313 PyObject * obj0 = 0 ;
25314 char *kwnames[] = {
25315 (char *) "format", NULL
25316 };
25317
25318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
25319 if (obj0) {
25320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25321 SWIG_POINTER_EXCEPTION | 0)) == -1)
25322 SWIG_fail;
25323 if (arg1 == NULL) {
25324 PyErr_SetString(PyExc_TypeError,"null reference");
25325 SWIG_fail;
25326 }
25327 }
25328 {
25329 PyThreadState* __tstate = wxPyBeginAllowThreads();
25330 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
25331
25332 wxPyEndAllowThreads(__tstate);
25333 if (PyErr_Occurred()) SWIG_fail;
25334 }
25335 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
25336 return resultobj;
25337 fail:
25338 return NULL;
25339 }
25340
25341
25342 static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) {
25343 PyObject *resultobj;
25344 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25345 PyObject *arg2 = (PyObject *) 0 ;
25346 PyObject * obj0 = 0 ;
25347 PyObject * obj1 = 0 ;
25348 char *kwnames[] = {
25349 (char *) "self",(char *) "data", NULL
25350 };
25351
25352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail;
25353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25355 arg2 = obj1;
25356 {
25357 PyThreadState* __tstate = wxPyBeginAllowThreads();
25358 wxCustomDataObject_TakeData(arg1,arg2);
25359
25360 wxPyEndAllowThreads(__tstate);
25361 if (PyErr_Occurred()) SWIG_fail;
25362 }
25363 Py_INCREF(Py_None); resultobj = Py_None;
25364 return resultobj;
25365 fail:
25366 return NULL;
25367 }
25368
25369
25370 static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25371 PyObject *resultobj;
25372 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25373 PyObject *arg2 = (PyObject *) 0 ;
25374 bool result;
25375 PyObject * obj0 = 0 ;
25376 PyObject * obj1 = 0 ;
25377 char *kwnames[] = {
25378 (char *) "self",(char *) "data", NULL
25379 };
25380
25381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
25382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25384 arg2 = obj1;
25385 {
25386 PyThreadState* __tstate = wxPyBeginAllowThreads();
25387 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
25388
25389 wxPyEndAllowThreads(__tstate);
25390 if (PyErr_Occurred()) SWIG_fail;
25391 }
25392 {
25393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25394 }
25395 return resultobj;
25396 fail:
25397 return NULL;
25398 }
25399
25400
25401 static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
25402 PyObject *resultobj;
25403 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25404 size_t result;
25405 PyObject * obj0 = 0 ;
25406 char *kwnames[] = {
25407 (char *) "self", NULL
25408 };
25409
25410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
25411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25413 {
25414 PyThreadState* __tstate = wxPyBeginAllowThreads();
25415 result = (size_t)(arg1)->GetSize();
25416
25417 wxPyEndAllowThreads(__tstate);
25418 if (PyErr_Occurred()) SWIG_fail;
25419 }
25420 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25421 return resultobj;
25422 fail:
25423 return NULL;
25424 }
25425
25426
25427 static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25428 PyObject *resultobj;
25429 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25430 PyObject *result;
25431 PyObject * obj0 = 0 ;
25432 char *kwnames[] = {
25433 (char *) "self", NULL
25434 };
25435
25436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
25437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25439 {
25440 PyThreadState* __tstate = wxPyBeginAllowThreads();
25441 result = (PyObject *)wxCustomDataObject_GetData(arg1);
25442
25443 wxPyEndAllowThreads(__tstate);
25444 if (PyErr_Occurred()) SWIG_fail;
25445 }
25446 resultobj = result;
25447 return resultobj;
25448 fail:
25449 return NULL;
25450 }
25451
25452
25453 static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) {
25454 PyObject *obj;
25455 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25456 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
25457 Py_INCREF(obj);
25458 return Py_BuildValue((char *)"");
25459 }
25460 static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25461 PyObject *resultobj;
25462 wxURLDataObject *result;
25463 char *kwnames[] = {
25464 NULL
25465 };
25466
25467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
25468 {
25469 PyThreadState* __tstate = wxPyBeginAllowThreads();
25470 result = (wxURLDataObject *)new wxURLDataObject();
25471
25472 wxPyEndAllowThreads(__tstate);
25473 if (PyErr_Occurred()) SWIG_fail;
25474 }
25475 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
25476 return resultobj;
25477 fail:
25478 return NULL;
25479 }
25480
25481
25482 static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25483 PyObject *resultobj;
25484 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25485 wxString result;
25486 PyObject * obj0 = 0 ;
25487 char *kwnames[] = {
25488 (char *) "self", NULL
25489 };
25490
25491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
25492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25494 {
25495 PyThreadState* __tstate = wxPyBeginAllowThreads();
25496 result = (arg1)->GetURL();
25497
25498 wxPyEndAllowThreads(__tstate);
25499 if (PyErr_Occurred()) SWIG_fail;
25500 }
25501 {
25502 #if wxUSE_UNICODE
25503 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25504 #else
25505 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25506 #endif
25507 }
25508 return resultobj;
25509 fail:
25510 return NULL;
25511 }
25512
25513
25514 static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25515 PyObject *resultobj;
25516 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25517 wxString *arg2 = 0 ;
25518 bool temp2 = False ;
25519 PyObject * obj0 = 0 ;
25520 PyObject * obj1 = 0 ;
25521 char *kwnames[] = {
25522 (char *) "self",(char *) "url", NULL
25523 };
25524
25525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
25526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25528 {
25529 arg2 = wxString_in_helper(obj1);
25530 if (arg2 == NULL) SWIG_fail;
25531 temp2 = True;
25532 }
25533 {
25534 PyThreadState* __tstate = wxPyBeginAllowThreads();
25535 (arg1)->SetURL((wxString const &)*arg2);
25536
25537 wxPyEndAllowThreads(__tstate);
25538 if (PyErr_Occurred()) SWIG_fail;
25539 }
25540 Py_INCREF(Py_None); resultobj = Py_None;
25541 {
25542 if (temp2)
25543 delete arg2;
25544 }
25545 return resultobj;
25546 fail:
25547 {
25548 if (temp2)
25549 delete arg2;
25550 }
25551 return NULL;
25552 }
25553
25554
25555 static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) {
25556 PyObject *obj;
25557 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25558 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
25559 Py_INCREF(obj);
25560 return Py_BuildValue((char *)"");
25561 }
25562 static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25563 PyObject *resultobj;
25564 wxMetafileDataObject *result;
25565 char *kwnames[] = {
25566 NULL
25567 };
25568
25569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
25570 {
25571 PyThreadState* __tstate = wxPyBeginAllowThreads();
25572 result = (wxMetafileDataObject *)new wxMetafileDataObject();
25573
25574 wxPyEndAllowThreads(__tstate);
25575 if (PyErr_Occurred()) SWIG_fail;
25576 }
25577 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
25578 return resultobj;
25579 fail:
25580 return NULL;
25581 }
25582
25583
25584 static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) {
25585 PyObject *obj;
25586 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25587 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
25588 Py_INCREF(obj);
25589 return Py_BuildValue((char *)"");
25590 }
25591 static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) {
25592 PyObject *resultobj;
25593 int arg1 ;
25594 bool result;
25595 PyObject * obj0 = 0 ;
25596 char *kwnames[] = {
25597 (char *) "res", NULL
25598 };
25599
25600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
25601 arg1 = (wxDragResult) SWIG_AsInt(obj0);
25602 if (PyErr_Occurred()) SWIG_fail;
25603 {
25604 PyThreadState* __tstate = wxPyBeginAllowThreads();
25605 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
25606
25607 wxPyEndAllowThreads(__tstate);
25608 if (PyErr_Occurred()) SWIG_fail;
25609 }
25610 {
25611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25612 }
25613 return resultobj;
25614 fail:
25615 return NULL;
25616 }
25617
25618
25619 static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25620 PyObject *resultobj;
25621 wxWindow *arg1 = (wxWindow *) 0 ;
25622 wxIcon const &arg2_defvalue = wxNullIcon ;
25623 wxIcon *arg2 = (wxIcon *) &arg2_defvalue ;
25624 wxIcon const &arg3_defvalue = wxNullIcon ;
25625 wxIcon *arg3 = (wxIcon *) &arg3_defvalue ;
25626 wxIcon const &arg4_defvalue = wxNullIcon ;
25627 wxIcon *arg4 = (wxIcon *) &arg4_defvalue ;
25628 wxPyDropSource *result;
25629 PyObject * obj0 = 0 ;
25630 PyObject * obj1 = 0 ;
25631 PyObject * obj2 = 0 ;
25632 PyObject * obj3 = 0 ;
25633 char *kwnames[] = {
25634 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
25635 };
25636
25637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25640 if (obj1) {
25641 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
25642 SWIG_POINTER_EXCEPTION | 0)) == -1)
25643 SWIG_fail;
25644 if (arg2 == NULL) {
25645 PyErr_SetString(PyExc_TypeError,"null reference");
25646 SWIG_fail;
25647 }
25648 }
25649 if (obj2) {
25650 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIcon,
25651 SWIG_POINTER_EXCEPTION | 0)) == -1)
25652 SWIG_fail;
25653 if (arg3 == NULL) {
25654 PyErr_SetString(PyExc_TypeError,"null reference");
25655 SWIG_fail;
25656 }
25657 }
25658 if (obj3) {
25659 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxIcon,
25660 SWIG_POINTER_EXCEPTION | 0)) == -1)
25661 SWIG_fail;
25662 if (arg4 == NULL) {
25663 PyErr_SetString(PyExc_TypeError,"null reference");
25664 SWIG_fail;
25665 }
25666 }
25667 {
25668 PyThreadState* __tstate = wxPyBeginAllowThreads();
25669 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxIcon const &)*arg2,(wxIcon const &)*arg3,(wxIcon const &)*arg4);
25670
25671 wxPyEndAllowThreads(__tstate);
25672 if (PyErr_Occurred()) SWIG_fail;
25673 }
25674 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
25675 return resultobj;
25676 fail:
25677 return NULL;
25678 }
25679
25680
25681 static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25682 PyObject *resultobj;
25683 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25684 PyObject *arg2 = (PyObject *) 0 ;
25685 PyObject *arg3 = (PyObject *) 0 ;
25686 int arg4 ;
25687 PyObject * obj0 = 0 ;
25688 PyObject * obj1 = 0 ;
25689 PyObject * obj2 = 0 ;
25690 PyObject * obj3 = 0 ;
25691 char *kwnames[] = {
25692 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
25693 };
25694
25695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25698 arg2 = obj1;
25699 arg3 = obj2;
25700 arg4 = (int) SWIG_AsInt(obj3);
25701 if (PyErr_Occurred()) SWIG_fail;
25702 {
25703 PyThreadState* __tstate = wxPyBeginAllowThreads();
25704 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
25705
25706 wxPyEndAllowThreads(__tstate);
25707 if (PyErr_Occurred()) SWIG_fail;
25708 }
25709 Py_INCREF(Py_None); resultobj = Py_None;
25710 return resultobj;
25711 fail:
25712 return NULL;
25713 }
25714
25715
25716 static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25717 PyObject *resultobj;
25718 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25719 PyObject * obj0 = 0 ;
25720 char *kwnames[] = {
25721 (char *) "self", NULL
25722 };
25723
25724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
25725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25727 {
25728 PyThreadState* __tstate = wxPyBeginAllowThreads();
25729 delete arg1;
25730
25731 wxPyEndAllowThreads(__tstate);
25732 if (PyErr_Occurred()) SWIG_fail;
25733 }
25734 Py_INCREF(Py_None); resultobj = Py_None;
25735 return resultobj;
25736 fail:
25737 return NULL;
25738 }
25739
25740
25741 static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25742 PyObject *resultobj;
25743 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25744 wxDataObject *arg2 = 0 ;
25745 PyObject * obj0 = 0 ;
25746 PyObject * obj1 = 0 ;
25747 char *kwnames[] = {
25748 (char *) "self",(char *) "data", NULL
25749 };
25750
25751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
25752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25754 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
25755 SWIG_POINTER_EXCEPTION | 0)) == -1)
25756 SWIG_fail;
25757 if (arg2 == NULL) {
25758 PyErr_SetString(PyExc_TypeError,"null reference");
25759 SWIG_fail;
25760 }
25761 {
25762 PyThreadState* __tstate = wxPyBeginAllowThreads();
25763 (arg1)->SetData(*arg2);
25764
25765 wxPyEndAllowThreads(__tstate);
25766 if (PyErr_Occurred()) SWIG_fail;
25767 }
25768 Py_INCREF(Py_None); resultobj = Py_None;
25769 return resultobj;
25770 fail:
25771 return NULL;
25772 }
25773
25774
25775 static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25776 PyObject *resultobj;
25777 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25778 wxDataObject *result;
25779 PyObject * obj0 = 0 ;
25780 char *kwnames[] = {
25781 (char *) "self", NULL
25782 };
25783
25784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
25785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25787 {
25788 PyThreadState* __tstate = wxPyBeginAllowThreads();
25789 result = (wxDataObject *)(arg1)->GetDataObject();
25790
25791 wxPyEndAllowThreads(__tstate);
25792 if (PyErr_Occurred()) SWIG_fail;
25793 }
25794 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
25795 return resultobj;
25796 fail:
25797 return NULL;
25798 }
25799
25800
25801 static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
25802 PyObject *resultobj;
25803 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25804 int arg2 ;
25805 wxCursor *arg3 = 0 ;
25806 PyObject * obj0 = 0 ;
25807 PyObject * obj1 = 0 ;
25808 PyObject * obj2 = 0 ;
25809 char *kwnames[] = {
25810 (char *) "self",(char *) "res",(char *) "cursor", NULL
25811 };
25812
25813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
25814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25816 arg2 = (wxDragResult) SWIG_AsInt(obj1);
25817 if (PyErr_Occurred()) SWIG_fail;
25818 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
25819 SWIG_POINTER_EXCEPTION | 0)) == -1)
25820 SWIG_fail;
25821 if (arg3 == NULL) {
25822 PyErr_SetString(PyExc_TypeError,"null reference");
25823 SWIG_fail;
25824 }
25825 {
25826 PyThreadState* __tstate = wxPyBeginAllowThreads();
25827 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
25828
25829 wxPyEndAllowThreads(__tstate);
25830 if (PyErr_Occurred()) SWIG_fail;
25831 }
25832 Py_INCREF(Py_None); resultobj = Py_None;
25833 return resultobj;
25834 fail:
25835 return NULL;
25836 }
25837
25838
25839 static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
25840 PyObject *resultobj;
25841 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25842 int arg2 = (int) wxDrag_CopyOnly ;
25843 int result;
25844 PyObject * obj0 = 0 ;
25845 PyObject * obj1 = 0 ;
25846 char *kwnames[] = {
25847 (char *) "self",(char *) "flags", NULL
25848 };
25849
25850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
25851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25853 if (obj1) {
25854 arg2 = (int) SWIG_AsInt(obj1);
25855 if (PyErr_Occurred()) SWIG_fail;
25856 }
25857 {
25858 PyThreadState* __tstate = wxPyBeginAllowThreads();
25859 result = (int)(arg1)->DoDragDrop(arg2);
25860
25861 wxPyEndAllowThreads(__tstate);
25862 if (PyErr_Occurred()) SWIG_fail;
25863 }
25864 resultobj = SWIG_FromInt((int)result);
25865 return resultobj;
25866 fail:
25867 return NULL;
25868 }
25869
25870
25871 static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) {
25872 PyObject *resultobj;
25873 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25874 int arg2 ;
25875 bool result;
25876 PyObject * obj0 = 0 ;
25877 PyObject * obj1 = 0 ;
25878 char *kwnames[] = {
25879 (char *) "self",(char *) "effect", NULL
25880 };
25881
25882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
25883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25885 arg2 = (wxDragResult) SWIG_AsInt(obj1);
25886 if (PyErr_Occurred()) SWIG_fail;
25887 {
25888 PyThreadState* __tstate = wxPyBeginAllowThreads();
25889 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
25890
25891 wxPyEndAllowThreads(__tstate);
25892 if (PyErr_Occurred()) SWIG_fail;
25893 }
25894 {
25895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25896 }
25897 return resultobj;
25898 fail:
25899 return NULL;
25900 }
25901
25902
25903 static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) {
25904 PyObject *obj;
25905 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25906 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
25907 Py_INCREF(obj);
25908 return Py_BuildValue((char *)"");
25909 }
25910 static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
25911 PyObject *resultobj;
25912 wxDataObject *arg1 = (wxDataObject *) NULL ;
25913 wxPyDropTarget *result;
25914 PyObject * obj0 = 0 ;
25915 char *kwnames[] = {
25916 (char *) "dataObject", NULL
25917 };
25918
25919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
25920 if (obj0) {
25921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
25922 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25923 }
25924 {
25925 PyThreadState* __tstate = wxPyBeginAllowThreads();
25926 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
25927
25928 wxPyEndAllowThreads(__tstate);
25929 if (PyErr_Occurred()) SWIG_fail;
25930 }
25931 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
25932 return resultobj;
25933 fail:
25934 return NULL;
25935 }
25936
25937
25938 static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25939 PyObject *resultobj;
25940 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25941 PyObject *arg2 = (PyObject *) 0 ;
25942 PyObject *arg3 = (PyObject *) 0 ;
25943 PyObject * obj0 = 0 ;
25944 PyObject * obj1 = 0 ;
25945 PyObject * obj2 = 0 ;
25946 char *kwnames[] = {
25947 (char *) "self",(char *) "self",(char *) "_class", NULL
25948 };
25949
25950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25953 arg2 = obj1;
25954 arg3 = obj2;
25955 {
25956 PyThreadState* __tstate = wxPyBeginAllowThreads();
25957 (arg1)->_setCallbackInfo(arg2,arg3);
25958
25959 wxPyEndAllowThreads(__tstate);
25960 if (PyErr_Occurred()) SWIG_fail;
25961 }
25962 Py_INCREF(Py_None); resultobj = Py_None;
25963 return resultobj;
25964 fail:
25965 return NULL;
25966 }
25967
25968
25969 static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
25970 PyObject *resultobj;
25971 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25972 PyObject * obj0 = 0 ;
25973 char *kwnames[] = {
25974 (char *) "self", NULL
25975 };
25976
25977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
25978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25980 {
25981 PyThreadState* __tstate = wxPyBeginAllowThreads();
25982 delete arg1;
25983
25984 wxPyEndAllowThreads(__tstate);
25985 if (PyErr_Occurred()) SWIG_fail;
25986 }
25987 Py_INCREF(Py_None); resultobj = Py_None;
25988 return resultobj;
25989 fail:
25990 return NULL;
25991 }
25992
25993
25994 static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25995 PyObject *resultobj;
25996 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25997 wxDataObject *result;
25998 PyObject * obj0 = 0 ;
25999 char *kwnames[] = {
26000 (char *) "self", NULL
26001 };
26002
26003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
26004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26006 {
26007 PyThreadState* __tstate = wxPyBeginAllowThreads();
26008 result = (wxDataObject *)(arg1)->GetDataObject();
26009
26010 wxPyEndAllowThreads(__tstate);
26011 if (PyErr_Occurred()) SWIG_fail;
26012 }
26013 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26014 return resultobj;
26015 fail:
26016 return NULL;
26017 }
26018
26019
26020 static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26021 PyObject *resultobj;
26022 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26023 wxDataObject *arg2 = (wxDataObject *) 0 ;
26024 PyObject * obj0 = 0 ;
26025 PyObject * obj1 = 0 ;
26026 char *kwnames[] = {
26027 (char *) "self",(char *) "dataObject", NULL
26028 };
26029
26030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
26031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26033 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26034 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26035 {
26036 PyThreadState* __tstate = wxPyBeginAllowThreads();
26037 (arg1)->SetDataObject(arg2);
26038
26039 wxPyEndAllowThreads(__tstate);
26040 if (PyErr_Occurred()) SWIG_fail;
26041 }
26042 Py_INCREF(Py_None); resultobj = Py_None;
26043 return resultobj;
26044 fail:
26045 return NULL;
26046 }
26047
26048
26049 static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26050 PyObject *resultobj;
26051 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26052 int arg2 ;
26053 int arg3 ;
26054 int arg4 ;
26055 int result;
26056 PyObject * obj0 = 0 ;
26057 PyObject * obj1 = 0 ;
26058 PyObject * obj2 = 0 ;
26059 PyObject * obj3 = 0 ;
26060 char *kwnames[] = {
26061 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26062 };
26063
26064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26067 arg2 = (int) SWIG_AsInt(obj1);
26068 if (PyErr_Occurred()) SWIG_fail;
26069 arg3 = (int) SWIG_AsInt(obj2);
26070 if (PyErr_Occurred()) SWIG_fail;
26071 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26072 if (PyErr_Occurred()) SWIG_fail;
26073 {
26074 PyThreadState* __tstate = wxPyBeginAllowThreads();
26075 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26076
26077 wxPyEndAllowThreads(__tstate);
26078 if (PyErr_Occurred()) SWIG_fail;
26079 }
26080 resultobj = SWIG_FromInt((int)result);
26081 return resultobj;
26082 fail:
26083 return NULL;
26084 }
26085
26086
26087 static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26088 PyObject *resultobj;
26089 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26090 int arg2 ;
26091 int arg3 ;
26092 int arg4 ;
26093 int result;
26094 PyObject * obj0 = 0 ;
26095 PyObject * obj1 = 0 ;
26096 PyObject * obj2 = 0 ;
26097 PyObject * obj3 = 0 ;
26098 char *kwnames[] = {
26099 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26100 };
26101
26102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26105 arg2 = (int) SWIG_AsInt(obj1);
26106 if (PyErr_Occurred()) SWIG_fail;
26107 arg3 = (int) SWIG_AsInt(obj2);
26108 if (PyErr_Occurred()) SWIG_fail;
26109 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26110 if (PyErr_Occurred()) SWIG_fail;
26111 {
26112 PyThreadState* __tstate = wxPyBeginAllowThreads();
26113 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26114
26115 wxPyEndAllowThreads(__tstate);
26116 if (PyErr_Occurred()) SWIG_fail;
26117 }
26118 resultobj = SWIG_FromInt((int)result);
26119 return resultobj;
26120 fail:
26121 return NULL;
26122 }
26123
26124
26125 static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26126 PyObject *resultobj;
26127 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26128 PyObject * obj0 = 0 ;
26129 char *kwnames[] = {
26130 (char *) "self", NULL
26131 };
26132
26133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26136 {
26137 PyThreadState* __tstate = wxPyBeginAllowThreads();
26138 (arg1)->base_OnLeave();
26139
26140 wxPyEndAllowThreads(__tstate);
26141 if (PyErr_Occurred()) SWIG_fail;
26142 }
26143 Py_INCREF(Py_None); resultobj = Py_None;
26144 return resultobj;
26145 fail:
26146 return NULL;
26147 }
26148
26149
26150 static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26151 PyObject *resultobj;
26152 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26153 int arg2 ;
26154 int arg3 ;
26155 bool result;
26156 PyObject * obj0 = 0 ;
26157 PyObject * obj1 = 0 ;
26158 PyObject * obj2 = 0 ;
26159 char *kwnames[] = {
26160 (char *) "self",(char *) "x",(char *) "y", NULL
26161 };
26162
26163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26166 arg2 = (int) SWIG_AsInt(obj1);
26167 if (PyErr_Occurred()) SWIG_fail;
26168 arg3 = (int) SWIG_AsInt(obj2);
26169 if (PyErr_Occurred()) SWIG_fail;
26170 {
26171 PyThreadState* __tstate = wxPyBeginAllowThreads();
26172 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26173
26174 wxPyEndAllowThreads(__tstate);
26175 if (PyErr_Occurred()) SWIG_fail;
26176 }
26177 {
26178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26179 }
26180 return resultobj;
26181 fail:
26182 return NULL;
26183 }
26184
26185
26186 static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26187 PyObject *resultobj;
26188 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26189 bool result;
26190 PyObject * obj0 = 0 ;
26191 char *kwnames[] = {
26192 (char *) "self", NULL
26193 };
26194
26195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
26196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26198 {
26199 PyThreadState* __tstate = wxPyBeginAllowThreads();
26200 result = (bool)(arg1)->GetData();
26201
26202 wxPyEndAllowThreads(__tstate);
26203 if (PyErr_Occurred()) SWIG_fail;
26204 }
26205 {
26206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26207 }
26208 return resultobj;
26209 fail:
26210 return NULL;
26211 }
26212
26213
26214 static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) {
26215 PyObject *obj;
26216 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26217 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
26218 Py_INCREF(obj);
26219 return Py_BuildValue((char *)"");
26220 }
26221 static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26222 PyObject *resultobj;
26223 wxPyTextDropTarget *result;
26224 char *kwnames[] = {
26225 NULL
26226 };
26227
26228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
26229 {
26230 PyThreadState* __tstate = wxPyBeginAllowThreads();
26231 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
26232
26233 wxPyEndAllowThreads(__tstate);
26234 if (PyErr_Occurred()) SWIG_fail;
26235 }
26236 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
26237 return resultobj;
26238 fail:
26239 return NULL;
26240 }
26241
26242
26243 static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26244 PyObject *resultobj;
26245 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26246 PyObject *arg2 = (PyObject *) 0 ;
26247 PyObject *arg3 = (PyObject *) 0 ;
26248 PyObject * obj0 = 0 ;
26249 PyObject * obj1 = 0 ;
26250 PyObject * obj2 = 0 ;
26251 char *kwnames[] = {
26252 (char *) "self",(char *) "self",(char *) "_class", NULL
26253 };
26254
26255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26258 arg2 = obj1;
26259 arg3 = obj2;
26260 {
26261 PyThreadState* __tstate = wxPyBeginAllowThreads();
26262 (arg1)->_setCallbackInfo(arg2,arg3);
26263
26264 wxPyEndAllowThreads(__tstate);
26265 if (PyErr_Occurred()) SWIG_fail;
26266 }
26267 Py_INCREF(Py_None); resultobj = Py_None;
26268 return resultobj;
26269 fail:
26270 return NULL;
26271 }
26272
26273
26274 static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26275 PyObject *resultobj;
26276 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26277 int arg2 ;
26278 int arg3 ;
26279 int arg4 ;
26280 int result;
26281 PyObject * obj0 = 0 ;
26282 PyObject * obj1 = 0 ;
26283 PyObject * obj2 = 0 ;
26284 PyObject * obj3 = 0 ;
26285 char *kwnames[] = {
26286 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26287 };
26288
26289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26292 arg2 = (int) SWIG_AsInt(obj1);
26293 if (PyErr_Occurred()) SWIG_fail;
26294 arg3 = (int) SWIG_AsInt(obj2);
26295 if (PyErr_Occurred()) SWIG_fail;
26296 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26297 if (PyErr_Occurred()) SWIG_fail;
26298 {
26299 PyThreadState* __tstate = wxPyBeginAllowThreads();
26300 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26301
26302 wxPyEndAllowThreads(__tstate);
26303 if (PyErr_Occurred()) SWIG_fail;
26304 }
26305 resultobj = SWIG_FromInt((int)result);
26306 return resultobj;
26307 fail:
26308 return NULL;
26309 }
26310
26311
26312 static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26313 PyObject *resultobj;
26314 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26315 int arg2 ;
26316 int arg3 ;
26317 int arg4 ;
26318 int result;
26319 PyObject * obj0 = 0 ;
26320 PyObject * obj1 = 0 ;
26321 PyObject * obj2 = 0 ;
26322 PyObject * obj3 = 0 ;
26323 char *kwnames[] = {
26324 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26325 };
26326
26327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26330 arg2 = (int) SWIG_AsInt(obj1);
26331 if (PyErr_Occurred()) SWIG_fail;
26332 arg3 = (int) SWIG_AsInt(obj2);
26333 if (PyErr_Occurred()) SWIG_fail;
26334 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26335 if (PyErr_Occurred()) SWIG_fail;
26336 {
26337 PyThreadState* __tstate = wxPyBeginAllowThreads();
26338 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26339
26340 wxPyEndAllowThreads(__tstate);
26341 if (PyErr_Occurred()) SWIG_fail;
26342 }
26343 resultobj = SWIG_FromInt((int)result);
26344 return resultobj;
26345 fail:
26346 return NULL;
26347 }
26348
26349
26350 static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26351 PyObject *resultobj;
26352 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26353 PyObject * obj0 = 0 ;
26354 char *kwnames[] = {
26355 (char *) "self", NULL
26356 };
26357
26358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26361 {
26362 PyThreadState* __tstate = wxPyBeginAllowThreads();
26363 (arg1)->base_OnLeave();
26364
26365 wxPyEndAllowThreads(__tstate);
26366 if (PyErr_Occurred()) SWIG_fail;
26367 }
26368 Py_INCREF(Py_None); resultobj = Py_None;
26369 return resultobj;
26370 fail:
26371 return NULL;
26372 }
26373
26374
26375 static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26376 PyObject *resultobj;
26377 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26378 int arg2 ;
26379 int arg3 ;
26380 bool result;
26381 PyObject * obj0 = 0 ;
26382 PyObject * obj1 = 0 ;
26383 PyObject * obj2 = 0 ;
26384 char *kwnames[] = {
26385 (char *) "self",(char *) "x",(char *) "y", NULL
26386 };
26387
26388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26391 arg2 = (int) SWIG_AsInt(obj1);
26392 if (PyErr_Occurred()) SWIG_fail;
26393 arg3 = (int) SWIG_AsInt(obj2);
26394 if (PyErr_Occurred()) SWIG_fail;
26395 {
26396 PyThreadState* __tstate = wxPyBeginAllowThreads();
26397 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26398
26399 wxPyEndAllowThreads(__tstate);
26400 if (PyErr_Occurred()) SWIG_fail;
26401 }
26402 {
26403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26404 }
26405 return resultobj;
26406 fail:
26407 return NULL;
26408 }
26409
26410
26411 static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26412 PyObject *resultobj;
26413 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26414 int arg2 ;
26415 int arg3 ;
26416 int arg4 ;
26417 int result;
26418 PyObject * obj0 = 0 ;
26419 PyObject * obj1 = 0 ;
26420 PyObject * obj2 = 0 ;
26421 PyObject * obj3 = 0 ;
26422 char *kwnames[] = {
26423 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26424 };
26425
26426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26429 arg2 = (int) SWIG_AsInt(obj1);
26430 if (PyErr_Occurred()) SWIG_fail;
26431 arg3 = (int) SWIG_AsInt(obj2);
26432 if (PyErr_Occurred()) SWIG_fail;
26433 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26434 if (PyErr_Occurred()) SWIG_fail;
26435 {
26436 PyThreadState* __tstate = wxPyBeginAllowThreads();
26437 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26438
26439 wxPyEndAllowThreads(__tstate);
26440 if (PyErr_Occurred()) SWIG_fail;
26441 }
26442 resultobj = SWIG_FromInt((int)result);
26443 return resultobj;
26444 fail:
26445 return NULL;
26446 }
26447
26448
26449 static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) {
26450 PyObject *obj;
26451 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26452 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
26453 Py_INCREF(obj);
26454 return Py_BuildValue((char *)"");
26455 }
26456 static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26457 PyObject *resultobj;
26458 wxPyFileDropTarget *result;
26459 char *kwnames[] = {
26460 NULL
26461 };
26462
26463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
26464 {
26465 PyThreadState* __tstate = wxPyBeginAllowThreads();
26466 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
26467
26468 wxPyEndAllowThreads(__tstate);
26469 if (PyErr_Occurred()) SWIG_fail;
26470 }
26471 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
26472 return resultobj;
26473 fail:
26474 return NULL;
26475 }
26476
26477
26478 static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26479 PyObject *resultobj;
26480 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26481 PyObject *arg2 = (PyObject *) 0 ;
26482 PyObject *arg3 = (PyObject *) 0 ;
26483 PyObject * obj0 = 0 ;
26484 PyObject * obj1 = 0 ;
26485 PyObject * obj2 = 0 ;
26486 char *kwnames[] = {
26487 (char *) "self",(char *) "self",(char *) "_class", NULL
26488 };
26489
26490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26493 arg2 = obj1;
26494 arg3 = obj2;
26495 {
26496 PyThreadState* __tstate = wxPyBeginAllowThreads();
26497 (arg1)->_setCallbackInfo(arg2,arg3);
26498
26499 wxPyEndAllowThreads(__tstate);
26500 if (PyErr_Occurred()) SWIG_fail;
26501 }
26502 Py_INCREF(Py_None); resultobj = Py_None;
26503 return resultobj;
26504 fail:
26505 return NULL;
26506 }
26507
26508
26509 static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26510 PyObject *resultobj;
26511 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26512 int arg2 ;
26513 int arg3 ;
26514 int arg4 ;
26515 int result;
26516 PyObject * obj0 = 0 ;
26517 PyObject * obj1 = 0 ;
26518 PyObject * obj2 = 0 ;
26519 PyObject * obj3 = 0 ;
26520 char *kwnames[] = {
26521 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26522 };
26523
26524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26527 arg2 = (int) SWIG_AsInt(obj1);
26528 if (PyErr_Occurred()) SWIG_fail;
26529 arg3 = (int) SWIG_AsInt(obj2);
26530 if (PyErr_Occurred()) SWIG_fail;
26531 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26532 if (PyErr_Occurred()) SWIG_fail;
26533 {
26534 PyThreadState* __tstate = wxPyBeginAllowThreads();
26535 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26536
26537 wxPyEndAllowThreads(__tstate);
26538 if (PyErr_Occurred()) SWIG_fail;
26539 }
26540 resultobj = SWIG_FromInt((int)result);
26541 return resultobj;
26542 fail:
26543 return NULL;
26544 }
26545
26546
26547 static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26548 PyObject *resultobj;
26549 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26550 int arg2 ;
26551 int arg3 ;
26552 int arg4 ;
26553 int result;
26554 PyObject * obj0 = 0 ;
26555 PyObject * obj1 = 0 ;
26556 PyObject * obj2 = 0 ;
26557 PyObject * obj3 = 0 ;
26558 char *kwnames[] = {
26559 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26560 };
26561
26562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26565 arg2 = (int) SWIG_AsInt(obj1);
26566 if (PyErr_Occurred()) SWIG_fail;
26567 arg3 = (int) SWIG_AsInt(obj2);
26568 if (PyErr_Occurred()) SWIG_fail;
26569 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26570 if (PyErr_Occurred()) SWIG_fail;
26571 {
26572 PyThreadState* __tstate = wxPyBeginAllowThreads();
26573 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26574
26575 wxPyEndAllowThreads(__tstate);
26576 if (PyErr_Occurred()) SWIG_fail;
26577 }
26578 resultobj = SWIG_FromInt((int)result);
26579 return resultobj;
26580 fail:
26581 return NULL;
26582 }
26583
26584
26585 static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26586 PyObject *resultobj;
26587 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26588 PyObject * obj0 = 0 ;
26589 char *kwnames[] = {
26590 (char *) "self", NULL
26591 };
26592
26593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26596 {
26597 PyThreadState* __tstate = wxPyBeginAllowThreads();
26598 (arg1)->base_OnLeave();
26599
26600 wxPyEndAllowThreads(__tstate);
26601 if (PyErr_Occurred()) SWIG_fail;
26602 }
26603 Py_INCREF(Py_None); resultobj = Py_None;
26604 return resultobj;
26605 fail:
26606 return NULL;
26607 }
26608
26609
26610 static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26611 PyObject *resultobj;
26612 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26613 int arg2 ;
26614 int arg3 ;
26615 bool result;
26616 PyObject * obj0 = 0 ;
26617 PyObject * obj1 = 0 ;
26618 PyObject * obj2 = 0 ;
26619 char *kwnames[] = {
26620 (char *) "self",(char *) "x",(char *) "y", NULL
26621 };
26622
26623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26626 arg2 = (int) SWIG_AsInt(obj1);
26627 if (PyErr_Occurred()) SWIG_fail;
26628 arg3 = (int) SWIG_AsInt(obj2);
26629 if (PyErr_Occurred()) SWIG_fail;
26630 {
26631 PyThreadState* __tstate = wxPyBeginAllowThreads();
26632 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26633
26634 wxPyEndAllowThreads(__tstate);
26635 if (PyErr_Occurred()) SWIG_fail;
26636 }
26637 {
26638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26639 }
26640 return resultobj;
26641 fail:
26642 return NULL;
26643 }
26644
26645
26646 static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26647 PyObject *resultobj;
26648 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26649 int arg2 ;
26650 int arg3 ;
26651 int arg4 ;
26652 int result;
26653 PyObject * obj0 = 0 ;
26654 PyObject * obj1 = 0 ;
26655 PyObject * obj2 = 0 ;
26656 PyObject * obj3 = 0 ;
26657 char *kwnames[] = {
26658 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26659 };
26660
26661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26664 arg2 = (int) SWIG_AsInt(obj1);
26665 if (PyErr_Occurred()) SWIG_fail;
26666 arg3 = (int) SWIG_AsInt(obj2);
26667 if (PyErr_Occurred()) SWIG_fail;
26668 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26669 if (PyErr_Occurred()) SWIG_fail;
26670 {
26671 PyThreadState* __tstate = wxPyBeginAllowThreads();
26672 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26673
26674 wxPyEndAllowThreads(__tstate);
26675 if (PyErr_Occurred()) SWIG_fail;
26676 }
26677 resultobj = SWIG_FromInt((int)result);
26678 return resultobj;
26679 fail:
26680 return NULL;
26681 }
26682
26683
26684 static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) {
26685 PyObject *obj;
26686 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26687 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
26688 Py_INCREF(obj);
26689 return Py_BuildValue((char *)"");
26690 }
26691 static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26692 PyObject *resultobj;
26693 wxClipboard *result;
26694 char *kwnames[] = {
26695 NULL
26696 };
26697
26698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
26699 {
26700 PyThreadState* __tstate = wxPyBeginAllowThreads();
26701 result = (wxClipboard *)new wxClipboard();
26702
26703 wxPyEndAllowThreads(__tstate);
26704 if (PyErr_Occurred()) SWIG_fail;
26705 }
26706 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
26707 return resultobj;
26708 fail:
26709 return NULL;
26710 }
26711
26712
26713 static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26714 PyObject *resultobj;
26715 wxClipboard *arg1 = (wxClipboard *) 0 ;
26716 PyObject * obj0 = 0 ;
26717 char *kwnames[] = {
26718 (char *) "self", NULL
26719 };
26720
26721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
26722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26724 {
26725 PyThreadState* __tstate = wxPyBeginAllowThreads();
26726 delete arg1;
26727
26728 wxPyEndAllowThreads(__tstate);
26729 if (PyErr_Occurred()) SWIG_fail;
26730 }
26731 Py_INCREF(Py_None); resultobj = Py_None;
26732 return resultobj;
26733 fail:
26734 return NULL;
26735 }
26736
26737
26738 static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
26739 PyObject *resultobj;
26740 wxClipboard *arg1 = (wxClipboard *) 0 ;
26741 bool result;
26742 PyObject * obj0 = 0 ;
26743 char *kwnames[] = {
26744 (char *) "self", NULL
26745 };
26746
26747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
26748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26750 {
26751 PyThreadState* __tstate = wxPyBeginAllowThreads();
26752 result = (bool)(arg1)->Open();
26753
26754 wxPyEndAllowThreads(__tstate);
26755 if (PyErr_Occurred()) SWIG_fail;
26756 }
26757 {
26758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26759 }
26760 return resultobj;
26761 fail:
26762 return NULL;
26763 }
26764
26765
26766 static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
26767 PyObject *resultobj;
26768 wxClipboard *arg1 = (wxClipboard *) 0 ;
26769 PyObject * obj0 = 0 ;
26770 char *kwnames[] = {
26771 (char *) "self", NULL
26772 };
26773
26774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
26775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26777 {
26778 PyThreadState* __tstate = wxPyBeginAllowThreads();
26779 (arg1)->Close();
26780
26781 wxPyEndAllowThreads(__tstate);
26782 if (PyErr_Occurred()) SWIG_fail;
26783 }
26784 Py_INCREF(Py_None); resultobj = Py_None;
26785 return resultobj;
26786 fail:
26787 return NULL;
26788 }
26789
26790
26791 static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
26792 PyObject *resultobj;
26793 wxClipboard *arg1 = (wxClipboard *) 0 ;
26794 bool result;
26795 PyObject * obj0 = 0 ;
26796 char *kwnames[] = {
26797 (char *) "self", NULL
26798 };
26799
26800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
26801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26803 {
26804 PyThreadState* __tstate = wxPyBeginAllowThreads();
26805 result = (bool)((wxClipboard const *)arg1)->IsOpened();
26806
26807 wxPyEndAllowThreads(__tstate);
26808 if (PyErr_Occurred()) SWIG_fail;
26809 }
26810 {
26811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26812 }
26813 return resultobj;
26814 fail:
26815 return NULL;
26816 }
26817
26818
26819 static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) {
26820 PyObject *resultobj;
26821 wxClipboard *arg1 = (wxClipboard *) 0 ;
26822 wxDataObject *arg2 = (wxDataObject *) 0 ;
26823 bool result;
26824 PyObject * obj0 = 0 ;
26825 PyObject * obj1 = 0 ;
26826 char *kwnames[] = {
26827 (char *) "self",(char *) "data", NULL
26828 };
26829
26830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
26831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26833 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26834 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26835 {
26836 PyThreadState* __tstate = wxPyBeginAllowThreads();
26837 result = (bool)(arg1)->AddData(arg2);
26838
26839 wxPyEndAllowThreads(__tstate);
26840 if (PyErr_Occurred()) SWIG_fail;
26841 }
26842 {
26843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26844 }
26845 return resultobj;
26846 fail:
26847 return NULL;
26848 }
26849
26850
26851 static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26852 PyObject *resultobj;
26853 wxClipboard *arg1 = (wxClipboard *) 0 ;
26854 wxDataObject *arg2 = (wxDataObject *) 0 ;
26855 bool result;
26856 PyObject * obj0 = 0 ;
26857 PyObject * obj1 = 0 ;
26858 char *kwnames[] = {
26859 (char *) "self",(char *) "data", NULL
26860 };
26861
26862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
26863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26865 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26866 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26867 {
26868 PyThreadState* __tstate = wxPyBeginAllowThreads();
26869 result = (bool)(arg1)->SetData(arg2);
26870
26871 wxPyEndAllowThreads(__tstate);
26872 if (PyErr_Occurred()) SWIG_fail;
26873 }
26874 {
26875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26876 }
26877 return resultobj;
26878 fail:
26879 return NULL;
26880 }
26881
26882
26883 static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
26884 PyObject *resultobj;
26885 wxClipboard *arg1 = (wxClipboard *) 0 ;
26886 wxDataFormat *arg2 = 0 ;
26887 bool result;
26888 PyObject * obj0 = 0 ;
26889 PyObject * obj1 = 0 ;
26890 char *kwnames[] = {
26891 (char *) "self",(char *) "format", NULL
26892 };
26893
26894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
26895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26897 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
26898 SWIG_POINTER_EXCEPTION | 0)) == -1)
26899 SWIG_fail;
26900 if (arg2 == NULL) {
26901 PyErr_SetString(PyExc_TypeError,"null reference");
26902 SWIG_fail;
26903 }
26904 {
26905 PyThreadState* __tstate = wxPyBeginAllowThreads();
26906 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
26907
26908 wxPyEndAllowThreads(__tstate);
26909 if (PyErr_Occurred()) SWIG_fail;
26910 }
26911 {
26912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26913 }
26914 return resultobj;
26915 fail:
26916 return NULL;
26917 }
26918
26919
26920 static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26921 PyObject *resultobj;
26922 wxClipboard *arg1 = (wxClipboard *) 0 ;
26923 wxDataObject *arg2 = 0 ;
26924 bool result;
26925 PyObject * obj0 = 0 ;
26926 PyObject * obj1 = 0 ;
26927 char *kwnames[] = {
26928 (char *) "self",(char *) "data", NULL
26929 };
26930
26931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
26932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26934 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26935 SWIG_POINTER_EXCEPTION | 0)) == -1)
26936 SWIG_fail;
26937 if (arg2 == NULL) {
26938 PyErr_SetString(PyExc_TypeError,"null reference");
26939 SWIG_fail;
26940 }
26941 {
26942 PyThreadState* __tstate = wxPyBeginAllowThreads();
26943 result = (bool)(arg1)->GetData(*arg2);
26944
26945 wxPyEndAllowThreads(__tstate);
26946 if (PyErr_Occurred()) SWIG_fail;
26947 }
26948 {
26949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26950 }
26951 return resultobj;
26952 fail:
26953 return NULL;
26954 }
26955
26956
26957 static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
26958 PyObject *resultobj;
26959 wxClipboard *arg1 = (wxClipboard *) 0 ;
26960 PyObject * obj0 = 0 ;
26961 char *kwnames[] = {
26962 (char *) "self", NULL
26963 };
26964
26965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
26966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26968 {
26969 PyThreadState* __tstate = wxPyBeginAllowThreads();
26970 (arg1)->Clear();
26971
26972 wxPyEndAllowThreads(__tstate);
26973 if (PyErr_Occurred()) SWIG_fail;
26974 }
26975 Py_INCREF(Py_None); resultobj = Py_None;
26976 return resultobj;
26977 fail:
26978 return NULL;
26979 }
26980
26981
26982 static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
26983 PyObject *resultobj;
26984 wxClipboard *arg1 = (wxClipboard *) 0 ;
26985 bool result;
26986 PyObject * obj0 = 0 ;
26987 char *kwnames[] = {
26988 (char *) "self", NULL
26989 };
26990
26991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
26992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26994 {
26995 PyThreadState* __tstate = wxPyBeginAllowThreads();
26996 result = (bool)(arg1)->Flush();
26997
26998 wxPyEndAllowThreads(__tstate);
26999 if (PyErr_Occurred()) SWIG_fail;
27000 }
27001 {
27002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27003 }
27004 return resultobj;
27005 fail:
27006 return NULL;
27007 }
27008
27009
27010 static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) {
27011 PyObject *resultobj;
27012 wxClipboard *arg1 = (wxClipboard *) 0 ;
27013 bool arg2 = (bool) True ;
27014 PyObject * obj0 = 0 ;
27015 PyObject * obj1 = 0 ;
27016 char *kwnames[] = {
27017 (char *) "self",(char *) "primary", NULL
27018 };
27019
27020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
27021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27023 if (obj1) {
27024 arg2 = (bool) SWIG_AsBool(obj1);
27025 if (PyErr_Occurred()) SWIG_fail;
27026 }
27027 {
27028 PyThreadState* __tstate = wxPyBeginAllowThreads();
27029 (arg1)->UsePrimarySelection(arg2);
27030
27031 wxPyEndAllowThreads(__tstate);
27032 if (PyErr_Occurred()) SWIG_fail;
27033 }
27034 Py_INCREF(Py_None); resultobj = Py_None;
27035 return resultobj;
27036 fail:
27037 return NULL;
27038 }
27039
27040
27041 static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) {
27042 PyObject *obj;
27043 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27044 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
27045 Py_INCREF(obj);
27046 return Py_BuildValue((char *)"");
27047 }
27048 static int _wrap_TheClipboard_set(PyObject *_val) {
27049 PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only.");
27050 return 1;
27051 }
27052
27053
27054 static PyObject *_wrap_TheClipboard_get() {
27055 PyObject *pyobj;
27056
27057 pyobj = SWIG_NewPointerObj((void *)(wxTheClipboard), SWIGTYPE_p_wxClipboard, 0);
27058 return pyobj;
27059 }
27060
27061
27062 static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27063 PyObject *resultobj;
27064 wxClipboard *arg1 = (wxClipboard *) NULL ;
27065 wxClipboardLocker *result;
27066 PyObject * obj0 = 0 ;
27067 char *kwnames[] = {
27068 (char *) "clipboard", NULL
27069 };
27070
27071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
27072 if (obj0) {
27073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27075 }
27076 {
27077 PyThreadState* __tstate = wxPyBeginAllowThreads();
27078 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
27079
27080 wxPyEndAllowThreads(__tstate);
27081 if (PyErr_Occurred()) SWIG_fail;
27082 }
27083 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
27084 return resultobj;
27085 fail:
27086 return NULL;
27087 }
27088
27089
27090 static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27091 PyObject *resultobj;
27092 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27093 PyObject * obj0 = 0 ;
27094 char *kwnames[] = {
27095 (char *) "self", NULL
27096 };
27097
27098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
27099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27101 {
27102 PyThreadState* __tstate = wxPyBeginAllowThreads();
27103 delete arg1;
27104
27105 wxPyEndAllowThreads(__tstate);
27106 if (PyErr_Occurred()) SWIG_fail;
27107 }
27108 Py_INCREF(Py_None); resultobj = Py_None;
27109 return resultobj;
27110 fail:
27111 return NULL;
27112 }
27113
27114
27115 static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
27116 PyObject *resultobj;
27117 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27118 bool result;
27119 PyObject * obj0 = 0 ;
27120 char *kwnames[] = {
27121 (char *) "self", NULL
27122 };
27123
27124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
27125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27127 {
27128 PyThreadState* __tstate = wxPyBeginAllowThreads();
27129 result = (bool)wxClipboardLocker___nonzero__(arg1);
27130
27131 wxPyEndAllowThreads(__tstate);
27132 if (PyErr_Occurred()) SWIG_fail;
27133 }
27134 {
27135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27136 }
27137 return resultobj;
27138 fail:
27139 return NULL;
27140 }
27141
27142
27143 static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) {
27144 PyObject *obj;
27145 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27146 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
27147 Py_INCREF(obj);
27148 return Py_BuildValue((char *)"");
27149 }
27150 static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27151 PyObject *resultobj;
27152 int arg1 = (int) 0 ;
27153 int arg2 = (int) 0 ;
27154 int arg3 = (int) 0 ;
27155 int arg4 = (int) 0 ;
27156 wxVideoMode *result;
27157 PyObject * obj0 = 0 ;
27158 PyObject * obj1 = 0 ;
27159 PyObject * obj2 = 0 ;
27160 PyObject * obj3 = 0 ;
27161 char *kwnames[] = {
27162 (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL
27163 };
27164
27165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27166 if (obj0) {
27167 arg1 = (int) SWIG_AsInt(obj0);
27168 if (PyErr_Occurred()) SWIG_fail;
27169 }
27170 if (obj1) {
27171 arg2 = (int) SWIG_AsInt(obj1);
27172 if (PyErr_Occurred()) SWIG_fail;
27173 }
27174 if (obj2) {
27175 arg3 = (int) SWIG_AsInt(obj2);
27176 if (PyErr_Occurred()) SWIG_fail;
27177 }
27178 if (obj3) {
27179 arg4 = (int) SWIG_AsInt(obj3);
27180 if (PyErr_Occurred()) SWIG_fail;
27181 }
27182 {
27183 PyThreadState* __tstate = wxPyBeginAllowThreads();
27184 result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4);
27185
27186 wxPyEndAllowThreads(__tstate);
27187 if (PyErr_Occurred()) SWIG_fail;
27188 }
27189 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1);
27190 return resultobj;
27191 fail:
27192 return NULL;
27193 }
27194
27195
27196 static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27197 PyObject *resultobj;
27198 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27199 PyObject * obj0 = 0 ;
27200 char *kwnames[] = {
27201 (char *) "self", NULL
27202 };
27203
27204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail;
27205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27207 {
27208 PyThreadState* __tstate = wxPyBeginAllowThreads();
27209 delete arg1;
27210
27211 wxPyEndAllowThreads(__tstate);
27212 if (PyErr_Occurred()) SWIG_fail;
27213 }
27214 Py_INCREF(Py_None); resultobj = Py_None;
27215 return resultobj;
27216 fail:
27217 return NULL;
27218 }
27219
27220
27221 static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) {
27222 PyObject *resultobj;
27223 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27224 wxVideoMode *arg2 = 0 ;
27225 bool result;
27226 PyObject * obj0 = 0 ;
27227 PyObject * obj1 = 0 ;
27228 char *kwnames[] = {
27229 (char *) "self",(char *) "other", NULL
27230 };
27231
27232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail;
27233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27235 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27236 SWIG_POINTER_EXCEPTION | 0)) == -1)
27237 SWIG_fail;
27238 if (arg2 == NULL) {
27239 PyErr_SetString(PyExc_TypeError,"null reference");
27240 SWIG_fail;
27241 }
27242 {
27243 PyThreadState* __tstate = wxPyBeginAllowThreads();
27244 result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2);
27245
27246 wxPyEndAllowThreads(__tstate);
27247 if (PyErr_Occurred()) SWIG_fail;
27248 }
27249 {
27250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27251 }
27252 return resultobj;
27253 fail:
27254 return NULL;
27255 }
27256
27257
27258 static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
27259 PyObject *resultobj;
27260 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27261 int result;
27262 PyObject * obj0 = 0 ;
27263 char *kwnames[] = {
27264 (char *) "self", NULL
27265 };
27266
27267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail;
27268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27270 {
27271 PyThreadState* __tstate = wxPyBeginAllowThreads();
27272 result = (int)((wxVideoMode const *)arg1)->GetWidth();
27273
27274 wxPyEndAllowThreads(__tstate);
27275 if (PyErr_Occurred()) SWIG_fail;
27276 }
27277 resultobj = SWIG_FromInt((int)result);
27278 return resultobj;
27279 fail:
27280 return NULL;
27281 }
27282
27283
27284 static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
27285 PyObject *resultobj;
27286 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27287 int result;
27288 PyObject * obj0 = 0 ;
27289 char *kwnames[] = {
27290 (char *) "self", NULL
27291 };
27292
27293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail;
27294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27296 {
27297 PyThreadState* __tstate = wxPyBeginAllowThreads();
27298 result = (int)((wxVideoMode const *)arg1)->GetHeight();
27299
27300 wxPyEndAllowThreads(__tstate);
27301 if (PyErr_Occurred()) SWIG_fail;
27302 }
27303 resultobj = SWIG_FromInt((int)result);
27304 return resultobj;
27305 fail:
27306 return NULL;
27307 }
27308
27309
27310 static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
27311 PyObject *resultobj;
27312 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27313 int result;
27314 PyObject * obj0 = 0 ;
27315 char *kwnames[] = {
27316 (char *) "self", NULL
27317 };
27318
27319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail;
27320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27322 {
27323 PyThreadState* __tstate = wxPyBeginAllowThreads();
27324 result = (int)((wxVideoMode const *)arg1)->GetDepth();
27325
27326 wxPyEndAllowThreads(__tstate);
27327 if (PyErr_Occurred()) SWIG_fail;
27328 }
27329 resultobj = SWIG_FromInt((int)result);
27330 return resultobj;
27331 fail:
27332 return NULL;
27333 }
27334
27335
27336 static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
27337 PyObject *resultobj;
27338 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27339 bool result;
27340 PyObject * obj0 = 0 ;
27341 char *kwnames[] = {
27342 (char *) "self", NULL
27343 };
27344
27345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail;
27346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27348 {
27349 PyThreadState* __tstate = wxPyBeginAllowThreads();
27350 result = (bool)((wxVideoMode const *)arg1)->IsOk();
27351
27352 wxPyEndAllowThreads(__tstate);
27353 if (PyErr_Occurred()) SWIG_fail;
27354 }
27355 {
27356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27357 }
27358 return resultobj;
27359 fail:
27360 return NULL;
27361 }
27362
27363
27364 static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
27365 PyObject *resultobj;
27366 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27367 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27368 bool result;
27369 PyObject * obj0 = 0 ;
27370 PyObject * obj1 = 0 ;
27371 char *kwnames[] = {
27372 (char *) "self",(char *) "other", NULL
27373 };
27374
27375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail;
27376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27378 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27380 {
27381 PyThreadState* __tstate = wxPyBeginAllowThreads();
27382 result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2);
27383
27384 wxPyEndAllowThreads(__tstate);
27385 if (PyErr_Occurred()) SWIG_fail;
27386 }
27387 {
27388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27389 }
27390 return resultobj;
27391 fail:
27392 return NULL;
27393 }
27394
27395
27396 static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
27397 PyObject *resultobj;
27398 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27399 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27400 bool result;
27401 PyObject * obj0 = 0 ;
27402 PyObject * obj1 = 0 ;
27403 char *kwnames[] = {
27404 (char *) "self",(char *) "other", NULL
27405 };
27406
27407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail;
27408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27410 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27412 {
27413 PyThreadState* __tstate = wxPyBeginAllowThreads();
27414 result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2);
27415
27416 wxPyEndAllowThreads(__tstate);
27417 if (PyErr_Occurred()) SWIG_fail;
27418 }
27419 {
27420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27421 }
27422 return resultobj;
27423 fail:
27424 return NULL;
27425 }
27426
27427
27428 static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27429 PyObject *resultobj;
27430 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27431 int arg2 ;
27432 PyObject * obj0 = 0 ;
27433 PyObject * obj1 = 0 ;
27434 char *kwnames[] = {
27435 (char *) "self",(char *) "w", NULL
27436 };
27437
27438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail;
27439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27441 arg2 = (int) SWIG_AsInt(obj1);
27442 if (PyErr_Occurred()) SWIG_fail;
27443 if (arg1) (arg1)->w = arg2;
27444
27445 Py_INCREF(Py_None); resultobj = Py_None;
27446 return resultobj;
27447 fail:
27448 return NULL;
27449 }
27450
27451
27452 static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27453 PyObject *resultobj;
27454 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27455 int result;
27456 PyObject * obj0 = 0 ;
27457 char *kwnames[] = {
27458 (char *) "self", NULL
27459 };
27460
27461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail;
27462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27464 result = (int) ((arg1)->w);
27465
27466 resultobj = SWIG_FromInt((int)result);
27467 return resultobj;
27468 fail:
27469 return NULL;
27470 }
27471
27472
27473 static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27474 PyObject *resultobj;
27475 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27476 int arg2 ;
27477 PyObject * obj0 = 0 ;
27478 PyObject * obj1 = 0 ;
27479 char *kwnames[] = {
27480 (char *) "self",(char *) "h", NULL
27481 };
27482
27483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail;
27484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27486 arg2 = (int) SWIG_AsInt(obj1);
27487 if (PyErr_Occurred()) SWIG_fail;
27488 if (arg1) (arg1)->h = arg2;
27489
27490 Py_INCREF(Py_None); resultobj = Py_None;
27491 return resultobj;
27492 fail:
27493 return NULL;
27494 }
27495
27496
27497 static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27498 PyObject *resultobj;
27499 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27500 int result;
27501 PyObject * obj0 = 0 ;
27502 char *kwnames[] = {
27503 (char *) "self", NULL
27504 };
27505
27506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail;
27507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27509 result = (int) ((arg1)->h);
27510
27511 resultobj = SWIG_FromInt((int)result);
27512 return resultobj;
27513 fail:
27514 return NULL;
27515 }
27516
27517
27518 static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27519 PyObject *resultobj;
27520 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27521 int arg2 ;
27522 PyObject * obj0 = 0 ;
27523 PyObject * obj1 = 0 ;
27524 char *kwnames[] = {
27525 (char *) "self",(char *) "bpp", NULL
27526 };
27527
27528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail;
27529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27531 arg2 = (int) SWIG_AsInt(obj1);
27532 if (PyErr_Occurred()) SWIG_fail;
27533 if (arg1) (arg1)->bpp = arg2;
27534
27535 Py_INCREF(Py_None); resultobj = Py_None;
27536 return resultobj;
27537 fail:
27538 return NULL;
27539 }
27540
27541
27542 static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27543 PyObject *resultobj;
27544 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27545 int result;
27546 PyObject * obj0 = 0 ;
27547 char *kwnames[] = {
27548 (char *) "self", NULL
27549 };
27550
27551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail;
27552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27554 result = (int) ((arg1)->bpp);
27555
27556 resultobj = SWIG_FromInt((int)result);
27557 return resultobj;
27558 fail:
27559 return NULL;
27560 }
27561
27562
27563 static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27564 PyObject *resultobj;
27565 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27566 int arg2 ;
27567 PyObject * obj0 = 0 ;
27568 PyObject * obj1 = 0 ;
27569 char *kwnames[] = {
27570 (char *) "self",(char *) "refresh", NULL
27571 };
27572
27573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail;
27574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27576 arg2 = (int) SWIG_AsInt(obj1);
27577 if (PyErr_Occurred()) SWIG_fail;
27578 if (arg1) (arg1)->refresh = arg2;
27579
27580 Py_INCREF(Py_None); resultobj = Py_None;
27581 return resultobj;
27582 fail:
27583 return NULL;
27584 }
27585
27586
27587 static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27588 PyObject *resultobj;
27589 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27590 int result;
27591 PyObject * obj0 = 0 ;
27592 char *kwnames[] = {
27593 (char *) "self", NULL
27594 };
27595
27596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail;
27597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27599 result = (int) ((arg1)->refresh);
27600
27601 resultobj = SWIG_FromInt((int)result);
27602 return resultobj;
27603 fail:
27604 return NULL;
27605 }
27606
27607
27608 static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) {
27609 PyObject *obj;
27610 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27611 SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj);
27612 Py_INCREF(obj);
27613 return Py_BuildValue((char *)"");
27614 }
27615 static int _wrap_DefaultVideoMode_set(PyObject *_val) {
27616 PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only.");
27617 return 1;
27618 }
27619
27620
27621 static PyObject *_wrap_DefaultVideoMode_get() {
27622 PyObject *pyobj;
27623
27624 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0);
27625 return pyobj;
27626 }
27627
27628
27629 static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
27630 PyObject *resultobj;
27631 size_t arg1 = (size_t) 0 ;
27632 wxDisplay *result;
27633 PyObject * obj0 = 0 ;
27634 char *kwnames[] = {
27635 (char *) "index", NULL
27636 };
27637
27638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail;
27639 if (obj0) {
27640 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
27641 if (PyErr_Occurred()) SWIG_fail;
27642 }
27643 {
27644 PyThreadState* __tstate = wxPyBeginAllowThreads();
27645 result = (wxDisplay *)new wxDisplay(arg1);
27646
27647 wxPyEndAllowThreads(__tstate);
27648 if (PyErr_Occurred()) SWIG_fail;
27649 }
27650 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1);
27651 return resultobj;
27652 fail:
27653 return NULL;
27654 }
27655
27656
27657 static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
27658 PyObject *resultobj;
27659 wxDisplay *arg1 = (wxDisplay *) 0 ;
27660 PyObject * obj0 = 0 ;
27661 char *kwnames[] = {
27662 (char *) "self", NULL
27663 };
27664
27665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail;
27666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27668 {
27669 PyThreadState* __tstate = wxPyBeginAllowThreads();
27670 delete arg1;
27671
27672 wxPyEndAllowThreads(__tstate);
27673 if (PyErr_Occurred()) SWIG_fail;
27674 }
27675 Py_INCREF(Py_None); resultobj = Py_None;
27676 return resultobj;
27677 fail:
27678 return NULL;
27679 }
27680
27681
27682 static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
27683 PyObject *resultobj;
27684 size_t result;
27685 char *kwnames[] = {
27686 NULL
27687 };
27688
27689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail;
27690 {
27691 PyThreadState* __tstate = wxPyBeginAllowThreads();
27692 result = (size_t)wxDisplay::GetCount();
27693
27694 wxPyEndAllowThreads(__tstate);
27695 if (PyErr_Occurred()) SWIG_fail;
27696 }
27697 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
27698 return resultobj;
27699 fail:
27700 return NULL;
27701 }
27702
27703
27704 static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
27705 PyObject *resultobj;
27706 wxPoint *arg1 = 0 ;
27707 int result;
27708 wxPoint temp1 ;
27709 PyObject * obj0 = 0 ;
27710 char *kwnames[] = {
27711 (char *) "pt", NULL
27712 };
27713
27714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail;
27715 {
27716 arg1 = &temp1;
27717 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
27718 }
27719 {
27720 PyThreadState* __tstate = wxPyBeginAllowThreads();
27721 result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1);
27722
27723 wxPyEndAllowThreads(__tstate);
27724 if (PyErr_Occurred()) SWIG_fail;
27725 }
27726 resultobj = SWIG_FromInt((int)result);
27727 return resultobj;
27728 fail:
27729 return NULL;
27730 }
27731
27732
27733 static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
27734 PyObject *resultobj;
27735 wxWindow *arg1 = (wxWindow *) 0 ;
27736 int result;
27737 PyObject * obj0 = 0 ;
27738 char *kwnames[] = {
27739 (char *) "window", NULL
27740 };
27741
27742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail;
27743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27745 {
27746 PyThreadState* __tstate = wxPyBeginAllowThreads();
27747 result = (int)Display_GetFromWindow(arg1);
27748
27749 wxPyEndAllowThreads(__tstate);
27750 if (PyErr_Occurred()) SWIG_fail;
27751 }
27752 resultobj = SWIG_FromInt((int)result);
27753 return resultobj;
27754 fail:
27755 return NULL;
27756 }
27757
27758
27759 static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
27760 PyObject *resultobj;
27761 wxDisplay *arg1 = (wxDisplay *) 0 ;
27762 bool result;
27763 PyObject * obj0 = 0 ;
27764 char *kwnames[] = {
27765 (char *) "self", NULL
27766 };
27767
27768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail;
27769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27771 {
27772 PyThreadState* __tstate = wxPyBeginAllowThreads();
27773 result = (bool)((wxDisplay const *)arg1)->IsOk();
27774
27775 wxPyEndAllowThreads(__tstate);
27776 if (PyErr_Occurred()) SWIG_fail;
27777 }
27778 {
27779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27780 }
27781 return resultobj;
27782 fail:
27783 return NULL;
27784 }
27785
27786
27787 static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) {
27788 PyObject *resultobj;
27789 wxDisplay *arg1 = (wxDisplay *) 0 ;
27790 wxRect result;
27791 PyObject * obj0 = 0 ;
27792 char *kwnames[] = {
27793 (char *) "self", NULL
27794 };
27795
27796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail;
27797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27799 {
27800 PyThreadState* __tstate = wxPyBeginAllowThreads();
27801 result = ((wxDisplay const *)arg1)->GetGeometry();
27802
27803 wxPyEndAllowThreads(__tstate);
27804 if (PyErr_Occurred()) SWIG_fail;
27805 }
27806 {
27807 wxRect * resultptr;
27808 resultptr = new wxRect((wxRect &) result);
27809 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
27810 }
27811 return resultobj;
27812 fail:
27813 return NULL;
27814 }
27815
27816
27817 static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
27818 PyObject *resultobj;
27819 wxDisplay *arg1 = (wxDisplay *) 0 ;
27820 wxString result;
27821 PyObject * obj0 = 0 ;
27822 char *kwnames[] = {
27823 (char *) "self", NULL
27824 };
27825
27826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail;
27827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27829 {
27830 PyThreadState* __tstate = wxPyBeginAllowThreads();
27831 result = ((wxDisplay const *)arg1)->GetName();
27832
27833 wxPyEndAllowThreads(__tstate);
27834 if (PyErr_Occurred()) SWIG_fail;
27835 }
27836 {
27837 #if wxUSE_UNICODE
27838 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27839 #else
27840 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27841 #endif
27842 }
27843 return resultobj;
27844 fail:
27845 return NULL;
27846 }
27847
27848
27849 static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) {
27850 PyObject *resultobj;
27851 wxDisplay *arg1 = (wxDisplay *) 0 ;
27852 bool result;
27853 PyObject * obj0 = 0 ;
27854 char *kwnames[] = {
27855 (char *) "self", NULL
27856 };
27857
27858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail;
27859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27861 {
27862 PyThreadState* __tstate = wxPyBeginAllowThreads();
27863 result = (bool)((wxDisplay const *)arg1)->IsPrimary();
27864
27865 wxPyEndAllowThreads(__tstate);
27866 if (PyErr_Occurred()) SWIG_fail;
27867 }
27868 {
27869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27870 }
27871 return resultobj;
27872 fail:
27873 return NULL;
27874 }
27875
27876
27877 static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) {
27878 PyObject *resultobj;
27879 wxDisplay *arg1 = (wxDisplay *) 0 ;
27880 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
27881 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
27882 PyObject *result;
27883 PyObject * obj0 = 0 ;
27884 PyObject * obj1 = 0 ;
27885 char *kwnames[] = {
27886 (char *) "self",(char *) "mode", NULL
27887 };
27888
27889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail;
27890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27892 if (obj1) {
27893 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27894 SWIG_POINTER_EXCEPTION | 0)) == -1)
27895 SWIG_fail;
27896 if (arg2 == NULL) {
27897 PyErr_SetString(PyExc_TypeError,"null reference");
27898 SWIG_fail;
27899 }
27900 }
27901 {
27902 PyThreadState* __tstate = wxPyBeginAllowThreads();
27903 result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2);
27904
27905 wxPyEndAllowThreads(__tstate);
27906 if (PyErr_Occurred()) SWIG_fail;
27907 }
27908 resultobj = result;
27909 return resultobj;
27910 fail:
27911 return NULL;
27912 }
27913
27914
27915 static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27916 PyObject *resultobj;
27917 wxDisplay *arg1 = (wxDisplay *) 0 ;
27918 wxVideoMode result;
27919 PyObject * obj0 = 0 ;
27920 char *kwnames[] = {
27921 (char *) "self", NULL
27922 };
27923
27924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail;
27925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27927 {
27928 PyThreadState* __tstate = wxPyBeginAllowThreads();
27929 result = ((wxDisplay const *)arg1)->GetCurrentMode();
27930
27931 wxPyEndAllowThreads(__tstate);
27932 if (PyErr_Occurred()) SWIG_fail;
27933 }
27934 {
27935 wxVideoMode * resultptr;
27936 resultptr = new wxVideoMode((wxVideoMode &) result);
27937 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1);
27938 }
27939 return resultobj;
27940 fail:
27941 return NULL;
27942 }
27943
27944
27945 static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27946 PyObject *resultobj;
27947 wxDisplay *arg1 = (wxDisplay *) 0 ;
27948 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
27949 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
27950 bool result;
27951 PyObject * obj0 = 0 ;
27952 PyObject * obj1 = 0 ;
27953 char *kwnames[] = {
27954 (char *) "self",(char *) "mode", NULL
27955 };
27956
27957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail;
27958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27960 if (obj1) {
27961 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27962 SWIG_POINTER_EXCEPTION | 0)) == -1)
27963 SWIG_fail;
27964 if (arg2 == NULL) {
27965 PyErr_SetString(PyExc_TypeError,"null reference");
27966 SWIG_fail;
27967 }
27968 }
27969 {
27970 PyThreadState* __tstate = wxPyBeginAllowThreads();
27971 result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2);
27972
27973 wxPyEndAllowThreads(__tstate);
27974 if (PyErr_Occurred()) SWIG_fail;
27975 }
27976 {
27977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27978 }
27979 return resultobj;
27980 fail:
27981 return NULL;
27982 }
27983
27984
27985 static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27986 PyObject *resultobj;
27987 wxDisplay *arg1 = (wxDisplay *) 0 ;
27988 PyObject * obj0 = 0 ;
27989 char *kwnames[] = {
27990 (char *) "self", NULL
27991 };
27992
27993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail;
27994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27996 {
27997 PyThreadState* __tstate = wxPyBeginAllowThreads();
27998 (arg1)->ResetMode();
27999
28000 wxPyEndAllowThreads(__tstate);
28001 if (PyErr_Occurred()) SWIG_fail;
28002 }
28003 Py_INCREF(Py_None); resultobj = Py_None;
28004 return resultobj;
28005 fail:
28006 return NULL;
28007 }
28008
28009
28010 static PyObject * Display_swigregister(PyObject *self, PyObject *args) {
28011 PyObject *obj;
28012 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28013 SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj);
28014 Py_INCREF(obj);
28015 return Py_BuildValue((char *)"");
28016 }
28017 static PyMethodDef SwigMethods[] = {
28018 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS },
28019 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS },
28020 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS },
28021 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS },
28022 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS },
28023 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS },
28024 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS },
28025 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS },
28026 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS },
28027 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
28028 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS },
28029 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
28030 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS },
28031 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS },
28032 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS },
28033 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS },
28034 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS },
28035 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS },
28036 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS },
28037 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS },
28038 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS },
28039 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS },
28040 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS },
28041 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS },
28042 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS },
28043 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS },
28044 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS },
28045 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS },
28046 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS },
28047 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS },
28048 { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS },
28049 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS },
28050 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS },
28051 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS },
28052 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS },
28053 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS },
28054 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS },
28055 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS },
28056 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS },
28057 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS },
28058 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS },
28059 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS },
28060 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS },
28061 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS },
28062 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS },
28063 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS },
28064 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS },
28065 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS },
28066 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS },
28067 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS },
28068 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS },
28069 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS },
28070 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS },
28071 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS },
28072 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS },
28073 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS },
28074 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS },
28075 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28076 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28077 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28078 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28079 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS },
28080 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS },
28081 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS },
28082 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28083 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28084 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS },
28085 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS },
28086 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS },
28087 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS },
28088 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS },
28089 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28090 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28091 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS },
28092 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS },
28093 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS },
28094 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS },
28095 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS },
28096 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS },
28097 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS },
28098 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS },
28099 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS },
28100 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS },
28101 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS },
28102 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS },
28103 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS },
28104 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS },
28105 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
28106 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS },
28107 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
28108 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS },
28109 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS },
28110 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS },
28111 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
28112 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS },
28113 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS },
28114 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS },
28115 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS },
28116 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28117 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28118 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28119 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28120 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS },
28121 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28122 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28123 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS },
28124 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28125 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28126 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS },
28127 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS },
28128 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS },
28129 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS },
28130 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS },
28131 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS },
28132 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS },
28133 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS },
28134 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS },
28135 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS },
28136 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS },
28137 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS },
28138 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS },
28139 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS },
28140 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS },
28141 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS },
28142 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS },
28143 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS },
28144 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS },
28145 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS },
28146 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS },
28147 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28148 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28149 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28150 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS },
28151 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS },
28152 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS },
28153 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS },
28154 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS },
28155 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS },
28156 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS },
28157 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS },
28158 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS },
28159 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS },
28160 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28161 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS },
28162 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS },
28163 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS },
28164 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS },
28165 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS },
28166 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28167 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS },
28168 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS },
28169 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS },
28170 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS },
28171 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS },
28172 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS },
28173 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS },
28174 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS },
28175 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS },
28176 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS },
28177 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS },
28178 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS },
28179 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS },
28180 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS },
28181 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS },
28182 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS },
28183 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS },
28184 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS },
28185 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS },
28186 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS },
28187 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS },
28188 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28189 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28190 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS },
28191 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS },
28192 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS },
28193 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS },
28194 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28195 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS },
28196 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS },
28197 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS },
28198 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS },
28199 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS },
28200 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
28201 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS },
28202 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS },
28203 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS },
28204 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS },
28205 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
28206 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS },
28207 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS },
28208 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS },
28209 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS },
28210 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS },
28211 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS },
28212 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS },
28213 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS },
28214 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS },
28215 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS },
28216 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS },
28217 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS },
28218 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28219 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28220 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS },
28221 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS },
28222 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS },
28223 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS },
28224 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS },
28225 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28226 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28227 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS },
28228 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS },
28229 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS },
28230 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS },
28231 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS },
28232 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS },
28233 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS },
28234 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS },
28235 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS },
28236 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS },
28237 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS },
28238 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS },
28239 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS },
28240 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS },
28241 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS },
28242 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS },
28243 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS },
28244 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS },
28245 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS },
28246 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS },
28247 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28248 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS },
28249 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS },
28250 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS },
28251 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS },
28252 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS },
28253 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28254 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS },
28255 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS },
28256 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS },
28257 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS },
28258 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS },
28259 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS },
28260 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS },
28261 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS },
28262 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS },
28263 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS },
28264 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS },
28265 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS },
28266 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
28267 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS },
28268 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS },
28269 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS },
28270 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS },
28271 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS },
28272 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS },
28273 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS },
28274 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS },
28275 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS },
28276 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS },
28277 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS },
28278 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28279 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28280 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS },
28281 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS },
28282 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS },
28283 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS },
28284 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS },
28285 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28286 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28287 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS },
28288 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS },
28289 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS },
28290 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS },
28291 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS },
28292 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS },
28293 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS },
28294 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS },
28295 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS },
28296 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS },
28297 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS },
28298 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS },
28299 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS },
28300 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS },
28301 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS },
28302 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS },
28303 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS },
28304 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS },
28305 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS },
28306 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS },
28307 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS },
28308 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS },
28309 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS },
28310 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS },
28311 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS },
28312 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS },
28313 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS },
28314 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS },
28315 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS },
28316 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS },
28317 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS },
28318 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS },
28319 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS },
28320 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS },
28321 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS },
28322 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS },
28323 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS },
28324 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS },
28325 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS },
28326 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS },
28327 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS },
28328 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS },
28329 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS },
28330 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS },
28331 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
28332 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28333 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28334 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS },
28335 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS },
28336 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS },
28337 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS },
28338 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS },
28339 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
28340 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS },
28341 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS },
28342 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS },
28343 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS },
28344 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS },
28345 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS },
28346 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS },
28347 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS },
28348 { (char *)"new_Sound", _wrap_new_Sound, METH_VARARGS },
28349 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS },
28350 { (char *)"Sound_Create", _wrap_Sound_Create, METH_VARARGS },
28351 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS },
28352 { (char *)"Sound_Play", _wrap_Sound_Play, METH_VARARGS },
28353 { (char *)"Sound_PlaySound", _wrap_Sound_PlaySound, METH_VARARGS },
28354 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS },
28355 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS },
28356 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28357 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS },
28358 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28359 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS },
28360 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS },
28361 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS },
28362 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28363 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28364 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28365 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS },
28366 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS },
28367 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28368 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS },
28369 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS },
28370 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS },
28371 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS },
28372 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS },
28373 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS },
28374 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28375 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS },
28376 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28377 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS },
28378 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS },
28379 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS },
28380 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28381 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28382 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS },
28383 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS },
28384 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS },
28385 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS },
28386 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS },
28387 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS },
28388 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS },
28389 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28390 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS },
28391 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS },
28392 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS },
28393 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS },
28394 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS },
28395 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS },
28396 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS },
28397 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS },
28398 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS },
28399 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS },
28400 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28401 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS },
28402 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS },
28403 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28404 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS },
28405 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS },
28406 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS },
28407 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28408 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS },
28409 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
28410 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS },
28411 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS },
28412 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS },
28413 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS },
28414 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS },
28415 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28416 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS },
28417 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS },
28418 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS },
28419 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS },
28420 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS },
28421 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS },
28422 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS },
28423 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS },
28424 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS },
28425 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS },
28426 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS },
28427 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS },
28428 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS },
28429 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS },
28430 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS },
28431 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS },
28432 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS },
28433 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS },
28434 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS },
28435 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS },
28436 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS },
28437 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS },
28438 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS },
28439 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS },
28440 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS },
28441 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS },
28442 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28443 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS },
28444 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS },
28445 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS },
28446 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28447 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS },
28448 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS },
28449 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS },
28450 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS },
28451 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS },
28452 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
28453 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS },
28454 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS },
28455 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS },
28456 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS },
28457 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS },
28458 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS },
28459 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS },
28460 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28461 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28462 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS },
28463 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS },
28464 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28465 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS },
28466 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS },
28467 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS },
28468 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS },
28469 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS },
28470 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS },
28471 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS },
28472 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS },
28473 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS },
28474 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS },
28475 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS },
28476 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS },
28477 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS },
28478 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS },
28479 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS },
28480 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS },
28481 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS },
28482 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS },
28483 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS },
28484 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS },
28485 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS },
28486 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS },
28487 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS },
28488 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS },
28489 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS },
28490 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS },
28491 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS },
28492 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS },
28493 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS },
28494 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS },
28495 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS },
28496 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS },
28497 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS },
28498 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS },
28499 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS },
28500 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS },
28501 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS },
28502 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS },
28503 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28504 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28505 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28506 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28507 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28508 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28509 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS },
28510 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28511 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28512 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS },
28513 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS },
28514 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28515 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28516 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS },
28517 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS },
28518 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28519 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS },
28520 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28521 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS },
28522 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS },
28523 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS },
28524 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS },
28525 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS },
28526 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS },
28527 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS },
28528 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS },
28529 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS },
28530 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS },
28531 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS },
28532 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS },
28533 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS },
28534 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS },
28535 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS },
28536 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS },
28537 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS },
28538 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS },
28539 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS },
28540 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS },
28541 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS },
28542 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28543 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS },
28544 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS },
28545 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS },
28546 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS },
28547 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS },
28548 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS },
28549 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS },
28550 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS },
28551 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS },
28552 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS },
28553 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS },
28554 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS },
28555 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS },
28556 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS },
28557 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS },
28558 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS },
28559 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS },
28560 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS },
28561 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS },
28562 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS },
28563 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS },
28564 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS },
28565 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS },
28566 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS },
28567 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS },
28568 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS },
28569 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS },
28570 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS },
28571 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS },
28572 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS },
28573 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS },
28574 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS },
28575 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS },
28576 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS },
28577 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS },
28578 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS },
28579 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS },
28580 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS },
28581 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS },
28582 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS },
28583 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS },
28584 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28585 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS },
28586 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28587 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28588 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS },
28589 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28590 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28591 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28592 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS },
28593 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28594 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28595 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28596 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28597 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS },
28598 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28599 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28600 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28601 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS },
28602 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS },
28603 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS },
28604 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS },
28605 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS },
28606 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS },
28607 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS },
28608 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS },
28609 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS },
28610 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28611 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS },
28612 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS },
28613 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
28614 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
28615 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS },
28616 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS },
28617 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS },
28618 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS },
28619 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS },
28620 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS },
28621 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS },
28622 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS },
28623 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS },
28624 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS },
28625 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28626 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS },
28627 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS },
28628 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS },
28629 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS },
28630 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS },
28631 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS },
28632 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS },
28633 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS },
28634 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS },
28635 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS },
28636 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS },
28637 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
28638 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
28639 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS },
28640 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS },
28641 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28642 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28643 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28644 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28645 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28646 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28647 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28648 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS },
28649 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28650 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28651 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28652 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS },
28653 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS },
28654 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS },
28655 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS },
28656 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS },
28657 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS },
28658 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS },
28659 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS },
28660 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS },
28661 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS },
28662 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS },
28663 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS },
28664 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS },
28665 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS },
28666 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS },
28667 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS },
28668 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS },
28669 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS },
28670 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS },
28671 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS },
28672 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS },
28673 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS },
28674 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS },
28675 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS },
28676 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS },
28677 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS },
28678 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS },
28679 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS },
28680 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS },
28681 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS },
28682 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS },
28683 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28684 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS },
28685 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS },
28686 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS },
28687 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS },
28688 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS },
28689 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS },
28690 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS },
28691 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS },
28692 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS },
28693 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS },
28694 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28695 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS },
28696 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS },
28697 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28698 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS },
28699 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS },
28700 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS },
28701 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28702 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS },
28703 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS },
28704 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS },
28705 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS },
28706 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS },
28707 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS },
28708 { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS },
28709 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS },
28710 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS },
28711 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS },
28712 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS },
28713 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS },
28714 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS },
28715 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS },
28716 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS },
28717 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS },
28718 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS },
28719 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS },
28720 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS },
28721 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28722 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS },
28723 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS },
28724 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS },
28725 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS },
28726 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS },
28727 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS },
28728 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS },
28729 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS },
28730 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28731 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS },
28732 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS },
28733 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS },
28734 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28735 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28736 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28737 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28738 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS },
28739 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS },
28740 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS },
28741 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28742 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28743 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28744 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28745 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28746 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
28747 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS },
28748 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS },
28749 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28750 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28751 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28752 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28753 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28754 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
28755 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS },
28756 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS },
28757 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS },
28758 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS },
28759 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS },
28760 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS },
28761 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS },
28762 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS },
28763 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS },
28764 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS },
28765 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS },
28766 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS },
28767 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS },
28768 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS },
28769 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
28770 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
28771 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS },
28772 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS },
28773 { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS },
28774 { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS },
28775 { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS },
28776 { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS },
28777 { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS },
28778 { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS },
28779 { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS },
28780 { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS },
28781 { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS },
28782 { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS },
28783 { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS },
28784 { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS },
28785 { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS },
28786 { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS },
28787 { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS },
28788 { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS },
28789 { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS },
28790 { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS },
28791 { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS },
28792 { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS },
28793 { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS },
28794 { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS },
28795 { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS },
28796 { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS },
28797 { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS },
28798 { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS },
28799 { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS },
28800 { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS },
28801 { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS },
28802 { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS },
28803 { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS },
28804 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS },
28805 { NULL, NULL }
28806 };
28807
28808
28809 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
28810
28811 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
28812 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
28813 }
28814 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
28815 return (void *)((wxEvent *) ((wxMenuEvent *) x));
28816 }
28817 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
28818 return (void *)((wxEvent *) ((wxCloseEvent *) x));
28819 }
28820 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
28821 return (void *)((wxEvent *) ((wxMouseEvent *) x));
28822 }
28823 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
28824 return (void *)((wxEvent *) ((wxEraseEvent *) x));
28825 }
28826 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
28827 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
28828 }
28829 static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
28830 return (void *)((wxEvent *) ((wxTimerEvent *) x));
28831 }
28832 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
28833 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
28834 }
28835 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
28836 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
28837 }
28838 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
28839 return (void *)((wxEvent *) ((wxPyEvent *) x));
28840 }
28841 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
28842 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
28843 }
28844 static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
28845 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
28846 }
28847 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
28848 return (void *)((wxEvent *) ((wxIdleEvent *) x));
28849 }
28850 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
28851 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
28852 }
28853 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
28854 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
28855 }
28856 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
28857 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
28858 }
28859 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
28860 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
28861 }
28862 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
28863 return (void *)((wxEvent *) ((wxActivateEvent *) x));
28864 }
28865 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
28866 return (void *)((wxEvent *) ((wxSizeEvent *) x));
28867 }
28868 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
28869 return (void *)((wxEvent *) ((wxMoveEvent *) x));
28870 }
28871 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
28872 return (void *)((wxEvent *) ((wxPaintEvent *) x));
28873 }
28874 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
28875 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
28876 }
28877 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
28878 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
28879 }
28880 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
28881 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
28882 }
28883 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
28884 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
28885 }
28886 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
28887 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
28888 }
28889 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
28890 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
28891 }
28892 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
28893 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
28894 }
28895 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
28896 return (void *)((wxEvent *) ((wxFocusEvent *) x));
28897 }
28898 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
28899 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
28900 }
28901 static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
28902 return (void *)((wxEvent *) ((wxProcessEvent *) x));
28903 }
28904 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
28905 return (void *)((wxEvent *) ((wxShowEvent *) x));
28906 }
28907 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
28908 return (void *)((wxEvent *) ((wxCommandEvent *) x));
28909 }
28910 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
28911 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
28912 }
28913 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
28914 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
28915 }
28916 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
28917 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
28918 }
28919 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
28920 return (void *)((wxEvent *) ((wxKeyEvent *) x));
28921 }
28922 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
28923 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
28924 }
28925 static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
28926 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
28927 }
28928 static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
28929 return (void *)((wxConfigBase *) ((wxConfig *) x));
28930 }
28931 static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
28932 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
28933 }
28934 static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
28935 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
28936 }
28937 static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
28938 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
28939 }
28940 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
28941 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
28942 }
28943 static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
28944 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
28945 }
28946 static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
28947 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
28948 }
28949 static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
28950 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
28951 }
28952 static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
28953 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
28954 }
28955 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
28956 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
28957 }
28958 static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
28959 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
28960 }
28961 static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
28962 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
28963 }
28964 static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
28965 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
28966 }
28967 static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
28968 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
28969 }
28970 static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
28971 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
28972 }
28973 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
28974 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
28975 }
28976 static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
28977 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
28978 }
28979 static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
28980 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
28981 }
28982 static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
28983 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
28984 }
28985 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
28986 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
28987 }
28988 static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
28989 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
28990 }
28991 static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
28992 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
28993 }
28994 static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
28995 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
28996 }
28997 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
28998 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
28999 }
29000 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
29001 return (void *)((wxEvtHandler *) ((wxWindow *) x));
29002 }
29003 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
29004 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29005 }
29006 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
29007 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
29008 }
29009 static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
29010 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
29011 }
29012 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
29013 return (void *)((wxEvtHandler *) ((wxValidator *) x));
29014 }
29015 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
29016 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
29017 }
29018 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
29019 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
29020 }
29021 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
29022 return (void *)((wxEvtHandler *) ((wxMenu *) x));
29023 }
29024 static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
29025 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
29026 }
29027 static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
29028 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
29029 }
29030 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
29031 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
29032 }
29033 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
29034 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
29035 }
29036 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
29037 return (void *)((wxObject *) ((wxSizerItem *) x));
29038 }
29039 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
29040 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
29041 }
29042 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
29043 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
29044 }
29045 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
29046 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
29047 }
29048 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
29049 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
29050 }
29051 static void *_p_wxSizerTo_p_wxObject(void *x) {
29052 return (void *)((wxObject *) ((wxSizer *) x));
29053 }
29054 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
29055 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
29056 }
29057 static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
29058 return (void *)((wxObject *) ((wxFileHistory *) x));
29059 }
29060 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
29061 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
29062 }
29063 static void *_p_wxEventTo_p_wxObject(void *x) {
29064 return (void *)((wxObject *) ((wxEvent *) x));
29065 }
29066 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
29067 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
29068 }
29069 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
29070 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
29071 }
29072 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
29073 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
29074 }
29075 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
29076 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
29077 }
29078 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
29079 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
29080 }
29081 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
29082 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
29083 }
29084 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
29085 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
29086 }
29087 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
29088 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29089 }
29090 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
29091 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
29092 }
29093 static void *_p_wxControlTo_p_wxObject(void *x) {
29094 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
29095 }
29096 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
29097 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
29098 }
29099 static void *_p_wxTimerEventTo_p_wxObject(void *x) {
29100 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
29101 }
29102 static void *_p_wxFSFileTo_p_wxObject(void *x) {
29103 return (void *)((wxObject *) ((wxFSFile *) x));
29104 }
29105 static void *_p_wxClipboardTo_p_wxObject(void *x) {
29106 return (void *)((wxObject *) ((wxClipboard *) x));
29107 }
29108 static void *_p_wxPySizerTo_p_wxObject(void *x) {
29109 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
29110 }
29111 static void *_p_wxPyEventTo_p_wxObject(void *x) {
29112 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
29113 }
29114 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
29115 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
29116 }
29117 static void *_p_wxShowEventTo_p_wxObject(void *x) {
29118 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
29119 }
29120 static void *_p_wxToolTipTo_p_wxObject(void *x) {
29121 return (void *)((wxObject *) ((wxToolTip *) x));
29122 }
29123 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
29124 return (void *)((wxObject *) ((wxMenuItem *) x));
29125 }
29126 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
29127 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
29128 }
29129 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
29130 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
29131 }
29132 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
29133 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
29134 }
29135 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
29136 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
29137 }
29138 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
29139 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
29140 }
29141 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
29142 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
29143 }
29144 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
29145 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
29146 }
29147 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
29148 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
29149 }
29150 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
29151 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
29152 }
29153 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
29154 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
29155 }
29156 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
29157 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
29158 }
29159 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
29160 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
29161 }
29162 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
29163 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
29164 }
29165 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
29166 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
29167 }
29168 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
29169 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
29170 }
29171 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
29172 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
29173 }
29174 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
29175 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
29176 }
29177 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
29178 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
29179 }
29180 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
29181 return (void *)((wxObject *) ((wxImageHandler *) x));
29182 }
29183 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
29184 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
29185 }
29186 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
29187 return (void *)((wxObject *) ((wxEvtHandler *) x));
29188 }
29189 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
29190 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
29191 }
29192 static void *_p_wxImageTo_p_wxObject(void *x) {
29193 return (void *)((wxObject *) ((wxImage *) x));
29194 }
29195 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
29196 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
29197 }
29198 static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
29199 return (void *)((wxObject *) ((wxSystemOptions *) x));
29200 }
29201 static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
29202 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
29203 }
29204 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
29205 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29206 }
29207 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
29208 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
29209 }
29210 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
29211 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
29212 }
29213 static void *_p_wxWindowTo_p_wxObject(void *x) {
29214 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
29215 }
29216 static void *_p_wxMenuTo_p_wxObject(void *x) {
29217 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
29218 }
29219 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
29220 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
29221 }
29222 static void *_p_wxPyProcessTo_p_wxObject(void *x) {
29223 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
29224 }
29225 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
29226 return (void *)((wxObject *) ((wxFileSystem *) x));
29227 }
29228 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
29229 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
29230 }
29231 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
29232 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
29233 }
29234 static void *_p_wxPyAppTo_p_wxObject(void *x) {
29235 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
29236 }
29237 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
29238 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
29239 }
29240 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
29241 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
29242 }
29243 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
29244 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
29245 }
29246 static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
29247 return (void *)((wxObject *) ((wxBusyInfo *) x));
29248 }
29249 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
29250 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
29251 }
29252 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
29253 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
29254 }
29255 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
29256 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
29257 }
29258 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
29259 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
29260 }
29261 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
29262 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
29263 }
29264 static void *_p_wxProcessEventTo_p_wxObject(void *x) {
29265 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
29266 }
29267 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
29268 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29269 }
29270 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
29271 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
29272 }
29273 static void *_p_wxValidatorTo_p_wxObject(void *x) {
29274 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
29275 }
29276 static void *_p_wxPyTimerTo_p_wxObject(void *x) {
29277 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
29278 }
29279 static void *_p_wxLogStderrTo_p_wxLog(void *x) {
29280 return (void *)((wxLog *) ((wxLogStderr *) x));
29281 }
29282 static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
29283 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
29284 }
29285 static void *_p_wxLogWindowTo_p_wxLog(void *x) {
29286 return (void *)((wxLog *) ((wxLogWindow *) x));
29287 }
29288 static void *_p_wxLogChainTo_p_wxLog(void *x) {
29289 return (void *)((wxLog *) ((wxLogChain *) x));
29290 }
29291 static void *_p_wxLogGuiTo_p_wxLog(void *x) {
29292 return (void *)((wxLog *) ((wxLogGui *) x));
29293 }
29294 static void *_p_wxPyLogTo_p_wxLog(void *x) {
29295 return (void *)((wxLog *) ((wxPyLog *) x));
29296 }
29297 static void *_p_wxControlTo_p_wxWindow(void *x) {
29298 return (void *)((wxWindow *) ((wxControl *) x));
29299 }
29300 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
29301 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
29302 }
29303 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
29304 return (void *)((wxWindow *) ((wxMenuBar *) x));
29305 }
29306 static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
29307 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
29308 }
29309 static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
29310 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
29311 }
29312 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}};
29313 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}};
29314 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}};
29315 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}};
29316 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}};
29317 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}};
29318 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}};
29319 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}};
29320 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}};
29321 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}};
29322 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}};
29323 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}};
29324 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}};
29325 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}};
29326 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}};
29327 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}};
29328 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}};
29329 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}};
29330 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}};
29331 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}};
29332 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}};
29333 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}};
29334 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}};
29335 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}};
29336 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}};
29337 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}};
29338 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}};
29339 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}};
29340 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}};
29341 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}};
29342 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}};
29343 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}};
29344 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}};
29345 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}};
29346 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}};
29347 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}};
29348 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}};
29349 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}};
29350 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}};
29351 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}};
29352 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}};
29353 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}};
29354 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}};
29355 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}};
29356 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}};
29357 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}};
29358 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}};
29359 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}};
29360 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}};
29361 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}};
29362 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}};
29363 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}};
29364 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}};
29365 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}};
29366 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}};
29367 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}};
29368 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}};
29369 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}};
29370 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}};
29371 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}};
29372 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}};
29373 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}};
29374 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}};
29375 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}};
29376 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}};
29377 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}};
29378 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}};
29379 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}};
29380 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}};
29381 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}};
29382 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}};
29383 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}};
29384 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}};
29385 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}};
29386 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}};
29387 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}};
29388 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}};
29389 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}};
29390 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}};
29391 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}};
29392 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}};
29393 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}};
29394 static swig_type_info _swigt__p_wxByte[] = {{"_p_wxByte", 0, "wxByte *", 0, 0, 0, 0},{"_p_wxByte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29395 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}};
29396 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}};
29397 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}};
29398
29399 static swig_type_info *swig_types_initial[] = {
29400 _swigt__p_wxLogChain,
29401 _swigt__p_wxMutexGuiLocker,
29402 _swigt__p_wxFileHistory,
29403 _swigt__p_wxLog,
29404 _swigt__p_wxDateTime__TimeZone,
29405 _swigt__p_wxMenu,
29406 _swigt__p_wxEvent,
29407 _swigt__p_wxConfigBase,
29408 _swigt__p_wxDisplay,
29409 _swigt__p_wxFileType,
29410 _swigt__p_wxLogGui,
29411 _swigt__p_wxFont,
29412 _swigt__p_wxDataFormat,
29413 _swigt__p_wxTimerEvent,
29414 _swigt__p_wxCaret,
29415 _swigt__p_int,
29416 _swigt__p_wxSize,
29417 _swigt__p_wxClipboard,
29418 _swigt__p_wxStopWatch,
29419 _swigt__p_wxDC,
29420 _swigt__p_wxClipboardLocker,
29421 _swigt__p_wxIcon,
29422 _swigt__p_wxLogStderr,
29423 _swigt__p_wxLogTextCtrl,
29424 _swigt__p_wxTextCtrl,
29425 _swigt__p_wxBusyCursor,
29426 _swigt__p_wxPyTextDataObject,
29427 _swigt__p_wxBitmapDataObject,
29428 _swigt__p_wxTextDataObject,
29429 _swigt__p_wxDataObject,
29430 _swigt__p_wxPyBitmapDataObject,
29431 _swigt__p_wxFileDataObject,
29432 _swigt__p_wxCustomDataObject,
29433 _swigt__p_wxURLDataObject,
29434 _swigt__p_wxMetafileDataObject,
29435 _swigt__p_wxSound,
29436 _swigt__p_wxTimerRunner,
29437 _swigt__p_wxLogWindow,
29438 _swigt__p_wxTimeSpan,
29439 _swigt__p_wxArrayString,
29440 _swigt__p_wxWindowDisabler,
29441 _swigt__p_wxToolTip,
29442 _swigt__p_wxDataObjectComposite,
29443 _swigt__p_wxFileConfig,
29444 _swigt__p_wxSystemSettings,
29445 _swigt__p_wxVideoMode,
29446 _swigt__p_wxPyDataObjectSimple,
29447 _swigt__p_wxDataObjectSimple,
29448 _swigt__p_wxEvtHandler,
29449 _swigt__p_wxRect,
29450 _swigt__p_char,
29451 _swigt__p_wxSingleInstanceChecker,
29452 _swigt__p_wxFileTypeInfo,
29453 _swigt__p_wxFrame,
29454 _swigt__p_wxTimer,
29455 _swigt__p_wxMimeTypesManager,
29456 _swigt__p_wxPyArtProvider,
29457 _swigt__p_wxPyTipProvider,
29458 _swigt__p_wxTipProvider,
29459 _swigt__p_wxJoystick,
29460 _swigt__p_wxSystemOptions,
29461 _swigt__p_wxPoint,
29462 _swigt__p_wxJoystickEvent,
29463 _swigt__p_wxCursor,
29464 _swigt__p_wxObject,
29465 _swigt__p_wxOutputStream,
29466 _swigt__p_wxDateTime,
29467 _swigt__p_wxPyDropSource,
29468 _swigt__p_wxWindow,
29469 _swigt__p_wxString,
29470 _swigt__p_wxPyProcess,
29471 _swigt__p_wxBitmap,
29472 _swigt__p_wxConfig,
29473 _swigt__p_wxChar,
29474 _swigt__p_wxBusyInfo,
29475 _swigt__p_wxPyDropTarget,
29476 _swigt__p_wxPyTextDropTarget,
29477 _swigt__p_wxPyFileDropTarget,
29478 _swigt__p_wxProcessEvent,
29479 _swigt__p_wxPyLog,
29480 _swigt__p_wxLogNull,
29481 _swigt__p_wxColour,
29482 _swigt__p_wxByte,
29483 _swigt__p_wxConfigPathChanger,
29484 _swigt__p_wxPyTimer,
29485 _swigt__p_wxDateSpan,
29486 0
29487 };
29488
29489
29490 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
29491
29492 static swig_const_info swig_const_table[] = {
29493 { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
29494 { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
29495 { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
29496 { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
29497 { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
29498 {0}};
29499
29500 #ifdef __cplusplus
29501 }
29502 #endif
29503
29504 #ifdef __cplusplus
29505 extern "C"
29506 #endif
29507 SWIGEXPORT(void) SWIG_init(void) {
29508 static PyObject *SWIG_globals = 0;
29509 static int typeinit = 0;
29510 PyObject *m, *d;
29511 int i;
29512 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
29513 m = Py_InitModule((char *) SWIG_name, SwigMethods);
29514 d = PyModule_GetDict(m);
29515
29516 if (!typeinit) {
29517 for (i = 0; swig_types_initial[i]; i++) {
29518 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
29519 }
29520 typeinit = 1;
29521 }
29522 SWIG_InstallConstants(d,swig_const_table);
29523
29524 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT));
29525 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT));
29526 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT));
29527 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT));
29528 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT));
29529 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE));
29530 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT));
29531 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT));
29532 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT));
29533 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR));
29534 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND));
29535 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP));
29536 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION));
29537 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION));
29538 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU));
29539 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW));
29540 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME));
29541 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT));
29542 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT));
29543 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT));
29544 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER));
29545 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER));
29546 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE));
29547 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT));
29548 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT));
29549 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE));
29550 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE));
29551 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW));
29552 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW));
29553 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT));
29554 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT));
29555 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT));
29556 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT));
29557 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT));
29558 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT));
29559 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT));
29560 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW));
29561 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT));
29562 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT));
29563 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK));
29564 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX));
29565 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT));
29566 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION));
29567 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION));
29568 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT));
29569 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR));
29570 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX));
29571 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS));
29572 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X));
29573 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y));
29574 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X));
29575 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y));
29576 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X));
29577 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y));
29578 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X));
29579 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y));
29580 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X));
29581 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y));
29582 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X));
29583 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y));
29584 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X));
29585 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X));
29586 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y));
29587 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X));
29588 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y));
29589 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X));
29590 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y));
29591 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X));
29592 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y));
29593 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X));
29594 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y));
29595 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X));
29596 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y));
29597 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y));
29598 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X));
29599 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X));
29600 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y));
29601 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y));
29602 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y));
29603 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y));
29604 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT));
29605 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT));
29606 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS));
29607 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS));
29608 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS));
29609 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME));
29610 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE));
29611 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY));
29612 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA));
29613 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL));
29614 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP));
29615 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
29616 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
29617 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
29618 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
29619 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF));
29620 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT));
29621 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS));
29622 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT));
29623 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
29624 PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError));
29625 PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error));
29626 PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning));
29627 PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message));
29628 PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status));
29629 PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info));
29630 PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug));
29631 PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace));
29632 PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress));
29633 PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User));
29634 PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max));
29635 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
29636 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
29637 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
29638 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
29639 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
29640 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001));
29641 PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002));
29642 PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004));
29643 PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008));
29644 PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100));
29645 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT));
29646 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT));
29647 PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK));
29648 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL));
29649 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED));
29650 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS));
29651 PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR));
29652 PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE));
29653 PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP));
29654 PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT));
29655 PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT));
29656 PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL));
29657 PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP));
29658 PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT));
29659 PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT));
29660 PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT));
29661 PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE));
29662 PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL));
29663 PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS));
29664 PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV));
29665 PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS));
29666 PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE));
29667 PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM));
29668 PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM));
29669 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
29670 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC));
29671 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC));
29672 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE));
29673 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER));
29674
29675 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
29676
29677 PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1));
29678 PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2));
29679 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY));
29680 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1));
29681 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2));
29682 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3));
29683 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4));
29684 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
29685 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
29686 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
29687 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
29688 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC));
29689 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC));
29690 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP));
29691 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD));
29692 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE));
29693 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE));
29694 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME));
29695 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL));
29696 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
29697 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
29698 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
29699 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
29700 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
29701 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
29702 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
29703 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
29704 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
29705 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
29706 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
29707 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
29708 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
29709 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
29710 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
29711 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
29712 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
29713 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
29714 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
29715 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
29716 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
29717 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
29718 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
29719 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
29720 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
29721 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
29722 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
29723 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
29724 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
29725 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
29726 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
29727 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
29728 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
29729 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
29730 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
29731 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
29732 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
29733 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
29734 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
29735
29736 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
29737
29738 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE));
29739 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE));
29740 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH));
29741 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS));
29742 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown));
29743 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String));
29744 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean));
29745 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer));
29746 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float));
29747 SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set);
29748 SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set);
29749 PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local));
29750 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12));
29751 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11));
29752 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10));
29753 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9));
29754 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8));
29755 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7));
29756 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6));
29757 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5));
29758 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4));
29759 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3));
29760 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2));
29761 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1));
29762 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0));
29763 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1));
29764 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2));
29765 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3));
29766 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4));
29767 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5));
29768 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6));
29769 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7));
29770 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8));
29771 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9));
29772 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10));
29773 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11));
29774 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12));
29775 PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET));
29776 PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST));
29777 PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET));
29778 PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST));
29779 PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET));
29780 PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST));
29781 PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK));
29782 PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD));
29783 PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST));
29784 PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT));
29785 PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST));
29786 PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT));
29787 PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST));
29788 PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT));
29789 PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST));
29790 PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT));
29791 PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST));
29792 PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT));
29793 PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST));
29794 PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST));
29795 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT));
29796 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST));
29797 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST));
29798 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST));
29799 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST));
29800 PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC));
29801 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian));
29802 PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian));
29803 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown));
29804 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard));
29805 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska));
29806 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania));
29807 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria));
29808 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen));
29809 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg));
29810 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol));
29811 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia));
29812 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria));
29813 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium));
29814 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria));
29815 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1));
29816 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2));
29817 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3));
29818 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada));
29819 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China));
29820 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1));
29821 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2));
29822 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia));
29823 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark));
29824 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt));
29825 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia));
29826 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland));
29827 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France));
29828 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace));
29829 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine));
29830 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg));
29831 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany));
29832 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic));
29833 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia));
29834 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant));
29835 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain));
29836 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece));
29837 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary));
29838 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland));
29839 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy));
29840 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan));
29841 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1));
29842 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2));
29843 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3));
29844 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia));
29845 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania));
29846 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg));
29847 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands));
29848 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen));
29849 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland));
29850 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht));
29851 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland));
29852 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway));
29853 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland));
29854 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal));
29855 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania));
29856 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia));
29857 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland));
29858 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain));
29859 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden));
29860 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland));
29861 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic));
29862 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant));
29863 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey));
29864 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA));
29865 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales));
29866 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia));
29867 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown));
29868 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default));
29869 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start));
29870 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC));
29871 PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France));
29872 PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany));
29873 PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK));
29874 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End));
29875 PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia));
29876 PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA));
29877 PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan));
29878 PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb));
29879 PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar));
29880 PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr));
29881 PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May));
29882 PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun));
29883 PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul));
29884 PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug));
29885 PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep));
29886 PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct));
29887 PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov));
29888 PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec));
29889 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month));
29890 PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun));
29891 PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon));
29892 PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue));
29893 PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed));
29894 PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu));
29895 PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri));
29896 PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat));
29897 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay));
29898 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year));
29899 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full));
29900 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr));
29901 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First));
29902 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First));
29903 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First));
29904 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
29905 PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID));
29906 PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT));
29907 PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP));
29908 PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE));
29909 PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK));
29910 PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF));
29911 PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF));
29912 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT));
29913 PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB));
29914 PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE));
29915 PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA));
29916 PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF));
29917 PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE));
29918 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT));
29919 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE));
29920 PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME));
29921 PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE));
29922 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE));
29923 PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML));
29924 PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX));
29925 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
29926 PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get));
29927 PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set));
29928 PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both));
29929 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly));
29930 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove));
29931 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove));
29932 PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError));
29933 PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone));
29934 PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy));
29935 PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove));
29936 PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink));
29937 PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel));
29938
29939 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
29940 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
29941 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
29942 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
29943
29944 SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set);
29945 SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set);
29946 }
29947