]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_misc_wrap.cpp
b54f20aa31c2bdfce9f4463b02566ac260216fbe
[wxWidgets.git] / wxPython / src / msw / _misc_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 /***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136 #include "Python.h"
137
138 #ifdef __cplusplus
139 extern "C" {
140 #endif
141
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
147
148 /* Flags for pointer conversion */
149
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
152
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
155
156 /* Constant information structure */
157 typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164 } swig_const_info;
165
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
207 /* -------- TYPES TABLE (BEGIN) -------- */
208
209 #define SWIGTYPE_p_wxLogChain swig_types[0]
210 #define SWIGTYPE_p_wxMutexGuiLocker swig_types[1]
211 #define SWIGTYPE_p_wxMetafile swig_types[2]
212 #define SWIGTYPE_p_wxFileHistory swig_types[3]
213 #define SWIGTYPE_p_wxLog swig_types[4]
214 #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[5]
215 #define SWIGTYPE_p_wxMenu swig_types[6]
216 #define SWIGTYPE_p_wxEvent swig_types[7]
217 #define SWIGTYPE_p_wxConfigBase swig_types[8]
218 #define SWIGTYPE_p_wxDisplay swig_types[9]
219 #define SWIGTYPE_p_wxFileType swig_types[10]
220 #define SWIGTYPE_p_wxLogGui swig_types[11]
221 #define SWIGTYPE_p_wxFont swig_types[12]
222 #define SWIGTYPE_p_wxDataFormat swig_types[13]
223 #define SWIGTYPE_p_wxTimerEvent swig_types[14]
224 #define SWIGTYPE_p_wxCaret swig_types[15]
225 #define SWIGTYPE_p_int swig_types[16]
226 #define SWIGTYPE_p_wxSize swig_types[17]
227 #define SWIGTYPE_p_wxClipboard swig_types[18]
228 #define SWIGTYPE_p_wxStopWatch swig_types[19]
229 #define SWIGTYPE_p_wxDC swig_types[20]
230 #define SWIGTYPE_p_wxClipboardLocker swig_types[21]
231 #define SWIGTYPE_p_wxIcon swig_types[22]
232 #define SWIGTYPE_p_wxLogStderr swig_types[23]
233 #define SWIGTYPE_p_wxLogTextCtrl swig_types[24]
234 #define SWIGTYPE_p_wxTextCtrl swig_types[25]
235 #define SWIGTYPE_p_wxBusyCursor swig_types[26]
236 #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[27]
237 #define SWIGTYPE_p_wxPyTextDataObject swig_types[28]
238 #define SWIGTYPE_p_wxBitmapDataObject swig_types[29]
239 #define SWIGTYPE_p_wxTextDataObject swig_types[30]
240 #define SWIGTYPE_p_wxDataObject swig_types[31]
241 #define SWIGTYPE_p_wxFileDataObject swig_types[32]
242 #define SWIGTYPE_p_wxCustomDataObject swig_types[33]
243 #define SWIGTYPE_p_wxURLDataObject swig_types[34]
244 #define SWIGTYPE_p_wxMetafileDataObject swig_types[35]
245 #define SWIGTYPE_p_wxSound swig_types[36]
246 #define SWIGTYPE_p_wxTimerRunner swig_types[37]
247 #define SWIGTYPE_p_wxLogWindow swig_types[38]
248 #define SWIGTYPE_p_wxTimeSpan swig_types[39]
249 #define SWIGTYPE_p_wxArrayString swig_types[40]
250 #define SWIGTYPE_p_wxWindowDisabler swig_types[41]
251 #define SWIGTYPE_p_wxToolTip swig_types[42]
252 #define SWIGTYPE_p_wxDataObjectComposite swig_types[43]
253 #define SWIGTYPE_p_wxFileConfig swig_types[44]
254 #define SWIGTYPE_p_wxSystemSettings swig_types[45]
255 #define SWIGTYPE_p_wxVideoMode swig_types[46]
256 #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[47]
257 #define SWIGTYPE_p_wxDataObjectSimple swig_types[48]
258 #define SWIGTYPE_p_wxEvtHandler swig_types[49]
259 #define SWIGTYPE_p_wxRect swig_types[50]
260 #define SWIGTYPE_p_char swig_types[51]
261 #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[52]
262 #define SWIGTYPE_p_wxFileTypeInfo swig_types[53]
263 #define SWIGTYPE_p_wxFrame swig_types[54]
264 #define SWIGTYPE_p_wxTimer swig_types[55]
265 #define SWIGTYPE_p_wxMimeTypesManager swig_types[56]
266 #define SWIGTYPE_p_wxPyArtProvider swig_types[57]
267 #define SWIGTYPE_p_wxPyTipProvider swig_types[58]
268 #define SWIGTYPE_p_wxTipProvider swig_types[59]
269 #define SWIGTYPE_p_wxJoystick swig_types[60]
270 #define SWIGTYPE_p_wxSystemOptions swig_types[61]
271 #define SWIGTYPE_p_wxPoint swig_types[62]
272 #define SWIGTYPE_p_wxJoystickEvent swig_types[63]
273 #define SWIGTYPE_p_wxCursor swig_types[64]
274 #define SWIGTYPE_p_wxObject swig_types[65]
275 #define SWIGTYPE_p_wxOutputStream swig_types[66]
276 #define SWIGTYPE_p_wxDateTime swig_types[67]
277 #define SWIGTYPE_p_wxPyDropSource swig_types[68]
278 #define SWIGTYPE_p_wxWindow swig_types[69]
279 #define SWIGTYPE_p_wxString swig_types[70]
280 #define SWIGTYPE_p_wxPyProcess swig_types[71]
281 #define SWIGTYPE_p_wxBitmap swig_types[72]
282 #define SWIGTYPE_p_wxConfig swig_types[73]
283 #define SWIGTYPE_p_wxChar swig_types[74]
284 #define SWIGTYPE_p_wxBusyInfo swig_types[75]
285 #define SWIGTYPE_p_wxPyDropTarget swig_types[76]
286 #define SWIGTYPE_p_wxPyTextDropTarget swig_types[77]
287 #define SWIGTYPE_p_wxPyFileDropTarget swig_types[78]
288 #define SWIGTYPE_p_wxProcessEvent swig_types[79]
289 #define SWIGTYPE_p_wxPyLog swig_types[80]
290 #define SWIGTYPE_p_wxLogNull swig_types[81]
291 #define SWIGTYPE_p_wxColour swig_types[82]
292 #define SWIGTYPE_p_wxConfigPathChanger swig_types[83]
293 #define SWIGTYPE_p_wxPyTimer swig_types[84]
294 #define SWIGTYPE_p_wxDateSpan swig_types[85]
295 static swig_type_info *swig_types[87];
296
297 /* -------- TYPES TABLE (END) -------- */
298
299
300 /*-----------------------------------------------
301 @(target):= _misc_.so
302 ------------------------------------------------*/
303 #define SWIG_init init_misc_
304
305 #define SWIG_name "_misc_"
306
307 /* Auxiliar swig macros */
308
309 #ifdef __cplusplus
310 #define SWIGSTATICINLINE(a) static inline a
311 #define SWIGSTATIC(a) static a
312 #define swig_new_array(type, size) (new type[(size)])
313 #define swig_delete_array(cptr) delete[] cptr
314 #define swig_const_cast(type,a) const_cast<type>(a)
315 #define swig_static_cast(type,a) static_cast<type>(a)
316 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
317
318 #ifdef HAVE_NUMERIC_CAST
319 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
320 #else
321 #define swig_numeric_cast(type,a) static_cast<type>(a)
322 #endif
323
324 #else /* C case */
325
326 #define SWIGSTATICINLINE(a) static a
327 #define SWIGSTATIC(a) static a
328 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
329 #define swig_delete_array(cptr) free((char*)cptr)
330 #define swig_const_cast(type,a) (type)(a)
331 #define swig_static_cast(type,a) (type)(a)
332 #define swig_reinterpret_cast(type,a) (type)(a)
333 #define swig_numeric_cast(type,a) (type)(a)
334
335 #endif /* __cplusplus */
336
337
338 #define SWIG_FromSignedChar PyInt_FromLong
339 #define SWIG_FromUnsignedChar PyInt_FromLong
340 #define SWIG_FromShort PyInt_FromLong
341 #define SWIG_FromUnsignedShort PyInt_FromLong
342 #define SWIG_FromInt PyInt_FromLong
343 #define SWIG_FromLong PyInt_FromLong
344 #define SWIG_FromFloat PyFloat_FromDouble
345 #define SWIG_FromDouble PyFloat_FromDouble
346 #define SWIG_FromFloat PyFloat_FromDouble
347 #define SWIG_FromDouble PyFloat_FromDouble
348
349
350 #include "wx/wxPython/wxPython.h"
351 #include "wx/wxPython/pyclasses.h"
352 #include "wx/wxPython/pyistream.h"
353
354 static const wxString wxPyEmptyString(wxEmptyString);
355
356
357
358 #include <limits.h>
359
360
361 SWIGSTATICINLINE(long)
362 SWIG_CheckLongInRange(long value, const char* type,
363 long min_value, long max_value)
364 {
365 if (!PyErr_Occurred()) {
366 if (value < min_value) {
367 PyObject *err =
368 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
369 value, type, min_value);
370
371 PyErr_SetObject(PyExc_OverflowError, err);
372 Py_DECREF(err);
373 } else if (value > max_value) {
374 PyObject *err =
375 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
376 value, type, max_value);
377 PyErr_SetObject(PyExc_OverflowError, err);
378 Py_DECREF(err);
379 }
380 }
381 return value;
382 }
383
384
385 SWIGSTATICINLINE(long)
386 SWIG_AsLong(PyObject * obj)
387 {
388 if (PyNumber_Check(obj))
389 return PyInt_AsLong(obj);
390 else {
391 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
392 obj->ob_type->tp_name);
393 PyErr_SetObject(PyExc_TypeError, errmsg);
394 Py_DECREF(errmsg);
395 return 0;
396 }
397 }
398
399
400 #if INT_MAX != LONG_MAX
401 SWIGSTATICINLINE(int)
402 SWIG_AsInt(PyObject *obj)
403 {
404 return swig_numeric_cast(int,
405 SWIG_CheckLongInRange(SWIG_AsLong(obj),
406 "int", INT_MIN, INT_MAX));
407 }
408 #else
409 #define SWIG_AsInt SWIG_AsLong
410 #endif
411
412
413 SWIGSTATICINLINE(int)
414 SWIG_CheckInt(PyObject* obj)
415 {
416 SWIG_AsInt(obj);
417 if (PyErr_Occurred()) {
418 PyErr_Clear();
419 return 0;
420 } else {
421 return 1;
422 }
423 }
424
425
426 #include <wx/stockitem.h>
427
428 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
429 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
430 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
431
432 SWIGSTATICINLINE(int)
433 SWIG_CheckLong(PyObject* obj)
434 {
435 SWIG_AsLong(obj);
436 if (PyErr_Occurred()) {
437 PyErr_Clear();
438 return 0;
439 } else {
440 return 1;
441 }
442 }
443
444
445 SWIGSTATICINLINE(bool)
446 SWIG_AsBool(PyObject *obj)
447 {
448 return PyObject_IsTrue(obj) ? true : false;
449 }
450
451
452 SWIGSTATICINLINE(int)
453 SWIG_CheckBool(PyObject* obj)
454 {
455 SWIG_AsBool(obj);
456 if (PyErr_Occurred()) {
457 PyErr_Clear();
458 return 0;
459 } else {
460 return 1;
461 }
462 }
463
464
465 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
466 PyObject* o2;
467 PyObject* o3;
468
469 if (!target) {
470 target = o;
471 } else if (target == Py_None) {
472 Py_DECREF(Py_None);
473 target = o;
474 } else {
475 if (!PyTuple_Check(target)) {
476 o2 = target;
477 target = PyTuple_New(1);
478 PyTuple_SetItem(target, 0, o2);
479 }
480 o3 = PyTuple_New(1);
481 PyTuple_SetItem(o3, 0, o);
482
483 o2 = target;
484 target = PySequence_Concat(o2, o3);
485 Py_DECREF(o2);
486 Py_DECREF(o3);
487 }
488 return target;
489 }
490
491
492 SWIGSTATICINLINE(unsigned long)
493 SWIG_AsUnsignedLong(PyObject * obj)
494 {
495 if (PyLong_Check(obj)) {
496 return PyLong_AsUnsignedLong(obj);
497 } else {
498 long i = SWIG_AsLong(obj);
499 if ( !PyErr_Occurred() && (i < 0)) {
500 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
501 }
502 return i;
503 }
504 }
505
506
507 SWIGSTATICINLINE(int)
508 SWIG_CheckUnsignedLong(PyObject* obj)
509 {
510 SWIG_AsUnsignedLong(obj);
511 if (PyErr_Occurred()) {
512 PyErr_Clear();
513 return 0;
514 } else {
515 return 1;
516 }
517 }
518
519
520 SWIGSTATICINLINE(PyObject* )
521 SWIG_FromUnsignedLong(unsigned long value)
522 {
523 return (value > LONG_MAX) ?
524 PyLong_FromUnsignedLong(value)
525 : PyInt_FromLong(swig_numeric_cast(long,value));
526 }
527
528
529 bool wxThread_IsMain() {
530 #ifdef WXP_WITH_THREAD
531 return wxThread::IsMain();
532 #else
533 return True;
534 #endif
535 }
536
537
538 int wxCaret_GetBlinkTime() {
539 return wxCaret::GetBlinkTime();
540 }
541
542 void wxCaret_SetBlinkTime(int milliseconds) {
543 wxCaret::SetBlinkTime(milliseconds);
544 }
545
546
547 #include <wx/snglinst.h>
548
549
550 #ifdef __WXMSW__
551 #include <wx/msw/private.h>
552 #include <wx/dynload.h>
553 #endif
554
555
556
557 void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method)
558 {
559 #ifdef __WXMSW__
560
561 switch (method)
562 {
563 case 1:
564 // This one only partially works. Appears to be an undocumented
565 // "standard" convention that not all widgets adhear to. For
566 // example, for some widgets backgrounds or non-client areas may
567 // not be painted.
568 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
569 break;
570
571 case 2:
572 // This one works much better, except for on XP. On Win2k nearly
573 // all widgets and their children are captured correctly[**]. On
574 // XP with Themes activated most native widgets draw only
575 // partially, if at all. Without themes it works just like on
576 // Win2k.
577 //
578 // ** For example the radio buttons in a wxRadioBox are not its
579 // children by default, but you can capture it via the panel
580 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
581 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
582 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
583 PRF_ERASEBKGND | PRF_OWNED );
584 break;
585
586 case 3:
587 // This one is only defined in the latest SDK and is only
588 // available on XP. MSDN says it is similar to sending WM_PRINT
589 // so I expect that it will work similar to the above. Since it
590 // is avaialble only on XP, it can't be compiled like this and
591 // will have to be loaded dynamically.
592 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
593
594 // fall through
595
596 case 4:
597 // Use PrintWindow if available, or fallback to WM_PRINT
598 // otherwise. Unfortunately using PrintWindow is even worse than
599 // WM_PRINT. For most native widgets nothing is drawn to the dc
600 // at all, with or without Themes.
601 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
602 static bool s_triedToLoad = False;
603 static PrintWindow_t pfnPrintWindow = NULL;
604 if ( !s_triedToLoad )
605 {
606
607 s_triedToLoad = True;
608 wxDynamicLibrary dllUser32(_T("user32.dll"));
609 if ( dllUser32.IsLoaded() )
610 {
611 wxLogNull nolog; // Don't report errors here
612 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
613 }
614 }
615 if (pfnPrintWindow)
616 {
617 printf("Using PrintWindow\n");
618 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
619 }
620 else
621 {
622 printf("Using WM_PRINT\n");
623 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
624 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED );
625 }
626 }
627 #endif
628 }
629
630
631
632 #include <wx/tipdlg.h>
633
634
635 class wxPyTipProvider : public wxTipProvider {
636 public:
637 wxPyTipProvider(size_t currentTip)
638 : wxTipProvider(currentTip) {}
639
640 DEC_PYCALLBACK_STRING__pure(GetTip);
641 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
642 PYPRIVATE;
643 };
644
645 IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
646 IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
647
648
649 //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
650
651 IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer);
652
653 void wxPyTimer::Notify() {
654 bool found;
655 bool blocked = wxPyBeginBlockThreads();
656 if ((found = wxPyCBH_findCallback(m_myInst, "Notify")))
657 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()"));
658 wxPyEndBlockThreads(blocked);
659 if (! found)
660 wxTimer::Notify();
661 }
662 void wxPyTimer::base_Notify() {
663 wxTimer::Notify();
664 }
665
666
667
668 SWIGSTATICINLINE(PyObject *)
669 SWIG_FromCharPtr(const char* cptr)
670 {
671 size_t size = cptr ? strlen(cptr) : 0;
672 if (cptr) {
673 if (size > INT_MAX) {
674 return SWIG_NewPointerObj(swig_const_cast(char*,cptr),
675 SWIG_TypeQuery("char *"), 0);
676 } else {
677 return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size));
678 }
679 } else {
680 Py_INCREF(Py_None);
681 return Py_None;
682 }
683 }
684
685
686 SWIGSTATICINLINE(unsigned long)
687 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
688 unsigned long max_value)
689 {
690 if (!PyErr_Occurred()) {
691 if (value > max_value) {
692 PyObject *err =
693 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
694 value, type, max_value);
695 PyErr_SetObject(PyExc_OverflowError, err);
696 Py_DECREF(err);
697 }
698 }
699 return value;
700 }
701
702
703 #if UINT_MAX != ULONG_MAX
704 SWIGSTATICINLINE(unsigned int)
705 SWIG_AsUnsignedInt(PyObject *obj)
706 {
707 return swig_numeric_cast(unsigned int,
708 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
709 "unsigned int", UINT_MAX));
710 }
711 #else
712 #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
713 #endif
714
715
716 SWIGSTATICINLINE(int)
717 SWIG_CheckUnsignedInt(PyObject* obj)
718 {
719 SWIG_AsUnsignedInt(obj);
720 if (PyErr_Occurred()) {
721 PyErr_Clear();
722 return 0;
723 } else {
724 return 1;
725 }
726 }
727
728 wxString Log_TimeStamp(){
729 wxString msg;
730 wxLog::TimeStamp(&msg);
731 return msg;
732 }
733 void wxLog_Destroy(wxLog *self){ delete self; }
734
735 // A wxLog class that can be derived from in wxPython
736 class wxPyLog : public wxLog {
737 public:
738 wxPyLog() : wxLog() {}
739
740 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
741 bool found;
742 bool blocked = wxPyBeginBlockThreads();
743 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
744 PyObject* s = wx2PyString(szString);
745 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
746 Py_DECREF(s);
747 }
748 wxPyEndBlockThreads(blocked);
749 if (! found)
750 wxLog::DoLog(level, szString, t);
751 }
752
753 virtual void DoLogString(const wxChar *szString, time_t t) {
754 bool found;
755 bool blocked = wxPyBeginBlockThreads();
756 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
757 PyObject* s = wx2PyString(szString);
758 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
759 Py_DECREF(s);
760 }
761 wxPyEndBlockThreads(blocked);
762 if (! found)
763 wxLog::DoLogString(szString, t);
764 }
765
766 PYPRIVATE;
767 };
768
769
770
771
772 IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
773
774
775 #include <wx/joystick.h>
776
777
778 #if !wxUSE_JOYSTICK && !defined(__WXMSW__)
779 // A C++ stub class for wxJoystick for platforms that don't have it.
780 class wxJoystick : public wxObject {
781 public:
782 wxJoystick(int joystick = wxJOYSTICK1) {
783 bool blocked = wxPyBeginBlockThreads();
784 PyErr_SetString(PyExc_NotImplementedError,
785 "wxJoystick is not available on this platform.");
786 wxPyEndBlockThreads(blocked);
787 }
788 wxPoint GetPosition() { return wxPoint(-1,-1); }
789 int GetZPosition() { return -1; }
790 int GetButtonState() { return -1; }
791 int GetPOVPosition() { return -1; }
792 int GetPOVCTSPosition() { return -1; }
793 int GetRudderPosition() { return -1; }
794 int GetUPosition() { return -1; }
795 int GetVPosition() { return -1; }
796 int GetMovementThreshold() { return -1; }
797 void SetMovementThreshold(int threshold) {}
798
799 bool IsOk(void) { return False; }
800 int GetNumberJoysticks() { return -1; }
801 int GetManufacturerId() { return -1; }
802 int GetProductId() { return -1; }
803 wxString GetProductName() { return wxEmptyString; }
804 int GetXMin() { return -1; }
805 int GetYMin() { return -1; }
806 int GetZMin() { return -1; }
807 int GetXMax() { return -1; }
808 int GetYMax() { return -1; }
809 int GetZMax() { return -1; }
810 int GetNumberButtons() { return -1; }
811 int GetNumberAxes() { return -1; }
812 int GetMaxButtons() { return -1; }
813 int GetMaxAxes() { return -1; }
814 int GetPollingMin() { return -1; }
815 int GetPollingMax() { return -1; }
816 int GetRudderMin() { return -1; }
817 int GetRudderMax() { return -1; }
818 int GetUMin() { return -1; }
819 int GetUMax() { return -1; }
820 int GetVMin() { return -1; }
821 int GetVMax() { return -1; }
822
823 bool HasRudder() { return False; }
824 bool HasZ() { return False; }
825 bool HasU() { return False; }
826 bool HasV() { return False; }
827 bool HasPOV() { return False; }
828 bool HasPOV4Dir() { return False; }
829 bool HasPOVCTS() { return False; }
830
831 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; }
832 bool ReleaseCapture() { return False; }
833 };
834 #endif
835
836
837 #include <wx/sound.h>
838
839
840 #if !wxUSE_SOUND
841 // A C++ stub class for wxWave for platforms that don't have it.
842 class wxSound : public wxObject
843 {
844 public:
845 wxSound() {
846 bool blocked = wxPyBeginBlockThreads();
847 PyErr_SetString(PyExc_NotImplementedError,
848 "wxSound is not available on this platform.");
849 wxPyEndBlockThreads(blocked);
850 }
851 wxSound(const wxString&/*, bool*/) {
852 bool blocked = wxPyBeginBlockThreads();
853 PyErr_SetString(PyExc_NotImplementedError,
854 "wxSound is not available on this platform.");
855 wxPyEndBlockThreads(blocked);
856 }
857 wxSound(int, const wxByte*) {
858 bool blocked = wxPyBeginBlockThreads();
859 PyErr_SetString(PyExc_NotImplementedError,
860 "wxSound is not available on this platform.");
861 wxPyEndBlockThreads(blocked);
862 }
863
864 ~wxSound() {};
865
866 bool Create(const wxString&/*, bool*/) { return false; }
867 bool Create(int, const wxByte*) { return false; };
868 bool IsOk() { return false; };
869 bool Play(unsigned) const { return false; }
870 static bool Play(const wxString&, unsigned) { return false; }
871 static void Stop() {}
872 };
873
874 #endif
875
876 wxSound *new_wxSound(wxString const &fileName){
877 if (fileName.Length() == 0)
878 return new wxSound;
879 else
880 return new wxSound(fileName);
881 }
882 wxSound *new_wxSound(PyObject *data){
883 unsigned char* buffer; int size;
884 wxSound *sound = NULL;
885
886 bool blocked = wxPyBeginBlockThreads();
887 if (!PyArg_Parse(data, "t#", &buffer, &size))
888 goto done;
889 sound = new wxSound(size, buffer);
890 done:
891 wxPyEndBlockThreads(blocked);
892 return sound;
893 }
894 bool wxSound_CreateFromData(wxSound *self,PyObject *data){
895 #ifndef __WXMAC__
896 unsigned char* buffer;
897 int size;
898 bool rv = False;
899
900 bool blocked = wxPyBeginBlockThreads();
901 if (!PyArg_Parse(data, "t#", &buffer, &size))
902 goto done;
903 rv = self->Create(size, buffer);
904 done:
905 wxPyEndBlockThreads(blocked);
906 return rv;
907 #else
908 bool blocked = wxPyBeginBlockThreads();
909 PyErr_SetString(PyExc_NotImplementedError,
910 "Create from data is not available on this platform.");
911 wxPyEndBlockThreads(blocked);
912 return False;
913 #endif
914 }
915
916 #include <wx/mimetype.h>
917
918 PyObject *wxFileType_GetMimeType(wxFileType *self){
919 wxString str;
920 if (self->GetMimeType(&str))
921 return wx2PyString(str);
922 else
923 RETURN_NONE();
924 }
925 PyObject *wxFileType_GetMimeTypes(wxFileType *self){
926 wxArrayString arr;
927 if (self->GetMimeTypes(arr))
928 return wxArrayString2PyList_helper(arr);
929 else
930 RETURN_NONE();
931 }
932 PyObject *wxFileType_GetExtensions(wxFileType *self){
933 wxArrayString arr;
934 if (self->GetExtensions(arr))
935 return wxArrayString2PyList_helper(arr);
936 else
937 RETURN_NONE();
938 }
939 wxIcon *wxFileType_GetIcon(wxFileType *self){
940 wxIconLocation loc;
941 if (self->GetIcon(&loc))
942 return new wxIcon(loc);
943 else
944 return NULL;
945 }
946 PyObject *wxFileType_GetIconInfo(wxFileType *self){
947 wxIconLocation loc;
948 if (self->GetIcon(&loc)) {
949 wxString iconFile = loc.GetFileName();
950 int iconIndex = -1;
951
952 iconIndex = loc.GetIndex();
953
954 // Make a tuple and put the values in it
955 bool blocked = wxPyBeginBlockThreads();
956 PyObject* tuple = PyTuple_New(3);
957 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
958 wxT("wxIcon"), True));
959 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
960 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
961 wxPyEndBlockThreads(blocked);
962 return tuple;
963 }
964 else
965 RETURN_NONE();
966 }
967 PyObject *wxFileType_GetDescription(wxFileType *self){
968 wxString str;
969 if (self->GetDescription(&str))
970 return wx2PyString(str);
971 else
972 RETURN_NONE();
973 }
974 PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
975 wxString str;
976 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
977 return wx2PyString(str);
978 else
979 RETURN_NONE();
980 }
981 PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
982 wxString str;
983 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
984 return wx2PyString(str);
985 else
986 RETURN_NONE();
987 }
988 PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){
989 wxArrayString verbs;
990 wxArrayString commands;
991 if (self->GetAllCommands(&verbs, &commands,
992 wxFileType::MessageParameters(filename, mimetype))) {
993 bool blocked = wxPyBeginBlockThreads();
994 PyObject* tuple = PyTuple_New(2);
995 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
996 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
997 wxPyEndBlockThreads(blocked);
998 return tuple;
999 }
1000 else
1001 RETURN_NONE();
1002 }
1003 wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){
1004 return wxFileType::ExpandCommand(command,
1005 wxFileType::MessageParameters(filename, mimetype));
1006 }
1007 PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
1008 wxArrayString arr;
1009 self->EnumAllFileTypes(arr);
1010 return wxArrayString2PyList_helper(arr);
1011 }
1012
1013 #include <wx/artprov.h>
1014
1015 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
1016 static const wxString wxPyART_MENU(wxART_MENU);
1017 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
1018 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
1019 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
1020 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
1021 static const wxString wxPyART_BUTTON(wxART_BUTTON);
1022 static const wxString wxPyART_OTHER(wxART_OTHER);
1023 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
1024 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
1025 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
1026 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
1027 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
1028 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
1029 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
1030 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
1031 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
1032 static const wxString wxPyART_GO_UP(wxART_GO_UP);
1033 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
1034 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
1035 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
1036 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
1037 static const wxString wxPyART_PRINT(wxART_PRINT);
1038 static const wxString wxPyART_HELP(wxART_HELP);
1039 static const wxString wxPyART_TIP(wxART_TIP);
1040 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
1041 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
1042 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
1043 static const wxString wxPyART_FOLDER(wxART_FOLDER);
1044 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
1045 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
1046 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
1047 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
1048 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
1049 static const wxString wxPyART_ERROR(wxART_ERROR);
1050 static const wxString wxPyART_QUESTION(wxART_QUESTION);
1051 static const wxString wxPyART_WARNING(wxART_WARNING);
1052 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
1053 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
1054 // Python aware wxArtProvider
1055 class wxPyArtProvider : public wxArtProvider {
1056 public:
1057
1058 virtual wxBitmap CreateBitmap(const wxArtID& id,
1059 const wxArtClient& client,
1060 const wxSize& size) {
1061 wxBitmap rval = wxNullBitmap;
1062 bool blocked = wxPyBeginBlockThreads();
1063 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
1064 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
1065 PyObject* ro;
1066 wxBitmap* ptr;
1067 PyObject* s1, *s2;
1068 s1 = wx2PyString(id);
1069 s2 = wx2PyString(client);
1070 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
1071 Py_DECREF(so);
1072 Py_DECREF(s1);
1073 Py_DECREF(s2);
1074 if (ro) {
1075 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
1076 rval = *ptr;
1077 Py_DECREF(ro);
1078 }
1079 }
1080 wxPyEndBlockThreads(blocked);
1081 return rval;
1082 }
1083
1084 PYPRIVATE;
1085 };
1086
1087 void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
1088
1089
1090
1091 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
1092 PyObject* ret = PyTuple_New(3);
1093 if (ret) {
1094 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
1095 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
1096 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
1097 }
1098 return ret;
1099 }
1100
1101 PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
1102 bool cont;
1103 long index = 0;
1104 wxString value;
1105
1106 cont = self->GetFirstGroup(value, index);
1107 return __EnumerationHelper(cont, value, index);
1108 }
1109 PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
1110 bool cont;
1111 wxString value;
1112
1113 cont = self->GetNextGroup(value, index);
1114 return __EnumerationHelper(cont, value, index);
1115 }
1116 PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
1117 bool cont;
1118 long index = 0;
1119 wxString value;
1120
1121 cont = self->GetFirstEntry(value, index);
1122 return __EnumerationHelper(cont, value, index);
1123 }
1124 PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
1125 bool cont;
1126 wxString value;
1127
1128 cont = self->GetNextEntry(value, index);
1129 return __EnumerationHelper(cont, value, index);
1130 }
1131 long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){
1132 long rv;
1133 self->Read(key, &rv, defaultVal);
1134 return rv;
1135 }
1136
1137 SWIGSTATICINLINE(double)
1138 SWIG_AsDouble(PyObject *obj)
1139 {
1140 if (PyNumber_Check(obj))
1141 return PyFloat_AsDouble(obj);
1142 else {
1143 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
1144 obj->ob_type->tp_name);
1145 PyErr_SetObject(PyExc_TypeError, errmsg);
1146 Py_DECREF(errmsg);
1147 return 0;
1148 }
1149 }
1150
1151
1152 SWIGSTATICINLINE(int)
1153 SWIG_CheckDouble(PyObject* obj)
1154 {
1155 SWIG_AsDouble(obj);
1156 if (PyErr_Occurred()) {
1157 PyErr_Clear();
1158 return 0;
1159 } else {
1160 return 1;
1161 }
1162 }
1163
1164 double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){
1165 double rv;
1166 self->Read(key, &rv, defaultVal);
1167 return rv;
1168 }
1169 bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){
1170 bool rv;
1171 self->Read(key, &rv, defaultVal);
1172 return rv;
1173 }
1174
1175 #include <wx/datetime.h>
1176
1177
1178 static const wxString wxPyDateFormatStr(wxT("%c"));
1179 static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S"));
1180
1181 #define LOCAL_TZ wxDateTime::Local
1182
1183
1184 #if UINT_MAX < LONG_MAX
1185 #define SWIG_FromUnsignedInt SWIG_FromLong
1186 #else
1187 #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
1188 #endif
1189
1190 wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
1191 wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
1192 wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
1193 wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
1194 wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
1195 bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){
1196 if (!other || !self->IsValid() || !other->IsValid()) return self < other;
1197 return (*self < *other);
1198 }
1199 bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){
1200 if (!other || !self->IsValid() || !other->IsValid()) return self <= other;
1201 return (*self <= *other);
1202 }
1203 bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){
1204 if (!other || !self->IsValid() || !other->IsValid()) return self > other;
1205 return (*self > *other);
1206 }
1207 bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){
1208 if (!other || !self->IsValid() || !other->IsValid()) return self >= other;
1209 return (*self >= *other);
1210 }
1211 bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){
1212 if (!other || !self->IsValid() || !other->IsValid()) return self == other;
1213 return (*self == *other);
1214 }
1215 bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){
1216 if (!other || !self->IsValid() || !other->IsValid()) return self != other;
1217 return (*self != *other);
1218 }
1219 int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
1220 const wxChar* rv;
1221 const wxChar* _date = date;
1222 rv = self->ParseRfc822Date(_date);
1223 if (rv == NULL) return -1;
1224 return rv - _date;
1225 }
1226 int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){
1227 const wxChar* rv;
1228 const wxChar* _date = date;
1229 rv = self->ParseFormat(_date, format, dateDef);
1230 if (rv == NULL) return -1;
1231 return rv - _date;
1232 }
1233 int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
1234 const wxChar* rv;
1235 const wxChar* _datetime = datetime;
1236 rv = self->ParseDateTime(_datetime);
1237 if (rv == NULL) return -1;
1238 return rv - _datetime;
1239 }
1240 int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
1241 const wxChar* rv;
1242 const wxChar* _date = date;
1243 rv = self->ParseDate(_date);
1244 if (rv == NULL) return -1;
1245 return rv - _date;
1246 }
1247 int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
1248 const wxChar* rv;
1249 const wxChar* _time = time;
1250 rv = self->ParseTime(_time);
1251 if (rv == NULL) return -1;
1252 return rv - _time;
1253 }
1254 wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
1255 wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
1256 wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
1257 wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
1258 bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; }
1259 bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; }
1260 bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; }
1261 bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; }
1262 bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; }
1263 bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; }
1264 wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
1265 wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
1266 wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
1267 wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
1268 bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; }
1269 bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; }
1270
1271 #include <wx/dataobj.h>
1272
1273 PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir){
1274 size_t count = self->GetFormatCount(dir);
1275 wxDataFormat* formats = new wxDataFormat[count];
1276 self->GetAllFormats(formats, dir);
1277
1278 bool blocked = wxPyBeginBlockThreads();
1279 PyObject* list = PyList_New(count);
1280 for (size_t i=0; i<count; i++) {
1281 wxDataFormat* format = new wxDataFormat(formats[i]);
1282 PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), True);
1283 PyList_Append(list, obj);
1284 Py_DECREF(obj);
1285 }
1286 wxPyEndBlockThreads(blocked);
1287 delete [] formats;
1288 return list;
1289 }
1290 PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){
1291 PyObject* rval = NULL;
1292 size_t size = self->GetDataSize(format);
1293 bool blocked = wxPyBeginBlockThreads();
1294 if (size) {
1295 char* buf = new char[size];
1296 if (self->GetDataHere(format, buf))
1297 rval = PyString_FromStringAndSize(buf, size);
1298 delete [] buf;
1299 }
1300 if (! rval) {
1301 rval = Py_None;
1302 Py_INCREF(rval);
1303 }
1304 wxPyEndBlockThreads(blocked);
1305 return rval;
1306 }
1307 bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){
1308 bool rval;
1309 bool blocked = wxPyBeginBlockThreads();
1310 if (PyString_Check(data)) {
1311 rval = self->SetData(format, PyString_Size(data), PyString_AsString(data));
1312 }
1313 else {
1314 // raise a TypeError if not a string
1315 PyErr_SetString(PyExc_TypeError, "String expected.");
1316 rval = False;
1317 }
1318 wxPyEndBlockThreads(blocked);
1319 return rval;
1320 }
1321 PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){
1322 PyObject* rval = NULL;
1323 size_t size = self->GetDataSize();
1324 bool blocked = wxPyBeginBlockThreads();
1325 if (size) {
1326 char* buf = new char[size];
1327 if (self->GetDataHere(buf))
1328 rval = PyString_FromStringAndSize(buf, size);
1329 delete [] buf;
1330 }
1331 if (! rval) {
1332 rval = Py_None;
1333 Py_INCREF(rval);
1334 }
1335 wxPyEndBlockThreads(blocked);
1336 return rval;
1337 }
1338 bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){
1339 bool rval;
1340 bool blocked = wxPyBeginBlockThreads();
1341 if (PyString_Check(data)) {
1342 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
1343 }
1344 else {
1345 // raise a TypeError if not a string
1346 PyErr_SetString(PyExc_TypeError, "String expected.");
1347 rval = False;
1348 }
1349 wxPyEndBlockThreads(blocked);
1350 return rval;
1351 }
1352 // Create a new class for wxPython to use
1353 class wxPyDataObjectSimple : public wxDataObjectSimple {
1354 public:
1355 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
1356 : wxDataObjectSimple(format) {}
1357
1358 DEC_PYCALLBACK_SIZET__const(GetDataSize);
1359 bool GetDataHere(void *buf) const;
1360 bool SetData(size_t len, const void *buf) const;
1361 PYPRIVATE;
1362 };
1363
1364 IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
1365
1366 bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
1367 // We need to get the data for this object and write it to buf. I think
1368 // the best way to do this for wxPython is to have the Python method
1369 // return either a string or None and then act appropriately with the
1370 // C++ version.
1371
1372 bool rval = False;
1373 bool blocked = wxPyBeginBlockThreads();
1374 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
1375 PyObject* ro;
1376 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1377 if (ro) {
1378 rval = (ro != Py_None && PyString_Check(ro));
1379 if (rval)
1380 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
1381 Py_DECREF(ro);
1382 }
1383 }
1384 wxPyEndBlockThreads(blocked);
1385 return rval;
1386 }
1387
1388 bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
1389 // For this one we simply need to make a string from buf and len
1390 // and send it to the Python method.
1391 bool rval = False;
1392 bool blocked = wxPyBeginBlockThreads();
1393 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
1394 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
1395 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
1396 Py_DECREF(data);
1397 }
1398 wxPyEndBlockThreads(blocked);
1399 return rval;
1400 }
1401
1402 // Create a new class for wxPython to use
1403 class wxPyTextDataObject : public wxTextDataObject {
1404 public:
1405 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
1406 : wxTextDataObject(text) {}
1407
1408 DEC_PYCALLBACK_SIZET__const(GetTextLength);
1409 DEC_PYCALLBACK_STRING__const(GetText);
1410 DEC_PYCALLBACK__STRING(SetText);
1411 PYPRIVATE;
1412 };
1413
1414 IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
1415 IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
1416 IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
1417
1418
1419 // Create a new class for wxPython to use
1420 class wxPyBitmapDataObject : public wxBitmapDataObject {
1421 public:
1422 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
1423 : wxBitmapDataObject(bitmap) {}
1424
1425 wxBitmap GetBitmap() const;
1426 void SetBitmap(const wxBitmap& bitmap);
1427 PYPRIVATE;
1428 };
1429
1430 wxBitmap wxPyBitmapDataObject::GetBitmap() const {
1431 wxBitmap* rval = &wxNullBitmap;
1432 bool blocked = wxPyBeginBlockThreads();
1433 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
1434 PyObject* ro;
1435 wxBitmap* ptr;
1436 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1437 if (ro) {
1438 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
1439 rval = ptr;
1440 Py_DECREF(ro);
1441 }
1442 }
1443 wxPyEndBlockThreads(blocked);
1444 return *rval;
1445 }
1446
1447 void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
1448 bool blocked = wxPyBeginBlockThreads();
1449 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
1450 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False);
1451 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
1452 Py_DECREF(bo);
1453 }
1454 wxPyEndBlockThreads(blocked);
1455 }
1456
1457 bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
1458 bool rval;
1459 bool blocked = wxPyBeginBlockThreads();
1460 if (PyString_Check(data)) {
1461 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
1462 }
1463 else {
1464 // raise a TypeError if not a string
1465 PyErr_SetString(PyExc_TypeError, "String expected.");
1466 rval = False;
1467 }
1468 wxPyEndBlockThreads(blocked);
1469 return rval;
1470 }
1471 PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
1472 PyObject* obj;
1473 bool blocked = wxPyBeginBlockThreads();
1474 obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
1475 wxPyEndBlockThreads(blocked);
1476 return obj;
1477 }
1478
1479 #include <wx/metafile.h>
1480
1481
1482 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
1483
1484
1485 IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
1486 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
1487 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
1488 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
1489 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
1490
1491
1492 class wxPyTextDropTarget : public wxTextDropTarget {
1493 public:
1494 wxPyTextDropTarget() {}
1495
1496 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
1497
1498 DEC_PYCALLBACK__(OnLeave);
1499 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1500 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1501 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1502 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1503
1504 PYPRIVATE;
1505 };
1506
1507 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
1508 IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
1509 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
1510 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
1511 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
1512 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
1513
1514
1515
1516 class wxPyFileDropTarget : public wxFileDropTarget {
1517 public:
1518 wxPyFileDropTarget() {}
1519
1520 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
1521
1522 DEC_PYCALLBACK__(OnLeave);
1523 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1524 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1525 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1526 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1527
1528 PYPRIVATE;
1529 };
1530
1531 bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
1532 const wxArrayString& filenames) {
1533 bool rval = False;
1534 bool blocked = wxPyBeginBlockThreads();
1535 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
1536 PyObject* list = wxArrayString2PyList_helper(filenames);
1537 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
1538 Py_DECREF(list);
1539 }
1540 wxPyEndBlockThreads(blocked);
1541 return rval;
1542 }
1543
1544
1545
1546 IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
1547 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
1548 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
1549 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
1550 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
1551
1552
1553
1554
1555 bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
1556
1557 #include <wx/display.h>
1558
1559 bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; }
1560 bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; }
1561
1562 // dummy version of wxDisplay for when it is not enabled in the wxWidgets build
1563 #if !wxUSE_DISPLAY
1564 #include <wx/dynarray.h>
1565 #include <wx/vidmode.h>
1566
1567 WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes);
1568 #include "wx/arrimpl.cpp"
1569 WX_DEFINE_OBJARRAY(wxArrayVideoModes);
1570 const wxVideoMode wxDefaultVideoMode;
1571
1572 class wxDisplay
1573 {
1574 public:
1575 wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); }
1576 ~wxDisplay() {}
1577
1578 static size_t GetCount()
1579 { wxPyRaiseNotImplemented(); return 0; }
1580
1581 static int GetFromPoint(const wxPoint& pt)
1582 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1583 static int GetFromWindow(wxWindow *window)
1584 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1585
1586 virtual bool IsOk() const { return false; }
1587 virtual wxRect GetGeometry() const { wxRect r; return r; }
1588 virtual wxString GetName() const { return wxEmptyString; }
1589 bool IsPrimary() const { return false; }
1590
1591 wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode)
1592 { wxArrayVideoModes a; return a; }
1593
1594 virtual wxVideoMode GetCurrentMode() const
1595 { return wxDefaultVideoMode; }
1596
1597 virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode)
1598 { return false; }
1599
1600 void ResetMode() {}
1601 };
1602 #endif
1603
1604 PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){
1605 PyObject* pyList = NULL;
1606 wxArrayVideoModes arr = self->GetModes(mode);
1607 bool blocked = wxPyBeginBlockThreads();
1608 pyList = PyList_New(0);
1609 for (int i=0; i < arr.GetCount(); i++) {
1610 wxVideoMode* m = new wxVideoMode(arr.Item(i));
1611 PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true);
1612 PyList_Append(pyList, pyObj);
1613 Py_DECREF(pyObj);
1614 }
1615 wxPyEndBlockThreads(blocked);
1616 return pyList;
1617 }
1618 #ifdef __cplusplus
1619 extern "C" {
1620 #endif
1621 static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1622 PyObject *resultobj;
1623 int arg1 ;
1624 wxColour result;
1625 PyObject * obj0 = 0 ;
1626 char *kwnames[] = {
1627 (char *) "index", NULL
1628 };
1629
1630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
1631 arg1 = (wxSystemColour) SWIG_AsInt(obj0);
1632 if (PyErr_Occurred()) SWIG_fail;
1633 {
1634 if (!wxPyCheckForApp()) SWIG_fail;
1635 PyThreadState* __tstate = wxPyBeginAllowThreads();
1636 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1637
1638 wxPyEndAllowThreads(__tstate);
1639 if (PyErr_Occurred()) SWIG_fail;
1640 }
1641 {
1642 wxColour * resultptr;
1643 resultptr = new wxColour((wxColour &) result);
1644 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1645 }
1646 return resultobj;
1647 fail:
1648 return NULL;
1649 }
1650
1651
1652 static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1653 PyObject *resultobj;
1654 int arg1 ;
1655 wxFont result;
1656 PyObject * obj0 = 0 ;
1657 char *kwnames[] = {
1658 (char *) "index", NULL
1659 };
1660
1661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
1662 arg1 = (wxSystemFont) SWIG_AsInt(obj0);
1663 if (PyErr_Occurred()) SWIG_fail;
1664 {
1665 if (!wxPyCheckForApp()) SWIG_fail;
1666 PyThreadState* __tstate = wxPyBeginAllowThreads();
1667 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1668
1669 wxPyEndAllowThreads(__tstate);
1670 if (PyErr_Occurred()) SWIG_fail;
1671 }
1672 {
1673 wxFont * resultptr;
1674 resultptr = new wxFont((wxFont &) result);
1675 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
1676 }
1677 return resultobj;
1678 fail:
1679 return NULL;
1680 }
1681
1682
1683 static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) {
1684 PyObject *resultobj;
1685 int arg1 ;
1686 int result;
1687 PyObject * obj0 = 0 ;
1688 char *kwnames[] = {
1689 (char *) "index", NULL
1690 };
1691
1692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail;
1693 arg1 = (wxSystemMetric) SWIG_AsInt(obj0);
1694 if (PyErr_Occurred()) SWIG_fail;
1695 {
1696 if (!wxPyCheckForApp()) SWIG_fail;
1697 PyThreadState* __tstate = wxPyBeginAllowThreads();
1698 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1699
1700 wxPyEndAllowThreads(__tstate);
1701 if (PyErr_Occurred()) SWIG_fail;
1702 }
1703 resultobj = SWIG_FromInt((int)result);
1704 return resultobj;
1705 fail:
1706 return NULL;
1707 }
1708
1709
1710 static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) {
1711 PyObject *resultobj;
1712 int arg1 ;
1713 bool result;
1714 PyObject * obj0 = 0 ;
1715 char *kwnames[] = {
1716 (char *) "index", NULL
1717 };
1718
1719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
1720 arg1 = (wxSystemFeature) SWIG_AsInt(obj0);
1721 if (PyErr_Occurred()) SWIG_fail;
1722 {
1723 if (!wxPyCheckForApp()) SWIG_fail;
1724 PyThreadState* __tstate = wxPyBeginAllowThreads();
1725 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1726
1727 wxPyEndAllowThreads(__tstate);
1728 if (PyErr_Occurred()) SWIG_fail;
1729 }
1730 {
1731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1732 }
1733 return resultobj;
1734 fail:
1735 return NULL;
1736 }
1737
1738
1739 static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1740 PyObject *resultobj;
1741 int result;
1742 char *kwnames[] = {
1743 NULL
1744 };
1745
1746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
1747 {
1748 if (!wxPyCheckForApp()) SWIG_fail;
1749 PyThreadState* __tstate = wxPyBeginAllowThreads();
1750 result = (int)wxSystemSettings::GetScreenType();
1751
1752 wxPyEndAllowThreads(__tstate);
1753 if (PyErr_Occurred()) SWIG_fail;
1754 }
1755 resultobj = SWIG_FromInt((int)result);
1756 return resultobj;
1757 fail:
1758 return NULL;
1759 }
1760
1761
1762 static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1763 PyObject *resultobj;
1764 int arg1 ;
1765 PyObject * obj0 = 0 ;
1766 char *kwnames[] = {
1767 (char *) "screen", NULL
1768 };
1769
1770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
1771 arg1 = (wxSystemScreenType) SWIG_AsInt(obj0);
1772 if (PyErr_Occurred()) SWIG_fail;
1773 {
1774 if (!wxPyCheckForApp()) SWIG_fail;
1775 PyThreadState* __tstate = wxPyBeginAllowThreads();
1776 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
1777
1778 wxPyEndAllowThreads(__tstate);
1779 if (PyErr_Occurred()) SWIG_fail;
1780 }
1781 Py_INCREF(Py_None); resultobj = Py_None;
1782 return resultobj;
1783 fail:
1784 return NULL;
1785 }
1786
1787
1788 static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) {
1789 PyObject *obj;
1790 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1791 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
1792 Py_INCREF(obj);
1793 return Py_BuildValue((char *)"");
1794 }
1795 static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) {
1796 PyObject *resultobj;
1797 wxSystemOptions *result;
1798 char *kwnames[] = {
1799 NULL
1800 };
1801
1802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
1803 {
1804 PyThreadState* __tstate = wxPyBeginAllowThreads();
1805 result = (wxSystemOptions *)new wxSystemOptions();
1806
1807 wxPyEndAllowThreads(__tstate);
1808 if (PyErr_Occurred()) SWIG_fail;
1809 }
1810 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
1811 return resultobj;
1812 fail:
1813 return NULL;
1814 }
1815
1816
1817 static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1818 PyObject *resultobj;
1819 wxString *arg1 = 0 ;
1820 wxString *arg2 = 0 ;
1821 bool temp1 = False ;
1822 bool temp2 = False ;
1823 PyObject * obj0 = 0 ;
1824 PyObject * obj1 = 0 ;
1825 char *kwnames[] = {
1826 (char *) "name",(char *) "value", NULL
1827 };
1828
1829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
1830 {
1831 arg1 = wxString_in_helper(obj0);
1832 if (arg1 == NULL) SWIG_fail;
1833 temp1 = True;
1834 }
1835 {
1836 arg2 = wxString_in_helper(obj1);
1837 if (arg2 == NULL) SWIG_fail;
1838 temp2 = True;
1839 }
1840 {
1841 PyThreadState* __tstate = wxPyBeginAllowThreads();
1842 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
1843
1844 wxPyEndAllowThreads(__tstate);
1845 if (PyErr_Occurred()) SWIG_fail;
1846 }
1847 Py_INCREF(Py_None); resultobj = Py_None;
1848 {
1849 if (temp1)
1850 delete arg1;
1851 }
1852 {
1853 if (temp2)
1854 delete arg2;
1855 }
1856 return resultobj;
1857 fail:
1858 {
1859 if (temp1)
1860 delete arg1;
1861 }
1862 {
1863 if (temp2)
1864 delete arg2;
1865 }
1866 return NULL;
1867 }
1868
1869
1870 static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1871 PyObject *resultobj;
1872 wxString *arg1 = 0 ;
1873 int arg2 ;
1874 bool temp1 = False ;
1875 PyObject * obj0 = 0 ;
1876 PyObject * obj1 = 0 ;
1877 char *kwnames[] = {
1878 (char *) "name",(char *) "value", NULL
1879 };
1880
1881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
1882 {
1883 arg1 = wxString_in_helper(obj0);
1884 if (arg1 == NULL) SWIG_fail;
1885 temp1 = True;
1886 }
1887 arg2 = (int) SWIG_AsInt(obj1);
1888 if (PyErr_Occurred()) SWIG_fail;
1889 {
1890 PyThreadState* __tstate = wxPyBeginAllowThreads();
1891 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
1892
1893 wxPyEndAllowThreads(__tstate);
1894 if (PyErr_Occurred()) SWIG_fail;
1895 }
1896 Py_INCREF(Py_None); resultobj = Py_None;
1897 {
1898 if (temp1)
1899 delete arg1;
1900 }
1901 return resultobj;
1902 fail:
1903 {
1904 if (temp1)
1905 delete arg1;
1906 }
1907 return NULL;
1908 }
1909
1910
1911 static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1912 PyObject *resultobj;
1913 wxString *arg1 = 0 ;
1914 wxString result;
1915 bool temp1 = False ;
1916 PyObject * obj0 = 0 ;
1917 char *kwnames[] = {
1918 (char *) "name", NULL
1919 };
1920
1921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
1922 {
1923 arg1 = wxString_in_helper(obj0);
1924 if (arg1 == NULL) SWIG_fail;
1925 temp1 = True;
1926 }
1927 {
1928 PyThreadState* __tstate = wxPyBeginAllowThreads();
1929 result = wxSystemOptions::GetOption((wxString const &)*arg1);
1930
1931 wxPyEndAllowThreads(__tstate);
1932 if (PyErr_Occurred()) SWIG_fail;
1933 }
1934 {
1935 #if wxUSE_UNICODE
1936 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1937 #else
1938 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1939 #endif
1940 }
1941 {
1942 if (temp1)
1943 delete arg1;
1944 }
1945 return resultobj;
1946 fail:
1947 {
1948 if (temp1)
1949 delete arg1;
1950 }
1951 return NULL;
1952 }
1953
1954
1955 static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1956 PyObject *resultobj;
1957 wxString *arg1 = 0 ;
1958 int result;
1959 bool temp1 = False ;
1960 PyObject * obj0 = 0 ;
1961 char *kwnames[] = {
1962 (char *) "name", NULL
1963 };
1964
1965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
1966 {
1967 arg1 = wxString_in_helper(obj0);
1968 if (arg1 == NULL) SWIG_fail;
1969 temp1 = True;
1970 }
1971 {
1972 PyThreadState* __tstate = wxPyBeginAllowThreads();
1973 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
1974
1975 wxPyEndAllowThreads(__tstate);
1976 if (PyErr_Occurred()) SWIG_fail;
1977 }
1978 resultobj = SWIG_FromInt((int)result);
1979 {
1980 if (temp1)
1981 delete arg1;
1982 }
1983 return resultobj;
1984 fail:
1985 {
1986 if (temp1)
1987 delete arg1;
1988 }
1989 return NULL;
1990 }
1991
1992
1993 static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1994 PyObject *resultobj;
1995 wxString *arg1 = 0 ;
1996 bool result;
1997 bool temp1 = False ;
1998 PyObject * obj0 = 0 ;
1999 char *kwnames[] = {
2000 (char *) "name", NULL
2001 };
2002
2003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
2004 {
2005 arg1 = wxString_in_helper(obj0);
2006 if (arg1 == NULL) SWIG_fail;
2007 temp1 = True;
2008 }
2009 {
2010 PyThreadState* __tstate = wxPyBeginAllowThreads();
2011 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
2012
2013 wxPyEndAllowThreads(__tstate);
2014 if (PyErr_Occurred()) SWIG_fail;
2015 }
2016 {
2017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2018 }
2019 {
2020 if (temp1)
2021 delete arg1;
2022 }
2023 return resultobj;
2024 fail:
2025 {
2026 if (temp1)
2027 delete arg1;
2028 }
2029 return NULL;
2030 }
2031
2032
2033 static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) {
2034 PyObject *obj;
2035 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2036 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
2037 Py_INCREF(obj);
2038 return Py_BuildValue((char *)"");
2039 }
2040 static int _wrap_FileSelectorPromptStr_set(PyObject *_val) {
2041 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
2042 return 1;
2043 }
2044
2045
2046 static PyObject *_wrap_FileSelectorPromptStr_get() {
2047 PyObject *pyobj;
2048
2049 {
2050 #if wxUSE_UNICODE
2051 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2052 #else
2053 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2054 #endif
2055 }
2056 return pyobj;
2057 }
2058
2059
2060 static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) {
2061 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
2062 return 1;
2063 }
2064
2065
2066 static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() {
2067 PyObject *pyobj;
2068
2069 {
2070 #if wxUSE_UNICODE
2071 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2072 #else
2073 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2074 #endif
2075 }
2076 return pyobj;
2077 }
2078
2079
2080 static int _wrap_DirSelectorPromptStr_set(PyObject *_val) {
2081 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
2082 return 1;
2083 }
2084
2085
2086 static PyObject *_wrap_DirSelectorPromptStr_get() {
2087 PyObject *pyobj;
2088
2089 {
2090 #if wxUSE_UNICODE
2091 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2092 #else
2093 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2094 #endif
2095 }
2096 return pyobj;
2097 }
2098
2099
2100 static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) {
2101 PyObject *resultobj;
2102 long result;
2103 char *kwnames[] = {
2104 NULL
2105 };
2106
2107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
2108 {
2109 PyThreadState* __tstate = wxPyBeginAllowThreads();
2110 result = (long)wxNewId();
2111
2112 wxPyEndAllowThreads(__tstate);
2113 if (PyErr_Occurred()) SWIG_fail;
2114 }
2115 resultobj = SWIG_FromLong((long)result);
2116 return resultobj;
2117 fail:
2118 return NULL;
2119 }
2120
2121
2122 static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) {
2123 PyObject *resultobj;
2124 long arg1 ;
2125 PyObject * obj0 = 0 ;
2126 char *kwnames[] = {
2127 (char *) "id", NULL
2128 };
2129
2130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
2131 arg1 = (long) SWIG_AsLong(obj0);
2132 if (PyErr_Occurred()) SWIG_fail;
2133 {
2134 PyThreadState* __tstate = wxPyBeginAllowThreads();
2135 wxRegisterId(arg1);
2136
2137 wxPyEndAllowThreads(__tstate);
2138 if (PyErr_Occurred()) SWIG_fail;
2139 }
2140 Py_INCREF(Py_None); resultobj = Py_None;
2141 return resultobj;
2142 fail:
2143 return NULL;
2144 }
2145
2146
2147 static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) {
2148 PyObject *resultobj;
2149 long result;
2150 char *kwnames[] = {
2151 NULL
2152 };
2153
2154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
2155 {
2156 PyThreadState* __tstate = wxPyBeginAllowThreads();
2157 result = (long)wxGetCurrentId();
2158
2159 wxPyEndAllowThreads(__tstate);
2160 if (PyErr_Occurred()) SWIG_fail;
2161 }
2162 resultobj = SWIG_FromLong((long)result);
2163 return resultobj;
2164 fail:
2165 return NULL;
2166 }
2167
2168
2169 static PyObject *_wrap_IsStockID(PyObject *self, PyObject *args, PyObject *kwargs) {
2170 PyObject *resultobj;
2171 int arg1 ;
2172 bool result;
2173 PyObject * obj0 = 0 ;
2174 char *kwnames[] = {
2175 (char *) "id", NULL
2176 };
2177
2178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsStockID",kwnames,&obj0)) goto fail;
2179 arg1 = (int) SWIG_AsInt(obj0);
2180 if (PyErr_Occurred()) SWIG_fail;
2181 {
2182 PyThreadState* __tstate = wxPyBeginAllowThreads();
2183 result = (bool)wxIsStockID(arg1);
2184
2185 wxPyEndAllowThreads(__tstate);
2186 if (PyErr_Occurred()) SWIG_fail;
2187 }
2188 {
2189 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2190 }
2191 return resultobj;
2192 fail:
2193 return NULL;
2194 }
2195
2196
2197 static PyObject *_wrap_IsStockLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
2198 PyObject *resultobj;
2199 int arg1 ;
2200 wxString *arg2 = 0 ;
2201 bool result;
2202 bool temp2 = False ;
2203 PyObject * obj0 = 0 ;
2204 PyObject * obj1 = 0 ;
2205 char *kwnames[] = {
2206 (char *) "id",(char *) "label", NULL
2207 };
2208
2209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IsStockLabel",kwnames,&obj0,&obj1)) goto fail;
2210 arg1 = (int) SWIG_AsInt(obj0);
2211 if (PyErr_Occurred()) SWIG_fail;
2212 {
2213 arg2 = wxString_in_helper(obj1);
2214 if (arg2 == NULL) SWIG_fail;
2215 temp2 = True;
2216 }
2217 {
2218 PyThreadState* __tstate = wxPyBeginAllowThreads();
2219 result = (bool)wxIsStockLabel(arg1,(wxString const &)*arg2);
2220
2221 wxPyEndAllowThreads(__tstate);
2222 if (PyErr_Occurred()) SWIG_fail;
2223 }
2224 {
2225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2226 }
2227 {
2228 if (temp2)
2229 delete arg2;
2230 }
2231 return resultobj;
2232 fail:
2233 {
2234 if (temp2)
2235 delete arg2;
2236 }
2237 return NULL;
2238 }
2239
2240
2241 static PyObject *_wrap_GetStockLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
2242 PyObject *resultobj;
2243 int arg1 ;
2244 wxString result;
2245 PyObject * obj0 = 0 ;
2246 char *kwnames[] = {
2247 (char *) "id", NULL
2248 };
2249
2250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetStockLabel",kwnames,&obj0)) goto fail;
2251 arg1 = (int) SWIG_AsInt(obj0);
2252 if (PyErr_Occurred()) SWIG_fail;
2253 {
2254 PyThreadState* __tstate = wxPyBeginAllowThreads();
2255 result = wxGetStockLabel(arg1);
2256
2257 wxPyEndAllowThreads(__tstate);
2258 if (PyErr_Occurred()) SWIG_fail;
2259 }
2260 {
2261 #if wxUSE_UNICODE
2262 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2263 #else
2264 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2265 #endif
2266 }
2267 return resultobj;
2268 fail:
2269 return NULL;
2270 }
2271
2272
2273 static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) {
2274 PyObject *resultobj;
2275 char *kwnames[] = {
2276 NULL
2277 };
2278
2279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
2280 {
2281 if (!wxPyCheckForApp()) SWIG_fail;
2282 PyThreadState* __tstate = wxPyBeginAllowThreads();
2283 wxBell();
2284
2285 wxPyEndAllowThreads(__tstate);
2286 if (PyErr_Occurred()) SWIG_fail;
2287 }
2288 Py_INCREF(Py_None); resultobj = Py_None;
2289 return resultobj;
2290 fail:
2291 return NULL;
2292 }
2293
2294
2295 static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2296 PyObject *resultobj;
2297 char *kwnames[] = {
2298 NULL
2299 };
2300
2301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
2302 {
2303 if (!wxPyCheckForApp()) SWIG_fail;
2304 PyThreadState* __tstate = wxPyBeginAllowThreads();
2305 wxEndBusyCursor();
2306
2307 wxPyEndAllowThreads(__tstate);
2308 if (PyErr_Occurred()) SWIG_fail;
2309 }
2310 Py_INCREF(Py_None); resultobj = Py_None;
2311 return resultobj;
2312 fail:
2313 return NULL;
2314 }
2315
2316
2317 static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) {
2318 PyObject *resultobj;
2319 bool arg1 = (bool) True ;
2320 long result;
2321 PyObject * obj0 = 0 ;
2322 char *kwnames[] = {
2323 (char *) "resetTimer", NULL
2324 };
2325
2326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
2327 if (obj0) {
2328 arg1 = (bool) SWIG_AsBool(obj0);
2329 if (PyErr_Occurred()) SWIG_fail;
2330 }
2331 {
2332 PyThreadState* __tstate = wxPyBeginAllowThreads();
2333 result = (long)wxGetElapsedTime(arg1);
2334
2335 wxPyEndAllowThreads(__tstate);
2336 if (PyErr_Occurred()) SWIG_fail;
2337 }
2338 resultobj = SWIG_FromLong((long)result);
2339 return resultobj;
2340 fail:
2341 return NULL;
2342 }
2343
2344
2345 static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2346 PyObject *resultobj;
2347 int *arg1 = (int *) 0 ;
2348 int *arg2 = (int *) 0 ;
2349 int temp1 ;
2350 int temp2 ;
2351 char *kwnames[] = {
2352 NULL
2353 };
2354
2355 arg1 = &temp1;
2356 arg2 = &temp2;
2357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
2358 {
2359 if (!wxPyCheckForApp()) SWIG_fail;
2360 PyThreadState* __tstate = wxPyBeginAllowThreads();
2361 wxGetMousePosition(arg1,arg2);
2362
2363 wxPyEndAllowThreads(__tstate);
2364 if (PyErr_Occurred()) SWIG_fail;
2365 }
2366 Py_INCREF(Py_None); resultobj = Py_None;
2367 {
2368 PyObject *o = PyInt_FromLong((long) (*arg1));
2369 resultobj = t_output_helper(resultobj,o);
2370 }
2371 {
2372 PyObject *o = PyInt_FromLong((long) (*arg2));
2373 resultobj = t_output_helper(resultobj,o);
2374 }
2375 return resultobj;
2376 fail:
2377 return NULL;
2378 }
2379
2380
2381 static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) {
2382 PyObject *resultobj;
2383 bool result;
2384 char *kwnames[] = {
2385 NULL
2386 };
2387
2388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
2389 {
2390 PyThreadState* __tstate = wxPyBeginAllowThreads();
2391 result = (bool)wxIsBusy();
2392
2393 wxPyEndAllowThreads(__tstate);
2394 if (PyErr_Occurred()) SWIG_fail;
2395 }
2396 {
2397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2398 }
2399 return resultobj;
2400 fail:
2401 return NULL;
2402 }
2403
2404
2405 static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
2406 PyObject *resultobj;
2407 wxString result;
2408 char *kwnames[] = {
2409 NULL
2410 };
2411
2412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
2413 {
2414 PyThreadState* __tstate = wxPyBeginAllowThreads();
2415 result = wxNow();
2416
2417 wxPyEndAllowThreads(__tstate);
2418 if (PyErr_Occurred()) SWIG_fail;
2419 }
2420 {
2421 #if wxUSE_UNICODE
2422 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2423 #else
2424 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2425 #endif
2426 }
2427 return resultobj;
2428 fail:
2429 return NULL;
2430 }
2431
2432
2433 static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) {
2434 PyObject *resultobj;
2435 wxString const &arg1_defvalue = wxPyEmptyString ;
2436 wxString *arg1 = (wxString *) &arg1_defvalue ;
2437 bool result;
2438 bool temp1 = False ;
2439 PyObject * obj0 = 0 ;
2440 char *kwnames[] = {
2441 (char *) "command", NULL
2442 };
2443
2444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
2445 if (obj0) {
2446 {
2447 arg1 = wxString_in_helper(obj0);
2448 if (arg1 == NULL) SWIG_fail;
2449 temp1 = True;
2450 }
2451 }
2452 {
2453 PyThreadState* __tstate = wxPyBeginAllowThreads();
2454 result = (bool)wxShell((wxString const &)*arg1);
2455
2456 wxPyEndAllowThreads(__tstate);
2457 if (PyErr_Occurred()) SWIG_fail;
2458 }
2459 {
2460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2461 }
2462 {
2463 if (temp1)
2464 delete arg1;
2465 }
2466 return resultobj;
2467 fail:
2468 {
2469 if (temp1)
2470 delete arg1;
2471 }
2472 return NULL;
2473 }
2474
2475
2476 static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) {
2477 PyObject *resultobj;
2478 char *kwnames[] = {
2479 NULL
2480 };
2481
2482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
2483 {
2484 PyThreadState* __tstate = wxPyBeginAllowThreads();
2485 wxStartTimer();
2486
2487 wxPyEndAllowThreads(__tstate);
2488 if (PyErr_Occurred()) SWIG_fail;
2489 }
2490 Py_INCREF(Py_None); resultobj = Py_None;
2491 return resultobj;
2492 fail:
2493 return NULL;
2494 }
2495
2496
2497 static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
2498 PyObject *resultobj;
2499 int *arg1 = (int *) 0 ;
2500 int *arg2 = (int *) 0 ;
2501 int result;
2502 int temp1 ;
2503 int temp2 ;
2504 char *kwnames[] = {
2505 NULL
2506 };
2507
2508 arg1 = &temp1;
2509 arg2 = &temp2;
2510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
2511 {
2512 PyThreadState* __tstate = wxPyBeginAllowThreads();
2513 result = (int)wxGetOsVersion(arg1,arg2);
2514
2515 wxPyEndAllowThreads(__tstate);
2516 if (PyErr_Occurred()) SWIG_fail;
2517 }
2518 resultobj = SWIG_FromInt((int)result);
2519 {
2520 PyObject *o = PyInt_FromLong((long) (*arg1));
2521 resultobj = t_output_helper(resultobj,o);
2522 }
2523 {
2524 PyObject *o = PyInt_FromLong((long) (*arg2));
2525 resultobj = t_output_helper(resultobj,o);
2526 }
2527 return resultobj;
2528 fail:
2529 return NULL;
2530 }
2531
2532
2533 static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
2534 PyObject *resultobj;
2535 wxString result;
2536 char *kwnames[] = {
2537 NULL
2538 };
2539
2540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
2541 {
2542 PyThreadState* __tstate = wxPyBeginAllowThreads();
2543 result = wxGetOsDescription();
2544
2545 wxPyEndAllowThreads(__tstate);
2546 if (PyErr_Occurred()) SWIG_fail;
2547 }
2548 {
2549 #if wxUSE_UNICODE
2550 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2551 #else
2552 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2553 #endif
2554 }
2555 return resultobj;
2556 fail:
2557 return NULL;
2558 }
2559
2560
2561 static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) {
2562 PyObject *resultobj;
2563 long result;
2564 char *kwnames[] = {
2565 NULL
2566 };
2567
2568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
2569 {
2570 PyThreadState* __tstate = wxPyBeginAllowThreads();
2571 result = (long)wxGetFreeMemory();
2572
2573 wxPyEndAllowThreads(__tstate);
2574 if (PyErr_Occurred()) SWIG_fail;
2575 }
2576 resultobj = SWIG_FromLong((long)result);
2577 return resultobj;
2578 fail:
2579 return NULL;
2580 }
2581
2582
2583 static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) {
2584 PyObject *resultobj;
2585 int arg1 ;
2586 bool result;
2587 PyObject * obj0 = 0 ;
2588 char *kwnames[] = {
2589 (char *) "wFlags", NULL
2590 };
2591
2592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
2593 arg1 = (wxShutdownFlags) SWIG_AsInt(obj0);
2594 if (PyErr_Occurred()) SWIG_fail;
2595 {
2596 if (!wxPyCheckForApp()) SWIG_fail;
2597 PyThreadState* __tstate = wxPyBeginAllowThreads();
2598 result = (bool)wxShutdown((wxShutdownFlags )arg1);
2599
2600 wxPyEndAllowThreads(__tstate);
2601 if (PyErr_Occurred()) SWIG_fail;
2602 }
2603 {
2604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2605 }
2606 return resultobj;
2607 fail:
2608 return NULL;
2609 }
2610
2611
2612 static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2613 PyObject *resultobj;
2614 int arg1 ;
2615 PyObject * obj0 = 0 ;
2616 char *kwnames[] = {
2617 (char *) "secs", NULL
2618 };
2619
2620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
2621 arg1 = (int) SWIG_AsInt(obj0);
2622 if (PyErr_Occurred()) SWIG_fail;
2623 {
2624 PyThreadState* __tstate = wxPyBeginAllowThreads();
2625 wxSleep(arg1);
2626
2627 wxPyEndAllowThreads(__tstate);
2628 if (PyErr_Occurred()) SWIG_fail;
2629 }
2630 Py_INCREF(Py_None); resultobj = Py_None;
2631 return resultobj;
2632 fail:
2633 return NULL;
2634 }
2635
2636
2637 static PyObject *_wrap_MilliSleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2638 PyObject *resultobj;
2639 unsigned long arg1 ;
2640 PyObject * obj0 = 0 ;
2641 char *kwnames[] = {
2642 (char *) "milliseconds", NULL
2643 };
2644
2645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) goto fail;
2646 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
2647 if (PyErr_Occurred()) SWIG_fail;
2648 {
2649 PyThreadState* __tstate = wxPyBeginAllowThreads();
2650 wxMilliSleep(arg1);
2651
2652 wxPyEndAllowThreads(__tstate);
2653 if (PyErr_Occurred()) SWIG_fail;
2654 }
2655 Py_INCREF(Py_None); resultobj = Py_None;
2656 return resultobj;
2657 fail:
2658 return NULL;
2659 }
2660
2661
2662 static PyObject *_wrap_MicroSleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2663 PyObject *resultobj;
2664 unsigned long arg1 ;
2665 PyObject * obj0 = 0 ;
2666 char *kwnames[] = {
2667 (char *) "microseconds", NULL
2668 };
2669
2670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) goto fail;
2671 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
2672 if (PyErr_Occurred()) SWIG_fail;
2673 {
2674 PyThreadState* __tstate = wxPyBeginAllowThreads();
2675 wxMicroSleep(arg1);
2676
2677 wxPyEndAllowThreads(__tstate);
2678 if (PyErr_Occurred()) SWIG_fail;
2679 }
2680 Py_INCREF(Py_None); resultobj = Py_None;
2681 return resultobj;
2682 fail:
2683 return NULL;
2684 }
2685
2686
2687 static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
2688 PyObject *resultobj;
2689 bool arg1 ;
2690 PyObject * obj0 = 0 ;
2691 char *kwnames[] = {
2692 (char *) "enable", NULL
2693 };
2694
2695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
2696 arg1 = (bool) SWIG_AsBool(obj0);
2697 if (PyErr_Occurred()) SWIG_fail;
2698 {
2699 PyThreadState* __tstate = wxPyBeginAllowThreads();
2700 wxEnableTopLevelWindows(arg1);
2701
2702 wxPyEndAllowThreads(__tstate);
2703 if (PyErr_Occurred()) SWIG_fail;
2704 }
2705 Py_INCREF(Py_None); resultobj = Py_None;
2706 return resultobj;
2707 fail:
2708 return NULL;
2709 }
2710
2711
2712 static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) {
2713 PyObject *resultobj;
2714 wxString *arg1 = 0 ;
2715 wxString result;
2716 bool temp1 = False ;
2717 PyObject * obj0 = 0 ;
2718 char *kwnames[] = {
2719 (char *) "in", NULL
2720 };
2721
2722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2723 {
2724 arg1 = wxString_in_helper(obj0);
2725 if (arg1 == NULL) SWIG_fail;
2726 temp1 = True;
2727 }
2728 {
2729 PyThreadState* __tstate = wxPyBeginAllowThreads();
2730 result = wxStripMenuCodes((wxString const &)*arg1);
2731
2732 wxPyEndAllowThreads(__tstate);
2733 if (PyErr_Occurred()) SWIG_fail;
2734 }
2735 {
2736 #if wxUSE_UNICODE
2737 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2738 #else
2739 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2740 #endif
2741 }
2742 {
2743 if (temp1)
2744 delete arg1;
2745 }
2746 return resultobj;
2747 fail:
2748 {
2749 if (temp1)
2750 delete arg1;
2751 }
2752 return NULL;
2753 }
2754
2755
2756 static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) {
2757 PyObject *resultobj;
2758 wxString result;
2759 char *kwnames[] = {
2760 NULL
2761 };
2762
2763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
2764 {
2765 PyThreadState* __tstate = wxPyBeginAllowThreads();
2766 result = wxGetEmailAddress();
2767
2768 wxPyEndAllowThreads(__tstate);
2769 if (PyErr_Occurred()) SWIG_fail;
2770 }
2771 {
2772 #if wxUSE_UNICODE
2773 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2774 #else
2775 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2776 #endif
2777 }
2778 return resultobj;
2779 fail:
2780 return NULL;
2781 }
2782
2783
2784 static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2785 PyObject *resultobj;
2786 wxString result;
2787 char *kwnames[] = {
2788 NULL
2789 };
2790
2791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
2792 {
2793 PyThreadState* __tstate = wxPyBeginAllowThreads();
2794 result = wxGetHostName();
2795
2796 wxPyEndAllowThreads(__tstate);
2797 if (PyErr_Occurred()) SWIG_fail;
2798 }
2799 {
2800 #if wxUSE_UNICODE
2801 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2802 #else
2803 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2804 #endif
2805 }
2806 return resultobj;
2807 fail:
2808 return NULL;
2809 }
2810
2811
2812 static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2813 PyObject *resultobj;
2814 wxString result;
2815 char *kwnames[] = {
2816 NULL
2817 };
2818
2819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
2820 {
2821 PyThreadState* __tstate = wxPyBeginAllowThreads();
2822 result = wxGetFullHostName();
2823
2824 wxPyEndAllowThreads(__tstate);
2825 if (PyErr_Occurred()) SWIG_fail;
2826 }
2827 {
2828 #if wxUSE_UNICODE
2829 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2830 #else
2831 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2832 #endif
2833 }
2834 return resultobj;
2835 fail:
2836 return NULL;
2837 }
2838
2839
2840 static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) {
2841 PyObject *resultobj;
2842 wxString result;
2843 char *kwnames[] = {
2844 NULL
2845 };
2846
2847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
2848 {
2849 PyThreadState* __tstate = wxPyBeginAllowThreads();
2850 result = wxGetUserId();
2851
2852 wxPyEndAllowThreads(__tstate);
2853 if (PyErr_Occurred()) SWIG_fail;
2854 }
2855 {
2856 #if wxUSE_UNICODE
2857 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2858 #else
2859 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2860 #endif
2861 }
2862 return resultobj;
2863 fail:
2864 return NULL;
2865 }
2866
2867
2868 static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) {
2869 PyObject *resultobj;
2870 wxString result;
2871 char *kwnames[] = {
2872 NULL
2873 };
2874
2875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
2876 {
2877 PyThreadState* __tstate = wxPyBeginAllowThreads();
2878 result = wxGetUserName();
2879
2880 wxPyEndAllowThreads(__tstate);
2881 if (PyErr_Occurred()) SWIG_fail;
2882 }
2883 {
2884 #if wxUSE_UNICODE
2885 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2886 #else
2887 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2888 #endif
2889 }
2890 return resultobj;
2891 fail:
2892 return NULL;
2893 }
2894
2895
2896 static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) {
2897 PyObject *resultobj;
2898 wxString result;
2899 char *kwnames[] = {
2900 NULL
2901 };
2902
2903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
2904 {
2905 PyThreadState* __tstate = wxPyBeginAllowThreads();
2906 result = wxGetHomeDir();
2907
2908 wxPyEndAllowThreads(__tstate);
2909 if (PyErr_Occurred()) SWIG_fail;
2910 }
2911 {
2912 #if wxUSE_UNICODE
2913 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2914 #else
2915 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2916 #endif
2917 }
2918 return resultobj;
2919 fail:
2920 return NULL;
2921 }
2922
2923
2924 static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) {
2925 PyObject *resultobj;
2926 wxString const &arg1_defvalue = wxPyEmptyString ;
2927 wxString *arg1 = (wxString *) &arg1_defvalue ;
2928 wxString result;
2929 bool temp1 = False ;
2930 PyObject * obj0 = 0 ;
2931 char *kwnames[] = {
2932 (char *) "user", NULL
2933 };
2934
2935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
2936 if (obj0) {
2937 {
2938 arg1 = wxString_in_helper(obj0);
2939 if (arg1 == NULL) SWIG_fail;
2940 temp1 = True;
2941 }
2942 }
2943 {
2944 PyThreadState* __tstate = wxPyBeginAllowThreads();
2945 result = wxGetUserHome((wxString const &)*arg1);
2946
2947 wxPyEndAllowThreads(__tstate);
2948 if (PyErr_Occurred()) SWIG_fail;
2949 }
2950 {
2951 #if wxUSE_UNICODE
2952 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2953 #else
2954 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2955 #endif
2956 }
2957 {
2958 if (temp1)
2959 delete arg1;
2960 }
2961 return resultobj;
2962 fail:
2963 {
2964 if (temp1)
2965 delete arg1;
2966 }
2967 return NULL;
2968 }
2969
2970
2971 static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) {
2972 PyObject *resultobj;
2973 unsigned long result;
2974 char *kwnames[] = {
2975 NULL
2976 };
2977
2978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
2979 {
2980 PyThreadState* __tstate = wxPyBeginAllowThreads();
2981 result = (unsigned long)wxGetProcessId();
2982
2983 wxPyEndAllowThreads(__tstate);
2984 if (PyErr_Occurred()) SWIG_fail;
2985 }
2986 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
2987 return resultobj;
2988 fail:
2989 return NULL;
2990 }
2991
2992
2993 static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) {
2994 PyObject *resultobj;
2995 char *kwnames[] = {
2996 NULL
2997 };
2998
2999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
3000 {
3001 PyThreadState* __tstate = wxPyBeginAllowThreads();
3002 wxTrap();
3003
3004 wxPyEndAllowThreads(__tstate);
3005 if (PyErr_Occurred()) SWIG_fail;
3006 }
3007 Py_INCREF(Py_None); resultobj = Py_None;
3008 return resultobj;
3009 fail:
3010 return NULL;
3011 }
3012
3013
3014 static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3015 PyObject *resultobj;
3016 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
3017 wxString *arg1 = (wxString *) &arg1_defvalue ;
3018 wxString const &arg2_defvalue = wxPyEmptyString ;
3019 wxString *arg2 = (wxString *) &arg2_defvalue ;
3020 wxString const &arg3_defvalue = wxPyEmptyString ;
3021 wxString *arg3 = (wxString *) &arg3_defvalue ;
3022 wxString const &arg4_defvalue = wxPyEmptyString ;
3023 wxString *arg4 = (wxString *) &arg4_defvalue ;
3024 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
3025 wxString *arg5 = (wxString *) &arg5_defvalue ;
3026 int arg6 = (int) 0 ;
3027 wxWindow *arg7 = (wxWindow *) NULL ;
3028 int arg8 = (int) -1 ;
3029 int arg9 = (int) -1 ;
3030 wxString result;
3031 bool temp1 = False ;
3032 bool temp2 = False ;
3033 bool temp3 = False ;
3034 bool temp4 = False ;
3035 bool temp5 = False ;
3036 PyObject * obj0 = 0 ;
3037 PyObject * obj1 = 0 ;
3038 PyObject * obj2 = 0 ;
3039 PyObject * obj3 = 0 ;
3040 PyObject * obj4 = 0 ;
3041 PyObject * obj5 = 0 ;
3042 PyObject * obj6 = 0 ;
3043 PyObject * obj7 = 0 ;
3044 PyObject * obj8 = 0 ;
3045 char *kwnames[] = {
3046 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
3047 };
3048
3049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3050 if (obj0) {
3051 {
3052 arg1 = wxString_in_helper(obj0);
3053 if (arg1 == NULL) SWIG_fail;
3054 temp1 = True;
3055 }
3056 }
3057 if (obj1) {
3058 {
3059 arg2 = wxString_in_helper(obj1);
3060 if (arg2 == NULL) SWIG_fail;
3061 temp2 = True;
3062 }
3063 }
3064 if (obj2) {
3065 {
3066 arg3 = wxString_in_helper(obj2);
3067 if (arg3 == NULL) SWIG_fail;
3068 temp3 = True;
3069 }
3070 }
3071 if (obj3) {
3072 {
3073 arg4 = wxString_in_helper(obj3);
3074 if (arg4 == NULL) SWIG_fail;
3075 temp4 = True;
3076 }
3077 }
3078 if (obj4) {
3079 {
3080 arg5 = wxString_in_helper(obj4);
3081 if (arg5 == NULL) SWIG_fail;
3082 temp5 = True;
3083 }
3084 }
3085 if (obj5) {
3086 arg6 = (int) SWIG_AsInt(obj5);
3087 if (PyErr_Occurred()) SWIG_fail;
3088 }
3089 if (obj6) {
3090 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
3091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3092 }
3093 if (obj7) {
3094 arg8 = (int) SWIG_AsInt(obj7);
3095 if (PyErr_Occurred()) SWIG_fail;
3096 }
3097 if (obj8) {
3098 arg9 = (int) SWIG_AsInt(obj8);
3099 if (PyErr_Occurred()) SWIG_fail;
3100 }
3101 {
3102 if (!wxPyCheckForApp()) SWIG_fail;
3103 PyThreadState* __tstate = wxPyBeginAllowThreads();
3104 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
3105
3106 wxPyEndAllowThreads(__tstate);
3107 if (PyErr_Occurred()) SWIG_fail;
3108 }
3109 {
3110 #if wxUSE_UNICODE
3111 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3112 #else
3113 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3114 #endif
3115 }
3116 {
3117 if (temp1)
3118 delete arg1;
3119 }
3120 {
3121 if (temp2)
3122 delete arg2;
3123 }
3124 {
3125 if (temp3)
3126 delete arg3;
3127 }
3128 {
3129 if (temp4)
3130 delete arg4;
3131 }
3132 {
3133 if (temp5)
3134 delete arg5;
3135 }
3136 return resultobj;
3137 fail:
3138 {
3139 if (temp1)
3140 delete arg1;
3141 }
3142 {
3143 if (temp2)
3144 delete arg2;
3145 }
3146 {
3147 if (temp3)
3148 delete arg3;
3149 }
3150 {
3151 if (temp4)
3152 delete arg4;
3153 }
3154 {
3155 if (temp5)
3156 delete arg5;
3157 }
3158 return NULL;
3159 }
3160
3161
3162 static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3163 PyObject *resultobj;
3164 wxString *arg1 = 0 ;
3165 wxString *arg2 = 0 ;
3166 wxString const &arg3_defvalue = wxPyEmptyString ;
3167 wxString *arg3 = (wxString *) &arg3_defvalue ;
3168 wxWindow *arg4 = (wxWindow *) NULL ;
3169 wxString result;
3170 bool temp1 = False ;
3171 bool temp2 = False ;
3172 bool temp3 = False ;
3173 PyObject * obj0 = 0 ;
3174 PyObject * obj1 = 0 ;
3175 PyObject * obj2 = 0 ;
3176 PyObject * obj3 = 0 ;
3177 char *kwnames[] = {
3178 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3179 };
3180
3181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3182 {
3183 arg1 = wxString_in_helper(obj0);
3184 if (arg1 == NULL) SWIG_fail;
3185 temp1 = True;
3186 }
3187 {
3188 arg2 = wxString_in_helper(obj1);
3189 if (arg2 == NULL) SWIG_fail;
3190 temp2 = True;
3191 }
3192 if (obj2) {
3193 {
3194 arg3 = wxString_in_helper(obj2);
3195 if (arg3 == NULL) SWIG_fail;
3196 temp3 = True;
3197 }
3198 }
3199 if (obj3) {
3200 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3202 }
3203 {
3204 if (!wxPyCheckForApp()) SWIG_fail;
3205 PyThreadState* __tstate = wxPyBeginAllowThreads();
3206 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3207
3208 wxPyEndAllowThreads(__tstate);
3209 if (PyErr_Occurred()) SWIG_fail;
3210 }
3211 {
3212 #if wxUSE_UNICODE
3213 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3214 #else
3215 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3216 #endif
3217 }
3218 {
3219 if (temp1)
3220 delete arg1;
3221 }
3222 {
3223 if (temp2)
3224 delete arg2;
3225 }
3226 {
3227 if (temp3)
3228 delete arg3;
3229 }
3230 return resultobj;
3231 fail:
3232 {
3233 if (temp1)
3234 delete arg1;
3235 }
3236 {
3237 if (temp2)
3238 delete arg2;
3239 }
3240 {
3241 if (temp3)
3242 delete arg3;
3243 }
3244 return NULL;
3245 }
3246
3247
3248 static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3249 PyObject *resultobj;
3250 wxString *arg1 = 0 ;
3251 wxString *arg2 = 0 ;
3252 wxString const &arg3_defvalue = wxPyEmptyString ;
3253 wxString *arg3 = (wxString *) &arg3_defvalue ;
3254 wxWindow *arg4 = (wxWindow *) NULL ;
3255 wxString result;
3256 bool temp1 = False ;
3257 bool temp2 = False ;
3258 bool temp3 = False ;
3259 PyObject * obj0 = 0 ;
3260 PyObject * obj1 = 0 ;
3261 PyObject * obj2 = 0 ;
3262 PyObject * obj3 = 0 ;
3263 char *kwnames[] = {
3264 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3265 };
3266
3267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3268 {
3269 arg1 = wxString_in_helper(obj0);
3270 if (arg1 == NULL) SWIG_fail;
3271 temp1 = True;
3272 }
3273 {
3274 arg2 = wxString_in_helper(obj1);
3275 if (arg2 == NULL) SWIG_fail;
3276 temp2 = True;
3277 }
3278 if (obj2) {
3279 {
3280 arg3 = wxString_in_helper(obj2);
3281 if (arg3 == NULL) SWIG_fail;
3282 temp3 = True;
3283 }
3284 }
3285 if (obj3) {
3286 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3288 }
3289 {
3290 if (!wxPyCheckForApp()) SWIG_fail;
3291 PyThreadState* __tstate = wxPyBeginAllowThreads();
3292 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3293
3294 wxPyEndAllowThreads(__tstate);
3295 if (PyErr_Occurred()) SWIG_fail;
3296 }
3297 {
3298 #if wxUSE_UNICODE
3299 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3300 #else
3301 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3302 #endif
3303 }
3304 {
3305 if (temp1)
3306 delete arg1;
3307 }
3308 {
3309 if (temp2)
3310 delete arg2;
3311 }
3312 {
3313 if (temp3)
3314 delete arg3;
3315 }
3316 return resultobj;
3317 fail:
3318 {
3319 if (temp1)
3320 delete arg1;
3321 }
3322 {
3323 if (temp2)
3324 delete arg2;
3325 }
3326 {
3327 if (temp3)
3328 delete arg3;
3329 }
3330 return NULL;
3331 }
3332
3333
3334 static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3335 PyObject *resultobj;
3336 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
3337 wxString *arg1 = (wxString *) &arg1_defvalue ;
3338 wxString const &arg2_defvalue = wxPyEmptyString ;
3339 wxString *arg2 = (wxString *) &arg2_defvalue ;
3340 long arg3 = (long) wxDD_DEFAULT_STYLE ;
3341 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3342 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3343 wxWindow *arg5 = (wxWindow *) NULL ;
3344 wxString result;
3345 bool temp1 = False ;
3346 bool temp2 = False ;
3347 wxPoint temp4 ;
3348 PyObject * obj0 = 0 ;
3349 PyObject * obj1 = 0 ;
3350 PyObject * obj2 = 0 ;
3351 PyObject * obj3 = 0 ;
3352 PyObject * obj4 = 0 ;
3353 char *kwnames[] = {
3354 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
3355 };
3356
3357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
3358 if (obj0) {
3359 {
3360 arg1 = wxString_in_helper(obj0);
3361 if (arg1 == NULL) SWIG_fail;
3362 temp1 = True;
3363 }
3364 }
3365 if (obj1) {
3366 {
3367 arg2 = wxString_in_helper(obj1);
3368 if (arg2 == NULL) SWIG_fail;
3369 temp2 = True;
3370 }
3371 }
3372 if (obj2) {
3373 arg3 = (long) SWIG_AsLong(obj2);
3374 if (PyErr_Occurred()) SWIG_fail;
3375 }
3376 if (obj3) {
3377 {
3378 arg4 = &temp4;
3379 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3380 }
3381 }
3382 if (obj4) {
3383 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3385 }
3386 {
3387 if (!wxPyCheckForApp()) SWIG_fail;
3388 PyThreadState* __tstate = wxPyBeginAllowThreads();
3389 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
3390
3391 wxPyEndAllowThreads(__tstate);
3392 if (PyErr_Occurred()) SWIG_fail;
3393 }
3394 {
3395 #if wxUSE_UNICODE
3396 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3397 #else
3398 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3399 #endif
3400 }
3401 {
3402 if (temp1)
3403 delete arg1;
3404 }
3405 {
3406 if (temp2)
3407 delete arg2;
3408 }
3409 return resultobj;
3410 fail:
3411 {
3412 if (temp1)
3413 delete arg1;
3414 }
3415 {
3416 if (temp2)
3417 delete arg2;
3418 }
3419 return NULL;
3420 }
3421
3422
3423 static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3424 PyObject *resultobj;
3425 wxString *arg1 = 0 ;
3426 wxString const &arg2_defvalue = wxPyEmptyString ;
3427 wxString *arg2 = (wxString *) &arg2_defvalue ;
3428 wxString const &arg3_defvalue = wxPyEmptyString ;
3429 wxString *arg3 = (wxString *) &arg3_defvalue ;
3430 wxWindow *arg4 = (wxWindow *) NULL ;
3431 int arg5 = (int) -1 ;
3432 int arg6 = (int) -1 ;
3433 bool arg7 = (bool) True ;
3434 wxString result;
3435 bool temp1 = False ;
3436 bool temp2 = False ;
3437 bool temp3 = False ;
3438 PyObject * obj0 = 0 ;
3439 PyObject * obj1 = 0 ;
3440 PyObject * obj2 = 0 ;
3441 PyObject * obj3 = 0 ;
3442 PyObject * obj4 = 0 ;
3443 PyObject * obj5 = 0 ;
3444 PyObject * obj6 = 0 ;
3445 char *kwnames[] = {
3446 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
3447 };
3448
3449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3450 {
3451 arg1 = wxString_in_helper(obj0);
3452 if (arg1 == NULL) SWIG_fail;
3453 temp1 = True;
3454 }
3455 if (obj1) {
3456 {
3457 arg2 = wxString_in_helper(obj1);
3458 if (arg2 == NULL) SWIG_fail;
3459 temp2 = True;
3460 }
3461 }
3462 if (obj2) {
3463 {
3464 arg3 = wxString_in_helper(obj2);
3465 if (arg3 == NULL) SWIG_fail;
3466 temp3 = True;
3467 }
3468 }
3469 if (obj3) {
3470 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3472 }
3473 if (obj4) {
3474 arg5 = (int) SWIG_AsInt(obj4);
3475 if (PyErr_Occurred()) SWIG_fail;
3476 }
3477 if (obj5) {
3478 arg6 = (int) SWIG_AsInt(obj5);
3479 if (PyErr_Occurred()) SWIG_fail;
3480 }
3481 if (obj6) {
3482 arg7 = (bool) SWIG_AsBool(obj6);
3483 if (PyErr_Occurred()) SWIG_fail;
3484 }
3485 {
3486 if (!wxPyCheckForApp()) SWIG_fail;
3487 PyThreadState* __tstate = wxPyBeginAllowThreads();
3488 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
3489
3490 wxPyEndAllowThreads(__tstate);
3491 if (PyErr_Occurred()) SWIG_fail;
3492 }
3493 {
3494 #if wxUSE_UNICODE
3495 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3496 #else
3497 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3498 #endif
3499 }
3500 {
3501 if (temp1)
3502 delete arg1;
3503 }
3504 {
3505 if (temp2)
3506 delete arg2;
3507 }
3508 {
3509 if (temp3)
3510 delete arg3;
3511 }
3512 return resultobj;
3513 fail:
3514 {
3515 if (temp1)
3516 delete arg1;
3517 }
3518 {
3519 if (temp2)
3520 delete arg2;
3521 }
3522 {
3523 if (temp3)
3524 delete arg3;
3525 }
3526 return NULL;
3527 }
3528
3529
3530 static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3531 PyObject *resultobj;
3532 wxString *arg1 = 0 ;
3533 wxString const &arg2_defvalue = wxPyEmptyString ;
3534 wxString *arg2 = (wxString *) &arg2_defvalue ;
3535 wxString const &arg3_defvalue = wxPyEmptyString ;
3536 wxString *arg3 = (wxString *) &arg3_defvalue ;
3537 wxWindow *arg4 = (wxWindow *) NULL ;
3538 wxString result;
3539 bool temp1 = False ;
3540 bool temp2 = False ;
3541 bool temp3 = False ;
3542 PyObject * obj0 = 0 ;
3543 PyObject * obj1 = 0 ;
3544 PyObject * obj2 = 0 ;
3545 PyObject * obj3 = 0 ;
3546 char *kwnames[] = {
3547 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
3548 };
3549
3550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3551 {
3552 arg1 = wxString_in_helper(obj0);
3553 if (arg1 == NULL) SWIG_fail;
3554 temp1 = True;
3555 }
3556 if (obj1) {
3557 {
3558 arg2 = wxString_in_helper(obj1);
3559 if (arg2 == NULL) SWIG_fail;
3560 temp2 = True;
3561 }
3562 }
3563 if (obj2) {
3564 {
3565 arg3 = wxString_in_helper(obj2);
3566 if (arg3 == NULL) SWIG_fail;
3567 temp3 = True;
3568 }
3569 }
3570 if (obj3) {
3571 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3573 }
3574 {
3575 if (!wxPyCheckForApp()) SWIG_fail;
3576 PyThreadState* __tstate = wxPyBeginAllowThreads();
3577 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3578
3579 wxPyEndAllowThreads(__tstate);
3580 if (PyErr_Occurred()) SWIG_fail;
3581 }
3582 {
3583 #if wxUSE_UNICODE
3584 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3585 #else
3586 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3587 #endif
3588 }
3589 {
3590 if (temp1)
3591 delete arg1;
3592 }
3593 {
3594 if (temp2)
3595 delete arg2;
3596 }
3597 {
3598 if (temp3)
3599 delete arg3;
3600 }
3601 return resultobj;
3602 fail:
3603 {
3604 if (temp1)
3605 delete arg1;
3606 }
3607 {
3608 if (temp2)
3609 delete arg2;
3610 }
3611 {
3612 if (temp3)
3613 delete arg3;
3614 }
3615 return NULL;
3616 }
3617
3618
3619 static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
3620 PyObject *resultobj;
3621 wxString *arg1 = 0 ;
3622 wxString *arg2 = 0 ;
3623 int arg3 ;
3624 wxString *arg4 = (wxString *) 0 ;
3625 wxWindow *arg5 = (wxWindow *) NULL ;
3626 int arg6 = (int) -1 ;
3627 int arg7 = (int) -1 ;
3628 bool arg8 = (bool) True ;
3629 int arg9 = (int) 150 ;
3630 int arg10 = (int) 200 ;
3631 wxString result;
3632 bool temp1 = False ;
3633 bool temp2 = False ;
3634 PyObject * obj0 = 0 ;
3635 PyObject * obj1 = 0 ;
3636 PyObject * obj2 = 0 ;
3637 PyObject * obj3 = 0 ;
3638 PyObject * obj4 = 0 ;
3639 PyObject * obj5 = 0 ;
3640 PyObject * obj6 = 0 ;
3641 PyObject * obj7 = 0 ;
3642 PyObject * obj8 = 0 ;
3643 char *kwnames[] = {
3644 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3645 };
3646
3647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3648 {
3649 arg1 = wxString_in_helper(obj0);
3650 if (arg1 == NULL) SWIG_fail;
3651 temp1 = True;
3652 }
3653 {
3654 arg2 = wxString_in_helper(obj1);
3655 if (arg2 == NULL) SWIG_fail;
3656 temp2 = True;
3657 }
3658 {
3659 arg3 = PyList_Size(obj2);
3660 arg4 = wxString_LIST_helper(obj2);
3661 if (arg4 == NULL) SWIG_fail;
3662 }
3663 if (obj3) {
3664 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3666 }
3667 if (obj4) {
3668 arg6 = (int) SWIG_AsInt(obj4);
3669 if (PyErr_Occurred()) SWIG_fail;
3670 }
3671 if (obj5) {
3672 arg7 = (int) SWIG_AsInt(obj5);
3673 if (PyErr_Occurred()) SWIG_fail;
3674 }
3675 if (obj6) {
3676 arg8 = (bool) SWIG_AsBool(obj6);
3677 if (PyErr_Occurred()) SWIG_fail;
3678 }
3679 if (obj7) {
3680 arg9 = (int) SWIG_AsInt(obj7);
3681 if (PyErr_Occurred()) SWIG_fail;
3682 }
3683 if (obj8) {
3684 arg10 = (int) SWIG_AsInt(obj8);
3685 if (PyErr_Occurred()) SWIG_fail;
3686 }
3687 {
3688 if (!wxPyCheckForApp()) SWIG_fail;
3689 PyThreadState* __tstate = wxPyBeginAllowThreads();
3690 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3691
3692 wxPyEndAllowThreads(__tstate);
3693 if (PyErr_Occurred()) SWIG_fail;
3694 }
3695 {
3696 #if wxUSE_UNICODE
3697 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3698 #else
3699 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3700 #endif
3701 }
3702 {
3703 if (temp1)
3704 delete arg1;
3705 }
3706 {
3707 if (temp2)
3708 delete arg2;
3709 }
3710 {
3711 if (arg4) delete [] arg4;
3712 }
3713 return resultobj;
3714 fail:
3715 {
3716 if (temp1)
3717 delete arg1;
3718 }
3719 {
3720 if (temp2)
3721 delete arg2;
3722 }
3723 {
3724 if (arg4) delete [] arg4;
3725 }
3726 return NULL;
3727 }
3728
3729
3730 static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3731 PyObject *resultobj;
3732 wxString *arg1 = 0 ;
3733 wxString *arg2 = 0 ;
3734 int arg3 ;
3735 wxString *arg4 = (wxString *) 0 ;
3736 wxWindow *arg5 = (wxWindow *) NULL ;
3737 int arg6 = (int) -1 ;
3738 int arg7 = (int) -1 ;
3739 bool arg8 = (bool) True ;
3740 int arg9 = (int) 150 ;
3741 int arg10 = (int) 200 ;
3742 int result;
3743 bool temp1 = False ;
3744 bool temp2 = False ;
3745 PyObject * obj0 = 0 ;
3746 PyObject * obj1 = 0 ;
3747 PyObject * obj2 = 0 ;
3748 PyObject * obj3 = 0 ;
3749 PyObject * obj4 = 0 ;
3750 PyObject * obj5 = 0 ;
3751 PyObject * obj6 = 0 ;
3752 PyObject * obj7 = 0 ;
3753 PyObject * obj8 = 0 ;
3754 char *kwnames[] = {
3755 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3756 };
3757
3758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3759 {
3760 arg1 = wxString_in_helper(obj0);
3761 if (arg1 == NULL) SWIG_fail;
3762 temp1 = True;
3763 }
3764 {
3765 arg2 = wxString_in_helper(obj1);
3766 if (arg2 == NULL) SWIG_fail;
3767 temp2 = True;
3768 }
3769 {
3770 arg3 = PyList_Size(obj2);
3771 arg4 = wxString_LIST_helper(obj2);
3772 if (arg4 == NULL) SWIG_fail;
3773 }
3774 if (obj3) {
3775 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3777 }
3778 if (obj4) {
3779 arg6 = (int) SWIG_AsInt(obj4);
3780 if (PyErr_Occurred()) SWIG_fail;
3781 }
3782 if (obj5) {
3783 arg7 = (int) SWIG_AsInt(obj5);
3784 if (PyErr_Occurred()) SWIG_fail;
3785 }
3786 if (obj6) {
3787 arg8 = (bool) SWIG_AsBool(obj6);
3788 if (PyErr_Occurred()) SWIG_fail;
3789 }
3790 if (obj7) {
3791 arg9 = (int) SWIG_AsInt(obj7);
3792 if (PyErr_Occurred()) SWIG_fail;
3793 }
3794 if (obj8) {
3795 arg10 = (int) SWIG_AsInt(obj8);
3796 if (PyErr_Occurred()) SWIG_fail;
3797 }
3798 {
3799 if (!wxPyCheckForApp()) SWIG_fail;
3800 PyThreadState* __tstate = wxPyBeginAllowThreads();
3801 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3802
3803 wxPyEndAllowThreads(__tstate);
3804 if (PyErr_Occurred()) SWIG_fail;
3805 }
3806 resultobj = SWIG_FromInt((int)result);
3807 {
3808 if (temp1)
3809 delete arg1;
3810 }
3811 {
3812 if (temp2)
3813 delete arg2;
3814 }
3815 {
3816 if (arg4) delete [] arg4;
3817 }
3818 return resultobj;
3819 fail:
3820 {
3821 if (temp1)
3822 delete arg1;
3823 }
3824 {
3825 if (temp2)
3826 delete arg2;
3827 }
3828 {
3829 if (arg4) delete [] arg4;
3830 }
3831 return NULL;
3832 }
3833
3834
3835 static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3836 PyObject *resultobj;
3837 wxString *arg1 = 0 ;
3838 wxString const &arg2_defvalue = wxPyEmptyString ;
3839 wxString *arg2 = (wxString *) &arg2_defvalue ;
3840 int arg3 = (int) wxOK|wxCENTRE ;
3841 wxWindow *arg4 = (wxWindow *) NULL ;
3842 int arg5 = (int) -1 ;
3843 int arg6 = (int) -1 ;
3844 int result;
3845 bool temp1 = False ;
3846 bool temp2 = False ;
3847 PyObject * obj0 = 0 ;
3848 PyObject * obj1 = 0 ;
3849 PyObject * obj2 = 0 ;
3850 PyObject * obj3 = 0 ;
3851 PyObject * obj4 = 0 ;
3852 PyObject * obj5 = 0 ;
3853 char *kwnames[] = {
3854 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
3855 };
3856
3857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
3858 {
3859 arg1 = wxString_in_helper(obj0);
3860 if (arg1 == NULL) SWIG_fail;
3861 temp1 = True;
3862 }
3863 if (obj1) {
3864 {
3865 arg2 = wxString_in_helper(obj1);
3866 if (arg2 == NULL) SWIG_fail;
3867 temp2 = True;
3868 }
3869 }
3870 if (obj2) {
3871 arg3 = (int) SWIG_AsInt(obj2);
3872 if (PyErr_Occurred()) SWIG_fail;
3873 }
3874 if (obj3) {
3875 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3877 }
3878 if (obj4) {
3879 arg5 = (int) SWIG_AsInt(obj4);
3880 if (PyErr_Occurred()) SWIG_fail;
3881 }
3882 if (obj5) {
3883 arg6 = (int) SWIG_AsInt(obj5);
3884 if (PyErr_Occurred()) SWIG_fail;
3885 }
3886 {
3887 if (!wxPyCheckForApp()) SWIG_fail;
3888 PyThreadState* __tstate = wxPyBeginAllowThreads();
3889 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
3890
3891 wxPyEndAllowThreads(__tstate);
3892 if (PyErr_Occurred()) SWIG_fail;
3893 }
3894 resultobj = SWIG_FromInt((int)result);
3895 {
3896 if (temp1)
3897 delete arg1;
3898 }
3899 {
3900 if (temp2)
3901 delete arg2;
3902 }
3903 return resultobj;
3904 fail:
3905 {
3906 if (temp1)
3907 delete arg1;
3908 }
3909 {
3910 if (temp2)
3911 delete arg2;
3912 }
3913 return NULL;
3914 }
3915
3916
3917 static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3918 PyObject *resultobj;
3919 wxString *arg1 = 0 ;
3920 wxString *arg2 = 0 ;
3921 wxString *arg3 = 0 ;
3922 long arg4 ;
3923 long arg5 = (long) 0 ;
3924 long arg6 = (long) 100 ;
3925 wxWindow *arg7 = (wxWindow *) NULL ;
3926 wxPoint const &arg8_defvalue = wxDefaultPosition ;
3927 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
3928 long result;
3929 bool temp1 = False ;
3930 bool temp2 = False ;
3931 bool temp3 = False ;
3932 wxPoint temp8 ;
3933 PyObject * obj0 = 0 ;
3934 PyObject * obj1 = 0 ;
3935 PyObject * obj2 = 0 ;
3936 PyObject * obj3 = 0 ;
3937 PyObject * obj4 = 0 ;
3938 PyObject * obj5 = 0 ;
3939 PyObject * obj6 = 0 ;
3940 PyObject * obj7 = 0 ;
3941 char *kwnames[] = {
3942 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
3943 };
3944
3945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3946 {
3947 arg1 = wxString_in_helper(obj0);
3948 if (arg1 == NULL) SWIG_fail;
3949 temp1 = True;
3950 }
3951 {
3952 arg2 = wxString_in_helper(obj1);
3953 if (arg2 == NULL) SWIG_fail;
3954 temp2 = True;
3955 }
3956 {
3957 arg3 = wxString_in_helper(obj2);
3958 if (arg3 == NULL) SWIG_fail;
3959 temp3 = True;
3960 }
3961 arg4 = (long) SWIG_AsLong(obj3);
3962 if (PyErr_Occurred()) SWIG_fail;
3963 if (obj4) {
3964 arg5 = (long) SWIG_AsLong(obj4);
3965 if (PyErr_Occurred()) SWIG_fail;
3966 }
3967 if (obj5) {
3968 arg6 = (long) SWIG_AsLong(obj5);
3969 if (PyErr_Occurred()) SWIG_fail;
3970 }
3971 if (obj6) {
3972 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
3973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3974 }
3975 if (obj7) {
3976 {
3977 arg8 = &temp8;
3978 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
3979 }
3980 }
3981 {
3982 if (!wxPyCheckForApp()) SWIG_fail;
3983 PyThreadState* __tstate = wxPyBeginAllowThreads();
3984 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
3985
3986 wxPyEndAllowThreads(__tstate);
3987 if (PyErr_Occurred()) SWIG_fail;
3988 }
3989 resultobj = SWIG_FromLong((long)result);
3990 {
3991 if (temp1)
3992 delete arg1;
3993 }
3994 {
3995 if (temp2)
3996 delete arg2;
3997 }
3998 {
3999 if (temp3)
4000 delete arg3;
4001 }
4002 return resultobj;
4003 fail:
4004 {
4005 if (temp1)
4006 delete arg1;
4007 }
4008 {
4009 if (temp2)
4010 delete arg2;
4011 }
4012 {
4013 if (temp3)
4014 delete arg3;
4015 }
4016 return NULL;
4017 }
4018
4019
4020 static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
4021 PyObject *resultobj;
4022 bool result;
4023 char *kwnames[] = {
4024 NULL
4025 };
4026
4027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
4028 {
4029 if (!wxPyCheckForApp()) SWIG_fail;
4030 PyThreadState* __tstate = wxPyBeginAllowThreads();
4031 result = (bool)wxColourDisplay();
4032
4033 wxPyEndAllowThreads(__tstate);
4034 if (PyErr_Occurred()) SWIG_fail;
4035 }
4036 {
4037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4038 }
4039 return resultobj;
4040 fail:
4041 return NULL;
4042 }
4043
4044
4045 static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4046 PyObject *resultobj;
4047 int result;
4048 char *kwnames[] = {
4049 NULL
4050 };
4051
4052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
4053 {
4054 if (!wxPyCheckForApp()) SWIG_fail;
4055 PyThreadState* __tstate = wxPyBeginAllowThreads();
4056 result = (int)wxDisplayDepth();
4057
4058 wxPyEndAllowThreads(__tstate);
4059 if (PyErr_Occurred()) SWIG_fail;
4060 }
4061 resultobj = SWIG_FromInt((int)result);
4062 return resultobj;
4063 fail:
4064 return NULL;
4065 }
4066
4067
4068 static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4069 PyObject *resultobj;
4070 int result;
4071 char *kwnames[] = {
4072 NULL
4073 };
4074
4075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
4076 {
4077 if (!wxPyCheckForApp()) SWIG_fail;
4078 PyThreadState* __tstate = wxPyBeginAllowThreads();
4079 result = (int)wxGetDisplayDepth();
4080
4081 wxPyEndAllowThreads(__tstate);
4082 if (PyErr_Occurred()) SWIG_fail;
4083 }
4084 resultobj = SWIG_FromInt((int)result);
4085 return resultobj;
4086 fail:
4087 return NULL;
4088 }
4089
4090
4091 static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
4092 PyObject *resultobj;
4093 int *arg1 = (int *) 0 ;
4094 int *arg2 = (int *) 0 ;
4095 int temp1 ;
4096 int temp2 ;
4097 char *kwnames[] = {
4098 NULL
4099 };
4100
4101 arg1 = &temp1;
4102 arg2 = &temp2;
4103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
4104 {
4105 if (!wxPyCheckForApp()) SWIG_fail;
4106 PyThreadState* __tstate = wxPyBeginAllowThreads();
4107 wxDisplaySize(arg1,arg2);
4108
4109 wxPyEndAllowThreads(__tstate);
4110 if (PyErr_Occurred()) SWIG_fail;
4111 }
4112 Py_INCREF(Py_None); resultobj = Py_None;
4113 {
4114 PyObject *o = PyInt_FromLong((long) (*arg1));
4115 resultobj = t_output_helper(resultobj,o);
4116 }
4117 {
4118 PyObject *o = PyInt_FromLong((long) (*arg2));
4119 resultobj = t_output_helper(resultobj,o);
4120 }
4121 return resultobj;
4122 fail:
4123 return NULL;
4124 }
4125
4126
4127 static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
4128 PyObject *resultobj;
4129 wxSize result;
4130 char *kwnames[] = {
4131 NULL
4132 };
4133
4134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
4135 {
4136 if (!wxPyCheckForApp()) SWIG_fail;
4137 PyThreadState* __tstate = wxPyBeginAllowThreads();
4138 result = wxGetDisplaySize();
4139
4140 wxPyEndAllowThreads(__tstate);
4141 if (PyErr_Occurred()) SWIG_fail;
4142 }
4143 {
4144 wxSize * resultptr;
4145 resultptr = new wxSize((wxSize &) result);
4146 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4147 }
4148 return resultobj;
4149 fail:
4150 return NULL;
4151 }
4152
4153
4154 static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
4155 PyObject *resultobj;
4156 int *arg1 = (int *) 0 ;
4157 int *arg2 = (int *) 0 ;
4158 int temp1 ;
4159 int temp2 ;
4160 char *kwnames[] = {
4161 NULL
4162 };
4163
4164 arg1 = &temp1;
4165 arg2 = &temp2;
4166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
4167 {
4168 if (!wxPyCheckForApp()) SWIG_fail;
4169 PyThreadState* __tstate = wxPyBeginAllowThreads();
4170 wxDisplaySizeMM(arg1,arg2);
4171
4172 wxPyEndAllowThreads(__tstate);
4173 if (PyErr_Occurred()) SWIG_fail;
4174 }
4175 Py_INCREF(Py_None); resultobj = Py_None;
4176 {
4177 PyObject *o = PyInt_FromLong((long) (*arg1));
4178 resultobj = t_output_helper(resultobj,o);
4179 }
4180 {
4181 PyObject *o = PyInt_FromLong((long) (*arg2));
4182 resultobj = t_output_helper(resultobj,o);
4183 }
4184 return resultobj;
4185 fail:
4186 return NULL;
4187 }
4188
4189
4190 static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
4191 PyObject *resultobj;
4192 wxSize result;
4193 char *kwnames[] = {
4194 NULL
4195 };
4196
4197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
4198 {
4199 if (!wxPyCheckForApp()) SWIG_fail;
4200 PyThreadState* __tstate = wxPyBeginAllowThreads();
4201 result = wxGetDisplaySizeMM();
4202
4203 wxPyEndAllowThreads(__tstate);
4204 if (PyErr_Occurred()) SWIG_fail;
4205 }
4206 {
4207 wxSize * resultptr;
4208 resultptr = new wxSize((wxSize &) result);
4209 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4210 }
4211 return resultobj;
4212 fail:
4213 return NULL;
4214 }
4215
4216
4217 static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4218 PyObject *resultobj;
4219 int *arg1 = (int *) 0 ;
4220 int *arg2 = (int *) 0 ;
4221 int *arg3 = (int *) 0 ;
4222 int *arg4 = (int *) 0 ;
4223 int temp1 ;
4224 int temp2 ;
4225 int temp3 ;
4226 int temp4 ;
4227 char *kwnames[] = {
4228 NULL
4229 };
4230
4231 arg1 = &temp1;
4232 arg2 = &temp2;
4233 arg3 = &temp3;
4234 arg4 = &temp4;
4235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
4236 {
4237 if (!wxPyCheckForApp()) SWIG_fail;
4238 PyThreadState* __tstate = wxPyBeginAllowThreads();
4239 wxClientDisplayRect(arg1,arg2,arg3,arg4);
4240
4241 wxPyEndAllowThreads(__tstate);
4242 if (PyErr_Occurred()) SWIG_fail;
4243 }
4244 Py_INCREF(Py_None); resultobj = Py_None;
4245 {
4246 PyObject *o = PyInt_FromLong((long) (*arg1));
4247 resultobj = t_output_helper(resultobj,o);
4248 }
4249 {
4250 PyObject *o = PyInt_FromLong((long) (*arg2));
4251 resultobj = t_output_helper(resultobj,o);
4252 }
4253 {
4254 PyObject *o = PyInt_FromLong((long) (*arg3));
4255 resultobj = t_output_helper(resultobj,o);
4256 }
4257 {
4258 PyObject *o = PyInt_FromLong((long) (*arg4));
4259 resultobj = t_output_helper(resultobj,o);
4260 }
4261 return resultobj;
4262 fail:
4263 return NULL;
4264 }
4265
4266
4267 static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4268 PyObject *resultobj;
4269 wxRect result;
4270 char *kwnames[] = {
4271 NULL
4272 };
4273
4274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
4275 {
4276 if (!wxPyCheckForApp()) SWIG_fail;
4277 PyThreadState* __tstate = wxPyBeginAllowThreads();
4278 result = wxGetClientDisplayRect();
4279
4280 wxPyEndAllowThreads(__tstate);
4281 if (PyErr_Occurred()) SWIG_fail;
4282 }
4283 {
4284 wxRect * resultptr;
4285 resultptr = new wxRect((wxRect &) result);
4286 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4287 }
4288 return resultobj;
4289 fail:
4290 return NULL;
4291 }
4292
4293
4294 static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4295 PyObject *resultobj;
4296 wxCursor *arg1 = 0 ;
4297 PyObject * obj0 = 0 ;
4298 char *kwnames[] = {
4299 (char *) "cursor", NULL
4300 };
4301
4302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
4303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4304 SWIG_POINTER_EXCEPTION | 0)) == -1)
4305 SWIG_fail;
4306 if (arg1 == NULL) {
4307 PyErr_SetString(PyExc_TypeError,"null reference");
4308 SWIG_fail;
4309 }
4310 {
4311 if (!wxPyCheckForApp()) SWIG_fail;
4312 PyThreadState* __tstate = wxPyBeginAllowThreads();
4313 wxSetCursor(*arg1);
4314
4315 wxPyEndAllowThreads(__tstate);
4316 if (PyErr_Occurred()) SWIG_fail;
4317 }
4318 Py_INCREF(Py_None); resultobj = Py_None;
4319 return resultobj;
4320 fail:
4321 return NULL;
4322 }
4323
4324
4325 static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4326 PyObject *resultobj;
4327 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
4328 PyObject * obj0 = 0 ;
4329 char *kwnames[] = {
4330 (char *) "cursor", NULL
4331 };
4332
4333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
4334 if (obj0) {
4335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4337 }
4338 {
4339 if (!wxPyCheckForApp()) SWIG_fail;
4340 PyThreadState* __tstate = wxPyBeginAllowThreads();
4341 wxBeginBusyCursor(arg1);
4342
4343 wxPyEndAllowThreads(__tstate);
4344 if (PyErr_Occurred()) SWIG_fail;
4345 }
4346 Py_INCREF(Py_None); resultobj = Py_None;
4347 return resultobj;
4348 fail:
4349 return NULL;
4350 }
4351
4352
4353 static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4354 PyObject *resultobj;
4355 wxWindow *result;
4356 char *kwnames[] = {
4357 NULL
4358 };
4359
4360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
4361 {
4362 if (!wxPyCheckForApp()) SWIG_fail;
4363 PyThreadState* __tstate = wxPyBeginAllowThreads();
4364 result = (wxWindow *)wxGetActiveWindow();
4365
4366 wxPyEndAllowThreads(__tstate);
4367 if (PyErr_Occurred()) SWIG_fail;
4368 }
4369 {
4370 resultobj = wxPyMake_wxObject(result, 0);
4371 }
4372 return resultobj;
4373 fail:
4374 return NULL;
4375 }
4376
4377
4378 static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4379 PyObject *resultobj;
4380 wxPoint *arg1 = 0 ;
4381 wxWindow *result;
4382 wxPoint temp1 ;
4383 PyObject * obj0 = 0 ;
4384 char *kwnames[] = {
4385 (char *) "pt", NULL
4386 };
4387
4388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
4389 {
4390 arg1 = &temp1;
4391 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4392 }
4393 {
4394 if (!wxPyCheckForApp()) SWIG_fail;
4395 PyThreadState* __tstate = wxPyBeginAllowThreads();
4396 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
4397
4398 wxPyEndAllowThreads(__tstate);
4399 if (PyErr_Occurred()) SWIG_fail;
4400 }
4401 {
4402 resultobj = wxPyMake_wxObject(result, 0);
4403 }
4404 return resultobj;
4405 fail:
4406 return NULL;
4407 }
4408
4409
4410 static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4411 PyObject *resultobj;
4412 wxPoint *arg1 = 0 ;
4413 wxWindow *result;
4414 wxPoint temp1 ;
4415 PyObject * obj0 = 0 ;
4416 char *kwnames[] = {
4417 (char *) "pt", NULL
4418 };
4419
4420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
4421 {
4422 arg1 = &temp1;
4423 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4424 }
4425 {
4426 if (!wxPyCheckForApp()) SWIG_fail;
4427 PyThreadState* __tstate = wxPyBeginAllowThreads();
4428 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
4429
4430 wxPyEndAllowThreads(__tstate);
4431 if (PyErr_Occurred()) SWIG_fail;
4432 }
4433 {
4434 resultobj = wxPyMake_wxObject(result, 0);
4435 }
4436 return resultobj;
4437 fail:
4438 return NULL;
4439 }
4440
4441
4442 static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) {
4443 PyObject *resultobj;
4444 wxWindow *arg1 = (wxWindow *) 0 ;
4445 wxWindow *result;
4446 PyObject * obj0 = 0 ;
4447 char *kwnames[] = {
4448 (char *) "win", NULL
4449 };
4450
4451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
4452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4454 {
4455 if (!wxPyCheckForApp()) SWIG_fail;
4456 PyThreadState* __tstate = wxPyBeginAllowThreads();
4457 result = (wxWindow *)wxGetTopLevelParent(arg1);
4458
4459 wxPyEndAllowThreads(__tstate);
4460 if (PyErr_Occurred()) SWIG_fail;
4461 }
4462 {
4463 resultobj = wxPyMake_wxObject(result, 0);
4464 }
4465 return resultobj;
4466 fail:
4467 return NULL;
4468 }
4469
4470
4471 static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) {
4472 PyObject *resultobj;
4473 int arg1 ;
4474 bool result;
4475 PyObject * obj0 = 0 ;
4476 char *kwnames[] = {
4477 (char *) "key", NULL
4478 };
4479
4480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
4481 arg1 = (wxKeyCode) SWIG_AsInt(obj0);
4482 if (PyErr_Occurred()) SWIG_fail;
4483 {
4484 if (!wxPyCheckForApp()) SWIG_fail;
4485 PyThreadState* __tstate = wxPyBeginAllowThreads();
4486 result = (bool)wxGetKeyState((wxKeyCode )arg1);
4487
4488 wxPyEndAllowThreads(__tstate);
4489 if (PyErr_Occurred()) SWIG_fail;
4490 }
4491 {
4492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4493 }
4494 return resultobj;
4495 fail:
4496 return NULL;
4497 }
4498
4499
4500 static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) {
4501 PyObject *resultobj;
4502 char *kwnames[] = {
4503 NULL
4504 };
4505
4506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
4507 {
4508 if (!wxPyCheckForApp()) SWIG_fail;
4509 PyThreadState* __tstate = wxPyBeginAllowThreads();
4510 wxWakeUpMainThread();
4511
4512 wxPyEndAllowThreads(__tstate);
4513 if (PyErr_Occurred()) SWIG_fail;
4514 }
4515 Py_INCREF(Py_None); resultobj = Py_None;
4516 return resultobj;
4517 fail:
4518 return NULL;
4519 }
4520
4521
4522 static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
4523 PyObject *resultobj;
4524 char *kwnames[] = {
4525 NULL
4526 };
4527
4528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
4529 {
4530 if (!wxPyCheckForApp()) SWIG_fail;
4531 PyThreadState* __tstate = wxPyBeginAllowThreads();
4532 wxMutexGuiEnter();
4533
4534 wxPyEndAllowThreads(__tstate);
4535 if (PyErr_Occurred()) SWIG_fail;
4536 }
4537 Py_INCREF(Py_None); resultobj = Py_None;
4538 return resultobj;
4539 fail:
4540 return NULL;
4541 }
4542
4543
4544 static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
4545 PyObject *resultobj;
4546 char *kwnames[] = {
4547 NULL
4548 };
4549
4550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
4551 {
4552 if (!wxPyCheckForApp()) SWIG_fail;
4553 PyThreadState* __tstate = wxPyBeginAllowThreads();
4554 wxMutexGuiLeave();
4555
4556 wxPyEndAllowThreads(__tstate);
4557 if (PyErr_Occurred()) SWIG_fail;
4558 }
4559 Py_INCREF(Py_None); resultobj = Py_None;
4560 return resultobj;
4561 fail:
4562 return NULL;
4563 }
4564
4565
4566 static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4567 PyObject *resultobj;
4568 wxMutexGuiLocker *result;
4569 char *kwnames[] = {
4570 NULL
4571 };
4572
4573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
4574 {
4575 if (!wxPyCheckForApp()) SWIG_fail;
4576 PyThreadState* __tstate = wxPyBeginAllowThreads();
4577 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
4578
4579 wxPyEndAllowThreads(__tstate);
4580 if (PyErr_Occurred()) SWIG_fail;
4581 }
4582 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
4583 return resultobj;
4584 fail:
4585 return NULL;
4586 }
4587
4588
4589 static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4590 PyObject *resultobj;
4591 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
4592 PyObject * obj0 = 0 ;
4593 char *kwnames[] = {
4594 (char *) "self", NULL
4595 };
4596
4597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
4598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker,
4599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4600 {
4601 PyThreadState* __tstate = wxPyBeginAllowThreads();
4602 delete arg1;
4603
4604 wxPyEndAllowThreads(__tstate);
4605 if (PyErr_Occurred()) SWIG_fail;
4606 }
4607 Py_INCREF(Py_None); resultobj = Py_None;
4608 return resultobj;
4609 fail:
4610 return NULL;
4611 }
4612
4613
4614 static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) {
4615 PyObject *obj;
4616 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4617 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
4618 Py_INCREF(obj);
4619 return Py_BuildValue((char *)"");
4620 }
4621 static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) {
4622 PyObject *resultobj;
4623 bool result;
4624 char *kwnames[] = {
4625 NULL
4626 };
4627
4628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
4629 {
4630 PyThreadState* __tstate = wxPyBeginAllowThreads();
4631 result = (bool)wxThread_IsMain();
4632
4633 wxPyEndAllowThreads(__tstate);
4634 if (PyErr_Occurred()) SWIG_fail;
4635 }
4636 {
4637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4638 }
4639 return resultobj;
4640 fail:
4641 return NULL;
4642 }
4643
4644
4645 static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4646 PyObject *resultobj;
4647 wxString *arg1 = 0 ;
4648 wxToolTip *result;
4649 bool temp1 = False ;
4650 PyObject * obj0 = 0 ;
4651 char *kwnames[] = {
4652 (char *) "tip", NULL
4653 };
4654
4655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
4656 {
4657 arg1 = wxString_in_helper(obj0);
4658 if (arg1 == NULL) SWIG_fail;
4659 temp1 = True;
4660 }
4661 {
4662 if (!wxPyCheckForApp()) SWIG_fail;
4663 PyThreadState* __tstate = wxPyBeginAllowThreads();
4664 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
4665
4666 wxPyEndAllowThreads(__tstate);
4667 if (PyErr_Occurred()) SWIG_fail;
4668 }
4669 {
4670 resultobj = wxPyMake_wxObject(result, 1);
4671 }
4672 {
4673 if (temp1)
4674 delete arg1;
4675 }
4676 return resultobj;
4677 fail:
4678 {
4679 if (temp1)
4680 delete arg1;
4681 }
4682 return NULL;
4683 }
4684
4685
4686 static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4687 PyObject *resultobj;
4688 wxToolTip *arg1 = (wxToolTip *) 0 ;
4689 wxString *arg2 = 0 ;
4690 bool temp2 = False ;
4691 PyObject * obj0 = 0 ;
4692 PyObject * obj1 = 0 ;
4693 char *kwnames[] = {
4694 (char *) "self",(char *) "tip", NULL
4695 };
4696
4697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
4698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4700 {
4701 arg2 = wxString_in_helper(obj1);
4702 if (arg2 == NULL) SWIG_fail;
4703 temp2 = True;
4704 }
4705 {
4706 PyThreadState* __tstate = wxPyBeginAllowThreads();
4707 (arg1)->SetTip((wxString const &)*arg2);
4708
4709 wxPyEndAllowThreads(__tstate);
4710 if (PyErr_Occurred()) SWIG_fail;
4711 }
4712 Py_INCREF(Py_None); resultobj = Py_None;
4713 {
4714 if (temp2)
4715 delete arg2;
4716 }
4717 return resultobj;
4718 fail:
4719 {
4720 if (temp2)
4721 delete arg2;
4722 }
4723 return NULL;
4724 }
4725
4726
4727 static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4728 PyObject *resultobj;
4729 wxToolTip *arg1 = (wxToolTip *) 0 ;
4730 wxString result;
4731 PyObject * obj0 = 0 ;
4732 char *kwnames[] = {
4733 (char *) "self", NULL
4734 };
4735
4736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
4737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4739 {
4740 PyThreadState* __tstate = wxPyBeginAllowThreads();
4741 result = (arg1)->GetTip();
4742
4743 wxPyEndAllowThreads(__tstate);
4744 if (PyErr_Occurred()) SWIG_fail;
4745 }
4746 {
4747 #if wxUSE_UNICODE
4748 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4749 #else
4750 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4751 #endif
4752 }
4753 return resultobj;
4754 fail:
4755 return NULL;
4756 }
4757
4758
4759 static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4760 PyObject *resultobj;
4761 wxToolTip *arg1 = (wxToolTip *) 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:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
4769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
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, 0);
4780 }
4781 return resultobj;
4782 fail:
4783 return NULL;
4784 }
4785
4786
4787 static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
4788 PyObject *resultobj;
4789 bool arg1 ;
4790 PyObject * obj0 = 0 ;
4791 char *kwnames[] = {
4792 (char *) "flag", NULL
4793 };
4794
4795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
4796 arg1 = (bool) SWIG_AsBool(obj0);
4797 if (PyErr_Occurred()) SWIG_fail;
4798 {
4799 PyThreadState* __tstate = wxPyBeginAllowThreads();
4800 wxToolTip::Enable(arg1);
4801
4802 wxPyEndAllowThreads(__tstate);
4803 if (PyErr_Occurred()) SWIG_fail;
4804 }
4805 Py_INCREF(Py_None); resultobj = Py_None;
4806 return resultobj;
4807 fail:
4808 return NULL;
4809 }
4810
4811
4812 static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) {
4813 PyObject *resultobj;
4814 long arg1 ;
4815 PyObject * obj0 = 0 ;
4816 char *kwnames[] = {
4817 (char *) "milliseconds", NULL
4818 };
4819
4820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
4821 arg1 = (long) SWIG_AsLong(obj0);
4822 if (PyErr_Occurred()) SWIG_fail;
4823 {
4824 PyThreadState* __tstate = wxPyBeginAllowThreads();
4825 wxToolTip::SetDelay(arg1);
4826
4827 wxPyEndAllowThreads(__tstate);
4828 if (PyErr_Occurred()) SWIG_fail;
4829 }
4830 Py_INCREF(Py_None); resultobj = Py_None;
4831 return resultobj;
4832 fail:
4833 return NULL;
4834 }
4835
4836
4837 static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) {
4838 PyObject *obj;
4839 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4840 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
4841 Py_INCREF(obj);
4842 return Py_BuildValue((char *)"");
4843 }
4844 static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4845 PyObject *resultobj;
4846 wxWindow *arg1 = (wxWindow *) 0 ;
4847 wxSize *arg2 = 0 ;
4848 wxCaret *result;
4849 wxSize temp2 ;
4850 PyObject * obj0 = 0 ;
4851 PyObject * obj1 = 0 ;
4852 char *kwnames[] = {
4853 (char *) "window",(char *) "size", NULL
4854 };
4855
4856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
4857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4859 {
4860 arg2 = &temp2;
4861 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4862 }
4863 {
4864 if (!wxPyCheckForApp()) SWIG_fail;
4865 PyThreadState* __tstate = wxPyBeginAllowThreads();
4866 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
4867
4868 wxPyEndAllowThreads(__tstate);
4869 if (PyErr_Occurred()) SWIG_fail;
4870 }
4871 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
4872 return resultobj;
4873 fail:
4874 return NULL;
4875 }
4876
4877
4878 static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4879 PyObject *resultobj;
4880 wxCaret *arg1 = (wxCaret *) 0 ;
4881 PyObject * obj0 = 0 ;
4882 char *kwnames[] = {
4883 (char *) "self", NULL
4884 };
4885
4886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
4887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4889 {
4890 PyThreadState* __tstate = wxPyBeginAllowThreads();
4891 delete arg1;
4892
4893 wxPyEndAllowThreads(__tstate);
4894 if (PyErr_Occurred()) SWIG_fail;
4895 }
4896 Py_INCREF(Py_None); resultobj = Py_None;
4897 return resultobj;
4898 fail:
4899 return NULL;
4900 }
4901
4902
4903 static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4904 PyObject *resultobj;
4905 wxCaret *arg1 = (wxCaret *) 0 ;
4906 bool result;
4907 PyObject * obj0 = 0 ;
4908 char *kwnames[] = {
4909 (char *) "self", NULL
4910 };
4911
4912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
4913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4915 {
4916 PyThreadState* __tstate = wxPyBeginAllowThreads();
4917 result = (bool)(arg1)->IsOk();
4918
4919 wxPyEndAllowThreads(__tstate);
4920 if (PyErr_Occurred()) SWIG_fail;
4921 }
4922 {
4923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4924 }
4925 return resultobj;
4926 fail:
4927 return NULL;
4928 }
4929
4930
4931 static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4932 PyObject *resultobj;
4933 wxCaret *arg1 = (wxCaret *) 0 ;
4934 bool result;
4935 PyObject * obj0 = 0 ;
4936 char *kwnames[] = {
4937 (char *) "self", NULL
4938 };
4939
4940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
4941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4943 {
4944 PyThreadState* __tstate = wxPyBeginAllowThreads();
4945 result = (bool)(arg1)->IsVisible();
4946
4947 wxPyEndAllowThreads(__tstate);
4948 if (PyErr_Occurred()) SWIG_fail;
4949 }
4950 {
4951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4952 }
4953 return resultobj;
4954 fail:
4955 return NULL;
4956 }
4957
4958
4959 static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
4960 PyObject *resultobj;
4961 wxCaret *arg1 = (wxCaret *) 0 ;
4962 wxPoint result;
4963 PyObject * obj0 = 0 ;
4964 char *kwnames[] = {
4965 (char *) "self", NULL
4966 };
4967
4968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
4969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4971 {
4972 PyThreadState* __tstate = wxPyBeginAllowThreads();
4973 result = (arg1)->GetPosition();
4974
4975 wxPyEndAllowThreads(__tstate);
4976 if (PyErr_Occurred()) SWIG_fail;
4977 }
4978 {
4979 wxPoint * resultptr;
4980 resultptr = new wxPoint((wxPoint &) result);
4981 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
4982 }
4983 return resultobj;
4984 fail:
4985 return NULL;
4986 }
4987
4988
4989 static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4990 PyObject *resultobj;
4991 wxCaret *arg1 = (wxCaret *) 0 ;
4992 int *arg2 = (int *) 0 ;
4993 int *arg3 = (int *) 0 ;
4994 int temp2 ;
4995 int temp3 ;
4996 PyObject * obj0 = 0 ;
4997 char *kwnames[] = {
4998 (char *) "self", NULL
4999 };
5000
5001 arg2 = &temp2;
5002 arg3 = &temp3;
5003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
5004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5006 {
5007 PyThreadState* __tstate = wxPyBeginAllowThreads();
5008 (arg1)->GetPosition(arg2,arg3);
5009
5010 wxPyEndAllowThreads(__tstate);
5011 if (PyErr_Occurred()) SWIG_fail;
5012 }
5013 Py_INCREF(Py_None); resultobj = Py_None;
5014 {
5015 PyObject *o = PyInt_FromLong((long) (*arg2));
5016 resultobj = t_output_helper(resultobj,o);
5017 }
5018 {
5019 PyObject *o = PyInt_FromLong((long) (*arg3));
5020 resultobj = t_output_helper(resultobj,o);
5021 }
5022 return resultobj;
5023 fail:
5024 return NULL;
5025 }
5026
5027
5028 static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5029 PyObject *resultobj;
5030 wxCaret *arg1 = (wxCaret *) 0 ;
5031 wxSize result;
5032 PyObject * obj0 = 0 ;
5033 char *kwnames[] = {
5034 (char *) "self", NULL
5035 };
5036
5037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
5038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5040 {
5041 PyThreadState* __tstate = wxPyBeginAllowThreads();
5042 result = (arg1)->GetSize();
5043
5044 wxPyEndAllowThreads(__tstate);
5045 if (PyErr_Occurred()) SWIG_fail;
5046 }
5047 {
5048 wxSize * resultptr;
5049 resultptr = new wxSize((wxSize &) result);
5050 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
5051 }
5052 return resultobj;
5053 fail:
5054 return NULL;
5055 }
5056
5057
5058 static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
5059 PyObject *resultobj;
5060 wxCaret *arg1 = (wxCaret *) 0 ;
5061 int *arg2 = (int *) 0 ;
5062 int *arg3 = (int *) 0 ;
5063 int temp2 ;
5064 int temp3 ;
5065 PyObject * obj0 = 0 ;
5066 char *kwnames[] = {
5067 (char *) "self", NULL
5068 };
5069
5070 arg2 = &temp2;
5071 arg3 = &temp3;
5072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
5073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5075 {
5076 PyThreadState* __tstate = wxPyBeginAllowThreads();
5077 (arg1)->GetSize(arg2,arg3);
5078
5079 wxPyEndAllowThreads(__tstate);
5080 if (PyErr_Occurred()) SWIG_fail;
5081 }
5082 Py_INCREF(Py_None); resultobj = Py_None;
5083 {
5084 PyObject *o = PyInt_FromLong((long) (*arg2));
5085 resultobj = t_output_helper(resultobj,o);
5086 }
5087 {
5088 PyObject *o = PyInt_FromLong((long) (*arg3));
5089 resultobj = t_output_helper(resultobj,o);
5090 }
5091 return resultobj;
5092 fail:
5093 return NULL;
5094 }
5095
5096
5097 static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
5098 PyObject *resultobj;
5099 wxCaret *arg1 = (wxCaret *) 0 ;
5100 wxWindow *result;
5101 PyObject * obj0 = 0 ;
5102 char *kwnames[] = {
5103 (char *) "self", NULL
5104 };
5105
5106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
5107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5109 {
5110 PyThreadState* __tstate = wxPyBeginAllowThreads();
5111 result = (wxWindow *)(arg1)->GetWindow();
5112
5113 wxPyEndAllowThreads(__tstate);
5114 if (PyErr_Occurred()) SWIG_fail;
5115 }
5116 {
5117 resultobj = wxPyMake_wxObject(result, 0);
5118 }
5119 return resultobj;
5120 fail:
5121 return NULL;
5122 }
5123
5124
5125 static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
5126 PyObject *resultobj;
5127 wxCaret *arg1 = (wxCaret *) 0 ;
5128 int arg2 ;
5129 int arg3 ;
5130 PyObject * obj0 = 0 ;
5131 PyObject * obj1 = 0 ;
5132 PyObject * obj2 = 0 ;
5133 char *kwnames[] = {
5134 (char *) "self",(char *) "x",(char *) "y", NULL
5135 };
5136
5137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
5138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5140 arg2 = (int) SWIG_AsInt(obj1);
5141 if (PyErr_Occurred()) SWIG_fail;
5142 arg3 = (int) SWIG_AsInt(obj2);
5143 if (PyErr_Occurred()) SWIG_fail;
5144 {
5145 PyThreadState* __tstate = wxPyBeginAllowThreads();
5146 (arg1)->Move(arg2,arg3);
5147
5148 wxPyEndAllowThreads(__tstate);
5149 if (PyErr_Occurred()) SWIG_fail;
5150 }
5151 Py_INCREF(Py_None); resultobj = Py_None;
5152 return resultobj;
5153 fail:
5154 return NULL;
5155 }
5156
5157
5158 static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
5159 PyObject *resultobj;
5160 wxCaret *arg1 = (wxCaret *) 0 ;
5161 wxPoint *arg2 = 0 ;
5162 wxPoint temp2 ;
5163 PyObject * obj0 = 0 ;
5164 PyObject * obj1 = 0 ;
5165 char *kwnames[] = {
5166 (char *) "self",(char *) "pt", NULL
5167 };
5168
5169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
5170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5172 {
5173 arg2 = &temp2;
5174 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5175 }
5176 {
5177 PyThreadState* __tstate = wxPyBeginAllowThreads();
5178 (arg1)->Move((wxPoint const &)*arg2);
5179
5180 wxPyEndAllowThreads(__tstate);
5181 if (PyErr_Occurred()) SWIG_fail;
5182 }
5183 Py_INCREF(Py_None); resultobj = Py_None;
5184 return resultobj;
5185 fail:
5186 return NULL;
5187 }
5188
5189
5190 static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
5191 PyObject *resultobj;
5192 wxCaret *arg1 = (wxCaret *) 0 ;
5193 int arg2 ;
5194 int arg3 ;
5195 PyObject * obj0 = 0 ;
5196 PyObject * obj1 = 0 ;
5197 PyObject * obj2 = 0 ;
5198 char *kwnames[] = {
5199 (char *) "self",(char *) "width",(char *) "height", NULL
5200 };
5201
5202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
5203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5205 arg2 = (int) SWIG_AsInt(obj1);
5206 if (PyErr_Occurred()) SWIG_fail;
5207 arg3 = (int) SWIG_AsInt(obj2);
5208 if (PyErr_Occurred()) SWIG_fail;
5209 {
5210 PyThreadState* __tstate = wxPyBeginAllowThreads();
5211 (arg1)->SetSize(arg2,arg3);
5212
5213 wxPyEndAllowThreads(__tstate);
5214 if (PyErr_Occurred()) SWIG_fail;
5215 }
5216 Py_INCREF(Py_None); resultobj = Py_None;
5217 return resultobj;
5218 fail:
5219 return NULL;
5220 }
5221
5222
5223 static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5224 PyObject *resultobj;
5225 wxCaret *arg1 = (wxCaret *) 0 ;
5226 wxSize *arg2 = 0 ;
5227 wxSize temp2 ;
5228 PyObject * obj0 = 0 ;
5229 PyObject * obj1 = 0 ;
5230 char *kwnames[] = {
5231 (char *) "self",(char *) "size", NULL
5232 };
5233
5234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
5235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5237 {
5238 arg2 = &temp2;
5239 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5240 }
5241 {
5242 PyThreadState* __tstate = wxPyBeginAllowThreads();
5243 (arg1)->SetSize((wxSize const &)*arg2);
5244
5245 wxPyEndAllowThreads(__tstate);
5246 if (PyErr_Occurred()) SWIG_fail;
5247 }
5248 Py_INCREF(Py_None); resultobj = Py_None;
5249 return resultobj;
5250 fail:
5251 return NULL;
5252 }
5253
5254
5255 static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
5256 PyObject *resultobj;
5257 wxCaret *arg1 = (wxCaret *) 0 ;
5258 int arg2 = (int) True ;
5259 PyObject * obj0 = 0 ;
5260 PyObject * obj1 = 0 ;
5261 char *kwnames[] = {
5262 (char *) "self",(char *) "show", NULL
5263 };
5264
5265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
5266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5268 if (obj1) {
5269 arg2 = (int) SWIG_AsInt(obj1);
5270 if (PyErr_Occurred()) SWIG_fail;
5271 }
5272 {
5273 PyThreadState* __tstate = wxPyBeginAllowThreads();
5274 (arg1)->Show(arg2);
5275
5276 wxPyEndAllowThreads(__tstate);
5277 if (PyErr_Occurred()) SWIG_fail;
5278 }
5279 Py_INCREF(Py_None); resultobj = Py_None;
5280 return resultobj;
5281 fail:
5282 return NULL;
5283 }
5284
5285
5286 static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
5287 PyObject *resultobj;
5288 wxCaret *arg1 = (wxCaret *) 0 ;
5289 PyObject * obj0 = 0 ;
5290 char *kwnames[] = {
5291 (char *) "self", NULL
5292 };
5293
5294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
5295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5297 {
5298 PyThreadState* __tstate = wxPyBeginAllowThreads();
5299 (arg1)->Hide();
5300
5301 wxPyEndAllowThreads(__tstate);
5302 if (PyErr_Occurred()) SWIG_fail;
5303 }
5304 Py_INCREF(Py_None); resultobj = Py_None;
5305 return resultobj;
5306 fail:
5307 return NULL;
5308 }
5309
5310
5311 static PyObject * Caret_swigregister(PyObject *self, PyObject *args) {
5312 PyObject *obj;
5313 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5314 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
5315 Py_INCREF(obj);
5316 return Py_BuildValue((char *)"");
5317 }
5318 static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5319 PyObject *resultobj;
5320 int result;
5321 char *kwnames[] = {
5322 NULL
5323 };
5324
5325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
5326 {
5327 PyThreadState* __tstate = wxPyBeginAllowThreads();
5328 result = (int)wxCaret_GetBlinkTime();
5329
5330 wxPyEndAllowThreads(__tstate);
5331 if (PyErr_Occurred()) SWIG_fail;
5332 }
5333 resultobj = SWIG_FromInt((int)result);
5334 return resultobj;
5335 fail:
5336 return NULL;
5337 }
5338
5339
5340 static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5341 PyObject *resultobj;
5342 int arg1 ;
5343 PyObject * obj0 = 0 ;
5344 char *kwnames[] = {
5345 (char *) "milliseconds", NULL
5346 };
5347
5348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
5349 arg1 = (int) SWIG_AsInt(obj0);
5350 if (PyErr_Occurred()) SWIG_fail;
5351 {
5352 PyThreadState* __tstate = wxPyBeginAllowThreads();
5353 wxCaret_SetBlinkTime(arg1);
5354
5355 wxPyEndAllowThreads(__tstate);
5356 if (PyErr_Occurred()) SWIG_fail;
5357 }
5358 Py_INCREF(Py_None); resultobj = Py_None;
5359 return resultobj;
5360 fail:
5361 return NULL;
5362 }
5363
5364
5365 static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5366 PyObject *resultobj;
5367 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
5368 wxBusyCursor *result;
5369 PyObject * obj0 = 0 ;
5370 char *kwnames[] = {
5371 (char *) "cursor", NULL
5372 };
5373
5374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
5375 if (obj0) {
5376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5378 }
5379 {
5380 if (!wxPyCheckForApp()) SWIG_fail;
5381 PyThreadState* __tstate = wxPyBeginAllowThreads();
5382 result = (wxBusyCursor *)new wxBusyCursor(arg1);
5383
5384 wxPyEndAllowThreads(__tstate);
5385 if (PyErr_Occurred()) SWIG_fail;
5386 }
5387 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
5388 return resultobj;
5389 fail:
5390 return NULL;
5391 }
5392
5393
5394 static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5395 PyObject *resultobj;
5396 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
5397 PyObject * obj0 = 0 ;
5398 char *kwnames[] = {
5399 (char *) "self", NULL
5400 };
5401
5402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
5403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor,
5404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5405 {
5406 PyThreadState* __tstate = wxPyBeginAllowThreads();
5407 delete arg1;
5408
5409 wxPyEndAllowThreads(__tstate);
5410 if (PyErr_Occurred()) SWIG_fail;
5411 }
5412 Py_INCREF(Py_None); resultobj = Py_None;
5413 return resultobj;
5414 fail:
5415 return NULL;
5416 }
5417
5418
5419 static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) {
5420 PyObject *obj;
5421 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5422 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
5423 Py_INCREF(obj);
5424 return Py_BuildValue((char *)"");
5425 }
5426 static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5427 PyObject *resultobj;
5428 wxWindow *arg1 = (wxWindow *) NULL ;
5429 wxWindowDisabler *result;
5430 PyObject * obj0 = 0 ;
5431 char *kwnames[] = {
5432 (char *) "winToSkip", NULL
5433 };
5434
5435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
5436 if (obj0) {
5437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5439 }
5440 {
5441 if (!wxPyCheckForApp()) SWIG_fail;
5442 PyThreadState* __tstate = wxPyBeginAllowThreads();
5443 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
5444
5445 wxPyEndAllowThreads(__tstate);
5446 if (PyErr_Occurred()) SWIG_fail;
5447 }
5448 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
5449 return resultobj;
5450 fail:
5451 return NULL;
5452 }
5453
5454
5455 static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5456 PyObject *resultobj;
5457 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
5458 PyObject * obj0 = 0 ;
5459 char *kwnames[] = {
5460 (char *) "self", NULL
5461 };
5462
5463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
5464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler,
5465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5466 {
5467 PyThreadState* __tstate = wxPyBeginAllowThreads();
5468 delete arg1;
5469
5470 wxPyEndAllowThreads(__tstate);
5471 if (PyErr_Occurred()) SWIG_fail;
5472 }
5473 Py_INCREF(Py_None); resultobj = Py_None;
5474 return resultobj;
5475 fail:
5476 return NULL;
5477 }
5478
5479
5480 static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) {
5481 PyObject *obj;
5482 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5483 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
5484 Py_INCREF(obj);
5485 return Py_BuildValue((char *)"");
5486 }
5487 static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5488 PyObject *resultobj;
5489 wxString *arg1 = 0 ;
5490 wxBusyInfo *result;
5491 bool temp1 = False ;
5492 PyObject * obj0 = 0 ;
5493 char *kwnames[] = {
5494 (char *) "message", NULL
5495 };
5496
5497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
5498 {
5499 arg1 = wxString_in_helper(obj0);
5500 if (arg1 == NULL) SWIG_fail;
5501 temp1 = True;
5502 }
5503 {
5504 if (!wxPyCheckForApp()) SWIG_fail;
5505 PyThreadState* __tstate = wxPyBeginAllowThreads();
5506 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
5507
5508 wxPyEndAllowThreads(__tstate);
5509 if (PyErr_Occurred()) SWIG_fail;
5510 }
5511 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
5512 {
5513 if (temp1)
5514 delete arg1;
5515 }
5516 return resultobj;
5517 fail:
5518 {
5519 if (temp1)
5520 delete arg1;
5521 }
5522 return NULL;
5523 }
5524
5525
5526 static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5527 PyObject *resultobj;
5528 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
5529 PyObject * obj0 = 0 ;
5530 char *kwnames[] = {
5531 (char *) "self", NULL
5532 };
5533
5534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
5535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo,
5536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5537 {
5538 PyThreadState* __tstate = wxPyBeginAllowThreads();
5539 delete arg1;
5540
5541 wxPyEndAllowThreads(__tstate);
5542 if (PyErr_Occurred()) SWIG_fail;
5543 }
5544 Py_INCREF(Py_None); resultobj = Py_None;
5545 return resultobj;
5546 fail:
5547 return NULL;
5548 }
5549
5550
5551 static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) {
5552 PyObject *obj;
5553 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5554 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
5555 Py_INCREF(obj);
5556 return Py_BuildValue((char *)"");
5557 }
5558 static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) {
5559 PyObject *resultobj;
5560 wxStopWatch *result;
5561 char *kwnames[] = {
5562 NULL
5563 };
5564
5565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
5566 {
5567 PyThreadState* __tstate = wxPyBeginAllowThreads();
5568 result = (wxStopWatch *)new wxStopWatch();
5569
5570 wxPyEndAllowThreads(__tstate);
5571 if (PyErr_Occurred()) SWIG_fail;
5572 }
5573 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
5574 return resultobj;
5575 fail:
5576 return NULL;
5577 }
5578
5579
5580 static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
5581 PyObject *resultobj;
5582 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5583 long arg2 = (long) 0 ;
5584 PyObject * obj0 = 0 ;
5585 PyObject * obj1 = 0 ;
5586 char *kwnames[] = {
5587 (char *) "self",(char *) "t0", NULL
5588 };
5589
5590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
5591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5593 if (obj1) {
5594 arg2 = (long) SWIG_AsLong(obj1);
5595 if (PyErr_Occurred()) SWIG_fail;
5596 }
5597 {
5598 PyThreadState* __tstate = wxPyBeginAllowThreads();
5599 (arg1)->Start(arg2);
5600
5601 wxPyEndAllowThreads(__tstate);
5602 if (PyErr_Occurred()) SWIG_fail;
5603 }
5604 Py_INCREF(Py_None); resultobj = Py_None;
5605 return resultobj;
5606 fail:
5607 return NULL;
5608 }
5609
5610
5611 static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) {
5612 PyObject *resultobj;
5613 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5614 PyObject * obj0 = 0 ;
5615 char *kwnames[] = {
5616 (char *) "self", NULL
5617 };
5618
5619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
5620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5622 {
5623 PyThreadState* __tstate = wxPyBeginAllowThreads();
5624 (arg1)->Pause();
5625
5626 wxPyEndAllowThreads(__tstate);
5627 if (PyErr_Occurred()) SWIG_fail;
5628 }
5629 Py_INCREF(Py_None); resultobj = Py_None;
5630 return resultobj;
5631 fail:
5632 return NULL;
5633 }
5634
5635
5636 static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
5637 PyObject *resultobj;
5638 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5639 PyObject * obj0 = 0 ;
5640 char *kwnames[] = {
5641 (char *) "self", NULL
5642 };
5643
5644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
5645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5647 {
5648 PyThreadState* __tstate = wxPyBeginAllowThreads();
5649 (arg1)->Resume();
5650
5651 wxPyEndAllowThreads(__tstate);
5652 if (PyErr_Occurred()) SWIG_fail;
5653 }
5654 Py_INCREF(Py_None); resultobj = Py_None;
5655 return resultobj;
5656 fail:
5657 return NULL;
5658 }
5659
5660
5661 static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) {
5662 PyObject *resultobj;
5663 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5664 long result;
5665 PyObject * obj0 = 0 ;
5666 char *kwnames[] = {
5667 (char *) "self", NULL
5668 };
5669
5670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
5671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5673 {
5674 PyThreadState* __tstate = wxPyBeginAllowThreads();
5675 result = (long)((wxStopWatch const *)arg1)->Time();
5676
5677 wxPyEndAllowThreads(__tstate);
5678 if (PyErr_Occurred()) SWIG_fail;
5679 }
5680 resultobj = SWIG_FromLong((long)result);
5681 return resultobj;
5682 fail:
5683 return NULL;
5684 }
5685
5686
5687 static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) {
5688 PyObject *obj;
5689 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5690 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
5691 Py_INCREF(obj);
5692 return Py_BuildValue((char *)"");
5693 }
5694 static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5695 PyObject *resultobj;
5696 int arg1 = (int) 9 ;
5697 int arg2 = (int) wxID_FILE1 ;
5698 wxFileHistory *result;
5699 PyObject * obj0 = 0 ;
5700 PyObject * obj1 = 0 ;
5701 char *kwnames[] = {
5702 (char *) "maxFiles",(char *) "idBase", NULL
5703 };
5704
5705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FileHistory",kwnames,&obj0,&obj1)) goto fail;
5706 if (obj0) {
5707 arg1 = (int) SWIG_AsInt(obj0);
5708 if (PyErr_Occurred()) SWIG_fail;
5709 }
5710 if (obj1) {
5711 arg2 = (int) SWIG_AsInt(obj1);
5712 if (PyErr_Occurred()) SWIG_fail;
5713 }
5714 {
5715 PyThreadState* __tstate = wxPyBeginAllowThreads();
5716 result = (wxFileHistory *)new wxFileHistory(arg1,arg2);
5717
5718 wxPyEndAllowThreads(__tstate);
5719 if (PyErr_Occurred()) SWIG_fail;
5720 }
5721 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
5722 return resultobj;
5723 fail:
5724 return NULL;
5725 }
5726
5727
5728 static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5729 PyObject *resultobj;
5730 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5731 PyObject * obj0 = 0 ;
5732 char *kwnames[] = {
5733 (char *) "self", NULL
5734 };
5735
5736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
5737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5739 {
5740 PyThreadState* __tstate = wxPyBeginAllowThreads();
5741 delete arg1;
5742
5743 wxPyEndAllowThreads(__tstate);
5744 if (PyErr_Occurred()) SWIG_fail;
5745 }
5746 Py_INCREF(Py_None); resultobj = Py_None;
5747 return resultobj;
5748 fail:
5749 return NULL;
5750 }
5751
5752
5753 static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5754 PyObject *resultobj;
5755 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5756 wxString *arg2 = 0 ;
5757 bool temp2 = False ;
5758 PyObject * obj0 = 0 ;
5759 PyObject * obj1 = 0 ;
5760 char *kwnames[] = {
5761 (char *) "self",(char *) "file", NULL
5762 };
5763
5764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
5765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5767 {
5768 arg2 = wxString_in_helper(obj1);
5769 if (arg2 == NULL) SWIG_fail;
5770 temp2 = True;
5771 }
5772 {
5773 PyThreadState* __tstate = wxPyBeginAllowThreads();
5774 (arg1)->AddFileToHistory((wxString const &)*arg2);
5775
5776 wxPyEndAllowThreads(__tstate);
5777 if (PyErr_Occurred()) SWIG_fail;
5778 }
5779 Py_INCREF(Py_None); resultobj = Py_None;
5780 {
5781 if (temp2)
5782 delete arg2;
5783 }
5784 return resultobj;
5785 fail:
5786 {
5787 if (temp2)
5788 delete arg2;
5789 }
5790 return NULL;
5791 }
5792
5793
5794 static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5795 PyObject *resultobj;
5796 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5797 int arg2 ;
5798 PyObject * obj0 = 0 ;
5799 PyObject * obj1 = 0 ;
5800 char *kwnames[] = {
5801 (char *) "self",(char *) "i", NULL
5802 };
5803
5804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
5805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5807 arg2 = (int) SWIG_AsInt(obj1);
5808 if (PyErr_Occurred()) SWIG_fail;
5809 {
5810 PyThreadState* __tstate = wxPyBeginAllowThreads();
5811 (arg1)->RemoveFileFromHistory(arg2);
5812
5813 wxPyEndAllowThreads(__tstate);
5814 if (PyErr_Occurred()) SWIG_fail;
5815 }
5816 Py_INCREF(Py_None); resultobj = Py_None;
5817 return resultobj;
5818 fail:
5819 return NULL;
5820 }
5821
5822
5823 static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
5824 PyObject *resultobj;
5825 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5826 int result;
5827 PyObject * obj0 = 0 ;
5828 char *kwnames[] = {
5829 (char *) "self", NULL
5830 };
5831
5832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
5833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5835 {
5836 PyThreadState* __tstate = wxPyBeginAllowThreads();
5837 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
5838
5839 wxPyEndAllowThreads(__tstate);
5840 if (PyErr_Occurred()) SWIG_fail;
5841 }
5842 resultobj = SWIG_FromInt((int)result);
5843 return resultobj;
5844 fail:
5845 return NULL;
5846 }
5847
5848
5849 static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5850 PyObject *resultobj;
5851 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5852 wxMenu *arg2 = (wxMenu *) 0 ;
5853 PyObject * obj0 = 0 ;
5854 PyObject * obj1 = 0 ;
5855 char *kwnames[] = {
5856 (char *) "self",(char *) "menu", NULL
5857 };
5858
5859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
5860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5862 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5864 {
5865 PyThreadState* __tstate = wxPyBeginAllowThreads();
5866 (arg1)->UseMenu(arg2);
5867
5868 wxPyEndAllowThreads(__tstate);
5869 if (PyErr_Occurred()) SWIG_fail;
5870 }
5871 Py_INCREF(Py_None); resultobj = Py_None;
5872 return resultobj;
5873 fail:
5874 return NULL;
5875 }
5876
5877
5878 static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5879 PyObject *resultobj;
5880 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5881 wxMenu *arg2 = (wxMenu *) 0 ;
5882 PyObject * obj0 = 0 ;
5883 PyObject * obj1 = 0 ;
5884 char *kwnames[] = {
5885 (char *) "self",(char *) "menu", NULL
5886 };
5887
5888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
5889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5891 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5893 {
5894 PyThreadState* __tstate = wxPyBeginAllowThreads();
5895 (arg1)->RemoveMenu(arg2);
5896
5897 wxPyEndAllowThreads(__tstate);
5898 if (PyErr_Occurred()) SWIG_fail;
5899 }
5900 Py_INCREF(Py_None); resultobj = Py_None;
5901 return resultobj;
5902 fail:
5903 return NULL;
5904 }
5905
5906
5907 static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) {
5908 PyObject *resultobj;
5909 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5910 wxConfigBase *arg2 = 0 ;
5911 PyObject * obj0 = 0 ;
5912 PyObject * obj1 = 0 ;
5913 char *kwnames[] = {
5914 (char *) "self",(char *) "config", NULL
5915 };
5916
5917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
5918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5920 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5921 SWIG_POINTER_EXCEPTION | 0)) == -1)
5922 SWIG_fail;
5923 if (arg2 == NULL) {
5924 PyErr_SetString(PyExc_TypeError,"null reference");
5925 SWIG_fail;
5926 }
5927 {
5928 PyThreadState* __tstate = wxPyBeginAllowThreads();
5929 (arg1)->Load(*arg2);
5930
5931 wxPyEndAllowThreads(__tstate);
5932 if (PyErr_Occurred()) SWIG_fail;
5933 }
5934 Py_INCREF(Py_None); resultobj = Py_None;
5935 return resultobj;
5936 fail:
5937 return NULL;
5938 }
5939
5940
5941 static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) {
5942 PyObject *resultobj;
5943 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5944 wxConfigBase *arg2 = 0 ;
5945 PyObject * obj0 = 0 ;
5946 PyObject * obj1 = 0 ;
5947 char *kwnames[] = {
5948 (char *) "self",(char *) "config", NULL
5949 };
5950
5951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
5952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5954 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5955 SWIG_POINTER_EXCEPTION | 0)) == -1)
5956 SWIG_fail;
5957 if (arg2 == NULL) {
5958 PyErr_SetString(PyExc_TypeError,"null reference");
5959 SWIG_fail;
5960 }
5961 {
5962 PyThreadState* __tstate = wxPyBeginAllowThreads();
5963 (arg1)->Save(*arg2);
5964
5965 wxPyEndAllowThreads(__tstate);
5966 if (PyErr_Occurred()) SWIG_fail;
5967 }
5968 Py_INCREF(Py_None); resultobj = Py_None;
5969 return resultobj;
5970 fail:
5971 return NULL;
5972 }
5973
5974
5975 static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5976 PyObject *resultobj;
5977 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5978 PyObject * obj0 = 0 ;
5979 char *kwnames[] = {
5980 (char *) "self", NULL
5981 };
5982
5983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
5984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5986 {
5987 PyThreadState* __tstate = wxPyBeginAllowThreads();
5988 (arg1)->AddFilesToMenu();
5989
5990 wxPyEndAllowThreads(__tstate);
5991 if (PyErr_Occurred()) SWIG_fail;
5992 }
5993 Py_INCREF(Py_None); resultobj = Py_None;
5994 return resultobj;
5995 fail:
5996 return NULL;
5997 }
5998
5999
6000 static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
6001 PyObject *resultobj;
6002 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6003 wxMenu *arg2 = (wxMenu *) 0 ;
6004 PyObject * obj0 = 0 ;
6005 PyObject * obj1 = 0 ;
6006 char *kwnames[] = {
6007 (char *) "self",(char *) "menu", NULL
6008 };
6009
6010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
6011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6013 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
6014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6015 {
6016 PyThreadState* __tstate = wxPyBeginAllowThreads();
6017 (arg1)->AddFilesToMenu(arg2);
6018
6019 wxPyEndAllowThreads(__tstate);
6020 if (PyErr_Occurred()) SWIG_fail;
6021 }
6022 Py_INCREF(Py_None); resultobj = Py_None;
6023 return resultobj;
6024 fail:
6025 return NULL;
6026 }
6027
6028
6029 static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) {
6030 PyObject *resultobj;
6031 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6032 int arg2 ;
6033 wxString result;
6034 PyObject * obj0 = 0 ;
6035 PyObject * obj1 = 0 ;
6036 char *kwnames[] = {
6037 (char *) "self",(char *) "i", NULL
6038 };
6039
6040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
6041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6043 arg2 = (int) SWIG_AsInt(obj1);
6044 if (PyErr_Occurred()) SWIG_fail;
6045 {
6046 PyThreadState* __tstate = wxPyBeginAllowThreads();
6047 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
6048
6049 wxPyEndAllowThreads(__tstate);
6050 if (PyErr_Occurred()) SWIG_fail;
6051 }
6052 {
6053 #if wxUSE_UNICODE
6054 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6055 #else
6056 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6057 #endif
6058 }
6059 return resultobj;
6060 fail:
6061 return NULL;
6062 }
6063
6064
6065 static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6066 PyObject *resultobj;
6067 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6068 int result;
6069 PyObject * obj0 = 0 ;
6070 char *kwnames[] = {
6071 (char *) "self", NULL
6072 };
6073
6074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
6075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6077 {
6078 PyThreadState* __tstate = wxPyBeginAllowThreads();
6079 result = (int)((wxFileHistory const *)arg1)->GetCount();
6080
6081 wxPyEndAllowThreads(__tstate);
6082 if (PyErr_Occurred()) SWIG_fail;
6083 }
6084 resultobj = SWIG_FromInt((int)result);
6085 return resultobj;
6086 fail:
6087 return NULL;
6088 }
6089
6090
6091 static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) {
6092 PyObject *obj;
6093 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6094 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
6095 Py_INCREF(obj);
6096 return Py_BuildValue((char *)"");
6097 }
6098 static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
6099 PyObject *resultobj;
6100 wxString *arg1 = 0 ;
6101 wxString const &arg2_defvalue = wxPyEmptyString ;
6102 wxString *arg2 = (wxString *) &arg2_defvalue ;
6103 wxSingleInstanceChecker *result;
6104 bool temp1 = False ;
6105 bool temp2 = False ;
6106 PyObject * obj0 = 0 ;
6107 PyObject * obj1 = 0 ;
6108 char *kwnames[] = {
6109 (char *) "name",(char *) "path", NULL
6110 };
6111
6112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
6113 {
6114 arg1 = wxString_in_helper(obj0);
6115 if (arg1 == NULL) SWIG_fail;
6116 temp1 = True;
6117 }
6118 if (obj1) {
6119 {
6120 arg2 = wxString_in_helper(obj1);
6121 if (arg2 == NULL) SWIG_fail;
6122 temp2 = True;
6123 }
6124 }
6125 {
6126 PyThreadState* __tstate = wxPyBeginAllowThreads();
6127 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
6128
6129 wxPyEndAllowThreads(__tstate);
6130 if (PyErr_Occurred()) SWIG_fail;
6131 }
6132 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
6133 {
6134 if (temp1)
6135 delete arg1;
6136 }
6137 {
6138 if (temp2)
6139 delete arg2;
6140 }
6141 return resultobj;
6142 fail:
6143 {
6144 if (temp1)
6145 delete arg1;
6146 }
6147 {
6148 if (temp2)
6149 delete arg2;
6150 }
6151 return NULL;
6152 }
6153
6154
6155 static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
6156 PyObject *resultobj;
6157 wxSingleInstanceChecker *result;
6158 char *kwnames[] = {
6159 NULL
6160 };
6161
6162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
6163 {
6164 PyThreadState* __tstate = wxPyBeginAllowThreads();
6165 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
6166
6167 wxPyEndAllowThreads(__tstate);
6168 if (PyErr_Occurred()) SWIG_fail;
6169 }
6170 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
6171 return resultobj;
6172 fail:
6173 return NULL;
6174 }
6175
6176
6177 static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
6178 PyObject *resultobj;
6179 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6180 PyObject * obj0 = 0 ;
6181 char *kwnames[] = {
6182 (char *) "self", NULL
6183 };
6184
6185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
6186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6188 {
6189 PyThreadState* __tstate = wxPyBeginAllowThreads();
6190 delete arg1;
6191
6192 wxPyEndAllowThreads(__tstate);
6193 if (PyErr_Occurred()) SWIG_fail;
6194 }
6195 Py_INCREF(Py_None); resultobj = Py_None;
6196 return resultobj;
6197 fail:
6198 return NULL;
6199 }
6200
6201
6202 static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6203 PyObject *resultobj;
6204 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6205 wxString *arg2 = 0 ;
6206 wxString const &arg3_defvalue = wxPyEmptyString ;
6207 wxString *arg3 = (wxString *) &arg3_defvalue ;
6208 bool result;
6209 bool temp2 = False ;
6210 bool temp3 = False ;
6211 PyObject * obj0 = 0 ;
6212 PyObject * obj1 = 0 ;
6213 PyObject * obj2 = 0 ;
6214 char *kwnames[] = {
6215 (char *) "self",(char *) "name",(char *) "path", NULL
6216 };
6217
6218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
6219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6221 {
6222 arg2 = wxString_in_helper(obj1);
6223 if (arg2 == NULL) SWIG_fail;
6224 temp2 = True;
6225 }
6226 if (obj2) {
6227 {
6228 arg3 = wxString_in_helper(obj2);
6229 if (arg3 == NULL) SWIG_fail;
6230 temp3 = True;
6231 }
6232 }
6233 {
6234 PyThreadState* __tstate = wxPyBeginAllowThreads();
6235 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
6236
6237 wxPyEndAllowThreads(__tstate);
6238 if (PyErr_Occurred()) SWIG_fail;
6239 }
6240 {
6241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6242 }
6243 {
6244 if (temp2)
6245 delete arg2;
6246 }
6247 {
6248 if (temp3)
6249 delete arg3;
6250 }
6251 return resultobj;
6252 fail:
6253 {
6254 if (temp2)
6255 delete arg2;
6256 }
6257 {
6258 if (temp3)
6259 delete arg3;
6260 }
6261 return NULL;
6262 }
6263
6264
6265 static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6266 PyObject *resultobj;
6267 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6268 bool result;
6269 PyObject * obj0 = 0 ;
6270 char *kwnames[] = {
6271 (char *) "self", NULL
6272 };
6273
6274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
6275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6277 {
6278 PyThreadState* __tstate = wxPyBeginAllowThreads();
6279 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
6280
6281 wxPyEndAllowThreads(__tstate);
6282 if (PyErr_Occurred()) SWIG_fail;
6283 }
6284 {
6285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6286 }
6287 return resultobj;
6288 fail:
6289 return NULL;
6290 }
6291
6292
6293 static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) {
6294 PyObject *obj;
6295 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6296 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
6297 Py_INCREF(obj);
6298 return Py_BuildValue((char *)"");
6299 }
6300 static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) {
6301 PyObject *resultobj;
6302 wxWindow *arg1 = (wxWindow *) 0 ;
6303 wxDC *arg2 = 0 ;
6304 int arg3 ;
6305 PyObject * obj0 = 0 ;
6306 PyObject * obj1 = 0 ;
6307 PyObject * obj2 = 0 ;
6308 char *kwnames[] = {
6309 (char *) "window",(char *) "dc",(char *) "method", NULL
6310 };
6311
6312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
6313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6315 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
6316 SWIG_POINTER_EXCEPTION | 0)) == -1)
6317 SWIG_fail;
6318 if (arg2 == NULL) {
6319 PyErr_SetString(PyExc_TypeError,"null reference");
6320 SWIG_fail;
6321 }
6322 arg3 = (int) SWIG_AsInt(obj2);
6323 if (PyErr_Occurred()) SWIG_fail;
6324 {
6325 PyThreadState* __tstate = wxPyBeginAllowThreads();
6326 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
6327
6328 wxPyEndAllowThreads(__tstate);
6329 if (PyErr_Occurred()) SWIG_fail;
6330 }
6331 Py_INCREF(Py_None); resultobj = Py_None;
6332 return resultobj;
6333 fail:
6334 return NULL;
6335 }
6336
6337
6338 static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6339 PyObject *resultobj;
6340 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6341 PyObject * obj0 = 0 ;
6342 char *kwnames[] = {
6343 (char *) "self", NULL
6344 };
6345
6346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
6347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6349 {
6350 PyThreadState* __tstate = wxPyBeginAllowThreads();
6351 delete arg1;
6352
6353 wxPyEndAllowThreads(__tstate);
6354 if (PyErr_Occurred()) SWIG_fail;
6355 }
6356 Py_INCREF(Py_None); resultobj = Py_None;
6357 return resultobj;
6358 fail:
6359 return NULL;
6360 }
6361
6362
6363 static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6364 PyObject *resultobj;
6365 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6366 wxString result;
6367 PyObject * obj0 = 0 ;
6368 char *kwnames[] = {
6369 (char *) "self", NULL
6370 };
6371
6372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
6373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6375 {
6376 PyThreadState* __tstate = wxPyBeginAllowThreads();
6377 result = (arg1)->GetTip();
6378
6379 wxPyEndAllowThreads(__tstate);
6380 if (PyErr_Occurred()) SWIG_fail;
6381 }
6382 {
6383 #if wxUSE_UNICODE
6384 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6385 #else
6386 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6387 #endif
6388 }
6389 return resultobj;
6390 fail:
6391 return NULL;
6392 }
6393
6394
6395 static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6396 PyObject *resultobj;
6397 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6398 size_t result;
6399 PyObject * obj0 = 0 ;
6400 char *kwnames[] = {
6401 (char *) "self", NULL
6402 };
6403
6404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
6405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6407 {
6408 PyThreadState* __tstate = wxPyBeginAllowThreads();
6409 result = (size_t)(arg1)->GetCurrentTip();
6410
6411 wxPyEndAllowThreads(__tstate);
6412 if (PyErr_Occurred()) SWIG_fail;
6413 }
6414 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
6415 return resultobj;
6416 fail:
6417 return NULL;
6418 }
6419
6420
6421 static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6422 PyObject *resultobj;
6423 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6424 wxString *arg2 = 0 ;
6425 wxString result;
6426 bool temp2 = False ;
6427 PyObject * obj0 = 0 ;
6428 PyObject * obj1 = 0 ;
6429 char *kwnames[] = {
6430 (char *) "self",(char *) "tip", NULL
6431 };
6432
6433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
6434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6436 {
6437 arg2 = wxString_in_helper(obj1);
6438 if (arg2 == NULL) SWIG_fail;
6439 temp2 = True;
6440 }
6441 {
6442 PyThreadState* __tstate = wxPyBeginAllowThreads();
6443 result = (arg1)->PreprocessTip((wxString const &)*arg2);
6444
6445 wxPyEndAllowThreads(__tstate);
6446 if (PyErr_Occurred()) SWIG_fail;
6447 }
6448 {
6449 #if wxUSE_UNICODE
6450 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6451 #else
6452 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6453 #endif
6454 }
6455 {
6456 if (temp2)
6457 delete arg2;
6458 }
6459 return resultobj;
6460 fail:
6461 {
6462 if (temp2)
6463 delete arg2;
6464 }
6465 return NULL;
6466 }
6467
6468
6469 static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) {
6470 PyObject *obj;
6471 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6472 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
6473 Py_INCREF(obj);
6474 return Py_BuildValue((char *)"");
6475 }
6476 static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6477 PyObject *resultobj;
6478 size_t arg1 ;
6479 wxPyTipProvider *result;
6480 PyObject * obj0 = 0 ;
6481 char *kwnames[] = {
6482 (char *) "currentTip", NULL
6483 };
6484
6485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
6486 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
6487 if (PyErr_Occurred()) SWIG_fail;
6488 {
6489 PyThreadState* __tstate = wxPyBeginAllowThreads();
6490 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
6491
6492 wxPyEndAllowThreads(__tstate);
6493 if (PyErr_Occurred()) SWIG_fail;
6494 }
6495 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
6496 return resultobj;
6497 fail:
6498 return NULL;
6499 }
6500
6501
6502 static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6503 PyObject *resultobj;
6504 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
6505 PyObject *arg2 = (PyObject *) 0 ;
6506 PyObject *arg3 = (PyObject *) 0 ;
6507 PyObject * obj0 = 0 ;
6508 PyObject * obj1 = 0 ;
6509 PyObject * obj2 = 0 ;
6510 char *kwnames[] = {
6511 (char *) "self",(char *) "self",(char *) "_class", NULL
6512 };
6513
6514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider,
6516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6517 arg2 = obj1;
6518 arg3 = obj2;
6519 {
6520 PyThreadState* __tstate = wxPyBeginAllowThreads();
6521 (arg1)->_setCallbackInfo(arg2,arg3);
6522
6523 wxPyEndAllowThreads(__tstate);
6524 if (PyErr_Occurred()) SWIG_fail;
6525 }
6526 Py_INCREF(Py_None); resultobj = Py_None;
6527 return resultobj;
6528 fail:
6529 return NULL;
6530 }
6531
6532
6533 static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) {
6534 PyObject *obj;
6535 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6536 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
6537 Py_INCREF(obj);
6538 return Py_BuildValue((char *)"");
6539 }
6540 static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6541 PyObject *resultobj;
6542 wxWindow *arg1 = (wxWindow *) 0 ;
6543 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
6544 bool arg3 = (bool) True ;
6545 bool result;
6546 PyObject * obj0 = 0 ;
6547 PyObject * obj1 = 0 ;
6548 PyObject * obj2 = 0 ;
6549 char *kwnames[] = {
6550 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
6551 };
6552
6553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
6554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6556 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider,
6557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6558 if (obj2) {
6559 arg3 = (bool) SWIG_AsBool(obj2);
6560 if (PyErr_Occurred()) SWIG_fail;
6561 }
6562 {
6563 if (!wxPyCheckForApp()) SWIG_fail;
6564 PyThreadState* __tstate = wxPyBeginAllowThreads();
6565 result = (bool)wxShowTip(arg1,arg2,arg3);
6566
6567 wxPyEndAllowThreads(__tstate);
6568 if (PyErr_Occurred()) SWIG_fail;
6569 }
6570 {
6571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6572 }
6573 return resultobj;
6574 fail:
6575 return NULL;
6576 }
6577
6578
6579 static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6580 PyObject *resultobj;
6581 wxString *arg1 = 0 ;
6582 size_t arg2 ;
6583 wxTipProvider *result;
6584 bool temp1 = False ;
6585 PyObject * obj0 = 0 ;
6586 PyObject * obj1 = 0 ;
6587 char *kwnames[] = {
6588 (char *) "filename",(char *) "currentTip", NULL
6589 };
6590
6591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
6592 {
6593 arg1 = wxString_in_helper(obj0);
6594 if (arg1 == NULL) SWIG_fail;
6595 temp1 = True;
6596 }
6597 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6598 if (PyErr_Occurred()) SWIG_fail;
6599 {
6600 if (!wxPyCheckForApp()) SWIG_fail;
6601 PyThreadState* __tstate = wxPyBeginAllowThreads();
6602 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
6603
6604 wxPyEndAllowThreads(__tstate);
6605 if (PyErr_Occurred()) SWIG_fail;
6606 }
6607 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
6608 {
6609 if (temp1)
6610 delete arg1;
6611 }
6612 return resultobj;
6613 fail:
6614 {
6615 if (temp1)
6616 delete arg1;
6617 }
6618 return NULL;
6619 }
6620
6621
6622 static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6623 PyObject *resultobj;
6624 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
6625 int arg2 = (int) -1 ;
6626 wxPyTimer *result;
6627 PyObject * obj0 = 0 ;
6628 PyObject * obj1 = 0 ;
6629 char *kwnames[] = {
6630 (char *) "owner",(char *) "id", NULL
6631 };
6632
6633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
6634 if (obj0) {
6635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
6636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6637 }
6638 if (obj1) {
6639 arg2 = (int) SWIG_AsInt(obj1);
6640 if (PyErr_Occurred()) SWIG_fail;
6641 }
6642 {
6643 if (!wxPyCheckForApp()) SWIG_fail;
6644 PyThreadState* __tstate = wxPyBeginAllowThreads();
6645 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
6646
6647 wxPyEndAllowThreads(__tstate);
6648 if (PyErr_Occurred()) SWIG_fail;
6649 }
6650 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
6651 return resultobj;
6652 fail:
6653 return NULL;
6654 }
6655
6656
6657 static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6658 PyObject *resultobj;
6659 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6660 PyObject * obj0 = 0 ;
6661 char *kwnames[] = {
6662 (char *) "self", NULL
6663 };
6664
6665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
6666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6668 {
6669 PyThreadState* __tstate = wxPyBeginAllowThreads();
6670 delete arg1;
6671
6672 wxPyEndAllowThreads(__tstate);
6673 if (PyErr_Occurred()) SWIG_fail;
6674 }
6675 Py_INCREF(Py_None); resultobj = Py_None;
6676 return resultobj;
6677 fail:
6678 return NULL;
6679 }
6680
6681
6682 static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6683 PyObject *resultobj;
6684 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6685 PyObject *arg2 = (PyObject *) 0 ;
6686 PyObject *arg3 = (PyObject *) 0 ;
6687 int arg4 = (int) 1 ;
6688 PyObject * obj0 = 0 ;
6689 PyObject * obj1 = 0 ;
6690 PyObject * obj2 = 0 ;
6691 PyObject * obj3 = 0 ;
6692 char *kwnames[] = {
6693 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
6694 };
6695
6696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6699 arg2 = obj1;
6700 arg3 = obj2;
6701 if (obj3) {
6702 arg4 = (int) SWIG_AsInt(obj3);
6703 if (PyErr_Occurred()) SWIG_fail;
6704 }
6705 {
6706 PyThreadState* __tstate = wxPyBeginAllowThreads();
6707 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
6708
6709 wxPyEndAllowThreads(__tstate);
6710 if (PyErr_Occurred()) SWIG_fail;
6711 }
6712 Py_INCREF(Py_None); resultobj = Py_None;
6713 return resultobj;
6714 fail:
6715 return NULL;
6716 }
6717
6718
6719 static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6720 PyObject *resultobj;
6721 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6722 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
6723 int arg3 = (int) -1 ;
6724 PyObject * obj0 = 0 ;
6725 PyObject * obj1 = 0 ;
6726 PyObject * obj2 = 0 ;
6727 char *kwnames[] = {
6728 (char *) "self",(char *) "owner",(char *) "id", NULL
6729 };
6730
6731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
6732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6734 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
6735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6736 if (obj2) {
6737 arg3 = (int) SWIG_AsInt(obj2);
6738 if (PyErr_Occurred()) SWIG_fail;
6739 }
6740 {
6741 PyThreadState* __tstate = wxPyBeginAllowThreads();
6742 (arg1)->SetOwner(arg2,arg3);
6743
6744 wxPyEndAllowThreads(__tstate);
6745 if (PyErr_Occurred()) SWIG_fail;
6746 }
6747 Py_INCREF(Py_None); resultobj = Py_None;
6748 return resultobj;
6749 fail:
6750 return NULL;
6751 }
6752
6753
6754 static PyObject *_wrap_Timer_GetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6755 PyObject *resultobj;
6756 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6757 wxEvtHandler *result;
6758 PyObject * obj0 = 0 ;
6759 char *kwnames[] = {
6760 (char *) "self", NULL
6761 };
6762
6763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail;
6764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6766 {
6767 PyThreadState* __tstate = wxPyBeginAllowThreads();
6768 result = (wxEvtHandler *)(arg1)->GetOwner();
6769
6770 wxPyEndAllowThreads(__tstate);
6771 if (PyErr_Occurred()) SWIG_fail;
6772 }
6773 {
6774 resultobj = wxPyMake_wxObject(result, 0);
6775 }
6776 return resultobj;
6777 fail:
6778 return NULL;
6779 }
6780
6781
6782 static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6783 PyObject *resultobj;
6784 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6785 int arg2 = (int) -1 ;
6786 bool arg3 = (bool) False ;
6787 bool result;
6788 PyObject * obj0 = 0 ;
6789 PyObject * obj1 = 0 ;
6790 PyObject * obj2 = 0 ;
6791 char *kwnames[] = {
6792 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
6793 };
6794
6795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6798 if (obj1) {
6799 arg2 = (int) SWIG_AsInt(obj1);
6800 if (PyErr_Occurred()) SWIG_fail;
6801 }
6802 if (obj2) {
6803 arg3 = (bool) SWIG_AsBool(obj2);
6804 if (PyErr_Occurred()) SWIG_fail;
6805 }
6806 {
6807 PyThreadState* __tstate = wxPyBeginAllowThreads();
6808 result = (bool)(arg1)->Start(arg2,arg3);
6809
6810 wxPyEndAllowThreads(__tstate);
6811 if (PyErr_Occurred()) SWIG_fail;
6812 }
6813 {
6814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6815 }
6816 return resultobj;
6817 fail:
6818 return NULL;
6819 }
6820
6821
6822 static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
6823 PyObject *resultobj;
6824 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6825 PyObject * obj0 = 0 ;
6826 char *kwnames[] = {
6827 (char *) "self", NULL
6828 };
6829
6830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
6831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6833 {
6834 PyThreadState* __tstate = wxPyBeginAllowThreads();
6835 (arg1)->Stop();
6836
6837 wxPyEndAllowThreads(__tstate);
6838 if (PyErr_Occurred()) SWIG_fail;
6839 }
6840 Py_INCREF(Py_None); resultobj = Py_None;
6841 return resultobj;
6842 fail:
6843 return NULL;
6844 }
6845
6846
6847 static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6848 PyObject *resultobj;
6849 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6850 bool result;
6851 PyObject * obj0 = 0 ;
6852 char *kwnames[] = {
6853 (char *) "self", NULL
6854 };
6855
6856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
6857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6859 {
6860 PyThreadState* __tstate = wxPyBeginAllowThreads();
6861 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
6862
6863 wxPyEndAllowThreads(__tstate);
6864 if (PyErr_Occurred()) SWIG_fail;
6865 }
6866 {
6867 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6868 }
6869 return resultobj;
6870 fail:
6871 return NULL;
6872 }
6873
6874
6875 static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6876 PyObject *resultobj;
6877 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6878 int result;
6879 PyObject * obj0 = 0 ;
6880 char *kwnames[] = {
6881 (char *) "self", NULL
6882 };
6883
6884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
6885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6887 {
6888 PyThreadState* __tstate = wxPyBeginAllowThreads();
6889 result = (int)((wxPyTimer const *)arg1)->GetInterval();
6890
6891 wxPyEndAllowThreads(__tstate);
6892 if (PyErr_Occurred()) SWIG_fail;
6893 }
6894 resultobj = SWIG_FromInt((int)result);
6895 return resultobj;
6896 fail:
6897 return NULL;
6898 }
6899
6900
6901 static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) {
6902 PyObject *resultobj;
6903 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6904 bool result;
6905 PyObject * obj0 = 0 ;
6906 char *kwnames[] = {
6907 (char *) "self", NULL
6908 };
6909
6910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
6911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6913 {
6914 PyThreadState* __tstate = wxPyBeginAllowThreads();
6915 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
6916
6917 wxPyEndAllowThreads(__tstate);
6918 if (PyErr_Occurred()) SWIG_fail;
6919 }
6920 {
6921 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6922 }
6923 return resultobj;
6924 fail:
6925 return NULL;
6926 }
6927
6928
6929 static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6930 PyObject *resultobj;
6931 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6932 int result;
6933 PyObject * obj0 = 0 ;
6934 char *kwnames[] = {
6935 (char *) "self", NULL
6936 };
6937
6938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
6939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6941 {
6942 PyThreadState* __tstate = wxPyBeginAllowThreads();
6943 result = (int)((wxPyTimer const *)arg1)->GetId();
6944
6945 wxPyEndAllowThreads(__tstate);
6946 if (PyErr_Occurred()) SWIG_fail;
6947 }
6948 resultobj = SWIG_FromInt((int)result);
6949 return resultobj;
6950 fail:
6951 return NULL;
6952 }
6953
6954
6955 static PyObject * Timer_swigregister(PyObject *self, PyObject *args) {
6956 PyObject *obj;
6957 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6958 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
6959 Py_INCREF(obj);
6960 return Py_BuildValue((char *)"");
6961 }
6962 static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
6963 PyObject *resultobj;
6964 int arg1 = (int) 0 ;
6965 int arg2 = (int) 0 ;
6966 wxTimerEvent *result;
6967 PyObject * obj0 = 0 ;
6968 PyObject * obj1 = 0 ;
6969 char *kwnames[] = {
6970 (char *) "timerid",(char *) "interval", NULL
6971 };
6972
6973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
6974 if (obj0) {
6975 arg1 = (int) SWIG_AsInt(obj0);
6976 if (PyErr_Occurred()) SWIG_fail;
6977 }
6978 if (obj1) {
6979 arg2 = (int) SWIG_AsInt(obj1);
6980 if (PyErr_Occurred()) SWIG_fail;
6981 }
6982 {
6983 PyThreadState* __tstate = wxPyBeginAllowThreads();
6984 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
6985
6986 wxPyEndAllowThreads(__tstate);
6987 if (PyErr_Occurred()) SWIG_fail;
6988 }
6989 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
6990 return resultobj;
6991 fail:
6992 return NULL;
6993 }
6994
6995
6996 static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6997 PyObject *resultobj;
6998 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
6999 int result;
7000 PyObject * obj0 = 0 ;
7001 char *kwnames[] = {
7002 (char *) "self", NULL
7003 };
7004
7005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
7006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent,
7007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7008 {
7009 PyThreadState* __tstate = wxPyBeginAllowThreads();
7010 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
7011
7012 wxPyEndAllowThreads(__tstate);
7013 if (PyErr_Occurred()) SWIG_fail;
7014 }
7015 resultobj = SWIG_FromInt((int)result);
7016 return resultobj;
7017 fail:
7018 return NULL;
7019 }
7020
7021
7022 static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) {
7023 PyObject *obj;
7024 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7025 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
7026 Py_INCREF(obj);
7027 return Py_BuildValue((char *)"");
7028 }
7029 static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) {
7030 PyObject *resultobj;
7031 wxTimer *arg1 = 0 ;
7032 wxTimerRunner *result;
7033 PyObject * obj0 = 0 ;
7034
7035 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
7036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
7037 SWIG_POINTER_EXCEPTION | 0)) == -1)
7038 SWIG_fail;
7039 if (arg1 == NULL) {
7040 PyErr_SetString(PyExc_TypeError,"null reference");
7041 SWIG_fail;
7042 }
7043 {
7044 if (!wxPyCheckForApp()) SWIG_fail;
7045 PyThreadState* __tstate = wxPyBeginAllowThreads();
7046 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
7047
7048 wxPyEndAllowThreads(__tstate);
7049 if (PyErr_Occurred()) SWIG_fail;
7050 }
7051 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
7052 return resultobj;
7053 fail:
7054 return NULL;
7055 }
7056
7057
7058 static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) {
7059 PyObject *resultobj;
7060 wxTimer *arg1 = 0 ;
7061 int arg2 ;
7062 bool arg3 = (bool) False ;
7063 wxTimerRunner *result;
7064 PyObject * obj0 = 0 ;
7065 PyObject * obj1 = 0 ;
7066 PyObject * obj2 = 0 ;
7067
7068 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
7069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
7070 SWIG_POINTER_EXCEPTION | 0)) == -1)
7071 SWIG_fail;
7072 if (arg1 == NULL) {
7073 PyErr_SetString(PyExc_TypeError,"null reference");
7074 SWIG_fail;
7075 }
7076 arg2 = (int) SWIG_AsInt(obj1);
7077 if (PyErr_Occurred()) SWIG_fail;
7078 if (obj2) {
7079 arg3 = (bool) SWIG_AsBool(obj2);
7080 if (PyErr_Occurred()) SWIG_fail;
7081 }
7082 {
7083 if (!wxPyCheckForApp()) SWIG_fail;
7084 PyThreadState* __tstate = wxPyBeginAllowThreads();
7085 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
7086
7087 wxPyEndAllowThreads(__tstate);
7088 if (PyErr_Occurred()) SWIG_fail;
7089 }
7090 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
7091 return resultobj;
7092 fail:
7093 return NULL;
7094 }
7095
7096
7097 static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
7098 int argc;
7099 PyObject *argv[4];
7100 int ii;
7101
7102 argc = PyObject_Length(args);
7103 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
7104 argv[ii] = PyTuple_GetItem(args,ii);
7105 }
7106 if (argc == 1) {
7107 int _v;
7108 {
7109 void *ptr;
7110 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
7111 _v = 0;
7112 PyErr_Clear();
7113 } else {
7114 _v = 1;
7115 }
7116 }
7117 if (_v) {
7118 return _wrap_new_TimerRunner__SWIG_0(self,args);
7119 }
7120 }
7121 if ((argc >= 2) && (argc <= 3)) {
7122 int _v;
7123 {
7124 void *ptr;
7125 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
7126 _v = 0;
7127 PyErr_Clear();
7128 } else {
7129 _v = 1;
7130 }
7131 }
7132 if (_v) {
7133 _v = SWIG_CheckInt(argv[1]);
7134 if (_v) {
7135 if (argc <= 2) {
7136 return _wrap_new_TimerRunner__SWIG_1(self,args);
7137 }
7138 _v = SWIG_CheckBool(argv[2]);
7139 if (_v) {
7140 return _wrap_new_TimerRunner__SWIG_1(self,args);
7141 }
7142 }
7143 }
7144 }
7145
7146 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
7147 return NULL;
7148 }
7149
7150
7151 static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) {
7152 PyObject *resultobj;
7153 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
7154 PyObject * obj0 = 0 ;
7155 char *kwnames[] = {
7156 (char *) "self", NULL
7157 };
7158
7159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
7160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
7161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7162 {
7163 PyThreadState* __tstate = wxPyBeginAllowThreads();
7164 delete arg1;
7165
7166 wxPyEndAllowThreads(__tstate);
7167 if (PyErr_Occurred()) SWIG_fail;
7168 }
7169 Py_INCREF(Py_None); resultobj = Py_None;
7170 return resultobj;
7171 fail:
7172 return NULL;
7173 }
7174
7175
7176 static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
7177 PyObject *resultobj;
7178 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
7179 int arg2 ;
7180 bool arg3 = (bool) False ;
7181 PyObject * obj0 = 0 ;
7182 PyObject * obj1 = 0 ;
7183 PyObject * obj2 = 0 ;
7184 char *kwnames[] = {
7185 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
7186 };
7187
7188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
7189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
7190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7191 arg2 = (int) SWIG_AsInt(obj1);
7192 if (PyErr_Occurred()) SWIG_fail;
7193 if (obj2) {
7194 arg3 = (bool) SWIG_AsBool(obj2);
7195 if (PyErr_Occurred()) SWIG_fail;
7196 }
7197 {
7198 PyThreadState* __tstate = wxPyBeginAllowThreads();
7199 (arg1)->Start(arg2,arg3);
7200
7201 wxPyEndAllowThreads(__tstate);
7202 if (PyErr_Occurred()) SWIG_fail;
7203 }
7204 Py_INCREF(Py_None); resultobj = Py_None;
7205 return resultobj;
7206 fail:
7207 return NULL;
7208 }
7209
7210
7211 static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) {
7212 PyObject *obj;
7213 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7214 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
7215 Py_INCREF(obj);
7216 return Py_BuildValue((char *)"");
7217 }
7218 static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) {
7219 PyObject *resultobj;
7220 wxLog *result;
7221 char *kwnames[] = {
7222 NULL
7223 };
7224
7225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
7226 {
7227 PyThreadState* __tstate = wxPyBeginAllowThreads();
7228 result = (wxLog *)new wxLog();
7229
7230 wxPyEndAllowThreads(__tstate);
7231 if (PyErr_Occurred()) SWIG_fail;
7232 }
7233 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
7234 return resultobj;
7235 fail:
7236 return NULL;
7237 }
7238
7239
7240 static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
7241 PyObject *resultobj;
7242 bool result;
7243 char *kwnames[] = {
7244 NULL
7245 };
7246
7247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
7248 {
7249 PyThreadState* __tstate = wxPyBeginAllowThreads();
7250 result = (bool)wxLog::IsEnabled();
7251
7252 wxPyEndAllowThreads(__tstate);
7253 if (PyErr_Occurred()) SWIG_fail;
7254 }
7255 {
7256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7257 }
7258 return resultobj;
7259 fail:
7260 return NULL;
7261 }
7262
7263
7264 static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) {
7265 PyObject *resultobj;
7266 bool arg1 = (bool) True ;
7267 bool result;
7268 PyObject * obj0 = 0 ;
7269 char *kwnames[] = {
7270 (char *) "doIt", NULL
7271 };
7272
7273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
7274 if (obj0) {
7275 arg1 = (bool) SWIG_AsBool(obj0);
7276 if (PyErr_Occurred()) SWIG_fail;
7277 }
7278 {
7279 PyThreadState* __tstate = wxPyBeginAllowThreads();
7280 result = (bool)wxLog::EnableLogging(arg1);
7281
7282 wxPyEndAllowThreads(__tstate);
7283 if (PyErr_Occurred()) SWIG_fail;
7284 }
7285 {
7286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7287 }
7288 return resultobj;
7289 fail:
7290 return NULL;
7291 }
7292
7293
7294 static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7295 PyObject *resultobj;
7296 wxLogLevel arg1 ;
7297 wxChar *arg2 = (wxChar *) 0 ;
7298 time_t arg3 ;
7299 PyObject * obj0 = 0 ;
7300 PyObject * obj1 = 0 ;
7301 PyObject * obj2 = 0 ;
7302 char *kwnames[] = {
7303 (char *) "level",(char *) "szString",(char *) "t", NULL
7304 };
7305
7306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
7307 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7308 if (PyErr_Occurred()) SWIG_fail;
7309 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar,
7310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7311 arg3 = (time_t) SWIG_AsUnsignedInt(obj2);
7312 if (PyErr_Occurred()) SWIG_fail;
7313 {
7314 PyThreadState* __tstate = wxPyBeginAllowThreads();
7315 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
7316
7317 wxPyEndAllowThreads(__tstate);
7318 if (PyErr_Occurred()) SWIG_fail;
7319 }
7320 Py_INCREF(Py_None); resultobj = Py_None;
7321 return resultobj;
7322 fail:
7323 return NULL;
7324 }
7325
7326
7327 static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
7328 PyObject *resultobj;
7329 wxLog *arg1 = (wxLog *) 0 ;
7330 PyObject * obj0 = 0 ;
7331 char *kwnames[] = {
7332 (char *) "self", NULL
7333 };
7334
7335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
7336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7338 {
7339 PyThreadState* __tstate = wxPyBeginAllowThreads();
7340 (arg1)->Flush();
7341
7342 wxPyEndAllowThreads(__tstate);
7343 if (PyErr_Occurred()) SWIG_fail;
7344 }
7345 Py_INCREF(Py_None); resultobj = Py_None;
7346 return resultobj;
7347 fail:
7348 return NULL;
7349 }
7350
7351
7352 static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) {
7353 PyObject *resultobj;
7354 char *kwnames[] = {
7355 NULL
7356 };
7357
7358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
7359 {
7360 PyThreadState* __tstate = wxPyBeginAllowThreads();
7361 wxLog::FlushActive();
7362
7363 wxPyEndAllowThreads(__tstate);
7364 if (PyErr_Occurred()) SWIG_fail;
7365 }
7366 Py_INCREF(Py_None); resultobj = Py_None;
7367 return resultobj;
7368 fail:
7369 return NULL;
7370 }
7371
7372
7373 static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
7374 PyObject *resultobj;
7375 wxLog *result;
7376 char *kwnames[] = {
7377 NULL
7378 };
7379
7380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
7381 {
7382 PyThreadState* __tstate = wxPyBeginAllowThreads();
7383 result = (wxLog *)wxLog::GetActiveTarget();
7384
7385 wxPyEndAllowThreads(__tstate);
7386 if (PyErr_Occurred()) SWIG_fail;
7387 }
7388 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7389 return resultobj;
7390 fail:
7391 return NULL;
7392 }
7393
7394
7395 static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
7396 PyObject *resultobj;
7397 wxLog *arg1 = (wxLog *) 0 ;
7398 wxLog *result;
7399 PyObject * obj0 = 0 ;
7400 char *kwnames[] = {
7401 (char *) "pLogger", NULL
7402 };
7403
7404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
7405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7407 {
7408 PyThreadState* __tstate = wxPyBeginAllowThreads();
7409 result = (wxLog *)wxLog::SetActiveTarget(arg1);
7410
7411 wxPyEndAllowThreads(__tstate);
7412 if (PyErr_Occurred()) SWIG_fail;
7413 }
7414 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7415 return resultobj;
7416 fail:
7417 return NULL;
7418 }
7419
7420
7421 static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) {
7422 PyObject *resultobj;
7423 char *kwnames[] = {
7424 NULL
7425 };
7426
7427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
7428 {
7429 PyThreadState* __tstate = wxPyBeginAllowThreads();
7430 wxLog::Suspend();
7431
7432 wxPyEndAllowThreads(__tstate);
7433 if (PyErr_Occurred()) SWIG_fail;
7434 }
7435 Py_INCREF(Py_None); resultobj = Py_None;
7436 return resultobj;
7437 fail:
7438 return NULL;
7439 }
7440
7441
7442 static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
7443 PyObject *resultobj;
7444 char *kwnames[] = {
7445 NULL
7446 };
7447
7448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
7449 {
7450 PyThreadState* __tstate = wxPyBeginAllowThreads();
7451 wxLog::Resume();
7452
7453 wxPyEndAllowThreads(__tstate);
7454 if (PyErr_Occurred()) SWIG_fail;
7455 }
7456 Py_INCREF(Py_None); resultobj = Py_None;
7457 return resultobj;
7458 fail:
7459 return NULL;
7460 }
7461
7462
7463 static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7464 PyObject *resultobj;
7465 bool arg1 = (bool) True ;
7466 PyObject * obj0 = 0 ;
7467 char *kwnames[] = {
7468 (char *) "bVerbose", NULL
7469 };
7470
7471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
7472 if (obj0) {
7473 arg1 = (bool) SWIG_AsBool(obj0);
7474 if (PyErr_Occurred()) SWIG_fail;
7475 }
7476 {
7477 PyThreadState* __tstate = wxPyBeginAllowThreads();
7478 wxLog::SetVerbose(arg1);
7479
7480 wxPyEndAllowThreads(__tstate);
7481 if (PyErr_Occurred()) SWIG_fail;
7482 }
7483 Py_INCREF(Py_None); resultobj = Py_None;
7484 return resultobj;
7485 fail:
7486 return NULL;
7487 }
7488
7489
7490 static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7491 PyObject *resultobj;
7492 wxLogLevel arg1 ;
7493 PyObject * obj0 = 0 ;
7494 char *kwnames[] = {
7495 (char *) "logLevel", NULL
7496 };
7497
7498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
7499 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7500 if (PyErr_Occurred()) SWIG_fail;
7501 {
7502 PyThreadState* __tstate = wxPyBeginAllowThreads();
7503 wxLog::SetLogLevel(arg1);
7504
7505 wxPyEndAllowThreads(__tstate);
7506 if (PyErr_Occurred()) SWIG_fail;
7507 }
7508 Py_INCREF(Py_None); resultobj = Py_None;
7509 return resultobj;
7510 fail:
7511 return NULL;
7512 }
7513
7514
7515 static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
7516 PyObject *resultobj;
7517 char *kwnames[] = {
7518 NULL
7519 };
7520
7521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
7522 {
7523 PyThreadState* __tstate = wxPyBeginAllowThreads();
7524 wxLog::DontCreateOnDemand();
7525
7526 wxPyEndAllowThreads(__tstate);
7527 if (PyErr_Occurred()) SWIG_fail;
7528 }
7529 Py_INCREF(Py_None); resultobj = Py_None;
7530 return resultobj;
7531 fail:
7532 return NULL;
7533 }
7534
7535
7536 static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7537 PyObject *resultobj;
7538 wxTraceMask arg1 ;
7539 PyObject * obj0 = 0 ;
7540 char *kwnames[] = {
7541 (char *) "ulMask", NULL
7542 };
7543
7544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
7545 arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0);
7546 if (PyErr_Occurred()) SWIG_fail;
7547 {
7548 PyThreadState* __tstate = wxPyBeginAllowThreads();
7549 wxLog::SetTraceMask(arg1);
7550
7551 wxPyEndAllowThreads(__tstate);
7552 if (PyErr_Occurred()) SWIG_fail;
7553 }
7554 Py_INCREF(Py_None); resultobj = Py_None;
7555 return resultobj;
7556 fail:
7557 return NULL;
7558 }
7559
7560
7561 static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7562 PyObject *resultobj;
7563 wxString *arg1 = 0 ;
7564 bool temp1 = False ;
7565 PyObject * obj0 = 0 ;
7566 char *kwnames[] = {
7567 (char *) "str", NULL
7568 };
7569
7570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
7571 {
7572 arg1 = wxString_in_helper(obj0);
7573 if (arg1 == NULL) SWIG_fail;
7574 temp1 = True;
7575 }
7576 {
7577 PyThreadState* __tstate = wxPyBeginAllowThreads();
7578 wxLog::AddTraceMask((wxString const &)*arg1);
7579
7580 wxPyEndAllowThreads(__tstate);
7581 if (PyErr_Occurred()) SWIG_fail;
7582 }
7583 Py_INCREF(Py_None); resultobj = Py_None;
7584 {
7585 if (temp1)
7586 delete arg1;
7587 }
7588 return resultobj;
7589 fail:
7590 {
7591 if (temp1)
7592 delete arg1;
7593 }
7594 return NULL;
7595 }
7596
7597
7598 static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7599 PyObject *resultobj;
7600 wxString *arg1 = 0 ;
7601 bool temp1 = False ;
7602 PyObject * obj0 = 0 ;
7603 char *kwnames[] = {
7604 (char *) "str", NULL
7605 };
7606
7607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
7608 {
7609 arg1 = wxString_in_helper(obj0);
7610 if (arg1 == NULL) SWIG_fail;
7611 temp1 = True;
7612 }
7613 {
7614 PyThreadState* __tstate = wxPyBeginAllowThreads();
7615 wxLog::RemoveTraceMask((wxString const &)*arg1);
7616
7617 wxPyEndAllowThreads(__tstate);
7618 if (PyErr_Occurred()) SWIG_fail;
7619 }
7620 Py_INCREF(Py_None); resultobj = Py_None;
7621 {
7622 if (temp1)
7623 delete arg1;
7624 }
7625 return resultobj;
7626 fail:
7627 {
7628 if (temp1)
7629 delete arg1;
7630 }
7631 return NULL;
7632 }
7633
7634
7635 static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7636 PyObject *resultobj;
7637 char *kwnames[] = {
7638 NULL
7639 };
7640
7641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
7642 {
7643 PyThreadState* __tstate = wxPyBeginAllowThreads();
7644 wxLog::ClearTraceMasks();
7645
7646 wxPyEndAllowThreads(__tstate);
7647 if (PyErr_Occurred()) SWIG_fail;
7648 }
7649 Py_INCREF(Py_None); resultobj = Py_None;
7650 return resultobj;
7651 fail:
7652 return NULL;
7653 }
7654
7655
7656 static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7657 PyObject *resultobj;
7658 wxArrayString *result;
7659 char *kwnames[] = {
7660 NULL
7661 };
7662
7663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
7664 {
7665 PyThreadState* __tstate = wxPyBeginAllowThreads();
7666 {
7667 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
7668 result = (wxArrayString *) &_result_ref;
7669 }
7670
7671 wxPyEndAllowThreads(__tstate);
7672 if (PyErr_Occurred()) SWIG_fail;
7673 }
7674 {
7675 resultobj = wxArrayString2PyList_helper(*result);
7676 }
7677 return resultobj;
7678 fail:
7679 return NULL;
7680 }
7681
7682
7683 static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7684 PyObject *resultobj;
7685 wxChar *arg1 = (wxChar *) 0 ;
7686 PyObject * obj0 = 0 ;
7687 char *kwnames[] = {
7688 (char *) "ts", NULL
7689 };
7690
7691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
7692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7694 {
7695 PyThreadState* __tstate = wxPyBeginAllowThreads();
7696 wxLog::SetTimestamp((wxChar const *)arg1);
7697
7698 wxPyEndAllowThreads(__tstate);
7699 if (PyErr_Occurred()) SWIG_fail;
7700 }
7701 Py_INCREF(Py_None); resultobj = Py_None;
7702 return resultobj;
7703 fail:
7704 return NULL;
7705 }
7706
7707
7708 static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7709 PyObject *resultobj;
7710 bool result;
7711 char *kwnames[] = {
7712 NULL
7713 };
7714
7715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
7716 {
7717 PyThreadState* __tstate = wxPyBeginAllowThreads();
7718 result = (bool)wxLog::GetVerbose();
7719
7720 wxPyEndAllowThreads(__tstate);
7721 if (PyErr_Occurred()) SWIG_fail;
7722 }
7723 {
7724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7725 }
7726 return resultobj;
7727 fail:
7728 return NULL;
7729 }
7730
7731
7732 static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7733 PyObject *resultobj;
7734 wxTraceMask result;
7735 char *kwnames[] = {
7736 NULL
7737 };
7738
7739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
7740 {
7741 PyThreadState* __tstate = wxPyBeginAllowThreads();
7742 result = (wxTraceMask)wxLog::GetTraceMask();
7743
7744 wxPyEndAllowThreads(__tstate);
7745 if (PyErr_Occurred()) SWIG_fail;
7746 }
7747 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7748 return resultobj;
7749 fail:
7750 return NULL;
7751 }
7752
7753
7754 static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7755 PyObject *resultobj;
7756 wxChar *arg1 = (wxChar *) 0 ;
7757 bool result;
7758 PyObject * obj0 = 0 ;
7759 char *kwnames[] = {
7760 (char *) "mask", NULL
7761 };
7762
7763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
7764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7766 {
7767 PyThreadState* __tstate = wxPyBeginAllowThreads();
7768 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
7769
7770 wxPyEndAllowThreads(__tstate);
7771 if (PyErr_Occurred()) SWIG_fail;
7772 }
7773 {
7774 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7775 }
7776 return resultobj;
7777 fail:
7778 return NULL;
7779 }
7780
7781
7782 static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7783 PyObject *resultobj;
7784 wxLogLevel result;
7785 char *kwnames[] = {
7786 NULL
7787 };
7788
7789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
7790 {
7791 PyThreadState* __tstate = wxPyBeginAllowThreads();
7792 result = (wxLogLevel)wxLog::GetLogLevel();
7793
7794 wxPyEndAllowThreads(__tstate);
7795 if (PyErr_Occurred()) SWIG_fail;
7796 }
7797 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7798 return resultobj;
7799 fail:
7800 return NULL;
7801 }
7802
7803
7804 static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7805 PyObject *resultobj;
7806 wxChar *result;
7807 char *kwnames[] = {
7808 NULL
7809 };
7810
7811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
7812 {
7813 PyThreadState* __tstate = wxPyBeginAllowThreads();
7814 result = (wxChar *)wxLog::GetTimestamp();
7815
7816 wxPyEndAllowThreads(__tstate);
7817 if (PyErr_Occurred()) SWIG_fail;
7818 }
7819 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
7820 return resultobj;
7821 fail:
7822 return NULL;
7823 }
7824
7825
7826 static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7827 PyObject *resultobj;
7828 wxString result;
7829 char *kwnames[] = {
7830 NULL
7831 };
7832
7833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
7834 {
7835 PyThreadState* __tstate = wxPyBeginAllowThreads();
7836 result = Log_TimeStamp();
7837
7838 wxPyEndAllowThreads(__tstate);
7839 if (PyErr_Occurred()) SWIG_fail;
7840 }
7841 {
7842 #if wxUSE_UNICODE
7843 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7844 #else
7845 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7846 #endif
7847 }
7848 return resultobj;
7849 fail:
7850 return NULL;
7851 }
7852
7853
7854 static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
7855 PyObject *resultobj;
7856 wxLog *arg1 = (wxLog *) 0 ;
7857 PyObject * obj0 = 0 ;
7858 char *kwnames[] = {
7859 (char *) "self", NULL
7860 };
7861
7862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
7863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7865 {
7866 PyThreadState* __tstate = wxPyBeginAllowThreads();
7867 wxLog_Destroy(arg1);
7868
7869 wxPyEndAllowThreads(__tstate);
7870 if (PyErr_Occurred()) SWIG_fail;
7871 }
7872 Py_INCREF(Py_None); resultobj = Py_None;
7873 return resultobj;
7874 fail:
7875 return NULL;
7876 }
7877
7878
7879 static PyObject * Log_swigregister(PyObject *self, PyObject *args) {
7880 PyObject *obj;
7881 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7882 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
7883 Py_INCREF(obj);
7884 return Py_BuildValue((char *)"");
7885 }
7886 static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) {
7887 PyObject *resultobj;
7888 wxLogStderr *result;
7889 char *kwnames[] = {
7890 NULL
7891 };
7892
7893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
7894 {
7895 PyThreadState* __tstate = wxPyBeginAllowThreads();
7896 result = (wxLogStderr *)new wxLogStderr();
7897
7898 wxPyEndAllowThreads(__tstate);
7899 if (PyErr_Occurred()) SWIG_fail;
7900 }
7901 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
7902 return resultobj;
7903 fail:
7904 return NULL;
7905 }
7906
7907
7908 static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) {
7909 PyObject *obj;
7910 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7911 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
7912 Py_INCREF(obj);
7913 return Py_BuildValue((char *)"");
7914 }
7915 static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7916 PyObject *resultobj;
7917 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7918 wxLogTextCtrl *result;
7919 PyObject * obj0 = 0 ;
7920 char *kwnames[] = {
7921 (char *) "pTextCtrl", NULL
7922 };
7923
7924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
7925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7927 {
7928 PyThreadState* __tstate = wxPyBeginAllowThreads();
7929 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
7930
7931 wxPyEndAllowThreads(__tstate);
7932 if (PyErr_Occurred()) SWIG_fail;
7933 }
7934 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
7935 return resultobj;
7936 fail:
7937 return NULL;
7938 }
7939
7940
7941 static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) {
7942 PyObject *obj;
7943 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7944 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
7945 Py_INCREF(obj);
7946 return Py_BuildValue((char *)"");
7947 }
7948 static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) {
7949 PyObject *resultobj;
7950 wxLogGui *result;
7951 char *kwnames[] = {
7952 NULL
7953 };
7954
7955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
7956 {
7957 PyThreadState* __tstate = wxPyBeginAllowThreads();
7958 result = (wxLogGui *)new wxLogGui();
7959
7960 wxPyEndAllowThreads(__tstate);
7961 if (PyErr_Occurred()) SWIG_fail;
7962 }
7963 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
7964 return resultobj;
7965 fail:
7966 return NULL;
7967 }
7968
7969
7970 static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) {
7971 PyObject *obj;
7972 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7973 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
7974 Py_INCREF(obj);
7975 return Py_BuildValue((char *)"");
7976 }
7977 static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
7978 PyObject *resultobj;
7979 wxFrame *arg1 = (wxFrame *) 0 ;
7980 wxString *arg2 = 0 ;
7981 bool arg3 = (bool) True ;
7982 bool arg4 = (bool) True ;
7983 wxLogWindow *result;
7984 bool temp2 = False ;
7985 PyObject * obj0 = 0 ;
7986 PyObject * obj1 = 0 ;
7987 PyObject * obj2 = 0 ;
7988 PyObject * obj3 = 0 ;
7989 char *kwnames[] = {
7990 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
7991 };
7992
7993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
7995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7996 {
7997 arg2 = wxString_in_helper(obj1);
7998 if (arg2 == NULL) SWIG_fail;
7999 temp2 = True;
8000 }
8001 if (obj2) {
8002 arg3 = (bool) SWIG_AsBool(obj2);
8003 if (PyErr_Occurred()) SWIG_fail;
8004 }
8005 if (obj3) {
8006 arg4 = (bool) SWIG_AsBool(obj3);
8007 if (PyErr_Occurred()) SWIG_fail;
8008 }
8009 {
8010 PyThreadState* __tstate = wxPyBeginAllowThreads();
8011 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
8012
8013 wxPyEndAllowThreads(__tstate);
8014 if (PyErr_Occurred()) SWIG_fail;
8015 }
8016 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
8017 {
8018 if (temp2)
8019 delete arg2;
8020 }
8021 return resultobj;
8022 fail:
8023 {
8024 if (temp2)
8025 delete arg2;
8026 }
8027 return NULL;
8028 }
8029
8030
8031 static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
8032 PyObject *resultobj;
8033 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8034 bool arg2 = (bool) True ;
8035 PyObject * obj0 = 0 ;
8036 PyObject * obj1 = 0 ;
8037 char *kwnames[] = {
8038 (char *) "self",(char *) "bShow", NULL
8039 };
8040
8041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
8042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8044 if (obj1) {
8045 arg2 = (bool) SWIG_AsBool(obj1);
8046 if (PyErr_Occurred()) SWIG_fail;
8047 }
8048 {
8049 PyThreadState* __tstate = wxPyBeginAllowThreads();
8050 (arg1)->Show(arg2);
8051
8052 wxPyEndAllowThreads(__tstate);
8053 if (PyErr_Occurred()) SWIG_fail;
8054 }
8055 Py_INCREF(Py_None); resultobj = Py_None;
8056 return resultobj;
8057 fail:
8058 return NULL;
8059 }
8060
8061
8062 static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
8063 PyObject *resultobj;
8064 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8065 wxFrame *result;
8066 PyObject * obj0 = 0 ;
8067 char *kwnames[] = {
8068 (char *) "self", NULL
8069 };
8070
8071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
8072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8074 {
8075 PyThreadState* __tstate = wxPyBeginAllowThreads();
8076 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
8077
8078 wxPyEndAllowThreads(__tstate);
8079 if (PyErr_Occurred()) SWIG_fail;
8080 }
8081 {
8082 resultobj = wxPyMake_wxObject(result, 0);
8083 }
8084 return resultobj;
8085 fail:
8086 return NULL;
8087 }
8088
8089
8090 static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8091 PyObject *resultobj;
8092 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8093 wxLog *result;
8094 PyObject * obj0 = 0 ;
8095 char *kwnames[] = {
8096 (char *) "self", NULL
8097 };
8098
8099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
8100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8102 {
8103 PyThreadState* __tstate = wxPyBeginAllowThreads();
8104 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
8105
8106 wxPyEndAllowThreads(__tstate);
8107 if (PyErr_Occurred()) SWIG_fail;
8108 }
8109 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8110 return resultobj;
8111 fail:
8112 return NULL;
8113 }
8114
8115
8116 static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8117 PyObject *resultobj;
8118 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8119 bool result;
8120 PyObject * obj0 = 0 ;
8121 char *kwnames[] = {
8122 (char *) "self", NULL
8123 };
8124
8125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
8126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8128 {
8129 PyThreadState* __tstate = wxPyBeginAllowThreads();
8130 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
8131
8132 wxPyEndAllowThreads(__tstate);
8133 if (PyErr_Occurred()) SWIG_fail;
8134 }
8135 {
8136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8137 }
8138 return resultobj;
8139 fail:
8140 return NULL;
8141 }
8142
8143
8144 static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8145 PyObject *resultobj;
8146 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8147 bool arg2 ;
8148 PyObject * obj0 = 0 ;
8149 PyObject * obj1 = 0 ;
8150 char *kwnames[] = {
8151 (char *) "self",(char *) "bDoPass", NULL
8152 };
8153
8154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8157 arg2 = (bool) SWIG_AsBool(obj1);
8158 if (PyErr_Occurred()) SWIG_fail;
8159 {
8160 PyThreadState* __tstate = wxPyBeginAllowThreads();
8161 (arg1)->PassMessages(arg2);
8162
8163 wxPyEndAllowThreads(__tstate);
8164 if (PyErr_Occurred()) SWIG_fail;
8165 }
8166 Py_INCREF(Py_None); resultobj = Py_None;
8167 return resultobj;
8168 fail:
8169 return NULL;
8170 }
8171
8172
8173 static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) {
8174 PyObject *obj;
8175 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8176 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
8177 Py_INCREF(obj);
8178 return Py_BuildValue((char *)"");
8179 }
8180 static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) {
8181 PyObject *resultobj;
8182 wxLog *arg1 = (wxLog *) 0 ;
8183 wxLogChain *result;
8184 PyObject * obj0 = 0 ;
8185 char *kwnames[] = {
8186 (char *) "logger", NULL
8187 };
8188
8189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
8190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
8191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8192 {
8193 PyThreadState* __tstate = wxPyBeginAllowThreads();
8194 result = (wxLogChain *)new wxLogChain(arg1);
8195
8196 wxPyEndAllowThreads(__tstate);
8197 if (PyErr_Occurred()) SWIG_fail;
8198 }
8199 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
8200 return resultobj;
8201 fail:
8202 return NULL;
8203 }
8204
8205
8206 static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8207 PyObject *resultobj;
8208 wxLogChain *arg1 = (wxLogChain *) 0 ;
8209 wxLog *arg2 = (wxLog *) 0 ;
8210 PyObject * obj0 = 0 ;
8211 PyObject * obj1 = 0 ;
8212 char *kwnames[] = {
8213 (char *) "self",(char *) "logger", NULL
8214 };
8215
8216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
8217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8219 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog,
8220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8221 {
8222 PyThreadState* __tstate = wxPyBeginAllowThreads();
8223 (arg1)->SetLog(arg2);
8224
8225 wxPyEndAllowThreads(__tstate);
8226 if (PyErr_Occurred()) SWIG_fail;
8227 }
8228 Py_INCREF(Py_None); resultobj = Py_None;
8229 return resultobj;
8230 fail:
8231 return NULL;
8232 }
8233
8234
8235 static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8236 PyObject *resultobj;
8237 wxLogChain *arg1 = (wxLogChain *) 0 ;
8238 bool arg2 ;
8239 PyObject * obj0 = 0 ;
8240 PyObject * obj1 = 0 ;
8241 char *kwnames[] = {
8242 (char *) "self",(char *) "bDoPass", NULL
8243 };
8244
8245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8248 arg2 = (bool) SWIG_AsBool(obj1);
8249 if (PyErr_Occurred()) SWIG_fail;
8250 {
8251 PyThreadState* __tstate = wxPyBeginAllowThreads();
8252 (arg1)->PassMessages(arg2);
8253
8254 wxPyEndAllowThreads(__tstate);
8255 if (PyErr_Occurred()) SWIG_fail;
8256 }
8257 Py_INCREF(Py_None); resultobj = Py_None;
8258 return resultobj;
8259 fail:
8260 return NULL;
8261 }
8262
8263
8264 static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8265 PyObject *resultobj;
8266 wxLogChain *arg1 = (wxLogChain *) 0 ;
8267 bool result;
8268 PyObject * obj0 = 0 ;
8269 char *kwnames[] = {
8270 (char *) "self", NULL
8271 };
8272
8273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
8274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8276 {
8277 PyThreadState* __tstate = wxPyBeginAllowThreads();
8278 result = (bool)(arg1)->IsPassingMessages();
8279
8280 wxPyEndAllowThreads(__tstate);
8281 if (PyErr_Occurred()) SWIG_fail;
8282 }
8283 {
8284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8285 }
8286 return resultobj;
8287 fail:
8288 return NULL;
8289 }
8290
8291
8292 static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8293 PyObject *resultobj;
8294 wxLogChain *arg1 = (wxLogChain *) 0 ;
8295 wxLog *result;
8296 PyObject * obj0 = 0 ;
8297 char *kwnames[] = {
8298 (char *) "self", NULL
8299 };
8300
8301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
8302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8304 {
8305 PyThreadState* __tstate = wxPyBeginAllowThreads();
8306 result = (wxLog *)(arg1)->GetOldLog();
8307
8308 wxPyEndAllowThreads(__tstate);
8309 if (PyErr_Occurred()) SWIG_fail;
8310 }
8311 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8312 return resultobj;
8313 fail:
8314 return NULL;
8315 }
8316
8317
8318 static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) {
8319 PyObject *obj;
8320 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8321 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
8322 Py_INCREF(obj);
8323 return Py_BuildValue((char *)"");
8324 }
8325 static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) {
8326 PyObject *resultobj;
8327 unsigned long result;
8328 char *kwnames[] = {
8329 NULL
8330 };
8331
8332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
8333 {
8334 PyThreadState* __tstate = wxPyBeginAllowThreads();
8335 result = (unsigned long)wxSysErrorCode();
8336
8337 wxPyEndAllowThreads(__tstate);
8338 if (PyErr_Occurred()) SWIG_fail;
8339 }
8340 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
8341 return resultobj;
8342 fail:
8343 return NULL;
8344 }
8345
8346
8347 static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) {
8348 PyObject *resultobj;
8349 unsigned long arg1 = (unsigned long) 0 ;
8350 wxString result;
8351 PyObject * obj0 = 0 ;
8352 char *kwnames[] = {
8353 (char *) "nErrCode", NULL
8354 };
8355
8356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
8357 if (obj0) {
8358 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8359 if (PyErr_Occurred()) SWIG_fail;
8360 }
8361 {
8362 PyThreadState* __tstate = wxPyBeginAllowThreads();
8363 result = wxSysErrorMsg(arg1);
8364
8365 wxPyEndAllowThreads(__tstate);
8366 if (PyErr_Occurred()) SWIG_fail;
8367 }
8368 {
8369 #if wxUSE_UNICODE
8370 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8371 #else
8372 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8373 #endif
8374 }
8375 return resultobj;
8376 fail:
8377 return NULL;
8378 }
8379
8380
8381 static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) {
8382 PyObject *resultobj;
8383 wxString *arg1 = 0 ;
8384 bool temp1 = False ;
8385 PyObject * obj0 = 0 ;
8386 char *kwnames[] = {
8387 (char *) "msg", NULL
8388 };
8389
8390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
8391 {
8392 arg1 = wxString_in_helper(obj0);
8393 if (arg1 == NULL) SWIG_fail;
8394 temp1 = True;
8395 }
8396 {
8397 PyThreadState* __tstate = wxPyBeginAllowThreads();
8398 wxLogFatalError((wxString const &)*arg1);
8399
8400 wxPyEndAllowThreads(__tstate);
8401 if (PyErr_Occurred()) SWIG_fail;
8402 }
8403 Py_INCREF(Py_None); resultobj = Py_None;
8404 {
8405 if (temp1)
8406 delete arg1;
8407 }
8408 return resultobj;
8409 fail:
8410 {
8411 if (temp1)
8412 delete arg1;
8413 }
8414 return NULL;
8415 }
8416
8417
8418 static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) {
8419 PyObject *resultobj;
8420 wxString *arg1 = 0 ;
8421 bool temp1 = False ;
8422 PyObject * obj0 = 0 ;
8423 char *kwnames[] = {
8424 (char *) "msg", NULL
8425 };
8426
8427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
8428 {
8429 arg1 = wxString_in_helper(obj0);
8430 if (arg1 == NULL) SWIG_fail;
8431 temp1 = True;
8432 }
8433 {
8434 PyThreadState* __tstate = wxPyBeginAllowThreads();
8435 wxLogError((wxString const &)*arg1);
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 return resultobj;
8446 fail:
8447 {
8448 if (temp1)
8449 delete arg1;
8450 }
8451 return NULL;
8452 }
8453
8454
8455 static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) {
8456 PyObject *resultobj;
8457 wxString *arg1 = 0 ;
8458 bool temp1 = False ;
8459 PyObject * obj0 = 0 ;
8460 char *kwnames[] = {
8461 (char *) "msg", NULL
8462 };
8463
8464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
8465 {
8466 arg1 = wxString_in_helper(obj0);
8467 if (arg1 == NULL) SWIG_fail;
8468 temp1 = True;
8469 }
8470 {
8471 PyThreadState* __tstate = wxPyBeginAllowThreads();
8472 wxLogWarning((wxString const &)*arg1);
8473
8474 wxPyEndAllowThreads(__tstate);
8475 if (PyErr_Occurred()) SWIG_fail;
8476 }
8477 Py_INCREF(Py_None); resultobj = Py_None;
8478 {
8479 if (temp1)
8480 delete arg1;
8481 }
8482 return resultobj;
8483 fail:
8484 {
8485 if (temp1)
8486 delete arg1;
8487 }
8488 return NULL;
8489 }
8490
8491
8492 static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8493 PyObject *resultobj;
8494 wxString *arg1 = 0 ;
8495 bool temp1 = False ;
8496 PyObject * obj0 = 0 ;
8497 char *kwnames[] = {
8498 (char *) "msg", NULL
8499 };
8500
8501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
8502 {
8503 arg1 = wxString_in_helper(obj0);
8504 if (arg1 == NULL) SWIG_fail;
8505 temp1 = True;
8506 }
8507 {
8508 PyThreadState* __tstate = wxPyBeginAllowThreads();
8509 wxLogMessage((wxString const &)*arg1);
8510
8511 wxPyEndAllowThreads(__tstate);
8512 if (PyErr_Occurred()) SWIG_fail;
8513 }
8514 Py_INCREF(Py_None); resultobj = Py_None;
8515 {
8516 if (temp1)
8517 delete arg1;
8518 }
8519 return resultobj;
8520 fail:
8521 {
8522 if (temp1)
8523 delete arg1;
8524 }
8525 return NULL;
8526 }
8527
8528
8529 static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8530 PyObject *resultobj;
8531 wxString *arg1 = 0 ;
8532 bool temp1 = False ;
8533 PyObject * obj0 = 0 ;
8534 char *kwnames[] = {
8535 (char *) "msg", NULL
8536 };
8537
8538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
8539 {
8540 arg1 = wxString_in_helper(obj0);
8541 if (arg1 == NULL) SWIG_fail;
8542 temp1 = True;
8543 }
8544 {
8545 PyThreadState* __tstate = wxPyBeginAllowThreads();
8546 wxLogInfo((wxString const &)*arg1);
8547
8548 wxPyEndAllowThreads(__tstate);
8549 if (PyErr_Occurred()) SWIG_fail;
8550 }
8551 Py_INCREF(Py_None); resultobj = Py_None;
8552 {
8553 if (temp1)
8554 delete arg1;
8555 }
8556 return resultobj;
8557 fail:
8558 {
8559 if (temp1)
8560 delete arg1;
8561 }
8562 return NULL;
8563 }
8564
8565
8566 static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) {
8567 PyObject *resultobj;
8568 wxString *arg1 = 0 ;
8569 bool temp1 = False ;
8570 PyObject * obj0 = 0 ;
8571 char *kwnames[] = {
8572 (char *) "msg", NULL
8573 };
8574
8575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
8576 {
8577 arg1 = wxString_in_helper(obj0);
8578 if (arg1 == NULL) SWIG_fail;
8579 temp1 = True;
8580 }
8581 {
8582 PyThreadState* __tstate = wxPyBeginAllowThreads();
8583 wxLogDebug((wxString const &)*arg1);
8584
8585 wxPyEndAllowThreads(__tstate);
8586 if (PyErr_Occurred()) SWIG_fail;
8587 }
8588 Py_INCREF(Py_None); resultobj = Py_None;
8589 {
8590 if (temp1)
8591 delete arg1;
8592 }
8593 return resultobj;
8594 fail:
8595 {
8596 if (temp1)
8597 delete arg1;
8598 }
8599 return NULL;
8600 }
8601
8602
8603 static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
8604 PyObject *resultobj;
8605 wxString *arg1 = 0 ;
8606 bool temp1 = False ;
8607 PyObject * obj0 = 0 ;
8608 char *kwnames[] = {
8609 (char *) "msg", NULL
8610 };
8611
8612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
8613 {
8614 arg1 = wxString_in_helper(obj0);
8615 if (arg1 == NULL) SWIG_fail;
8616 temp1 = True;
8617 }
8618 {
8619 PyThreadState* __tstate = wxPyBeginAllowThreads();
8620 wxLogVerbose((wxString const &)*arg1);
8621
8622 wxPyEndAllowThreads(__tstate);
8623 if (PyErr_Occurred()) SWIG_fail;
8624 }
8625 Py_INCREF(Py_None); resultobj = Py_None;
8626 {
8627 if (temp1)
8628 delete arg1;
8629 }
8630 return resultobj;
8631 fail:
8632 {
8633 if (temp1)
8634 delete arg1;
8635 }
8636 return NULL;
8637 }
8638
8639
8640 static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) {
8641 PyObject *resultobj;
8642 wxString *arg1 = 0 ;
8643 bool temp1 = False ;
8644 PyObject * obj0 = 0 ;
8645 char *kwnames[] = {
8646 (char *) "msg", NULL
8647 };
8648
8649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
8650 {
8651 arg1 = wxString_in_helper(obj0);
8652 if (arg1 == NULL) SWIG_fail;
8653 temp1 = True;
8654 }
8655 {
8656 PyThreadState* __tstate = wxPyBeginAllowThreads();
8657 wxLogStatus((wxString const &)*arg1);
8658
8659 wxPyEndAllowThreads(__tstate);
8660 if (PyErr_Occurred()) SWIG_fail;
8661 }
8662 Py_INCREF(Py_None); resultobj = Py_None;
8663 {
8664 if (temp1)
8665 delete arg1;
8666 }
8667 return resultobj;
8668 fail:
8669 {
8670 if (temp1)
8671 delete arg1;
8672 }
8673 return NULL;
8674 }
8675
8676
8677 static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
8678 PyObject *resultobj;
8679 wxFrame *arg1 = (wxFrame *) 0 ;
8680 wxString *arg2 = 0 ;
8681 bool temp2 = False ;
8682 PyObject * obj0 = 0 ;
8683 PyObject * obj1 = 0 ;
8684 char *kwnames[] = {
8685 (char *) "pFrame",(char *) "msg", NULL
8686 };
8687
8688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
8689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8691 {
8692 arg2 = wxString_in_helper(obj1);
8693 if (arg2 == NULL) SWIG_fail;
8694 temp2 = True;
8695 }
8696 {
8697 PyThreadState* __tstate = wxPyBeginAllowThreads();
8698 wxLogStatus(arg1,(wxString const &)*arg2);
8699
8700 wxPyEndAllowThreads(__tstate);
8701 if (PyErr_Occurred()) SWIG_fail;
8702 }
8703 Py_INCREF(Py_None); resultobj = Py_None;
8704 {
8705 if (temp2)
8706 delete arg2;
8707 }
8708 return resultobj;
8709 fail:
8710 {
8711 if (temp2)
8712 delete arg2;
8713 }
8714 return NULL;
8715 }
8716
8717
8718 static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) {
8719 PyObject *resultobj;
8720 wxString *arg1 = 0 ;
8721 bool temp1 = False ;
8722 PyObject * obj0 = 0 ;
8723 char *kwnames[] = {
8724 (char *) "msg", NULL
8725 };
8726
8727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
8728 {
8729 arg1 = wxString_in_helper(obj0);
8730 if (arg1 == NULL) SWIG_fail;
8731 temp1 = True;
8732 }
8733 {
8734 PyThreadState* __tstate = wxPyBeginAllowThreads();
8735 wxLogSysError((wxString const &)*arg1);
8736
8737 wxPyEndAllowThreads(__tstate);
8738 if (PyErr_Occurred()) SWIG_fail;
8739 }
8740 Py_INCREF(Py_None); resultobj = Py_None;
8741 {
8742 if (temp1)
8743 delete arg1;
8744 }
8745 return resultobj;
8746 fail:
8747 {
8748 if (temp1)
8749 delete arg1;
8750 }
8751 return NULL;
8752 }
8753
8754
8755 static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) {
8756 PyObject *resultobj;
8757 unsigned long arg1 ;
8758 wxString *arg2 = 0 ;
8759 bool temp2 = False ;
8760 PyObject * obj0 = 0 ;
8761 PyObject * obj1 = 0 ;
8762
8763 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8764 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8765 if (PyErr_Occurred()) SWIG_fail;
8766 {
8767 arg2 = wxString_in_helper(obj1);
8768 if (arg2 == NULL) SWIG_fail;
8769 temp2 = True;
8770 }
8771 {
8772 PyThreadState* __tstate = wxPyBeginAllowThreads();
8773 wxLogTrace(arg1,(wxString const &)*arg2);
8774
8775 wxPyEndAllowThreads(__tstate);
8776 if (PyErr_Occurred()) SWIG_fail;
8777 }
8778 Py_INCREF(Py_None); resultobj = Py_None;
8779 {
8780 if (temp2)
8781 delete arg2;
8782 }
8783 return resultobj;
8784 fail:
8785 {
8786 if (temp2)
8787 delete arg2;
8788 }
8789 return NULL;
8790 }
8791
8792
8793 static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) {
8794 PyObject *resultobj;
8795 wxString *arg1 = 0 ;
8796 wxString *arg2 = 0 ;
8797 bool temp1 = False ;
8798 bool temp2 = False ;
8799 PyObject * obj0 = 0 ;
8800 PyObject * obj1 = 0 ;
8801
8802 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8803 {
8804 arg1 = wxString_in_helper(obj0);
8805 if (arg1 == NULL) SWIG_fail;
8806 temp1 = True;
8807 }
8808 {
8809 arg2 = wxString_in_helper(obj1);
8810 if (arg2 == NULL) SWIG_fail;
8811 temp2 = True;
8812 }
8813 {
8814 PyThreadState* __tstate = wxPyBeginAllowThreads();
8815 wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
8816
8817 wxPyEndAllowThreads(__tstate);
8818 if (PyErr_Occurred()) SWIG_fail;
8819 }
8820 Py_INCREF(Py_None); resultobj = Py_None;
8821 {
8822 if (temp1)
8823 delete arg1;
8824 }
8825 {
8826 if (temp2)
8827 delete arg2;
8828 }
8829 return resultobj;
8830 fail:
8831 {
8832 if (temp1)
8833 delete arg1;
8834 }
8835 {
8836 if (temp2)
8837 delete arg2;
8838 }
8839 return NULL;
8840 }
8841
8842
8843 static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
8844 int argc;
8845 PyObject *argv[3];
8846 int ii;
8847
8848 argc = PyObject_Length(args);
8849 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
8850 argv[ii] = PyTuple_GetItem(args,ii);
8851 }
8852 if (argc == 2) {
8853 int _v;
8854 {
8855 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
8856 }
8857 if (_v) {
8858 {
8859 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8860 }
8861 if (_v) {
8862 return _wrap_LogTrace__SWIG_1(self,args);
8863 }
8864 }
8865 }
8866 if (argc == 2) {
8867 int _v;
8868 _v = SWIG_CheckUnsignedLong(argv[0]);
8869 if (_v) {
8870 {
8871 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8872 }
8873 if (_v) {
8874 return _wrap_LogTrace__SWIG_0(self,args);
8875 }
8876 }
8877 }
8878
8879 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
8880 return NULL;
8881 }
8882
8883
8884 static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) {
8885 PyObject *resultobj;
8886 unsigned long arg1 ;
8887 wxString *arg2 = 0 ;
8888 bool temp2 = False ;
8889 PyObject * obj0 = 0 ;
8890 PyObject * obj1 = 0 ;
8891 char *kwnames[] = {
8892 (char *) "level",(char *) "msg", NULL
8893 };
8894
8895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
8896 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8897 if (PyErr_Occurred()) SWIG_fail;
8898 {
8899 arg2 = wxString_in_helper(obj1);
8900 if (arg2 == NULL) SWIG_fail;
8901 temp2 = True;
8902 }
8903 {
8904 PyThreadState* __tstate = wxPyBeginAllowThreads();
8905 wxLogGeneric(arg1,(wxString const &)*arg2);
8906
8907 wxPyEndAllowThreads(__tstate);
8908 if (PyErr_Occurred()) SWIG_fail;
8909 }
8910 Py_INCREF(Py_None); resultobj = Py_None;
8911 {
8912 if (temp2)
8913 delete arg2;
8914 }
8915 return resultobj;
8916 fail:
8917 {
8918 if (temp2)
8919 delete arg2;
8920 }
8921 return NULL;
8922 }
8923
8924
8925 static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8926 PyObject *resultobj;
8927 wxString *arg1 = 0 ;
8928 wxString *arg2 = 0 ;
8929 bool temp1 = False ;
8930 bool temp2 = False ;
8931 PyObject * obj0 = 0 ;
8932 PyObject * obj1 = 0 ;
8933 char *kwnames[] = {
8934 (char *) "title",(char *) "text", NULL
8935 };
8936
8937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
8938 {
8939 arg1 = wxString_in_helper(obj0);
8940 if (arg1 == NULL) SWIG_fail;
8941 temp1 = True;
8942 }
8943 {
8944 arg2 = wxString_in_helper(obj1);
8945 if (arg2 == NULL) SWIG_fail;
8946 temp2 = True;
8947 }
8948 {
8949 PyThreadState* __tstate = wxPyBeginAllowThreads();
8950 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
8951
8952 wxPyEndAllowThreads(__tstate);
8953 if (PyErr_Occurred()) SWIG_fail;
8954 }
8955 Py_INCREF(Py_None); resultobj = Py_None;
8956 {
8957 if (temp1)
8958 delete arg1;
8959 }
8960 {
8961 if (temp2)
8962 delete arg2;
8963 }
8964 return resultobj;
8965 fail:
8966 {
8967 if (temp1)
8968 delete arg1;
8969 }
8970 {
8971 if (temp2)
8972 delete arg2;
8973 }
8974 return NULL;
8975 }
8976
8977
8978 static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8979 PyObject *resultobj;
8980 wxLogNull *result;
8981 char *kwnames[] = {
8982 NULL
8983 };
8984
8985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
8986 {
8987 PyThreadState* __tstate = wxPyBeginAllowThreads();
8988 result = (wxLogNull *)new wxLogNull();
8989
8990 wxPyEndAllowThreads(__tstate);
8991 if (PyErr_Occurred()) SWIG_fail;
8992 }
8993 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
8994 return resultobj;
8995 fail:
8996 return NULL;
8997 }
8998
8999
9000 static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
9001 PyObject *resultobj;
9002 wxLogNull *arg1 = (wxLogNull *) 0 ;
9003 PyObject * obj0 = 0 ;
9004 char *kwnames[] = {
9005 (char *) "self", NULL
9006 };
9007
9008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
9009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull,
9010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9011 {
9012 PyThreadState* __tstate = wxPyBeginAllowThreads();
9013 delete arg1;
9014
9015 wxPyEndAllowThreads(__tstate);
9016 if (PyErr_Occurred()) SWIG_fail;
9017 }
9018 Py_INCREF(Py_None); resultobj = Py_None;
9019 return resultobj;
9020 fail:
9021 return NULL;
9022 }
9023
9024
9025 static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) {
9026 PyObject *obj;
9027 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9028 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
9029 Py_INCREF(obj);
9030 return Py_BuildValue((char *)"");
9031 }
9032 static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) {
9033 PyObject *resultobj;
9034 wxPyLog *result;
9035 char *kwnames[] = {
9036 NULL
9037 };
9038
9039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
9040 {
9041 PyThreadState* __tstate = wxPyBeginAllowThreads();
9042 result = (wxPyLog *)new wxPyLog();
9043
9044 wxPyEndAllowThreads(__tstate);
9045 if (PyErr_Occurred()) SWIG_fail;
9046 }
9047 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
9048 return resultobj;
9049 fail:
9050 return NULL;
9051 }
9052
9053
9054 static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9055 PyObject *resultobj;
9056 wxPyLog *arg1 = (wxPyLog *) 0 ;
9057 PyObject *arg2 = (PyObject *) 0 ;
9058 PyObject *arg3 = (PyObject *) 0 ;
9059 PyObject * obj0 = 0 ;
9060 PyObject * obj1 = 0 ;
9061 PyObject * obj2 = 0 ;
9062 char *kwnames[] = {
9063 (char *) "self",(char *) "self",(char *) "_class", NULL
9064 };
9065
9066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
9067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog,
9068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9069 arg2 = obj1;
9070 arg3 = obj2;
9071 {
9072 PyThreadState* __tstate = wxPyBeginAllowThreads();
9073 (arg1)->_setCallbackInfo(arg2,arg3);
9074
9075 wxPyEndAllowThreads(__tstate);
9076 if (PyErr_Occurred()) SWIG_fail;
9077 }
9078 Py_INCREF(Py_None); resultobj = Py_None;
9079 return resultobj;
9080 fail:
9081 return NULL;
9082 }
9083
9084
9085 static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) {
9086 PyObject *obj;
9087 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9088 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
9089 Py_INCREF(obj);
9090 return Py_BuildValue((char *)"");
9091 }
9092 static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) {
9093 PyObject *resultobj;
9094 int arg1 ;
9095 int arg2 = (int) wxSIGTERM ;
9096 int result;
9097 PyObject * obj0 = 0 ;
9098 PyObject * obj1 = 0 ;
9099 char *kwnames[] = {
9100 (char *) "pid",(char *) "sig", NULL
9101 };
9102
9103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail;
9104 arg1 = (int) SWIG_AsInt(obj0);
9105 if (PyErr_Occurred()) SWIG_fail;
9106 if (obj1) {
9107 arg2 = (wxSignal) SWIG_AsInt(obj1);
9108 if (PyErr_Occurred()) SWIG_fail;
9109 }
9110 {
9111 PyThreadState* __tstate = wxPyBeginAllowThreads();
9112 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
9113
9114 wxPyEndAllowThreads(__tstate);
9115 if (PyErr_Occurred()) SWIG_fail;
9116 }
9117 resultobj = SWIG_FromInt((int)result);
9118 return resultobj;
9119 fail:
9120 return NULL;
9121 }
9122
9123
9124 static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
9125 PyObject *resultobj;
9126 int arg1 ;
9127 bool result;
9128 PyObject * obj0 = 0 ;
9129 char *kwnames[] = {
9130 (char *) "pid", NULL
9131 };
9132
9133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
9134 arg1 = (int) SWIG_AsInt(obj0);
9135 if (PyErr_Occurred()) SWIG_fail;
9136 {
9137 PyThreadState* __tstate = wxPyBeginAllowThreads();
9138 result = (bool)wxPyProcess::Exists(arg1);
9139
9140 wxPyEndAllowThreads(__tstate);
9141 if (PyErr_Occurred()) SWIG_fail;
9142 }
9143 {
9144 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9145 }
9146 return resultobj;
9147 fail:
9148 return NULL;
9149 }
9150
9151
9152 static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
9153 PyObject *resultobj;
9154 wxString *arg1 = 0 ;
9155 int arg2 = (int) wxEXEC_ASYNC ;
9156 wxPyProcess *result;
9157 bool temp1 = False ;
9158 PyObject * obj0 = 0 ;
9159 PyObject * obj1 = 0 ;
9160 char *kwnames[] = {
9161 (char *) "cmd",(char *) "flags", NULL
9162 };
9163
9164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
9165 {
9166 arg1 = wxString_in_helper(obj0);
9167 if (arg1 == NULL) SWIG_fail;
9168 temp1 = True;
9169 }
9170 if (obj1) {
9171 arg2 = (int) SWIG_AsInt(obj1);
9172 if (PyErr_Occurred()) SWIG_fail;
9173 }
9174 {
9175 PyThreadState* __tstate = wxPyBeginAllowThreads();
9176 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
9177
9178 wxPyEndAllowThreads(__tstate);
9179 if (PyErr_Occurred()) SWIG_fail;
9180 }
9181 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
9182 {
9183 if (temp1)
9184 delete arg1;
9185 }
9186 return resultobj;
9187 fail:
9188 {
9189 if (temp1)
9190 delete arg1;
9191 }
9192 return NULL;
9193 }
9194
9195
9196 static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) {
9197 PyObject *resultobj;
9198 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
9199 int arg2 = (int) -1 ;
9200 wxPyProcess *result;
9201 PyObject * obj0 = 0 ;
9202 PyObject * obj1 = 0 ;
9203 char *kwnames[] = {
9204 (char *) "parent",(char *) "id", NULL
9205 };
9206
9207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
9208 if (obj0) {
9209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
9210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9211 }
9212 if (obj1) {
9213 arg2 = (int) SWIG_AsInt(obj1);
9214 if (PyErr_Occurred()) SWIG_fail;
9215 }
9216 {
9217 PyThreadState* __tstate = wxPyBeginAllowThreads();
9218 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
9219
9220 wxPyEndAllowThreads(__tstate);
9221 if (PyErr_Occurred()) SWIG_fail;
9222 }
9223 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
9224 return resultobj;
9225 fail:
9226 return NULL;
9227 }
9228
9229
9230 static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9231 PyObject *resultobj;
9232 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9233 PyObject *arg2 = (PyObject *) 0 ;
9234 PyObject *arg3 = (PyObject *) 0 ;
9235 PyObject * obj0 = 0 ;
9236 PyObject * obj1 = 0 ;
9237 PyObject * obj2 = 0 ;
9238 char *kwnames[] = {
9239 (char *) "self",(char *) "self",(char *) "_class", NULL
9240 };
9241
9242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
9243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9245 arg2 = obj1;
9246 arg3 = obj2;
9247 {
9248 PyThreadState* __tstate = wxPyBeginAllowThreads();
9249 (arg1)->_setCallbackInfo(arg2,arg3);
9250
9251 wxPyEndAllowThreads(__tstate);
9252 if (PyErr_Occurred()) SWIG_fail;
9253 }
9254 Py_INCREF(Py_None); resultobj = Py_None;
9255 return resultobj;
9256 fail:
9257 return NULL;
9258 }
9259
9260
9261 static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) {
9262 PyObject *resultobj;
9263 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9264 int arg2 ;
9265 int arg3 ;
9266 PyObject * obj0 = 0 ;
9267 PyObject * obj1 = 0 ;
9268 PyObject * obj2 = 0 ;
9269 char *kwnames[] = {
9270 (char *) "self",(char *) "pid",(char *) "status", NULL
9271 };
9272
9273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
9274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9276 arg2 = (int) SWIG_AsInt(obj1);
9277 if (PyErr_Occurred()) SWIG_fail;
9278 arg3 = (int) SWIG_AsInt(obj2);
9279 if (PyErr_Occurred()) SWIG_fail;
9280 {
9281 PyThreadState* __tstate = wxPyBeginAllowThreads();
9282 (arg1)->base_OnTerminate(arg2,arg3);
9283
9284 wxPyEndAllowThreads(__tstate);
9285 if (PyErr_Occurred()) SWIG_fail;
9286 }
9287 Py_INCREF(Py_None); resultobj = Py_None;
9288 return resultobj;
9289 fail:
9290 return NULL;
9291 }
9292
9293
9294 static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) {
9295 PyObject *resultobj;
9296 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9297 PyObject * obj0 = 0 ;
9298 char *kwnames[] = {
9299 (char *) "self", NULL
9300 };
9301
9302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
9303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9305 {
9306 PyThreadState* __tstate = wxPyBeginAllowThreads();
9307 (arg1)->Redirect();
9308
9309 wxPyEndAllowThreads(__tstate);
9310 if (PyErr_Occurred()) SWIG_fail;
9311 }
9312 Py_INCREF(Py_None); resultobj = Py_None;
9313 return resultobj;
9314 fail:
9315 return NULL;
9316 }
9317
9318
9319 static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) {
9320 PyObject *resultobj;
9321 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9322 bool result;
9323 PyObject * obj0 = 0 ;
9324 char *kwnames[] = {
9325 (char *) "self", NULL
9326 };
9327
9328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
9329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9331 {
9332 PyThreadState* __tstate = wxPyBeginAllowThreads();
9333 result = (bool)(arg1)->IsRedirected();
9334
9335 wxPyEndAllowThreads(__tstate);
9336 if (PyErr_Occurred()) SWIG_fail;
9337 }
9338 {
9339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9340 }
9341 return resultobj;
9342 fail:
9343 return NULL;
9344 }
9345
9346
9347 static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
9348 PyObject *resultobj;
9349 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9350 PyObject * obj0 = 0 ;
9351 char *kwnames[] = {
9352 (char *) "self", NULL
9353 };
9354
9355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
9356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9358 {
9359 PyThreadState* __tstate = wxPyBeginAllowThreads();
9360 (arg1)->Detach();
9361
9362 wxPyEndAllowThreads(__tstate);
9363 if (PyErr_Occurred()) SWIG_fail;
9364 }
9365 Py_INCREF(Py_None); resultobj = Py_None;
9366 return resultobj;
9367 fail:
9368 return NULL;
9369 }
9370
9371
9372 static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9373 PyObject *resultobj;
9374 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9375 wxInputStream *result;
9376 PyObject * obj0 = 0 ;
9377 char *kwnames[] = {
9378 (char *) "self", NULL
9379 };
9380
9381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
9382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9384 {
9385 PyThreadState* __tstate = wxPyBeginAllowThreads();
9386 result = (wxInputStream *)(arg1)->GetInputStream();
9387
9388 wxPyEndAllowThreads(__tstate);
9389 if (PyErr_Occurred()) SWIG_fail;
9390 }
9391 {
9392 wxPyInputStream * _ptr = NULL;
9393
9394 if (result) {
9395 _ptr = new wxPyInputStream(result);
9396 }
9397 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9398 }
9399 return resultobj;
9400 fail:
9401 return NULL;
9402 }
9403
9404
9405 static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9406 PyObject *resultobj;
9407 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9408 wxInputStream *result;
9409 PyObject * obj0 = 0 ;
9410 char *kwnames[] = {
9411 (char *) "self", NULL
9412 };
9413
9414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
9415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9417 {
9418 PyThreadState* __tstate = wxPyBeginAllowThreads();
9419 result = (wxInputStream *)(arg1)->GetErrorStream();
9420
9421 wxPyEndAllowThreads(__tstate);
9422 if (PyErr_Occurred()) SWIG_fail;
9423 }
9424 {
9425 wxPyInputStream * _ptr = NULL;
9426
9427 if (result) {
9428 _ptr = new wxPyInputStream(result);
9429 }
9430 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9431 }
9432 return resultobj;
9433 fail:
9434 return NULL;
9435 }
9436
9437
9438 static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9439 PyObject *resultobj;
9440 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9441 wxOutputStream *result;
9442 PyObject * obj0 = 0 ;
9443 char *kwnames[] = {
9444 (char *) "self", NULL
9445 };
9446
9447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
9448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9450 {
9451 PyThreadState* __tstate = wxPyBeginAllowThreads();
9452 result = (wxOutputStream *)(arg1)->GetOutputStream();
9453
9454 wxPyEndAllowThreads(__tstate);
9455 if (PyErr_Occurred()) SWIG_fail;
9456 }
9457 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
9458 return resultobj;
9459 fail:
9460 return NULL;
9461 }
9462
9463
9464 static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) {
9465 PyObject *resultobj;
9466 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9467 PyObject * obj0 = 0 ;
9468 char *kwnames[] = {
9469 (char *) "self", NULL
9470 };
9471
9472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
9473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9475 {
9476 PyThreadState* __tstate = wxPyBeginAllowThreads();
9477 (arg1)->CloseOutput();
9478
9479 wxPyEndAllowThreads(__tstate);
9480 if (PyErr_Occurred()) SWIG_fail;
9481 }
9482 Py_INCREF(Py_None); resultobj = Py_None;
9483 return resultobj;
9484 fail:
9485 return NULL;
9486 }
9487
9488
9489 static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
9490 PyObject *resultobj;
9491 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9492 bool result;
9493 PyObject * obj0 = 0 ;
9494 char *kwnames[] = {
9495 (char *) "self", NULL
9496 };
9497
9498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
9499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9501 {
9502 PyThreadState* __tstate = wxPyBeginAllowThreads();
9503 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
9504
9505 wxPyEndAllowThreads(__tstate);
9506 if (PyErr_Occurred()) SWIG_fail;
9507 }
9508 {
9509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9510 }
9511 return resultobj;
9512 fail:
9513 return NULL;
9514 }
9515
9516
9517 static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9518 PyObject *resultobj;
9519 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9520 bool result;
9521 PyObject * obj0 = 0 ;
9522 char *kwnames[] = {
9523 (char *) "self", NULL
9524 };
9525
9526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
9527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9529 {
9530 PyThreadState* __tstate = wxPyBeginAllowThreads();
9531 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
9532
9533 wxPyEndAllowThreads(__tstate);
9534 if (PyErr_Occurred()) SWIG_fail;
9535 }
9536 {
9537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9538 }
9539 return resultobj;
9540 fail:
9541 return NULL;
9542 }
9543
9544
9545 static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9546 PyObject *resultobj;
9547 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9548 bool result;
9549 PyObject * obj0 = 0 ;
9550 char *kwnames[] = {
9551 (char *) "self", NULL
9552 };
9553
9554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
9555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9557 {
9558 PyThreadState* __tstate = wxPyBeginAllowThreads();
9559 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
9560
9561 wxPyEndAllowThreads(__tstate);
9562 if (PyErr_Occurred()) SWIG_fail;
9563 }
9564 {
9565 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9566 }
9567 return resultobj;
9568 fail:
9569 return NULL;
9570 }
9571
9572
9573 static PyObject * Process_swigregister(PyObject *self, PyObject *args) {
9574 PyObject *obj;
9575 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9576 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
9577 Py_INCREF(obj);
9578 return Py_BuildValue((char *)"");
9579 }
9580 static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9581 PyObject *resultobj;
9582 int arg1 = (int) 0 ;
9583 int arg2 = (int) 0 ;
9584 int arg3 = (int) 0 ;
9585 wxProcessEvent *result;
9586 PyObject * obj0 = 0 ;
9587 PyObject * obj1 = 0 ;
9588 PyObject * obj2 = 0 ;
9589 char *kwnames[] = {
9590 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
9591 };
9592
9593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
9594 if (obj0) {
9595 arg1 = (int) SWIG_AsInt(obj0);
9596 if (PyErr_Occurred()) SWIG_fail;
9597 }
9598 if (obj1) {
9599 arg2 = (int) SWIG_AsInt(obj1);
9600 if (PyErr_Occurred()) SWIG_fail;
9601 }
9602 if (obj2) {
9603 arg3 = (int) SWIG_AsInt(obj2);
9604 if (PyErr_Occurred()) SWIG_fail;
9605 }
9606 {
9607 PyThreadState* __tstate = wxPyBeginAllowThreads();
9608 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
9609
9610 wxPyEndAllowThreads(__tstate);
9611 if (PyErr_Occurred()) SWIG_fail;
9612 }
9613 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
9614 return resultobj;
9615 fail:
9616 return NULL;
9617 }
9618
9619
9620 static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) {
9621 PyObject *resultobj;
9622 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9623 int result;
9624 PyObject * obj0 = 0 ;
9625 char *kwnames[] = {
9626 (char *) "self", NULL
9627 };
9628
9629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
9630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9632 {
9633 PyThreadState* __tstate = wxPyBeginAllowThreads();
9634 result = (int)(arg1)->GetPid();
9635
9636 wxPyEndAllowThreads(__tstate);
9637 if (PyErr_Occurred()) SWIG_fail;
9638 }
9639 resultobj = SWIG_FromInt((int)result);
9640 return resultobj;
9641 fail:
9642 return NULL;
9643 }
9644
9645
9646 static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) {
9647 PyObject *resultobj;
9648 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9649 int result;
9650 PyObject * obj0 = 0 ;
9651 char *kwnames[] = {
9652 (char *) "self", NULL
9653 };
9654
9655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
9656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9658 {
9659 PyThreadState* __tstate = wxPyBeginAllowThreads();
9660 result = (int)(arg1)->GetExitCode();
9661
9662 wxPyEndAllowThreads(__tstate);
9663 if (PyErr_Occurred()) SWIG_fail;
9664 }
9665 resultobj = SWIG_FromInt((int)result);
9666 return resultobj;
9667 fail:
9668 return NULL;
9669 }
9670
9671
9672 static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9673 PyObject *resultobj;
9674 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9675 int arg2 ;
9676 PyObject * obj0 = 0 ;
9677 PyObject * obj1 = 0 ;
9678 char *kwnames[] = {
9679 (char *) "self",(char *) "m_pid", NULL
9680 };
9681
9682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
9683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9685 arg2 = (int) SWIG_AsInt(obj1);
9686 if (PyErr_Occurred()) SWIG_fail;
9687 if (arg1) (arg1)->m_pid = arg2;
9688
9689 Py_INCREF(Py_None); resultobj = Py_None;
9690 return resultobj;
9691 fail:
9692 return NULL;
9693 }
9694
9695
9696 static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9697 PyObject *resultobj;
9698 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9699 int result;
9700 PyObject * obj0 = 0 ;
9701 char *kwnames[] = {
9702 (char *) "self", NULL
9703 };
9704
9705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
9706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9708 result = (int) ((arg1)->m_pid);
9709
9710 resultobj = SWIG_FromInt((int)result);
9711 return resultobj;
9712 fail:
9713 return NULL;
9714 }
9715
9716
9717 static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9718 PyObject *resultobj;
9719 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9720 int arg2 ;
9721 PyObject * obj0 = 0 ;
9722 PyObject * obj1 = 0 ;
9723 char *kwnames[] = {
9724 (char *) "self",(char *) "m_exitcode", NULL
9725 };
9726
9727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
9728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9730 arg2 = (int) SWIG_AsInt(obj1);
9731 if (PyErr_Occurred()) SWIG_fail;
9732 if (arg1) (arg1)->m_exitcode = arg2;
9733
9734 Py_INCREF(Py_None); resultobj = Py_None;
9735 return resultobj;
9736 fail:
9737 return NULL;
9738 }
9739
9740
9741 static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9742 PyObject *resultobj;
9743 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9744 int result;
9745 PyObject * obj0 = 0 ;
9746 char *kwnames[] = {
9747 (char *) "self", NULL
9748 };
9749
9750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
9751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9753 result = (int) ((arg1)->m_exitcode);
9754
9755 resultobj = SWIG_FromInt((int)result);
9756 return resultobj;
9757 fail:
9758 return NULL;
9759 }
9760
9761
9762 static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) {
9763 PyObject *obj;
9764 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9765 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
9766 Py_INCREF(obj);
9767 return Py_BuildValue((char *)"");
9768 }
9769 static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) {
9770 PyObject *resultobj;
9771 wxString *arg1 = 0 ;
9772 int arg2 = (int) wxEXEC_ASYNC ;
9773 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
9774 long result;
9775 bool temp1 = False ;
9776 PyObject * obj0 = 0 ;
9777 PyObject * obj1 = 0 ;
9778 PyObject * obj2 = 0 ;
9779 char *kwnames[] = {
9780 (char *) "command",(char *) "flags",(char *) "process", NULL
9781 };
9782
9783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
9784 {
9785 arg1 = wxString_in_helper(obj0);
9786 if (arg1 == NULL) SWIG_fail;
9787 temp1 = True;
9788 }
9789 if (obj1) {
9790 arg2 = (int) SWIG_AsInt(obj1);
9791 if (PyErr_Occurred()) SWIG_fail;
9792 }
9793 if (obj2) {
9794 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess,
9795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9796 }
9797 {
9798 if (!wxPyCheckForApp()) SWIG_fail;
9799 PyThreadState* __tstate = wxPyBeginAllowThreads();
9800 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
9801
9802 wxPyEndAllowThreads(__tstate);
9803 if (PyErr_Occurred()) SWIG_fail;
9804 }
9805 resultobj = SWIG_FromLong((long)result);
9806 {
9807 if (temp1)
9808 delete arg1;
9809 }
9810 return resultobj;
9811 fail:
9812 {
9813 if (temp1)
9814 delete arg1;
9815 }
9816 return NULL;
9817 }
9818
9819
9820 static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9821 PyObject *resultobj;
9822 int arg1 = (int) wxJOYSTICK1 ;
9823 wxJoystick *result;
9824 PyObject * obj0 = 0 ;
9825 char *kwnames[] = {
9826 (char *) "joystick", NULL
9827 };
9828
9829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
9830 if (obj0) {
9831 arg1 = (int) SWIG_AsInt(obj0);
9832 if (PyErr_Occurred()) SWIG_fail;
9833 }
9834 {
9835 if (!wxPyCheckForApp()) SWIG_fail;
9836 PyThreadState* __tstate = wxPyBeginAllowThreads();
9837 result = (wxJoystick *)new wxJoystick(arg1);
9838
9839 wxPyEndAllowThreads(__tstate);
9840 if (PyErr_Occurred()) SWIG_fail;
9841 }
9842 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
9843 return resultobj;
9844 fail:
9845 return NULL;
9846 }
9847
9848
9849 static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9850 PyObject *resultobj;
9851 wxJoystick *arg1 = (wxJoystick *) 0 ;
9852 PyObject * obj0 = 0 ;
9853 char *kwnames[] = {
9854 (char *) "self", NULL
9855 };
9856
9857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
9858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9860 {
9861 PyThreadState* __tstate = wxPyBeginAllowThreads();
9862 delete arg1;
9863
9864 wxPyEndAllowThreads(__tstate);
9865 if (PyErr_Occurred()) SWIG_fail;
9866 }
9867 Py_INCREF(Py_None); resultobj = Py_None;
9868 return resultobj;
9869 fail:
9870 return NULL;
9871 }
9872
9873
9874 static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9875 PyObject *resultobj;
9876 wxJoystick *arg1 = (wxJoystick *) 0 ;
9877 wxPoint result;
9878 PyObject * obj0 = 0 ;
9879 char *kwnames[] = {
9880 (char *) "self", NULL
9881 };
9882
9883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
9884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9886 {
9887 PyThreadState* __tstate = wxPyBeginAllowThreads();
9888 result = (arg1)->GetPosition();
9889
9890 wxPyEndAllowThreads(__tstate);
9891 if (PyErr_Occurred()) SWIG_fail;
9892 }
9893 {
9894 wxPoint * resultptr;
9895 resultptr = new wxPoint((wxPoint &) result);
9896 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
9897 }
9898 return resultobj;
9899 fail:
9900 return NULL;
9901 }
9902
9903
9904 static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9905 PyObject *resultobj;
9906 wxJoystick *arg1 = (wxJoystick *) 0 ;
9907 int result;
9908 PyObject * obj0 = 0 ;
9909 char *kwnames[] = {
9910 (char *) "self", NULL
9911 };
9912
9913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
9914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9916 {
9917 PyThreadState* __tstate = wxPyBeginAllowThreads();
9918 result = (int)(arg1)->GetZPosition();
9919
9920 wxPyEndAllowThreads(__tstate);
9921 if (PyErr_Occurred()) SWIG_fail;
9922 }
9923 resultobj = SWIG_FromInt((int)result);
9924 return resultobj;
9925 fail:
9926 return NULL;
9927 }
9928
9929
9930 static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
9931 PyObject *resultobj;
9932 wxJoystick *arg1 = (wxJoystick *) 0 ;
9933 int result;
9934 PyObject * obj0 = 0 ;
9935 char *kwnames[] = {
9936 (char *) "self", NULL
9937 };
9938
9939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
9940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9942 {
9943 PyThreadState* __tstate = wxPyBeginAllowThreads();
9944 result = (int)(arg1)->GetButtonState();
9945
9946 wxPyEndAllowThreads(__tstate);
9947 if (PyErr_Occurred()) SWIG_fail;
9948 }
9949 resultobj = SWIG_FromInt((int)result);
9950 return resultobj;
9951 fail:
9952 return NULL;
9953 }
9954
9955
9956 static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9957 PyObject *resultobj;
9958 wxJoystick *arg1 = (wxJoystick *) 0 ;
9959 int result;
9960 PyObject * obj0 = 0 ;
9961 char *kwnames[] = {
9962 (char *) "self", NULL
9963 };
9964
9965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
9966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9968 {
9969 PyThreadState* __tstate = wxPyBeginAllowThreads();
9970 result = (int)(arg1)->GetPOVPosition();
9971
9972 wxPyEndAllowThreads(__tstate);
9973 if (PyErr_Occurred()) SWIG_fail;
9974 }
9975 resultobj = SWIG_FromInt((int)result);
9976 return resultobj;
9977 fail:
9978 return NULL;
9979 }
9980
9981
9982 static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9983 PyObject *resultobj;
9984 wxJoystick *arg1 = (wxJoystick *) 0 ;
9985 int result;
9986 PyObject * obj0 = 0 ;
9987 char *kwnames[] = {
9988 (char *) "self", NULL
9989 };
9990
9991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
9992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9994 {
9995 PyThreadState* __tstate = wxPyBeginAllowThreads();
9996 result = (int)(arg1)->GetPOVCTSPosition();
9997
9998 wxPyEndAllowThreads(__tstate);
9999 if (PyErr_Occurred()) SWIG_fail;
10000 }
10001 resultobj = SWIG_FromInt((int)result);
10002 return resultobj;
10003 fail:
10004 return NULL;
10005 }
10006
10007
10008 static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10009 PyObject *resultobj;
10010 wxJoystick *arg1 = (wxJoystick *) 0 ;
10011 int result;
10012 PyObject * obj0 = 0 ;
10013 char *kwnames[] = {
10014 (char *) "self", NULL
10015 };
10016
10017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
10018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10020 {
10021 PyThreadState* __tstate = wxPyBeginAllowThreads();
10022 result = (int)(arg1)->GetRudderPosition();
10023
10024 wxPyEndAllowThreads(__tstate);
10025 if (PyErr_Occurred()) SWIG_fail;
10026 }
10027 resultobj = SWIG_FromInt((int)result);
10028 return resultobj;
10029 fail:
10030 return NULL;
10031 }
10032
10033
10034 static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10035 PyObject *resultobj;
10036 wxJoystick *arg1 = (wxJoystick *) 0 ;
10037 int result;
10038 PyObject * obj0 = 0 ;
10039 char *kwnames[] = {
10040 (char *) "self", NULL
10041 };
10042
10043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
10044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10046 {
10047 PyThreadState* __tstate = wxPyBeginAllowThreads();
10048 result = (int)(arg1)->GetUPosition();
10049
10050 wxPyEndAllowThreads(__tstate);
10051 if (PyErr_Occurred()) SWIG_fail;
10052 }
10053 resultobj = SWIG_FromInt((int)result);
10054 return resultobj;
10055 fail:
10056 return NULL;
10057 }
10058
10059
10060 static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10061 PyObject *resultobj;
10062 wxJoystick *arg1 = (wxJoystick *) 0 ;
10063 int result;
10064 PyObject * obj0 = 0 ;
10065 char *kwnames[] = {
10066 (char *) "self", NULL
10067 };
10068
10069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
10070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10072 {
10073 PyThreadState* __tstate = wxPyBeginAllowThreads();
10074 result = (int)(arg1)->GetVPosition();
10075
10076 wxPyEndAllowThreads(__tstate);
10077 if (PyErr_Occurred()) SWIG_fail;
10078 }
10079 resultobj = SWIG_FromInt((int)result);
10080 return resultobj;
10081 fail:
10082 return NULL;
10083 }
10084
10085
10086 static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
10087 PyObject *resultobj;
10088 wxJoystick *arg1 = (wxJoystick *) 0 ;
10089 int result;
10090 PyObject * obj0 = 0 ;
10091 char *kwnames[] = {
10092 (char *) "self", NULL
10093 };
10094
10095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
10096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10098 {
10099 PyThreadState* __tstate = wxPyBeginAllowThreads();
10100 result = (int)(arg1)->GetMovementThreshold();
10101
10102 wxPyEndAllowThreads(__tstate);
10103 if (PyErr_Occurred()) SWIG_fail;
10104 }
10105 resultobj = SWIG_FromInt((int)result);
10106 return resultobj;
10107 fail:
10108 return NULL;
10109 }
10110
10111
10112 static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
10113 PyObject *resultobj;
10114 wxJoystick *arg1 = (wxJoystick *) 0 ;
10115 int arg2 ;
10116 PyObject * obj0 = 0 ;
10117 PyObject * obj1 = 0 ;
10118 char *kwnames[] = {
10119 (char *) "self",(char *) "threshold", NULL
10120 };
10121
10122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
10123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10125 arg2 = (int) SWIG_AsInt(obj1);
10126 if (PyErr_Occurred()) SWIG_fail;
10127 {
10128 PyThreadState* __tstate = wxPyBeginAllowThreads();
10129 (arg1)->SetMovementThreshold(arg2);
10130
10131 wxPyEndAllowThreads(__tstate);
10132 if (PyErr_Occurred()) SWIG_fail;
10133 }
10134 Py_INCREF(Py_None); resultobj = Py_None;
10135 return resultobj;
10136 fail:
10137 return NULL;
10138 }
10139
10140
10141 static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
10142 PyObject *resultobj;
10143 wxJoystick *arg1 = (wxJoystick *) 0 ;
10144 bool result;
10145 PyObject * obj0 = 0 ;
10146 char *kwnames[] = {
10147 (char *) "self", NULL
10148 };
10149
10150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
10151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10153 {
10154 PyThreadState* __tstate = wxPyBeginAllowThreads();
10155 result = (bool)(arg1)->IsOk();
10156
10157 wxPyEndAllowThreads(__tstate);
10158 if (PyErr_Occurred()) SWIG_fail;
10159 }
10160 {
10161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10162 }
10163 return resultobj;
10164 fail:
10165 return NULL;
10166 }
10167
10168
10169 static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) {
10170 PyObject *resultobj;
10171 wxJoystick *arg1 = (wxJoystick *) 0 ;
10172 int result;
10173 PyObject * obj0 = 0 ;
10174 char *kwnames[] = {
10175 (char *) "self", NULL
10176 };
10177
10178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
10179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10181 {
10182 PyThreadState* __tstate = wxPyBeginAllowThreads();
10183 result = (int)(arg1)->GetNumberJoysticks();
10184
10185 wxPyEndAllowThreads(__tstate);
10186 if (PyErr_Occurred()) SWIG_fail;
10187 }
10188 resultobj = SWIG_FromInt((int)result);
10189 return resultobj;
10190 fail:
10191 return NULL;
10192 }
10193
10194
10195 static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) {
10196 PyObject *resultobj;
10197 wxJoystick *arg1 = (wxJoystick *) 0 ;
10198 int result;
10199 PyObject * obj0 = 0 ;
10200 char *kwnames[] = {
10201 (char *) "self", NULL
10202 };
10203
10204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
10205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10207 {
10208 PyThreadState* __tstate = wxPyBeginAllowThreads();
10209 result = (int)(arg1)->GetManufacturerId();
10210
10211 wxPyEndAllowThreads(__tstate);
10212 if (PyErr_Occurred()) SWIG_fail;
10213 }
10214 resultobj = SWIG_FromInt((int)result);
10215 return resultobj;
10216 fail:
10217 return NULL;
10218 }
10219
10220
10221 static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) {
10222 PyObject *resultobj;
10223 wxJoystick *arg1 = (wxJoystick *) 0 ;
10224 int result;
10225 PyObject * obj0 = 0 ;
10226 char *kwnames[] = {
10227 (char *) "self", NULL
10228 };
10229
10230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
10231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10233 {
10234 PyThreadState* __tstate = wxPyBeginAllowThreads();
10235 result = (int)(arg1)->GetProductId();
10236
10237 wxPyEndAllowThreads(__tstate);
10238 if (PyErr_Occurred()) SWIG_fail;
10239 }
10240 resultobj = SWIG_FromInt((int)result);
10241 return resultobj;
10242 fail:
10243 return NULL;
10244 }
10245
10246
10247 static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) {
10248 PyObject *resultobj;
10249 wxJoystick *arg1 = (wxJoystick *) 0 ;
10250 wxString result;
10251 PyObject * obj0 = 0 ;
10252 char *kwnames[] = {
10253 (char *) "self", NULL
10254 };
10255
10256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
10257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10259 {
10260 PyThreadState* __tstate = wxPyBeginAllowThreads();
10261 result = (arg1)->GetProductName();
10262
10263 wxPyEndAllowThreads(__tstate);
10264 if (PyErr_Occurred()) SWIG_fail;
10265 }
10266 {
10267 #if wxUSE_UNICODE
10268 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10269 #else
10270 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10271 #endif
10272 }
10273 return resultobj;
10274 fail:
10275 return NULL;
10276 }
10277
10278
10279 static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10280 PyObject *resultobj;
10281 wxJoystick *arg1 = (wxJoystick *) 0 ;
10282 int result;
10283 PyObject * obj0 = 0 ;
10284 char *kwnames[] = {
10285 (char *) "self", NULL
10286 };
10287
10288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
10289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10291 {
10292 PyThreadState* __tstate = wxPyBeginAllowThreads();
10293 result = (int)(arg1)->GetXMin();
10294
10295 wxPyEndAllowThreads(__tstate);
10296 if (PyErr_Occurred()) SWIG_fail;
10297 }
10298 resultobj = SWIG_FromInt((int)result);
10299 return resultobj;
10300 fail:
10301 return NULL;
10302 }
10303
10304
10305 static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10306 PyObject *resultobj;
10307 wxJoystick *arg1 = (wxJoystick *) 0 ;
10308 int result;
10309 PyObject * obj0 = 0 ;
10310 char *kwnames[] = {
10311 (char *) "self", NULL
10312 };
10313
10314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
10315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10317 {
10318 PyThreadState* __tstate = wxPyBeginAllowThreads();
10319 result = (int)(arg1)->GetYMin();
10320
10321 wxPyEndAllowThreads(__tstate);
10322 if (PyErr_Occurred()) SWIG_fail;
10323 }
10324 resultobj = SWIG_FromInt((int)result);
10325 return resultobj;
10326 fail:
10327 return NULL;
10328 }
10329
10330
10331 static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10332 PyObject *resultobj;
10333 wxJoystick *arg1 = (wxJoystick *) 0 ;
10334 int result;
10335 PyObject * obj0 = 0 ;
10336 char *kwnames[] = {
10337 (char *) "self", NULL
10338 };
10339
10340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
10341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10343 {
10344 PyThreadState* __tstate = wxPyBeginAllowThreads();
10345 result = (int)(arg1)->GetZMin();
10346
10347 wxPyEndAllowThreads(__tstate);
10348 if (PyErr_Occurred()) SWIG_fail;
10349 }
10350 resultobj = SWIG_FromInt((int)result);
10351 return resultobj;
10352 fail:
10353 return NULL;
10354 }
10355
10356
10357 static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10358 PyObject *resultobj;
10359 wxJoystick *arg1 = (wxJoystick *) 0 ;
10360 int result;
10361 PyObject * obj0 = 0 ;
10362 char *kwnames[] = {
10363 (char *) "self", NULL
10364 };
10365
10366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
10367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10369 {
10370 PyThreadState* __tstate = wxPyBeginAllowThreads();
10371 result = (int)(arg1)->GetXMax();
10372
10373 wxPyEndAllowThreads(__tstate);
10374 if (PyErr_Occurred()) SWIG_fail;
10375 }
10376 resultobj = SWIG_FromInt((int)result);
10377 return resultobj;
10378 fail:
10379 return NULL;
10380 }
10381
10382
10383 static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10384 PyObject *resultobj;
10385 wxJoystick *arg1 = (wxJoystick *) 0 ;
10386 int result;
10387 PyObject * obj0 = 0 ;
10388 char *kwnames[] = {
10389 (char *) "self", NULL
10390 };
10391
10392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
10393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10395 {
10396 PyThreadState* __tstate = wxPyBeginAllowThreads();
10397 result = (int)(arg1)->GetYMax();
10398
10399 wxPyEndAllowThreads(__tstate);
10400 if (PyErr_Occurred()) SWIG_fail;
10401 }
10402 resultobj = SWIG_FromInt((int)result);
10403 return resultobj;
10404 fail:
10405 return NULL;
10406 }
10407
10408
10409 static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10410 PyObject *resultobj;
10411 wxJoystick *arg1 = (wxJoystick *) 0 ;
10412 int result;
10413 PyObject * obj0 = 0 ;
10414 char *kwnames[] = {
10415 (char *) "self", NULL
10416 };
10417
10418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
10419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10421 {
10422 PyThreadState* __tstate = wxPyBeginAllowThreads();
10423 result = (int)(arg1)->GetZMax();
10424
10425 wxPyEndAllowThreads(__tstate);
10426 if (PyErr_Occurred()) SWIG_fail;
10427 }
10428 resultobj = SWIG_FromInt((int)result);
10429 return resultobj;
10430 fail:
10431 return NULL;
10432 }
10433
10434
10435 static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10436 PyObject *resultobj;
10437 wxJoystick *arg1 = (wxJoystick *) 0 ;
10438 int result;
10439 PyObject * obj0 = 0 ;
10440 char *kwnames[] = {
10441 (char *) "self", NULL
10442 };
10443
10444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
10445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10447 {
10448 PyThreadState* __tstate = wxPyBeginAllowThreads();
10449 result = (int)(arg1)->GetNumberButtons();
10450
10451 wxPyEndAllowThreads(__tstate);
10452 if (PyErr_Occurred()) SWIG_fail;
10453 }
10454 resultobj = SWIG_FromInt((int)result);
10455 return resultobj;
10456 fail:
10457 return NULL;
10458 }
10459
10460
10461 static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10462 PyObject *resultobj;
10463 wxJoystick *arg1 = (wxJoystick *) 0 ;
10464 int result;
10465 PyObject * obj0 = 0 ;
10466 char *kwnames[] = {
10467 (char *) "self", NULL
10468 };
10469
10470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
10471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10473 {
10474 PyThreadState* __tstate = wxPyBeginAllowThreads();
10475 result = (int)(arg1)->GetNumberAxes();
10476
10477 wxPyEndAllowThreads(__tstate);
10478 if (PyErr_Occurred()) SWIG_fail;
10479 }
10480 resultobj = SWIG_FromInt((int)result);
10481 return resultobj;
10482 fail:
10483 return NULL;
10484 }
10485
10486
10487 static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10488 PyObject *resultobj;
10489 wxJoystick *arg1 = (wxJoystick *) 0 ;
10490 int result;
10491 PyObject * obj0 = 0 ;
10492 char *kwnames[] = {
10493 (char *) "self", NULL
10494 };
10495
10496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
10497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10499 {
10500 PyThreadState* __tstate = wxPyBeginAllowThreads();
10501 result = (int)(arg1)->GetMaxButtons();
10502
10503 wxPyEndAllowThreads(__tstate);
10504 if (PyErr_Occurred()) SWIG_fail;
10505 }
10506 resultobj = SWIG_FromInt((int)result);
10507 return resultobj;
10508 fail:
10509 return NULL;
10510 }
10511
10512
10513 static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10514 PyObject *resultobj;
10515 wxJoystick *arg1 = (wxJoystick *) 0 ;
10516 int result;
10517 PyObject * obj0 = 0 ;
10518 char *kwnames[] = {
10519 (char *) "self", NULL
10520 };
10521
10522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
10523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10525 {
10526 PyThreadState* __tstate = wxPyBeginAllowThreads();
10527 result = (int)(arg1)->GetMaxAxes();
10528
10529 wxPyEndAllowThreads(__tstate);
10530 if (PyErr_Occurred()) SWIG_fail;
10531 }
10532 resultobj = SWIG_FromInt((int)result);
10533 return resultobj;
10534 fail:
10535 return NULL;
10536 }
10537
10538
10539 static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10540 PyObject *resultobj;
10541 wxJoystick *arg1 = (wxJoystick *) 0 ;
10542 int result;
10543 PyObject * obj0 = 0 ;
10544 char *kwnames[] = {
10545 (char *) "self", NULL
10546 };
10547
10548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
10549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10551 {
10552 PyThreadState* __tstate = wxPyBeginAllowThreads();
10553 result = (int)(arg1)->GetPollingMin();
10554
10555 wxPyEndAllowThreads(__tstate);
10556 if (PyErr_Occurred()) SWIG_fail;
10557 }
10558 resultobj = SWIG_FromInt((int)result);
10559 return resultobj;
10560 fail:
10561 return NULL;
10562 }
10563
10564
10565 static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10566 PyObject *resultobj;
10567 wxJoystick *arg1 = (wxJoystick *) 0 ;
10568 int result;
10569 PyObject * obj0 = 0 ;
10570 char *kwnames[] = {
10571 (char *) "self", NULL
10572 };
10573
10574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
10575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10577 {
10578 PyThreadState* __tstate = wxPyBeginAllowThreads();
10579 result = (int)(arg1)->GetPollingMax();
10580
10581 wxPyEndAllowThreads(__tstate);
10582 if (PyErr_Occurred()) SWIG_fail;
10583 }
10584 resultobj = SWIG_FromInt((int)result);
10585 return resultobj;
10586 fail:
10587 return NULL;
10588 }
10589
10590
10591 static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10592 PyObject *resultobj;
10593 wxJoystick *arg1 = (wxJoystick *) 0 ;
10594 int result;
10595 PyObject * obj0 = 0 ;
10596 char *kwnames[] = {
10597 (char *) "self", NULL
10598 };
10599
10600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
10601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10603 {
10604 PyThreadState* __tstate = wxPyBeginAllowThreads();
10605 result = (int)(arg1)->GetRudderMin();
10606
10607 wxPyEndAllowThreads(__tstate);
10608 if (PyErr_Occurred()) SWIG_fail;
10609 }
10610 resultobj = SWIG_FromInt((int)result);
10611 return resultobj;
10612 fail:
10613 return NULL;
10614 }
10615
10616
10617 static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10618 PyObject *resultobj;
10619 wxJoystick *arg1 = (wxJoystick *) 0 ;
10620 int result;
10621 PyObject * obj0 = 0 ;
10622 char *kwnames[] = {
10623 (char *) "self", NULL
10624 };
10625
10626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
10627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10629 {
10630 PyThreadState* __tstate = wxPyBeginAllowThreads();
10631 result = (int)(arg1)->GetRudderMax();
10632
10633 wxPyEndAllowThreads(__tstate);
10634 if (PyErr_Occurred()) SWIG_fail;
10635 }
10636 resultobj = SWIG_FromInt((int)result);
10637 return resultobj;
10638 fail:
10639 return NULL;
10640 }
10641
10642
10643 static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10644 PyObject *resultobj;
10645 wxJoystick *arg1 = (wxJoystick *) 0 ;
10646 int result;
10647 PyObject * obj0 = 0 ;
10648 char *kwnames[] = {
10649 (char *) "self", NULL
10650 };
10651
10652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
10653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10655 {
10656 PyThreadState* __tstate = wxPyBeginAllowThreads();
10657 result = (int)(arg1)->GetUMin();
10658
10659 wxPyEndAllowThreads(__tstate);
10660 if (PyErr_Occurred()) SWIG_fail;
10661 }
10662 resultobj = SWIG_FromInt((int)result);
10663 return resultobj;
10664 fail:
10665 return NULL;
10666 }
10667
10668
10669 static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10670 PyObject *resultobj;
10671 wxJoystick *arg1 = (wxJoystick *) 0 ;
10672 int result;
10673 PyObject * obj0 = 0 ;
10674 char *kwnames[] = {
10675 (char *) "self", NULL
10676 };
10677
10678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
10679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10681 {
10682 PyThreadState* __tstate = wxPyBeginAllowThreads();
10683 result = (int)(arg1)->GetUMax();
10684
10685 wxPyEndAllowThreads(__tstate);
10686 if (PyErr_Occurred()) SWIG_fail;
10687 }
10688 resultobj = SWIG_FromInt((int)result);
10689 return resultobj;
10690 fail:
10691 return NULL;
10692 }
10693
10694
10695 static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10696 PyObject *resultobj;
10697 wxJoystick *arg1 = (wxJoystick *) 0 ;
10698 int result;
10699 PyObject * obj0 = 0 ;
10700 char *kwnames[] = {
10701 (char *) "self", NULL
10702 };
10703
10704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
10705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10707 {
10708 PyThreadState* __tstate = wxPyBeginAllowThreads();
10709 result = (int)(arg1)->GetVMin();
10710
10711 wxPyEndAllowThreads(__tstate);
10712 if (PyErr_Occurred()) SWIG_fail;
10713 }
10714 resultobj = SWIG_FromInt((int)result);
10715 return resultobj;
10716 fail:
10717 return NULL;
10718 }
10719
10720
10721 static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10722 PyObject *resultobj;
10723 wxJoystick *arg1 = (wxJoystick *) 0 ;
10724 int result;
10725 PyObject * obj0 = 0 ;
10726 char *kwnames[] = {
10727 (char *) "self", NULL
10728 };
10729
10730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
10731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10733 {
10734 PyThreadState* __tstate = wxPyBeginAllowThreads();
10735 result = (int)(arg1)->GetVMax();
10736
10737 wxPyEndAllowThreads(__tstate);
10738 if (PyErr_Occurred()) SWIG_fail;
10739 }
10740 resultobj = SWIG_FromInt((int)result);
10741 return resultobj;
10742 fail:
10743 return NULL;
10744 }
10745
10746
10747 static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) {
10748 PyObject *resultobj;
10749 wxJoystick *arg1 = (wxJoystick *) 0 ;
10750 bool result;
10751 PyObject * obj0 = 0 ;
10752 char *kwnames[] = {
10753 (char *) "self", NULL
10754 };
10755
10756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
10757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10759 {
10760 PyThreadState* __tstate = wxPyBeginAllowThreads();
10761 result = (bool)(arg1)->HasRudder();
10762
10763 wxPyEndAllowThreads(__tstate);
10764 if (PyErr_Occurred()) SWIG_fail;
10765 }
10766 {
10767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10768 }
10769 return resultobj;
10770 fail:
10771 return NULL;
10772 }
10773
10774
10775 static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) {
10776 PyObject *resultobj;
10777 wxJoystick *arg1 = (wxJoystick *) 0 ;
10778 bool result;
10779 PyObject * obj0 = 0 ;
10780 char *kwnames[] = {
10781 (char *) "self", NULL
10782 };
10783
10784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
10785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10787 {
10788 PyThreadState* __tstate = wxPyBeginAllowThreads();
10789 result = (bool)(arg1)->HasZ();
10790
10791 wxPyEndAllowThreads(__tstate);
10792 if (PyErr_Occurred()) SWIG_fail;
10793 }
10794 {
10795 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10796 }
10797 return resultobj;
10798 fail:
10799 return NULL;
10800 }
10801
10802
10803 static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) {
10804 PyObject *resultobj;
10805 wxJoystick *arg1 = (wxJoystick *) 0 ;
10806 bool result;
10807 PyObject * obj0 = 0 ;
10808 char *kwnames[] = {
10809 (char *) "self", NULL
10810 };
10811
10812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
10813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10815 {
10816 PyThreadState* __tstate = wxPyBeginAllowThreads();
10817 result = (bool)(arg1)->HasU();
10818
10819 wxPyEndAllowThreads(__tstate);
10820 if (PyErr_Occurred()) SWIG_fail;
10821 }
10822 {
10823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10824 }
10825 return resultobj;
10826 fail:
10827 return NULL;
10828 }
10829
10830
10831 static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) {
10832 PyObject *resultobj;
10833 wxJoystick *arg1 = (wxJoystick *) 0 ;
10834 bool result;
10835 PyObject * obj0 = 0 ;
10836 char *kwnames[] = {
10837 (char *) "self", NULL
10838 };
10839
10840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
10841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10843 {
10844 PyThreadState* __tstate = wxPyBeginAllowThreads();
10845 result = (bool)(arg1)->HasV();
10846
10847 wxPyEndAllowThreads(__tstate);
10848 if (PyErr_Occurred()) SWIG_fail;
10849 }
10850 {
10851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10852 }
10853 return resultobj;
10854 fail:
10855 return NULL;
10856 }
10857
10858
10859 static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) {
10860 PyObject *resultobj;
10861 wxJoystick *arg1 = (wxJoystick *) 0 ;
10862 bool result;
10863 PyObject * obj0 = 0 ;
10864 char *kwnames[] = {
10865 (char *) "self", NULL
10866 };
10867
10868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
10869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10871 {
10872 PyThreadState* __tstate = wxPyBeginAllowThreads();
10873 result = (bool)(arg1)->HasPOV();
10874
10875 wxPyEndAllowThreads(__tstate);
10876 if (PyErr_Occurred()) SWIG_fail;
10877 }
10878 {
10879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10880 }
10881 return resultobj;
10882 fail:
10883 return NULL;
10884 }
10885
10886
10887 static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) {
10888 PyObject *resultobj;
10889 wxJoystick *arg1 = (wxJoystick *) 0 ;
10890 bool result;
10891 PyObject * obj0 = 0 ;
10892 char *kwnames[] = {
10893 (char *) "self", NULL
10894 };
10895
10896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
10897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10899 {
10900 PyThreadState* __tstate = wxPyBeginAllowThreads();
10901 result = (bool)(arg1)->HasPOV4Dir();
10902
10903 wxPyEndAllowThreads(__tstate);
10904 if (PyErr_Occurred()) SWIG_fail;
10905 }
10906 {
10907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10908 }
10909 return resultobj;
10910 fail:
10911 return NULL;
10912 }
10913
10914
10915 static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) {
10916 PyObject *resultobj;
10917 wxJoystick *arg1 = (wxJoystick *) 0 ;
10918 bool result;
10919 PyObject * obj0 = 0 ;
10920 char *kwnames[] = {
10921 (char *) "self", NULL
10922 };
10923
10924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
10925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10927 {
10928 PyThreadState* __tstate = wxPyBeginAllowThreads();
10929 result = (bool)(arg1)->HasPOVCTS();
10930
10931 wxPyEndAllowThreads(__tstate);
10932 if (PyErr_Occurred()) SWIG_fail;
10933 }
10934 {
10935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10936 }
10937 return resultobj;
10938 fail:
10939 return NULL;
10940 }
10941
10942
10943 static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10944 PyObject *resultobj;
10945 wxJoystick *arg1 = (wxJoystick *) 0 ;
10946 wxWindow *arg2 = (wxWindow *) 0 ;
10947 int arg3 = (int) 0 ;
10948 bool result;
10949 PyObject * obj0 = 0 ;
10950 PyObject * obj1 = 0 ;
10951 PyObject * obj2 = 0 ;
10952 char *kwnames[] = {
10953 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
10954 };
10955
10956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
10957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10959 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10961 if (obj2) {
10962 arg3 = (int) SWIG_AsInt(obj2);
10963 if (PyErr_Occurred()) SWIG_fail;
10964 }
10965 {
10966 PyThreadState* __tstate = wxPyBeginAllowThreads();
10967 result = (bool)(arg1)->SetCapture(arg2,arg3);
10968
10969 wxPyEndAllowThreads(__tstate);
10970 if (PyErr_Occurred()) SWIG_fail;
10971 }
10972 {
10973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10974 }
10975 return resultobj;
10976 fail:
10977 return NULL;
10978 }
10979
10980
10981 static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10982 PyObject *resultobj;
10983 wxJoystick *arg1 = (wxJoystick *) 0 ;
10984 bool result;
10985 PyObject * obj0 = 0 ;
10986 char *kwnames[] = {
10987 (char *) "self", NULL
10988 };
10989
10990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
10991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10993 {
10994 PyThreadState* __tstate = wxPyBeginAllowThreads();
10995 result = (bool)(arg1)->ReleaseCapture();
10996
10997 wxPyEndAllowThreads(__tstate);
10998 if (PyErr_Occurred()) SWIG_fail;
10999 }
11000 {
11001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11002 }
11003 return resultobj;
11004 fail:
11005 return NULL;
11006 }
11007
11008
11009 static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) {
11010 PyObject *obj;
11011 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11012 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
11013 Py_INCREF(obj);
11014 return Py_BuildValue((char *)"");
11015 }
11016 static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) {
11017 PyObject *resultobj;
11018 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11019 wxPoint *arg2 = (wxPoint *) 0 ;
11020 PyObject * obj0 = 0 ;
11021 PyObject * obj1 = 0 ;
11022 char *kwnames[] = {
11023 (char *) "self",(char *) "m_pos", NULL
11024 };
11025
11026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
11027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11029 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
11030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11031 if (arg1) (arg1)->m_pos = *arg2;
11032
11033 Py_INCREF(Py_None); resultobj = Py_None;
11034 return resultobj;
11035 fail:
11036 return NULL;
11037 }
11038
11039
11040 static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) {
11041 PyObject *resultobj;
11042 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11043 wxPoint *result;
11044 PyObject * obj0 = 0 ;
11045 char *kwnames[] = {
11046 (char *) "self", NULL
11047 };
11048
11049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
11050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11052 result = (wxPoint *)& ((arg1)->m_pos);
11053
11054 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
11055 return resultobj;
11056 fail:
11057 return NULL;
11058 }
11059
11060
11061 static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) {
11062 PyObject *resultobj;
11063 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11064 int arg2 ;
11065 PyObject * obj0 = 0 ;
11066 PyObject * obj1 = 0 ;
11067 char *kwnames[] = {
11068 (char *) "self",(char *) "m_zPosition", NULL
11069 };
11070
11071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail;
11072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11074 arg2 = (int) SWIG_AsInt(obj1);
11075 if (PyErr_Occurred()) SWIG_fail;
11076 if (arg1) (arg1)->m_zPosition = arg2;
11077
11078 Py_INCREF(Py_None); resultobj = Py_None;
11079 return resultobj;
11080 fail:
11081 return NULL;
11082 }
11083
11084
11085 static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) {
11086 PyObject *resultobj;
11087 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11088 int result;
11089 PyObject * obj0 = 0 ;
11090 char *kwnames[] = {
11091 (char *) "self", NULL
11092 };
11093
11094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
11095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11097 result = (int) ((arg1)->m_zPosition);
11098
11099 resultobj = SWIG_FromInt((int)result);
11100 return resultobj;
11101 fail:
11102 return NULL;
11103 }
11104
11105
11106 static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) {
11107 PyObject *resultobj;
11108 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11109 int arg2 ;
11110 PyObject * obj0 = 0 ;
11111 PyObject * obj1 = 0 ;
11112 char *kwnames[] = {
11113 (char *) "self",(char *) "m_buttonChange", NULL
11114 };
11115
11116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail;
11117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11119 arg2 = (int) SWIG_AsInt(obj1);
11120 if (PyErr_Occurred()) SWIG_fail;
11121 if (arg1) (arg1)->m_buttonChange = arg2;
11122
11123 Py_INCREF(Py_None); resultobj = Py_None;
11124 return resultobj;
11125 fail:
11126 return NULL;
11127 }
11128
11129
11130 static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) {
11131 PyObject *resultobj;
11132 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11133 int result;
11134 PyObject * obj0 = 0 ;
11135 char *kwnames[] = {
11136 (char *) "self", NULL
11137 };
11138
11139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
11140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11142 result = (int) ((arg1)->m_buttonChange);
11143
11144 resultobj = SWIG_FromInt((int)result);
11145 return resultobj;
11146 fail:
11147 return NULL;
11148 }
11149
11150
11151 static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) {
11152 PyObject *resultobj;
11153 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11154 int arg2 ;
11155 PyObject * obj0 = 0 ;
11156 PyObject * obj1 = 0 ;
11157 char *kwnames[] = {
11158 (char *) "self",(char *) "m_buttonState", NULL
11159 };
11160
11161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail;
11162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11164 arg2 = (int) SWIG_AsInt(obj1);
11165 if (PyErr_Occurred()) SWIG_fail;
11166 if (arg1) (arg1)->m_buttonState = arg2;
11167
11168 Py_INCREF(Py_None); resultobj = Py_None;
11169 return resultobj;
11170 fail:
11171 return NULL;
11172 }
11173
11174
11175 static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) {
11176 PyObject *resultobj;
11177 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11178 int result;
11179 PyObject * obj0 = 0 ;
11180 char *kwnames[] = {
11181 (char *) "self", NULL
11182 };
11183
11184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
11185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11187 result = (int) ((arg1)->m_buttonState);
11188
11189 resultobj = SWIG_FromInt((int)result);
11190 return resultobj;
11191 fail:
11192 return NULL;
11193 }
11194
11195
11196 static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) {
11197 PyObject *resultobj;
11198 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11199 int arg2 ;
11200 PyObject * obj0 = 0 ;
11201 PyObject * obj1 = 0 ;
11202 char *kwnames[] = {
11203 (char *) "self",(char *) "m_joyStick", NULL
11204 };
11205
11206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail;
11207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11209 arg2 = (int) SWIG_AsInt(obj1);
11210 if (PyErr_Occurred()) SWIG_fail;
11211 if (arg1) (arg1)->m_joyStick = arg2;
11212
11213 Py_INCREF(Py_None); resultobj = Py_None;
11214 return resultobj;
11215 fail:
11216 return NULL;
11217 }
11218
11219
11220 static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) {
11221 PyObject *resultobj;
11222 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11223 int result;
11224 PyObject * obj0 = 0 ;
11225 char *kwnames[] = {
11226 (char *) "self", NULL
11227 };
11228
11229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
11230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11232 result = (int) ((arg1)->m_joyStick);
11233
11234 resultobj = SWIG_FromInt((int)result);
11235 return resultobj;
11236 fail:
11237 return NULL;
11238 }
11239
11240
11241 static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
11242 PyObject *resultobj;
11243 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11244 int arg2 = (int) 0 ;
11245 int arg3 = (int) wxJOYSTICK1 ;
11246 int arg4 = (int) 0 ;
11247 wxJoystickEvent *result;
11248 PyObject * obj0 = 0 ;
11249 PyObject * obj1 = 0 ;
11250 PyObject * obj2 = 0 ;
11251 PyObject * obj3 = 0 ;
11252 char *kwnames[] = {
11253 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
11254 };
11255
11256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11257 if (obj0) {
11258 arg1 = (wxEventType) SWIG_AsInt(obj0);
11259 if (PyErr_Occurred()) SWIG_fail;
11260 }
11261 if (obj1) {
11262 arg2 = (int) SWIG_AsInt(obj1);
11263 if (PyErr_Occurred()) SWIG_fail;
11264 }
11265 if (obj2) {
11266 arg3 = (int) SWIG_AsInt(obj2);
11267 if (PyErr_Occurred()) SWIG_fail;
11268 }
11269 if (obj3) {
11270 arg4 = (int) SWIG_AsInt(obj3);
11271 if (PyErr_Occurred()) SWIG_fail;
11272 }
11273 {
11274 PyThreadState* __tstate = wxPyBeginAllowThreads();
11275 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
11276
11277 wxPyEndAllowThreads(__tstate);
11278 if (PyErr_Occurred()) SWIG_fail;
11279 }
11280 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
11281 return resultobj;
11282 fail:
11283 return NULL;
11284 }
11285
11286
11287 static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11288 PyObject *resultobj;
11289 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11290 wxPoint result;
11291 PyObject * obj0 = 0 ;
11292 char *kwnames[] = {
11293 (char *) "self", NULL
11294 };
11295
11296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
11297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11299 {
11300 PyThreadState* __tstate = wxPyBeginAllowThreads();
11301 result = ((wxJoystickEvent const *)arg1)->GetPosition();
11302
11303 wxPyEndAllowThreads(__tstate);
11304 if (PyErr_Occurred()) SWIG_fail;
11305 }
11306 {
11307 wxPoint * resultptr;
11308 resultptr = new wxPoint((wxPoint &) result);
11309 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
11310 }
11311 return resultobj;
11312 fail:
11313 return NULL;
11314 }
11315
11316
11317 static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11318 PyObject *resultobj;
11319 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11320 int result;
11321 PyObject * obj0 = 0 ;
11322 char *kwnames[] = {
11323 (char *) "self", NULL
11324 };
11325
11326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
11327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11329 {
11330 PyThreadState* __tstate = wxPyBeginAllowThreads();
11331 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
11332
11333 wxPyEndAllowThreads(__tstate);
11334 if (PyErr_Occurred()) SWIG_fail;
11335 }
11336 resultobj = SWIG_FromInt((int)result);
11337 return resultobj;
11338 fail:
11339 return NULL;
11340 }
11341
11342
11343 static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
11344 PyObject *resultobj;
11345 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11346 int result;
11347 PyObject * obj0 = 0 ;
11348 char *kwnames[] = {
11349 (char *) "self", NULL
11350 };
11351
11352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
11353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11355 {
11356 PyThreadState* __tstate = wxPyBeginAllowThreads();
11357 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
11358
11359 wxPyEndAllowThreads(__tstate);
11360 if (PyErr_Occurred()) SWIG_fail;
11361 }
11362 resultobj = SWIG_FromInt((int)result);
11363 return resultobj;
11364 fail:
11365 return NULL;
11366 }
11367
11368
11369 static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
11370 PyObject *resultobj;
11371 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11372 int result;
11373 PyObject * obj0 = 0 ;
11374 char *kwnames[] = {
11375 (char *) "self", NULL
11376 };
11377
11378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
11379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11381 {
11382 PyThreadState* __tstate = wxPyBeginAllowThreads();
11383 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
11384
11385 wxPyEndAllowThreads(__tstate);
11386 if (PyErr_Occurred()) SWIG_fail;
11387 }
11388 resultobj = SWIG_FromInt((int)result);
11389 return resultobj;
11390 fail:
11391 return NULL;
11392 }
11393
11394
11395 static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
11396 PyObject *resultobj;
11397 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11398 int result;
11399 PyObject * obj0 = 0 ;
11400 char *kwnames[] = {
11401 (char *) "self", NULL
11402 };
11403
11404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
11405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11407 {
11408 PyThreadState* __tstate = wxPyBeginAllowThreads();
11409 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
11410
11411 wxPyEndAllowThreads(__tstate);
11412 if (PyErr_Occurred()) SWIG_fail;
11413 }
11414 resultobj = SWIG_FromInt((int)result);
11415 return resultobj;
11416 fail:
11417 return NULL;
11418 }
11419
11420
11421 static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
11422 PyObject *resultobj;
11423 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11424 int arg2 ;
11425 PyObject * obj0 = 0 ;
11426 PyObject * obj1 = 0 ;
11427 char *kwnames[] = {
11428 (char *) "self",(char *) "stick", NULL
11429 };
11430
11431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
11432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11434 arg2 = (int) SWIG_AsInt(obj1);
11435 if (PyErr_Occurred()) SWIG_fail;
11436 {
11437 PyThreadState* __tstate = wxPyBeginAllowThreads();
11438 (arg1)->SetJoystick(arg2);
11439
11440 wxPyEndAllowThreads(__tstate);
11441 if (PyErr_Occurred()) SWIG_fail;
11442 }
11443 Py_INCREF(Py_None); resultobj = Py_None;
11444 return resultobj;
11445 fail:
11446 return NULL;
11447 }
11448
11449
11450 static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
11451 PyObject *resultobj;
11452 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11453 int arg2 ;
11454 PyObject * obj0 = 0 ;
11455 PyObject * obj1 = 0 ;
11456 char *kwnames[] = {
11457 (char *) "self",(char *) "state", NULL
11458 };
11459
11460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
11461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11463 arg2 = (int) SWIG_AsInt(obj1);
11464 if (PyErr_Occurred()) SWIG_fail;
11465 {
11466 PyThreadState* __tstate = wxPyBeginAllowThreads();
11467 (arg1)->SetButtonState(arg2);
11468
11469 wxPyEndAllowThreads(__tstate);
11470 if (PyErr_Occurred()) SWIG_fail;
11471 }
11472 Py_INCREF(Py_None); resultobj = Py_None;
11473 return resultobj;
11474 fail:
11475 return NULL;
11476 }
11477
11478
11479 static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
11480 PyObject *resultobj;
11481 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11482 int arg2 ;
11483 PyObject * obj0 = 0 ;
11484 PyObject * obj1 = 0 ;
11485 char *kwnames[] = {
11486 (char *) "self",(char *) "change", NULL
11487 };
11488
11489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
11490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11492 arg2 = (int) SWIG_AsInt(obj1);
11493 if (PyErr_Occurred()) SWIG_fail;
11494 {
11495 PyThreadState* __tstate = wxPyBeginAllowThreads();
11496 (arg1)->SetButtonChange(arg2);
11497
11498 wxPyEndAllowThreads(__tstate);
11499 if (PyErr_Occurred()) SWIG_fail;
11500 }
11501 Py_INCREF(Py_None); resultobj = Py_None;
11502 return resultobj;
11503 fail:
11504 return NULL;
11505 }
11506
11507
11508 static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11509 PyObject *resultobj;
11510 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11511 wxPoint *arg2 = 0 ;
11512 wxPoint temp2 ;
11513 PyObject * obj0 = 0 ;
11514 PyObject * obj1 = 0 ;
11515 char *kwnames[] = {
11516 (char *) "self",(char *) "pos", NULL
11517 };
11518
11519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11522 {
11523 arg2 = &temp2;
11524 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11525 }
11526 {
11527 PyThreadState* __tstate = wxPyBeginAllowThreads();
11528 (arg1)->SetPosition((wxPoint const &)*arg2);
11529
11530 wxPyEndAllowThreads(__tstate);
11531 if (PyErr_Occurred()) SWIG_fail;
11532 }
11533 Py_INCREF(Py_None); resultobj = Py_None;
11534 return resultobj;
11535 fail:
11536 return NULL;
11537 }
11538
11539
11540 static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11541 PyObject *resultobj;
11542 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11543 int arg2 ;
11544 PyObject * obj0 = 0 ;
11545 PyObject * obj1 = 0 ;
11546 char *kwnames[] = {
11547 (char *) "self",(char *) "zPos", NULL
11548 };
11549
11550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
11551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11553 arg2 = (int) SWIG_AsInt(obj1);
11554 if (PyErr_Occurred()) SWIG_fail;
11555 {
11556 PyThreadState* __tstate = wxPyBeginAllowThreads();
11557 (arg1)->SetZPosition(arg2);
11558
11559 wxPyEndAllowThreads(__tstate);
11560 if (PyErr_Occurred()) SWIG_fail;
11561 }
11562 Py_INCREF(Py_None); resultobj = Py_None;
11563 return resultobj;
11564 fail:
11565 return NULL;
11566 }
11567
11568
11569 static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11570 PyObject *resultobj;
11571 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11572 bool result;
11573 PyObject * obj0 = 0 ;
11574 char *kwnames[] = {
11575 (char *) "self", NULL
11576 };
11577
11578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
11579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11581 {
11582 PyThreadState* __tstate = wxPyBeginAllowThreads();
11583 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
11584
11585 wxPyEndAllowThreads(__tstate);
11586 if (PyErr_Occurred()) SWIG_fail;
11587 }
11588 {
11589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11590 }
11591 return resultobj;
11592 fail:
11593 return NULL;
11594 }
11595
11596
11597 static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11598 PyObject *resultobj;
11599 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11600 bool result;
11601 PyObject * obj0 = 0 ;
11602 char *kwnames[] = {
11603 (char *) "self", NULL
11604 };
11605
11606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
11607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11609 {
11610 PyThreadState* __tstate = wxPyBeginAllowThreads();
11611 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
11612
11613 wxPyEndAllowThreads(__tstate);
11614 if (PyErr_Occurred()) SWIG_fail;
11615 }
11616 {
11617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11618 }
11619 return resultobj;
11620 fail:
11621 return NULL;
11622 }
11623
11624
11625 static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11626 PyObject *resultobj;
11627 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11628 bool result;
11629 PyObject * obj0 = 0 ;
11630 char *kwnames[] = {
11631 (char *) "self", NULL
11632 };
11633
11634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
11635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11637 {
11638 PyThreadState* __tstate = wxPyBeginAllowThreads();
11639 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
11640
11641 wxPyEndAllowThreads(__tstate);
11642 if (PyErr_Occurred()) SWIG_fail;
11643 }
11644 {
11645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11646 }
11647 return resultobj;
11648 fail:
11649 return NULL;
11650 }
11651
11652
11653 static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11654 PyObject *resultobj;
11655 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11656 int arg2 = (int) wxJOY_BUTTON_ANY ;
11657 bool result;
11658 PyObject * obj0 = 0 ;
11659 PyObject * obj1 = 0 ;
11660 char *kwnames[] = {
11661 (char *) "self",(char *) "but", NULL
11662 };
11663
11664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
11665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11667 if (obj1) {
11668 arg2 = (int) SWIG_AsInt(obj1);
11669 if (PyErr_Occurred()) SWIG_fail;
11670 }
11671 {
11672 PyThreadState* __tstate = wxPyBeginAllowThreads();
11673 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
11674
11675 wxPyEndAllowThreads(__tstate);
11676 if (PyErr_Occurred()) SWIG_fail;
11677 }
11678 {
11679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11680 }
11681 return resultobj;
11682 fail:
11683 return NULL;
11684 }
11685
11686
11687 static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) {
11688 PyObject *resultobj;
11689 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11690 int arg2 = (int) wxJOY_BUTTON_ANY ;
11691 bool result;
11692 PyObject * obj0 = 0 ;
11693 PyObject * obj1 = 0 ;
11694 char *kwnames[] = {
11695 (char *) "self",(char *) "but", NULL
11696 };
11697
11698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
11699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11701 if (obj1) {
11702 arg2 = (int) SWIG_AsInt(obj1);
11703 if (PyErr_Occurred()) SWIG_fail;
11704 }
11705 {
11706 PyThreadState* __tstate = wxPyBeginAllowThreads();
11707 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
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_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11722 PyObject *resultobj;
11723 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11724 int arg2 = (int) wxJOY_BUTTON_ANY ;
11725 bool result;
11726 PyObject * obj0 = 0 ;
11727 PyObject * obj1 = 0 ;
11728 char *kwnames[] = {
11729 (char *) "self",(char *) "but", NULL
11730 };
11731
11732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
11733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11735 if (obj1) {
11736 arg2 = (int) SWIG_AsInt(obj1);
11737 if (PyErr_Occurred()) SWIG_fail;
11738 }
11739 {
11740 PyThreadState* __tstate = wxPyBeginAllowThreads();
11741 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
11742
11743 wxPyEndAllowThreads(__tstate);
11744 if (PyErr_Occurred()) SWIG_fail;
11745 }
11746 {
11747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11748 }
11749 return resultobj;
11750 fail:
11751 return NULL;
11752 }
11753
11754
11755 static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) {
11756 PyObject *obj;
11757 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11758 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
11759 Py_INCREF(obj);
11760 return Py_BuildValue((char *)"");
11761 }
11762 static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
11763 PyObject *resultobj;
11764 wxString const &arg1_defvalue = wxPyEmptyString ;
11765 wxString *arg1 = (wxString *) &arg1_defvalue ;
11766 wxSound *result;
11767 bool temp1 = False ;
11768 PyObject * obj0 = 0 ;
11769 char *kwnames[] = {
11770 (char *) "fileName", NULL
11771 };
11772
11773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail;
11774 if (obj0) {
11775 {
11776 arg1 = wxString_in_helper(obj0);
11777 if (arg1 == NULL) SWIG_fail;
11778 temp1 = True;
11779 }
11780 }
11781 {
11782 if (!wxPyCheckForApp()) SWIG_fail;
11783 PyThreadState* __tstate = wxPyBeginAllowThreads();
11784 result = (wxSound *)new_wxSound((wxString const &)*arg1);
11785
11786 wxPyEndAllowThreads(__tstate);
11787 if (PyErr_Occurred()) SWIG_fail;
11788 }
11789 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11790 {
11791 if (temp1)
11792 delete arg1;
11793 }
11794 return resultobj;
11795 fail:
11796 {
11797 if (temp1)
11798 delete arg1;
11799 }
11800 return NULL;
11801 }
11802
11803
11804 static PyObject *_wrap_new_SoundFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
11805 PyObject *resultobj;
11806 PyObject *arg1 = (PyObject *) 0 ;
11807 wxSound *result;
11808 PyObject * obj0 = 0 ;
11809 char *kwnames[] = {
11810 (char *) "data", NULL
11811 };
11812
11813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail;
11814 arg1 = obj0;
11815 {
11816 if (!wxPyCheckForApp()) SWIG_fail;
11817 PyThreadState* __tstate = wxPyBeginAllowThreads();
11818 result = (wxSound *)new_wxSound(arg1);
11819
11820 wxPyEndAllowThreads(__tstate);
11821 if (PyErr_Occurred()) SWIG_fail;
11822 }
11823 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11824 return resultobj;
11825 fail:
11826 return NULL;
11827 }
11828
11829
11830 static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
11831 PyObject *resultobj;
11832 wxSound *arg1 = (wxSound *) 0 ;
11833 PyObject * obj0 = 0 ;
11834 char *kwnames[] = {
11835 (char *) "self", NULL
11836 };
11837
11838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
11839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11841 {
11842 PyThreadState* __tstate = wxPyBeginAllowThreads();
11843 delete arg1;
11844
11845 wxPyEndAllowThreads(__tstate);
11846 if (PyErr_Occurred()) SWIG_fail;
11847 }
11848 Py_INCREF(Py_None); resultobj = Py_None;
11849 return resultobj;
11850 fail:
11851 return NULL;
11852 }
11853
11854
11855 static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11856 PyObject *resultobj;
11857 wxSound *arg1 = (wxSound *) 0 ;
11858 wxString *arg2 = 0 ;
11859 bool result;
11860 bool temp2 = False ;
11861 PyObject * obj0 = 0 ;
11862 PyObject * obj1 = 0 ;
11863 char *kwnames[] = {
11864 (char *) "self",(char *) "fileName", NULL
11865 };
11866
11867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail;
11868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11870 {
11871 arg2 = wxString_in_helper(obj1);
11872 if (arg2 == NULL) SWIG_fail;
11873 temp2 = True;
11874 }
11875 {
11876 PyThreadState* __tstate = wxPyBeginAllowThreads();
11877 result = (bool)(arg1)->Create((wxString const &)*arg2);
11878
11879 wxPyEndAllowThreads(__tstate);
11880 if (PyErr_Occurred()) SWIG_fail;
11881 }
11882 {
11883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11884 }
11885 {
11886 if (temp2)
11887 delete arg2;
11888 }
11889 return resultobj;
11890 fail:
11891 {
11892 if (temp2)
11893 delete arg2;
11894 }
11895 return NULL;
11896 }
11897
11898
11899 static PyObject *_wrap_Sound_CreateFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
11900 PyObject *resultobj;
11901 wxSound *arg1 = (wxSound *) 0 ;
11902 PyObject *arg2 = (PyObject *) 0 ;
11903 bool result;
11904 PyObject * obj0 = 0 ;
11905 PyObject * obj1 = 0 ;
11906 char *kwnames[] = {
11907 (char *) "self",(char *) "data", NULL
11908 };
11909
11910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail;
11911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11913 arg2 = obj1;
11914 {
11915 PyThreadState* __tstate = wxPyBeginAllowThreads();
11916 result = (bool)wxSound_CreateFromData(arg1,arg2);
11917
11918 wxPyEndAllowThreads(__tstate);
11919 if (PyErr_Occurred()) SWIG_fail;
11920 }
11921 {
11922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11923 }
11924 return resultobj;
11925 fail:
11926 return NULL;
11927 }
11928
11929
11930 static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
11931 PyObject *resultobj;
11932 wxSound *arg1 = (wxSound *) 0 ;
11933 bool result;
11934 PyObject * obj0 = 0 ;
11935 char *kwnames[] = {
11936 (char *) "self", NULL
11937 };
11938
11939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
11940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11942 {
11943 PyThreadState* __tstate = wxPyBeginAllowThreads();
11944 result = (bool)(arg1)->IsOk();
11945
11946 wxPyEndAllowThreads(__tstate);
11947 if (PyErr_Occurred()) SWIG_fail;
11948 }
11949 {
11950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11951 }
11952 return resultobj;
11953 fail:
11954 return NULL;
11955 }
11956
11957
11958 static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args, PyObject *kwargs) {
11959 PyObject *resultobj;
11960 wxSound *arg1 = (wxSound *) 0 ;
11961 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11962 bool result;
11963 PyObject * obj0 = 0 ;
11964 PyObject * obj1 = 0 ;
11965 char *kwnames[] = {
11966 (char *) "self",(char *) "flags", NULL
11967 };
11968
11969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail;
11970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11972 if (obj1) {
11973 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11974 if (PyErr_Occurred()) SWIG_fail;
11975 }
11976 {
11977 if (!wxPyCheckForApp()) SWIG_fail;
11978 PyThreadState* __tstate = wxPyBeginAllowThreads();
11979 result = (bool)((wxSound const *)arg1)->Play(arg2);
11980
11981 wxPyEndAllowThreads(__tstate);
11982 if (PyErr_Occurred()) SWIG_fail;
11983 }
11984 {
11985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11986 }
11987 return resultobj;
11988 fail:
11989 return NULL;
11990 }
11991
11992
11993 static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args, PyObject *kwargs) {
11994 PyObject *resultobj;
11995 wxString *arg1 = 0 ;
11996 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11997 bool result;
11998 bool temp1 = False ;
11999 PyObject * obj0 = 0 ;
12000 PyObject * obj1 = 0 ;
12001 char *kwnames[] = {
12002 (char *) "filename",(char *) "flags", NULL
12003 };
12004
12005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail;
12006 {
12007 arg1 = wxString_in_helper(obj0);
12008 if (arg1 == NULL) SWIG_fail;
12009 temp1 = True;
12010 }
12011 if (obj1) {
12012 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
12013 if (PyErr_Occurred()) SWIG_fail;
12014 }
12015 {
12016 if (!wxPyCheckForApp()) SWIG_fail;
12017 PyThreadState* __tstate = wxPyBeginAllowThreads();
12018 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
12019
12020 wxPyEndAllowThreads(__tstate);
12021 if (PyErr_Occurred()) SWIG_fail;
12022 }
12023 {
12024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12025 }
12026 {
12027 if (temp1)
12028 delete arg1;
12029 }
12030 return resultobj;
12031 fail:
12032 {
12033 if (temp1)
12034 delete arg1;
12035 }
12036 return NULL;
12037 }
12038
12039
12040 static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
12041 PyObject *resultobj;
12042 char *kwnames[] = {
12043 NULL
12044 };
12045
12046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
12047 {
12048 if (!wxPyCheckForApp()) SWIG_fail;
12049 PyThreadState* __tstate = wxPyBeginAllowThreads();
12050 wxSound::Stop();
12051
12052 wxPyEndAllowThreads(__tstate);
12053 if (PyErr_Occurred()) SWIG_fail;
12054 }
12055 Py_INCREF(Py_None); resultobj = Py_None;
12056 return resultobj;
12057 fail:
12058 return NULL;
12059 }
12060
12061
12062 static PyObject * Sound_swigregister(PyObject *self, PyObject *args) {
12063 PyObject *obj;
12064 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12065 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
12066 Py_INCREF(obj);
12067 return Py_BuildValue((char *)"");
12068 }
12069 static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12070 PyObject *resultobj;
12071 wxString *arg1 = 0 ;
12072 wxString *arg2 = 0 ;
12073 wxString *arg3 = 0 ;
12074 wxString *arg4 = 0 ;
12075 wxFileTypeInfo *result;
12076 bool temp1 = False ;
12077 bool temp2 = False ;
12078 bool temp3 = False ;
12079 bool temp4 = False ;
12080 PyObject * obj0 = 0 ;
12081 PyObject * obj1 = 0 ;
12082 PyObject * obj2 = 0 ;
12083 PyObject * obj3 = 0 ;
12084 char *kwnames[] = {
12085 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
12086 };
12087
12088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12089 {
12090 arg1 = wxString_in_helper(obj0);
12091 if (arg1 == NULL) SWIG_fail;
12092 temp1 = True;
12093 }
12094 {
12095 arg2 = wxString_in_helper(obj1);
12096 if (arg2 == NULL) SWIG_fail;
12097 temp2 = True;
12098 }
12099 {
12100 arg3 = wxString_in_helper(obj2);
12101 if (arg3 == NULL) SWIG_fail;
12102 temp3 = True;
12103 }
12104 {
12105 arg4 = wxString_in_helper(obj3);
12106 if (arg4 == NULL) SWIG_fail;
12107 temp4 = True;
12108 }
12109 {
12110 PyThreadState* __tstate = wxPyBeginAllowThreads();
12111 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
12112
12113 wxPyEndAllowThreads(__tstate);
12114 if (PyErr_Occurred()) SWIG_fail;
12115 }
12116 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12117 {
12118 if (temp1)
12119 delete arg1;
12120 }
12121 {
12122 if (temp2)
12123 delete arg2;
12124 }
12125 {
12126 if (temp3)
12127 delete arg3;
12128 }
12129 {
12130 if (temp4)
12131 delete arg4;
12132 }
12133 return resultobj;
12134 fail:
12135 {
12136 if (temp1)
12137 delete arg1;
12138 }
12139 {
12140 if (temp2)
12141 delete arg2;
12142 }
12143 {
12144 if (temp3)
12145 delete arg3;
12146 }
12147 {
12148 if (temp4)
12149 delete arg4;
12150 }
12151 return NULL;
12152 }
12153
12154
12155 static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) {
12156 PyObject *resultobj;
12157 wxArrayString *arg1 = 0 ;
12158 wxFileTypeInfo *result;
12159 bool temp1 = False ;
12160 PyObject * obj0 = 0 ;
12161 char *kwnames[] = {
12162 (char *) "sArray", NULL
12163 };
12164
12165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
12166 {
12167 if (! PySequence_Check(obj0)) {
12168 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
12169 SWIG_fail;
12170 }
12171 arg1 = new wxArrayString;
12172 temp1 = True;
12173 int i, len=PySequence_Length(obj0);
12174 for (i=0; i<len; i++) {
12175 PyObject* item = PySequence_GetItem(obj0, i);
12176 #if wxUSE_UNICODE
12177 PyObject* str = PyObject_Unicode(item);
12178 #else
12179 PyObject* str = PyObject_Str(item);
12180 #endif
12181 if (PyErr_Occurred()) SWIG_fail;
12182 arg1->Add(Py2wxString(str));
12183 Py_DECREF(item);
12184 Py_DECREF(str);
12185 }
12186 }
12187 {
12188 PyThreadState* __tstate = wxPyBeginAllowThreads();
12189 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
12190
12191 wxPyEndAllowThreads(__tstate);
12192 if (PyErr_Occurred()) SWIG_fail;
12193 }
12194 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12195 {
12196 if (temp1) delete arg1;
12197 }
12198 return resultobj;
12199 fail:
12200 {
12201 if (temp1) delete arg1;
12202 }
12203 return NULL;
12204 }
12205
12206
12207 static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12208 PyObject *resultobj;
12209 wxFileTypeInfo *result;
12210 char *kwnames[] = {
12211 NULL
12212 };
12213
12214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
12215 {
12216 PyThreadState* __tstate = wxPyBeginAllowThreads();
12217 result = (wxFileTypeInfo *)new wxFileTypeInfo();
12218
12219 wxPyEndAllowThreads(__tstate);
12220 if (PyErr_Occurred()) SWIG_fail;
12221 }
12222 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12223 return resultobj;
12224 fail:
12225 return NULL;
12226 }
12227
12228
12229 static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
12230 PyObject *resultobj;
12231 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12232 bool result;
12233 PyObject * obj0 = 0 ;
12234 char *kwnames[] = {
12235 (char *) "self", NULL
12236 };
12237
12238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
12239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12241 {
12242 PyThreadState* __tstate = wxPyBeginAllowThreads();
12243 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
12244
12245 wxPyEndAllowThreads(__tstate);
12246 if (PyErr_Occurred()) SWIG_fail;
12247 }
12248 {
12249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12250 }
12251 return resultobj;
12252 fail:
12253 return NULL;
12254 }
12255
12256
12257 static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12258 PyObject *resultobj;
12259 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12260 wxString *arg2 = 0 ;
12261 int arg3 = (int) 0 ;
12262 bool temp2 = False ;
12263 PyObject * obj0 = 0 ;
12264 PyObject * obj1 = 0 ;
12265 PyObject * obj2 = 0 ;
12266 char *kwnames[] = {
12267 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
12268 };
12269
12270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12273 {
12274 arg2 = wxString_in_helper(obj1);
12275 if (arg2 == NULL) SWIG_fail;
12276 temp2 = True;
12277 }
12278 if (obj2) {
12279 arg3 = (int) SWIG_AsInt(obj2);
12280 if (PyErr_Occurred()) SWIG_fail;
12281 }
12282 {
12283 PyThreadState* __tstate = wxPyBeginAllowThreads();
12284 (arg1)->SetIcon((wxString const &)*arg2,arg3);
12285
12286 wxPyEndAllowThreads(__tstate);
12287 if (PyErr_Occurred()) SWIG_fail;
12288 }
12289 Py_INCREF(Py_None); resultobj = Py_None;
12290 {
12291 if (temp2)
12292 delete arg2;
12293 }
12294 return resultobj;
12295 fail:
12296 {
12297 if (temp2)
12298 delete arg2;
12299 }
12300 return NULL;
12301 }
12302
12303
12304 static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12305 PyObject *resultobj;
12306 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12307 wxString *arg2 = 0 ;
12308 bool temp2 = False ;
12309 PyObject * obj0 = 0 ;
12310 PyObject * obj1 = 0 ;
12311 char *kwnames[] = {
12312 (char *) "self",(char *) "shortDesc", NULL
12313 };
12314
12315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
12316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12318 {
12319 arg2 = wxString_in_helper(obj1);
12320 if (arg2 == NULL) SWIG_fail;
12321 temp2 = True;
12322 }
12323 {
12324 PyThreadState* __tstate = wxPyBeginAllowThreads();
12325 (arg1)->SetShortDesc((wxString const &)*arg2);
12326
12327 wxPyEndAllowThreads(__tstate);
12328 if (PyErr_Occurred()) SWIG_fail;
12329 }
12330 Py_INCREF(Py_None); resultobj = Py_None;
12331 {
12332 if (temp2)
12333 delete arg2;
12334 }
12335 return resultobj;
12336 fail:
12337 {
12338 if (temp2)
12339 delete arg2;
12340 }
12341 return NULL;
12342 }
12343
12344
12345 static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12346 PyObject *resultobj;
12347 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12348 wxString *result;
12349 PyObject * obj0 = 0 ;
12350 char *kwnames[] = {
12351 (char *) "self", NULL
12352 };
12353
12354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
12355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12357 {
12358 PyThreadState* __tstate = wxPyBeginAllowThreads();
12359 {
12360 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
12361 result = (wxString *) &_result_ref;
12362 }
12363
12364 wxPyEndAllowThreads(__tstate);
12365 if (PyErr_Occurred()) SWIG_fail;
12366 }
12367 {
12368 #if wxUSE_UNICODE
12369 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12370 #else
12371 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12372 #endif
12373 }
12374 return resultobj;
12375 fail:
12376 return NULL;
12377 }
12378
12379
12380 static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12381 PyObject *resultobj;
12382 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12383 wxString *result;
12384 PyObject * obj0 = 0 ;
12385 char *kwnames[] = {
12386 (char *) "self", NULL
12387 };
12388
12389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
12390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12392 {
12393 PyThreadState* __tstate = wxPyBeginAllowThreads();
12394 {
12395 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
12396 result = (wxString *) &_result_ref;
12397 }
12398
12399 wxPyEndAllowThreads(__tstate);
12400 if (PyErr_Occurred()) SWIG_fail;
12401 }
12402 {
12403 #if wxUSE_UNICODE
12404 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12405 #else
12406 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12407 #endif
12408 }
12409 return resultobj;
12410 fail:
12411 return NULL;
12412 }
12413
12414
12415 static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12416 PyObject *resultobj;
12417 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12418 wxString *result;
12419 PyObject * obj0 = 0 ;
12420 char *kwnames[] = {
12421 (char *) "self", NULL
12422 };
12423
12424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
12425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12427 {
12428 PyThreadState* __tstate = wxPyBeginAllowThreads();
12429 {
12430 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
12431 result = (wxString *) &_result_ref;
12432 }
12433
12434 wxPyEndAllowThreads(__tstate);
12435 if (PyErr_Occurred()) SWIG_fail;
12436 }
12437 {
12438 #if wxUSE_UNICODE
12439 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12440 #else
12441 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12442 #endif
12443 }
12444 return resultobj;
12445 fail:
12446 return NULL;
12447 }
12448
12449
12450 static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12451 PyObject *resultobj;
12452 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12453 wxString *result;
12454 PyObject * obj0 = 0 ;
12455 char *kwnames[] = {
12456 (char *) "self", NULL
12457 };
12458
12459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
12460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12462 {
12463 PyThreadState* __tstate = wxPyBeginAllowThreads();
12464 {
12465 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
12466 result = (wxString *) &_result_ref;
12467 }
12468
12469 wxPyEndAllowThreads(__tstate);
12470 if (PyErr_Occurred()) SWIG_fail;
12471 }
12472 {
12473 #if wxUSE_UNICODE
12474 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12475 #else
12476 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12477 #endif
12478 }
12479 return resultobj;
12480 fail:
12481 return NULL;
12482 }
12483
12484
12485 static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12486 PyObject *resultobj;
12487 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12488 wxString *result;
12489 PyObject * obj0 = 0 ;
12490 char *kwnames[] = {
12491 (char *) "self", NULL
12492 };
12493
12494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
12495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12497 {
12498 PyThreadState* __tstate = wxPyBeginAllowThreads();
12499 {
12500 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
12501 result = (wxString *) &_result_ref;
12502 }
12503
12504 wxPyEndAllowThreads(__tstate);
12505 if (PyErr_Occurred()) SWIG_fail;
12506 }
12507 {
12508 #if wxUSE_UNICODE
12509 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12510 #else
12511 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12512 #endif
12513 }
12514 return resultobj;
12515 fail:
12516 return NULL;
12517 }
12518
12519
12520 static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12521 PyObject *resultobj;
12522 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12523 wxArrayString *result;
12524 PyObject * obj0 = 0 ;
12525 char *kwnames[] = {
12526 (char *) "self", NULL
12527 };
12528
12529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
12530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12532 {
12533 PyThreadState* __tstate = wxPyBeginAllowThreads();
12534 {
12535 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
12536 result = (wxArrayString *) &_result_ref;
12537 }
12538
12539 wxPyEndAllowThreads(__tstate);
12540 if (PyErr_Occurred()) SWIG_fail;
12541 }
12542 {
12543 resultobj = wxArrayString2PyList_helper(*result);
12544 }
12545 return resultobj;
12546 fail:
12547 return NULL;
12548 }
12549
12550
12551 static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12552 PyObject *resultobj;
12553 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12554 int result;
12555 PyObject * obj0 = 0 ;
12556 char *kwnames[] = {
12557 (char *) "self", NULL
12558 };
12559
12560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
12561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12563 {
12564 PyThreadState* __tstate = wxPyBeginAllowThreads();
12565 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
12566
12567 wxPyEndAllowThreads(__tstate);
12568 if (PyErr_Occurred()) SWIG_fail;
12569 }
12570 resultobj = SWIG_FromInt((int)result);
12571 return resultobj;
12572 fail:
12573 return NULL;
12574 }
12575
12576
12577 static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) {
12578 PyObject *resultobj;
12579 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12580 wxString *result;
12581 PyObject * obj0 = 0 ;
12582 char *kwnames[] = {
12583 (char *) "self", NULL
12584 };
12585
12586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
12587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12589 {
12590 PyThreadState* __tstate = wxPyBeginAllowThreads();
12591 {
12592 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
12593 result = (wxString *) &_result_ref;
12594 }
12595
12596 wxPyEndAllowThreads(__tstate);
12597 if (PyErr_Occurred()) SWIG_fail;
12598 }
12599 {
12600 #if wxUSE_UNICODE
12601 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12602 #else
12603 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12604 #endif
12605 }
12606 return resultobj;
12607 fail:
12608 return NULL;
12609 }
12610
12611
12612 static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
12613 PyObject *resultobj;
12614 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12615 int result;
12616 PyObject * obj0 = 0 ;
12617 char *kwnames[] = {
12618 (char *) "self", NULL
12619 };
12620
12621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
12622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12624 {
12625 PyThreadState* __tstate = wxPyBeginAllowThreads();
12626 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
12627
12628 wxPyEndAllowThreads(__tstate);
12629 if (PyErr_Occurred()) SWIG_fail;
12630 }
12631 resultobj = SWIG_FromInt((int)result);
12632 return resultobj;
12633 fail:
12634 return NULL;
12635 }
12636
12637
12638 static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) {
12639 PyObject *obj;
12640 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12641 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
12642 Py_INCREF(obj);
12643 return Py_BuildValue((char *)"");
12644 }
12645 static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12646 PyObject *resultobj;
12647 wxFileTypeInfo *arg1 = 0 ;
12648 wxFileType *result;
12649 PyObject * obj0 = 0 ;
12650 char *kwnames[] = {
12651 (char *) "ftInfo", NULL
12652 };
12653
12654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
12655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12656 SWIG_POINTER_EXCEPTION | 0)) == -1)
12657 SWIG_fail;
12658 if (arg1 == NULL) {
12659 PyErr_SetString(PyExc_TypeError,"null reference");
12660 SWIG_fail;
12661 }
12662 {
12663 PyThreadState* __tstate = wxPyBeginAllowThreads();
12664 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
12665
12666 wxPyEndAllowThreads(__tstate);
12667 if (PyErr_Occurred()) SWIG_fail;
12668 }
12669 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
12670 return resultobj;
12671 fail:
12672 return NULL;
12673 }
12674
12675
12676 static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12677 PyObject *resultobj;
12678 wxFileType *arg1 = (wxFileType *) 0 ;
12679 PyObject * obj0 = 0 ;
12680 char *kwnames[] = {
12681 (char *) "self", NULL
12682 };
12683
12684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
12685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12687 {
12688 PyThreadState* __tstate = wxPyBeginAllowThreads();
12689 delete arg1;
12690
12691 wxPyEndAllowThreads(__tstate);
12692 if (PyErr_Occurred()) SWIG_fail;
12693 }
12694 Py_INCREF(Py_None); resultobj = Py_None;
12695 return resultobj;
12696 fail:
12697 return NULL;
12698 }
12699
12700
12701 static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12702 PyObject *resultobj;
12703 wxFileType *arg1 = (wxFileType *) 0 ;
12704 PyObject *result;
12705 PyObject * obj0 = 0 ;
12706 char *kwnames[] = {
12707 (char *) "self", NULL
12708 };
12709
12710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
12711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12713 {
12714 PyThreadState* __tstate = wxPyBeginAllowThreads();
12715 result = (PyObject *)wxFileType_GetMimeType(arg1);
12716
12717 wxPyEndAllowThreads(__tstate);
12718 if (PyErr_Occurred()) SWIG_fail;
12719 }
12720 resultobj = result;
12721 return resultobj;
12722 fail:
12723 return NULL;
12724 }
12725
12726
12727 static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
12728 PyObject *resultobj;
12729 wxFileType *arg1 = (wxFileType *) 0 ;
12730 PyObject *result;
12731 PyObject * obj0 = 0 ;
12732 char *kwnames[] = {
12733 (char *) "self", NULL
12734 };
12735
12736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
12737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12739 {
12740 PyThreadState* __tstate = wxPyBeginAllowThreads();
12741 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
12742
12743 wxPyEndAllowThreads(__tstate);
12744 if (PyErr_Occurred()) SWIG_fail;
12745 }
12746 resultobj = result;
12747 return resultobj;
12748 fail:
12749 return NULL;
12750 }
12751
12752
12753 static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12754 PyObject *resultobj;
12755 wxFileType *arg1 = (wxFileType *) 0 ;
12756 PyObject *result;
12757 PyObject * obj0 = 0 ;
12758 char *kwnames[] = {
12759 (char *) "self", NULL
12760 };
12761
12762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
12763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12765 {
12766 PyThreadState* __tstate = wxPyBeginAllowThreads();
12767 result = (PyObject *)wxFileType_GetExtensions(arg1);
12768
12769 wxPyEndAllowThreads(__tstate);
12770 if (PyErr_Occurred()) SWIG_fail;
12771 }
12772 resultobj = result;
12773 return resultobj;
12774 fail:
12775 return NULL;
12776 }
12777
12778
12779 static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12780 PyObject *resultobj;
12781 wxFileType *arg1 = (wxFileType *) 0 ;
12782 wxIcon *result;
12783 PyObject * obj0 = 0 ;
12784 char *kwnames[] = {
12785 (char *) "self", NULL
12786 };
12787
12788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
12789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12791 {
12792 PyThreadState* __tstate = wxPyBeginAllowThreads();
12793 result = (wxIcon *)wxFileType_GetIcon(arg1);
12794
12795 wxPyEndAllowThreads(__tstate);
12796 if (PyErr_Occurred()) SWIG_fail;
12797 }
12798 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
12799 return resultobj;
12800 fail:
12801 return NULL;
12802 }
12803
12804
12805 static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12806 PyObject *resultobj;
12807 wxFileType *arg1 = (wxFileType *) 0 ;
12808 PyObject *result;
12809 PyObject * obj0 = 0 ;
12810 char *kwnames[] = {
12811 (char *) "self", NULL
12812 };
12813
12814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
12815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12817 {
12818 PyThreadState* __tstate = wxPyBeginAllowThreads();
12819 result = (PyObject *)wxFileType_GetIconInfo(arg1);
12820
12821 wxPyEndAllowThreads(__tstate);
12822 if (PyErr_Occurred()) SWIG_fail;
12823 }
12824 resultobj = result;
12825 return resultobj;
12826 fail:
12827 return NULL;
12828 }
12829
12830
12831 static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12832 PyObject *resultobj;
12833 wxFileType *arg1 = (wxFileType *) 0 ;
12834 PyObject *result;
12835 PyObject * obj0 = 0 ;
12836 char *kwnames[] = {
12837 (char *) "self", NULL
12838 };
12839
12840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
12841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12843 {
12844 PyThreadState* __tstate = wxPyBeginAllowThreads();
12845 result = (PyObject *)wxFileType_GetDescription(arg1);
12846
12847 wxPyEndAllowThreads(__tstate);
12848 if (PyErr_Occurred()) SWIG_fail;
12849 }
12850 resultobj = result;
12851 return resultobj;
12852 fail:
12853 return NULL;
12854 }
12855
12856
12857 static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12858 PyObject *resultobj;
12859 wxFileType *arg1 = (wxFileType *) 0 ;
12860 wxString *arg2 = 0 ;
12861 wxString const &arg3_defvalue = wxPyEmptyString ;
12862 wxString *arg3 = (wxString *) &arg3_defvalue ;
12863 PyObject *result;
12864 bool temp2 = False ;
12865 bool temp3 = False ;
12866 PyObject * obj0 = 0 ;
12867 PyObject * obj1 = 0 ;
12868 PyObject * obj2 = 0 ;
12869 char *kwnames[] = {
12870 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12871 };
12872
12873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12876 {
12877 arg2 = wxString_in_helper(obj1);
12878 if (arg2 == NULL) SWIG_fail;
12879 temp2 = True;
12880 }
12881 if (obj2) {
12882 {
12883 arg3 = wxString_in_helper(obj2);
12884 if (arg3 == NULL) SWIG_fail;
12885 temp3 = True;
12886 }
12887 }
12888 {
12889 PyThreadState* __tstate = wxPyBeginAllowThreads();
12890 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12891
12892 wxPyEndAllowThreads(__tstate);
12893 if (PyErr_Occurred()) SWIG_fail;
12894 }
12895 resultobj = result;
12896 {
12897 if (temp2)
12898 delete arg2;
12899 }
12900 {
12901 if (temp3)
12902 delete arg3;
12903 }
12904 return resultobj;
12905 fail:
12906 {
12907 if (temp2)
12908 delete arg2;
12909 }
12910 {
12911 if (temp3)
12912 delete arg3;
12913 }
12914 return NULL;
12915 }
12916
12917
12918 static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12919 PyObject *resultobj;
12920 wxFileType *arg1 = (wxFileType *) 0 ;
12921 wxString *arg2 = 0 ;
12922 wxString const &arg3_defvalue = wxPyEmptyString ;
12923 wxString *arg3 = (wxString *) &arg3_defvalue ;
12924 PyObject *result;
12925 bool temp2 = False ;
12926 bool temp3 = False ;
12927 PyObject * obj0 = 0 ;
12928 PyObject * obj1 = 0 ;
12929 PyObject * obj2 = 0 ;
12930 char *kwnames[] = {
12931 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12932 };
12933
12934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12937 {
12938 arg2 = wxString_in_helper(obj1);
12939 if (arg2 == NULL) SWIG_fail;
12940 temp2 = True;
12941 }
12942 if (obj2) {
12943 {
12944 arg3 = wxString_in_helper(obj2);
12945 if (arg3 == NULL) SWIG_fail;
12946 temp3 = True;
12947 }
12948 }
12949 {
12950 PyThreadState* __tstate = wxPyBeginAllowThreads();
12951 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12952
12953 wxPyEndAllowThreads(__tstate);
12954 if (PyErr_Occurred()) SWIG_fail;
12955 }
12956 resultobj = result;
12957 {
12958 if (temp2)
12959 delete arg2;
12960 }
12961 {
12962 if (temp3)
12963 delete arg3;
12964 }
12965 return resultobj;
12966 fail:
12967 {
12968 if (temp2)
12969 delete arg2;
12970 }
12971 {
12972 if (temp3)
12973 delete arg3;
12974 }
12975 return NULL;
12976 }
12977
12978
12979 static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) {
12980 PyObject *resultobj;
12981 wxFileType *arg1 = (wxFileType *) 0 ;
12982 wxString *arg2 = 0 ;
12983 wxString const &arg3_defvalue = wxPyEmptyString ;
12984 wxString *arg3 = (wxString *) &arg3_defvalue ;
12985 PyObject *result;
12986 bool temp2 = False ;
12987 bool temp3 = False ;
12988 PyObject * obj0 = 0 ;
12989 PyObject * obj1 = 0 ;
12990 PyObject * obj2 = 0 ;
12991 char *kwnames[] = {
12992 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12993 };
12994
12995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
12996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12998 {
12999 arg2 = wxString_in_helper(obj1);
13000 if (arg2 == NULL) SWIG_fail;
13001 temp2 = True;
13002 }
13003 if (obj2) {
13004 {
13005 arg3 = wxString_in_helper(obj2);
13006 if (arg3 == NULL) SWIG_fail;
13007 temp3 = True;
13008 }
13009 }
13010 {
13011 PyThreadState* __tstate = wxPyBeginAllowThreads();
13012 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13013
13014 wxPyEndAllowThreads(__tstate);
13015 if (PyErr_Occurred()) SWIG_fail;
13016 }
13017 resultobj = result;
13018 {
13019 if (temp2)
13020 delete arg2;
13021 }
13022 {
13023 if (temp3)
13024 delete arg3;
13025 }
13026 return resultobj;
13027 fail:
13028 {
13029 if (temp2)
13030 delete arg2;
13031 }
13032 {
13033 if (temp3)
13034 delete arg3;
13035 }
13036 return NULL;
13037 }
13038
13039
13040 static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
13041 PyObject *resultobj;
13042 wxFileType *arg1 = (wxFileType *) 0 ;
13043 wxString *arg2 = 0 ;
13044 wxString *arg3 = 0 ;
13045 bool arg4 = (bool) True ;
13046 bool result;
13047 bool temp2 = False ;
13048 bool temp3 = False ;
13049 PyObject * obj0 = 0 ;
13050 PyObject * obj1 = 0 ;
13051 PyObject * obj2 = 0 ;
13052 PyObject * obj3 = 0 ;
13053 char *kwnames[] = {
13054 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
13055 };
13056
13057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13060 {
13061 arg2 = wxString_in_helper(obj1);
13062 if (arg2 == NULL) SWIG_fail;
13063 temp2 = True;
13064 }
13065 {
13066 arg3 = wxString_in_helper(obj2);
13067 if (arg3 == NULL) SWIG_fail;
13068 temp3 = True;
13069 }
13070 if (obj3) {
13071 arg4 = (bool) SWIG_AsBool(obj3);
13072 if (PyErr_Occurred()) SWIG_fail;
13073 }
13074 {
13075 PyThreadState* __tstate = wxPyBeginAllowThreads();
13076 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
13077
13078 wxPyEndAllowThreads(__tstate);
13079 if (PyErr_Occurred()) SWIG_fail;
13080 }
13081 {
13082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13083 }
13084 {
13085 if (temp2)
13086 delete arg2;
13087 }
13088 {
13089 if (temp3)
13090 delete arg3;
13091 }
13092 return resultobj;
13093 fail:
13094 {
13095 if (temp2)
13096 delete arg2;
13097 }
13098 {
13099 if (temp3)
13100 delete arg3;
13101 }
13102 return NULL;
13103 }
13104
13105
13106 static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
13107 PyObject *resultobj;
13108 wxFileType *arg1 = (wxFileType *) 0 ;
13109 wxString const &arg2_defvalue = wxPyEmptyString ;
13110 wxString *arg2 = (wxString *) &arg2_defvalue ;
13111 int arg3 = (int) 0 ;
13112 bool result;
13113 bool temp2 = False ;
13114 PyObject * obj0 = 0 ;
13115 PyObject * obj1 = 0 ;
13116 PyObject * obj2 = 0 ;
13117 char *kwnames[] = {
13118 (char *) "self",(char *) "cmd",(char *) "index", NULL
13119 };
13120
13121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
13122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13124 if (obj1) {
13125 {
13126 arg2 = wxString_in_helper(obj1);
13127 if (arg2 == NULL) SWIG_fail;
13128 temp2 = True;
13129 }
13130 }
13131 if (obj2) {
13132 arg3 = (int) SWIG_AsInt(obj2);
13133 if (PyErr_Occurred()) SWIG_fail;
13134 }
13135 {
13136 PyThreadState* __tstate = wxPyBeginAllowThreads();
13137 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
13138
13139 wxPyEndAllowThreads(__tstate);
13140 if (PyErr_Occurred()) SWIG_fail;
13141 }
13142 {
13143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13144 }
13145 {
13146 if (temp2)
13147 delete arg2;
13148 }
13149 return resultobj;
13150 fail:
13151 {
13152 if (temp2)
13153 delete arg2;
13154 }
13155 return NULL;
13156 }
13157
13158
13159 static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
13160 PyObject *resultobj;
13161 wxFileType *arg1 = (wxFileType *) 0 ;
13162 bool result;
13163 PyObject * obj0 = 0 ;
13164 char *kwnames[] = {
13165 (char *) "self", NULL
13166 };
13167
13168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
13169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13171 {
13172 PyThreadState* __tstate = wxPyBeginAllowThreads();
13173 result = (bool)(arg1)->Unassociate();
13174
13175 wxPyEndAllowThreads(__tstate);
13176 if (PyErr_Occurred()) SWIG_fail;
13177 }
13178 {
13179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13180 }
13181 return resultobj;
13182 fail:
13183 return NULL;
13184 }
13185
13186
13187 static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
13188 PyObject *resultobj;
13189 wxString *arg1 = 0 ;
13190 wxString *arg2 = 0 ;
13191 wxString const &arg3_defvalue = wxPyEmptyString ;
13192 wxString *arg3 = (wxString *) &arg3_defvalue ;
13193 wxString result;
13194 bool temp1 = False ;
13195 bool temp2 = False ;
13196 bool temp3 = False ;
13197 PyObject * obj0 = 0 ;
13198 PyObject * obj1 = 0 ;
13199 PyObject * obj2 = 0 ;
13200 char *kwnames[] = {
13201 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
13202 };
13203
13204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
13205 {
13206 arg1 = wxString_in_helper(obj0);
13207 if (arg1 == NULL) SWIG_fail;
13208 temp1 = True;
13209 }
13210 {
13211 arg2 = wxString_in_helper(obj1);
13212 if (arg2 == NULL) SWIG_fail;
13213 temp2 = True;
13214 }
13215 if (obj2) {
13216 {
13217 arg3 = wxString_in_helper(obj2);
13218 if (arg3 == NULL) SWIG_fail;
13219 temp3 = True;
13220 }
13221 }
13222 {
13223 PyThreadState* __tstate = wxPyBeginAllowThreads();
13224 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13225
13226 wxPyEndAllowThreads(__tstate);
13227 if (PyErr_Occurred()) SWIG_fail;
13228 }
13229 {
13230 #if wxUSE_UNICODE
13231 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13232 #else
13233 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13234 #endif
13235 }
13236 {
13237 if (temp1)
13238 delete arg1;
13239 }
13240 {
13241 if (temp2)
13242 delete arg2;
13243 }
13244 {
13245 if (temp3)
13246 delete arg3;
13247 }
13248 return resultobj;
13249 fail:
13250 {
13251 if (temp1)
13252 delete arg1;
13253 }
13254 {
13255 if (temp2)
13256 delete arg2;
13257 }
13258 {
13259 if (temp3)
13260 delete arg3;
13261 }
13262 return NULL;
13263 }
13264
13265
13266 static PyObject * FileType_swigregister(PyObject *self, PyObject *args) {
13267 PyObject *obj;
13268 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13269 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
13270 Py_INCREF(obj);
13271 return Py_BuildValue((char *)"");
13272 }
13273 static int _wrap_TheMimeTypesManager_set(PyObject *_val) {
13274 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
13275 return 1;
13276 }
13277
13278
13279 static PyObject *_wrap_TheMimeTypesManager_get() {
13280 PyObject *pyobj;
13281
13282 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
13283 return pyobj;
13284 }
13285
13286
13287 static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) {
13288 PyObject *resultobj;
13289 wxString *arg1 = 0 ;
13290 wxString *arg2 = 0 ;
13291 bool result;
13292 bool temp1 = False ;
13293 bool temp2 = False ;
13294 PyObject * obj0 = 0 ;
13295 PyObject * obj1 = 0 ;
13296 char *kwnames[] = {
13297 (char *) "mimeType",(char *) "wildcard", NULL
13298 };
13299
13300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
13301 {
13302 arg1 = wxString_in_helper(obj0);
13303 if (arg1 == NULL) SWIG_fail;
13304 temp1 = True;
13305 }
13306 {
13307 arg2 = wxString_in_helper(obj1);
13308 if (arg2 == NULL) SWIG_fail;
13309 temp2 = True;
13310 }
13311 {
13312 PyThreadState* __tstate = wxPyBeginAllowThreads();
13313 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
13314
13315 wxPyEndAllowThreads(__tstate);
13316 if (PyErr_Occurred()) SWIG_fail;
13317 }
13318 {
13319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13320 }
13321 {
13322 if (temp1)
13323 delete arg1;
13324 }
13325 {
13326 if (temp2)
13327 delete arg2;
13328 }
13329 return resultobj;
13330 fail:
13331 {
13332 if (temp1)
13333 delete arg1;
13334 }
13335 {
13336 if (temp2)
13337 delete arg2;
13338 }
13339 return NULL;
13340 }
13341
13342
13343 static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13344 PyObject *resultobj;
13345 wxMimeTypesManager *result;
13346 char *kwnames[] = {
13347 NULL
13348 };
13349
13350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
13351 {
13352 PyThreadState* __tstate = wxPyBeginAllowThreads();
13353 result = (wxMimeTypesManager *)new wxMimeTypesManager();
13354
13355 wxPyEndAllowThreads(__tstate);
13356 if (PyErr_Occurred()) SWIG_fail;
13357 }
13358 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
13359 return resultobj;
13360 fail:
13361 return NULL;
13362 }
13363
13364
13365 static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
13366 PyObject *resultobj;
13367 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13368 int arg2 = (int) wxMAILCAP_ALL ;
13369 wxString const &arg3_defvalue = wxPyEmptyString ;
13370 wxString *arg3 = (wxString *) &arg3_defvalue ;
13371 bool temp3 = False ;
13372 PyObject * obj0 = 0 ;
13373 PyObject * obj1 = 0 ;
13374 PyObject * obj2 = 0 ;
13375 char *kwnames[] = {
13376 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
13377 };
13378
13379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13382 if (obj1) {
13383 arg2 = (int) SWIG_AsInt(obj1);
13384 if (PyErr_Occurred()) SWIG_fail;
13385 }
13386 if (obj2) {
13387 {
13388 arg3 = wxString_in_helper(obj2);
13389 if (arg3 == NULL) SWIG_fail;
13390 temp3 = True;
13391 }
13392 }
13393 {
13394 PyThreadState* __tstate = wxPyBeginAllowThreads();
13395 (arg1)->Initialize(arg2,(wxString const &)*arg3);
13396
13397 wxPyEndAllowThreads(__tstate);
13398 if (PyErr_Occurred()) SWIG_fail;
13399 }
13400 Py_INCREF(Py_None); resultobj = Py_None;
13401 {
13402 if (temp3)
13403 delete arg3;
13404 }
13405 return resultobj;
13406 fail:
13407 {
13408 if (temp3)
13409 delete arg3;
13410 }
13411 return NULL;
13412 }
13413
13414
13415 static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) {
13416 PyObject *resultobj;
13417 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13418 PyObject * obj0 = 0 ;
13419 char *kwnames[] = {
13420 (char *) "self", NULL
13421 };
13422
13423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
13424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13426 {
13427 PyThreadState* __tstate = wxPyBeginAllowThreads();
13428 (arg1)->ClearData();
13429
13430 wxPyEndAllowThreads(__tstate);
13431 if (PyErr_Occurred()) SWIG_fail;
13432 }
13433 Py_INCREF(Py_None); resultobj = Py_None;
13434 return resultobj;
13435 fail:
13436 return NULL;
13437 }
13438
13439
13440 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
13441 PyObject *resultobj;
13442 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13443 wxString *arg2 = 0 ;
13444 wxFileType *result;
13445 bool temp2 = False ;
13446 PyObject * obj0 = 0 ;
13447 PyObject * obj1 = 0 ;
13448 char *kwnames[] = {
13449 (char *) "self",(char *) "ext", NULL
13450 };
13451
13452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
13453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13455 {
13456 arg2 = wxString_in_helper(obj1);
13457 if (arg2 == NULL) SWIG_fail;
13458 temp2 = True;
13459 }
13460 {
13461 PyThreadState* __tstate = wxPyBeginAllowThreads();
13462 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
13463
13464 wxPyEndAllowThreads(__tstate);
13465 if (PyErr_Occurred()) SWIG_fail;
13466 }
13467 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13468 {
13469 if (temp2)
13470 delete arg2;
13471 }
13472 return resultobj;
13473 fail:
13474 {
13475 if (temp2)
13476 delete arg2;
13477 }
13478 return NULL;
13479 }
13480
13481
13482 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
13483 PyObject *resultobj;
13484 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13485 wxString *arg2 = 0 ;
13486 wxFileType *result;
13487 bool temp2 = False ;
13488 PyObject * obj0 = 0 ;
13489 PyObject * obj1 = 0 ;
13490 char *kwnames[] = {
13491 (char *) "self",(char *) "mimeType", NULL
13492 };
13493
13494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
13495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13497 {
13498 arg2 = wxString_in_helper(obj1);
13499 if (arg2 == NULL) SWIG_fail;
13500 temp2 = True;
13501 }
13502 {
13503 PyThreadState* __tstate = wxPyBeginAllowThreads();
13504 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
13505
13506 wxPyEndAllowThreads(__tstate);
13507 if (PyErr_Occurred()) SWIG_fail;
13508 }
13509 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13510 {
13511 if (temp2)
13512 delete arg2;
13513 }
13514 return resultobj;
13515 fail:
13516 {
13517 if (temp2)
13518 delete arg2;
13519 }
13520 return NULL;
13521 }
13522
13523
13524 static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) {
13525 PyObject *resultobj;
13526 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13527 wxString *arg2 = 0 ;
13528 bool arg3 = (bool) False ;
13529 bool result;
13530 bool temp2 = False ;
13531 PyObject * obj0 = 0 ;
13532 PyObject * obj1 = 0 ;
13533 PyObject * obj2 = 0 ;
13534 char *kwnames[] = {
13535 (char *) "self",(char *) "filename",(char *) "fallback", NULL
13536 };
13537
13538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
13539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13541 {
13542 arg2 = wxString_in_helper(obj1);
13543 if (arg2 == NULL) SWIG_fail;
13544 temp2 = True;
13545 }
13546 if (obj2) {
13547 arg3 = (bool) SWIG_AsBool(obj2);
13548 if (PyErr_Occurred()) SWIG_fail;
13549 }
13550 {
13551 PyThreadState* __tstate = wxPyBeginAllowThreads();
13552 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
13553
13554 wxPyEndAllowThreads(__tstate);
13555 if (PyErr_Occurred()) SWIG_fail;
13556 }
13557 {
13558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13559 }
13560 {
13561 if (temp2)
13562 delete arg2;
13563 }
13564 return resultobj;
13565 fail:
13566 {
13567 if (temp2)
13568 delete arg2;
13569 }
13570 return NULL;
13571 }
13572
13573
13574 static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13575 PyObject *resultobj;
13576 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13577 wxString *arg2 = 0 ;
13578 bool result;
13579 bool temp2 = False ;
13580 PyObject * obj0 = 0 ;
13581 PyObject * obj1 = 0 ;
13582 char *kwnames[] = {
13583 (char *) "self",(char *) "filename", NULL
13584 };
13585
13586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
13587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13589 {
13590 arg2 = wxString_in_helper(obj1);
13591 if (arg2 == NULL) SWIG_fail;
13592 temp2 = True;
13593 }
13594 {
13595 PyThreadState* __tstate = wxPyBeginAllowThreads();
13596 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
13597
13598 wxPyEndAllowThreads(__tstate);
13599 if (PyErr_Occurred()) SWIG_fail;
13600 }
13601 {
13602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13603 }
13604 {
13605 if (temp2)
13606 delete arg2;
13607 }
13608 return resultobj;
13609 fail:
13610 {
13611 if (temp2)
13612 delete arg2;
13613 }
13614 return NULL;
13615 }
13616
13617
13618 static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13619 PyObject *resultobj;
13620 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13621 PyObject *result;
13622 PyObject * obj0 = 0 ;
13623 char *kwnames[] = {
13624 (char *) "self", NULL
13625 };
13626
13627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
13628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13630 {
13631 PyThreadState* __tstate = wxPyBeginAllowThreads();
13632 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
13633
13634 wxPyEndAllowThreads(__tstate);
13635 if (PyErr_Occurred()) SWIG_fail;
13636 }
13637 resultobj = result;
13638 return resultobj;
13639 fail:
13640 return NULL;
13641 }
13642
13643
13644 static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) {
13645 PyObject *resultobj;
13646 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13647 wxFileTypeInfo *arg2 = 0 ;
13648 PyObject * obj0 = 0 ;
13649 PyObject * obj1 = 0 ;
13650 char *kwnames[] = {
13651 (char *) "self",(char *) "ft", NULL
13652 };
13653
13654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
13655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13657 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13658 SWIG_POINTER_EXCEPTION | 0)) == -1)
13659 SWIG_fail;
13660 if (arg2 == NULL) {
13661 PyErr_SetString(PyExc_TypeError,"null reference");
13662 SWIG_fail;
13663 }
13664 {
13665 PyThreadState* __tstate = wxPyBeginAllowThreads();
13666 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
13667
13668 wxPyEndAllowThreads(__tstate);
13669 if (PyErr_Occurred()) SWIG_fail;
13670 }
13671 Py_INCREF(Py_None); resultobj = Py_None;
13672 return resultobj;
13673 fail:
13674 return NULL;
13675 }
13676
13677
13678 static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) {
13679 PyObject *resultobj;
13680 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13681 wxFileTypeInfo *arg2 = 0 ;
13682 wxFileType *result;
13683 PyObject * obj0 = 0 ;
13684 PyObject * obj1 = 0 ;
13685 char *kwnames[] = {
13686 (char *) "self",(char *) "ftInfo", NULL
13687 };
13688
13689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
13690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13692 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13693 SWIG_POINTER_EXCEPTION | 0)) == -1)
13694 SWIG_fail;
13695 if (arg2 == NULL) {
13696 PyErr_SetString(PyExc_TypeError,"null reference");
13697 SWIG_fail;
13698 }
13699 {
13700 PyThreadState* __tstate = wxPyBeginAllowThreads();
13701 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
13702
13703 wxPyEndAllowThreads(__tstate);
13704 if (PyErr_Occurred()) SWIG_fail;
13705 }
13706 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13707 return resultobj;
13708 fail:
13709 return NULL;
13710 }
13711
13712
13713 static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
13714 PyObject *resultobj;
13715 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13716 wxFileType *arg2 = (wxFileType *) 0 ;
13717 bool result;
13718 PyObject * obj0 = 0 ;
13719 PyObject * obj1 = 0 ;
13720 char *kwnames[] = {
13721 (char *) "self",(char *) "ft", NULL
13722 };
13723
13724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
13725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13727 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType,
13728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13729 {
13730 PyThreadState* __tstate = wxPyBeginAllowThreads();
13731 result = (bool)(arg1)->Unassociate(arg2);
13732
13733 wxPyEndAllowThreads(__tstate);
13734 if (PyErr_Occurred()) SWIG_fail;
13735 }
13736 {
13737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13738 }
13739 return resultobj;
13740 fail:
13741 return NULL;
13742 }
13743
13744
13745 static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13746 PyObject *resultobj;
13747 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13748 PyObject * obj0 = 0 ;
13749 char *kwnames[] = {
13750 (char *) "self", NULL
13751 };
13752
13753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
13754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13756 {
13757 PyThreadState* __tstate = wxPyBeginAllowThreads();
13758 delete arg1;
13759
13760 wxPyEndAllowThreads(__tstate);
13761 if (PyErr_Occurred()) SWIG_fail;
13762 }
13763 Py_INCREF(Py_None); resultobj = Py_None;
13764 return resultobj;
13765 fail:
13766 return NULL;
13767 }
13768
13769
13770 static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) {
13771 PyObject *obj;
13772 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13773 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
13774 Py_INCREF(obj);
13775 return Py_BuildValue((char *)"");
13776 }
13777 static int _wrap_ART_TOOLBAR_set(PyObject *_val) {
13778 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
13779 return 1;
13780 }
13781
13782
13783 static PyObject *_wrap_ART_TOOLBAR_get() {
13784 PyObject *pyobj;
13785
13786 {
13787 #if wxUSE_UNICODE
13788 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13789 #else
13790 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13791 #endif
13792 }
13793 return pyobj;
13794 }
13795
13796
13797 static int _wrap_ART_MENU_set(PyObject *_val) {
13798 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
13799 return 1;
13800 }
13801
13802
13803 static PyObject *_wrap_ART_MENU_get() {
13804 PyObject *pyobj;
13805
13806 {
13807 #if wxUSE_UNICODE
13808 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13809 #else
13810 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13811 #endif
13812 }
13813 return pyobj;
13814 }
13815
13816
13817 static int _wrap_ART_FRAME_ICON_set(PyObject *_val) {
13818 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
13819 return 1;
13820 }
13821
13822
13823 static PyObject *_wrap_ART_FRAME_ICON_get() {
13824 PyObject *pyobj;
13825
13826 {
13827 #if wxUSE_UNICODE
13828 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13829 #else
13830 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13831 #endif
13832 }
13833 return pyobj;
13834 }
13835
13836
13837 static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) {
13838 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
13839 return 1;
13840 }
13841
13842
13843 static PyObject *_wrap_ART_CMN_DIALOG_get() {
13844 PyObject *pyobj;
13845
13846 {
13847 #if wxUSE_UNICODE
13848 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13849 #else
13850 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13851 #endif
13852 }
13853 return pyobj;
13854 }
13855
13856
13857 static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) {
13858 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
13859 return 1;
13860 }
13861
13862
13863 static PyObject *_wrap_ART_HELP_BROWSER_get() {
13864 PyObject *pyobj;
13865
13866 {
13867 #if wxUSE_UNICODE
13868 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13869 #else
13870 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13871 #endif
13872 }
13873 return pyobj;
13874 }
13875
13876
13877 static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) {
13878 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
13879 return 1;
13880 }
13881
13882
13883 static PyObject *_wrap_ART_MESSAGE_BOX_get() {
13884 PyObject *pyobj;
13885
13886 {
13887 #if wxUSE_UNICODE
13888 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13889 #else
13890 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13891 #endif
13892 }
13893 return pyobj;
13894 }
13895
13896
13897 static int _wrap_ART_BUTTON_set(PyObject *_val) {
13898 PyErr_SetString(PyExc_TypeError,"Variable ART_BUTTON is read-only.");
13899 return 1;
13900 }
13901
13902
13903 static PyObject *_wrap_ART_BUTTON_get() {
13904 PyObject *pyobj;
13905
13906 {
13907 #if wxUSE_UNICODE
13908 pyobj = PyUnicode_FromWideChar((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
13909 #else
13910 pyobj = PyString_FromStringAndSize((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
13911 #endif
13912 }
13913 return pyobj;
13914 }
13915
13916
13917 static int _wrap_ART_OTHER_set(PyObject *_val) {
13918 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
13919 return 1;
13920 }
13921
13922
13923 static PyObject *_wrap_ART_OTHER_get() {
13924 PyObject *pyobj;
13925
13926 {
13927 #if wxUSE_UNICODE
13928 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13929 #else
13930 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13931 #endif
13932 }
13933 return pyobj;
13934 }
13935
13936
13937 static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) {
13938 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
13939 return 1;
13940 }
13941
13942
13943 static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
13944 PyObject *pyobj;
13945
13946 {
13947 #if wxUSE_UNICODE
13948 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13949 #else
13950 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13951 #endif
13952 }
13953 return pyobj;
13954 }
13955
13956
13957 static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) {
13958 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
13959 return 1;
13960 }
13961
13962
13963 static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
13964 PyObject *pyobj;
13965
13966 {
13967 #if wxUSE_UNICODE
13968 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13969 #else
13970 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13971 #endif
13972 }
13973 return pyobj;
13974 }
13975
13976
13977 static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) {
13978 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
13979 return 1;
13980 }
13981
13982
13983 static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
13984 PyObject *pyobj;
13985
13986 {
13987 #if wxUSE_UNICODE
13988 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13989 #else
13990 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13991 #endif
13992 }
13993 return pyobj;
13994 }
13995
13996
13997 static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) {
13998 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
13999 return 1;
14000 }
14001
14002
14003 static PyObject *_wrap_ART_HELP_SETTINGS_get() {
14004 PyObject *pyobj;
14005
14006 {
14007 #if wxUSE_UNICODE
14008 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
14009 #else
14010 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
14011 #endif
14012 }
14013 return pyobj;
14014 }
14015
14016
14017 static int _wrap_ART_HELP_BOOK_set(PyObject *_val) {
14018 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
14019 return 1;
14020 }
14021
14022
14023 static PyObject *_wrap_ART_HELP_BOOK_get() {
14024 PyObject *pyobj;
14025
14026 {
14027 #if wxUSE_UNICODE
14028 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
14029 #else
14030 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
14031 #endif
14032 }
14033 return pyobj;
14034 }
14035
14036
14037 static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) {
14038 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
14039 return 1;
14040 }
14041
14042
14043 static PyObject *_wrap_ART_HELP_FOLDER_get() {
14044 PyObject *pyobj;
14045
14046 {
14047 #if wxUSE_UNICODE
14048 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
14049 #else
14050 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
14051 #endif
14052 }
14053 return pyobj;
14054 }
14055
14056
14057 static int _wrap_ART_HELP_PAGE_set(PyObject *_val) {
14058 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
14059 return 1;
14060 }
14061
14062
14063 static PyObject *_wrap_ART_HELP_PAGE_get() {
14064 PyObject *pyobj;
14065
14066 {
14067 #if wxUSE_UNICODE
14068 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
14069 #else
14070 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
14071 #endif
14072 }
14073 return pyobj;
14074 }
14075
14076
14077 static int _wrap_ART_GO_BACK_set(PyObject *_val) {
14078 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
14079 return 1;
14080 }
14081
14082
14083 static PyObject *_wrap_ART_GO_BACK_get() {
14084 PyObject *pyobj;
14085
14086 {
14087 #if wxUSE_UNICODE
14088 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
14089 #else
14090 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
14091 #endif
14092 }
14093 return pyobj;
14094 }
14095
14096
14097 static int _wrap_ART_GO_FORWARD_set(PyObject *_val) {
14098 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
14099 return 1;
14100 }
14101
14102
14103 static PyObject *_wrap_ART_GO_FORWARD_get() {
14104 PyObject *pyobj;
14105
14106 {
14107 #if wxUSE_UNICODE
14108 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
14109 #else
14110 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
14111 #endif
14112 }
14113 return pyobj;
14114 }
14115
14116
14117 static int _wrap_ART_GO_UP_set(PyObject *_val) {
14118 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
14119 return 1;
14120 }
14121
14122
14123 static PyObject *_wrap_ART_GO_UP_get() {
14124 PyObject *pyobj;
14125
14126 {
14127 #if wxUSE_UNICODE
14128 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
14129 #else
14130 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
14131 #endif
14132 }
14133 return pyobj;
14134 }
14135
14136
14137 static int _wrap_ART_GO_DOWN_set(PyObject *_val) {
14138 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
14139 return 1;
14140 }
14141
14142
14143 static PyObject *_wrap_ART_GO_DOWN_get() {
14144 PyObject *pyobj;
14145
14146 {
14147 #if wxUSE_UNICODE
14148 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
14149 #else
14150 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
14151 #endif
14152 }
14153 return pyobj;
14154 }
14155
14156
14157 static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) {
14158 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
14159 return 1;
14160 }
14161
14162
14163 static PyObject *_wrap_ART_GO_TO_PARENT_get() {
14164 PyObject *pyobj;
14165
14166 {
14167 #if wxUSE_UNICODE
14168 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
14169 #else
14170 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
14171 #endif
14172 }
14173 return pyobj;
14174 }
14175
14176
14177 static int _wrap_ART_GO_HOME_set(PyObject *_val) {
14178 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
14179 return 1;
14180 }
14181
14182
14183 static PyObject *_wrap_ART_GO_HOME_get() {
14184 PyObject *pyobj;
14185
14186 {
14187 #if wxUSE_UNICODE
14188 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
14189 #else
14190 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
14191 #endif
14192 }
14193 return pyobj;
14194 }
14195
14196
14197 static int _wrap_ART_FILE_OPEN_set(PyObject *_val) {
14198 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
14199 return 1;
14200 }
14201
14202
14203 static PyObject *_wrap_ART_FILE_OPEN_get() {
14204 PyObject *pyobj;
14205
14206 {
14207 #if wxUSE_UNICODE
14208 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14209 #else
14210 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14211 #endif
14212 }
14213 return pyobj;
14214 }
14215
14216
14217 static int _wrap_ART_PRINT_set(PyObject *_val) {
14218 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
14219 return 1;
14220 }
14221
14222
14223 static PyObject *_wrap_ART_PRINT_get() {
14224 PyObject *pyobj;
14225
14226 {
14227 #if wxUSE_UNICODE
14228 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14229 #else
14230 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14231 #endif
14232 }
14233 return pyobj;
14234 }
14235
14236
14237 static int _wrap_ART_HELP_set(PyObject *_val) {
14238 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
14239 return 1;
14240 }
14241
14242
14243 static PyObject *_wrap_ART_HELP_get() {
14244 PyObject *pyobj;
14245
14246 {
14247 #if wxUSE_UNICODE
14248 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14249 #else
14250 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14251 #endif
14252 }
14253 return pyobj;
14254 }
14255
14256
14257 static int _wrap_ART_TIP_set(PyObject *_val) {
14258 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
14259 return 1;
14260 }
14261
14262
14263 static PyObject *_wrap_ART_TIP_get() {
14264 PyObject *pyobj;
14265
14266 {
14267 #if wxUSE_UNICODE
14268 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14269 #else
14270 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14271 #endif
14272 }
14273 return pyobj;
14274 }
14275
14276
14277 static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) {
14278 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
14279 return 1;
14280 }
14281
14282
14283 static PyObject *_wrap_ART_REPORT_VIEW_get() {
14284 PyObject *pyobj;
14285
14286 {
14287 #if wxUSE_UNICODE
14288 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14289 #else
14290 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14291 #endif
14292 }
14293 return pyobj;
14294 }
14295
14296
14297 static int _wrap_ART_LIST_VIEW_set(PyObject *_val) {
14298 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
14299 return 1;
14300 }
14301
14302
14303 static PyObject *_wrap_ART_LIST_VIEW_get() {
14304 PyObject *pyobj;
14305
14306 {
14307 #if wxUSE_UNICODE
14308 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14309 #else
14310 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14311 #endif
14312 }
14313 return pyobj;
14314 }
14315
14316
14317 static int _wrap_ART_NEW_DIR_set(PyObject *_val) {
14318 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
14319 return 1;
14320 }
14321
14322
14323 static PyObject *_wrap_ART_NEW_DIR_get() {
14324 PyObject *pyobj;
14325
14326 {
14327 #if wxUSE_UNICODE
14328 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14329 #else
14330 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14331 #endif
14332 }
14333 return pyobj;
14334 }
14335
14336
14337 static int _wrap_ART_FOLDER_set(PyObject *_val) {
14338 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
14339 return 1;
14340 }
14341
14342
14343 static PyObject *_wrap_ART_FOLDER_get() {
14344 PyObject *pyobj;
14345
14346 {
14347 #if wxUSE_UNICODE
14348 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14349 #else
14350 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14351 #endif
14352 }
14353 return pyobj;
14354 }
14355
14356
14357 static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) {
14358 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
14359 return 1;
14360 }
14361
14362
14363 static PyObject *_wrap_ART_GO_DIR_UP_get() {
14364 PyObject *pyobj;
14365
14366 {
14367 #if wxUSE_UNICODE
14368 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14369 #else
14370 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14371 #endif
14372 }
14373 return pyobj;
14374 }
14375
14376
14377 static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) {
14378 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
14379 return 1;
14380 }
14381
14382
14383 static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
14384 PyObject *pyobj;
14385
14386 {
14387 #if wxUSE_UNICODE
14388 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14389 #else
14390 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14391 #endif
14392 }
14393 return pyobj;
14394 }
14395
14396
14397 static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) {
14398 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
14399 return 1;
14400 }
14401
14402
14403 static PyObject *_wrap_ART_NORMAL_FILE_get() {
14404 PyObject *pyobj;
14405
14406 {
14407 #if wxUSE_UNICODE
14408 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14409 #else
14410 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14411 #endif
14412 }
14413 return pyobj;
14414 }
14415
14416
14417 static int _wrap_ART_TICK_MARK_set(PyObject *_val) {
14418 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
14419 return 1;
14420 }
14421
14422
14423 static PyObject *_wrap_ART_TICK_MARK_get() {
14424 PyObject *pyobj;
14425
14426 {
14427 #if wxUSE_UNICODE
14428 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14429 #else
14430 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14431 #endif
14432 }
14433 return pyobj;
14434 }
14435
14436
14437 static int _wrap_ART_CROSS_MARK_set(PyObject *_val) {
14438 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
14439 return 1;
14440 }
14441
14442
14443 static PyObject *_wrap_ART_CROSS_MARK_get() {
14444 PyObject *pyobj;
14445
14446 {
14447 #if wxUSE_UNICODE
14448 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14449 #else
14450 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14451 #endif
14452 }
14453 return pyobj;
14454 }
14455
14456
14457 static int _wrap_ART_ERROR_set(PyObject *_val) {
14458 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
14459 return 1;
14460 }
14461
14462
14463 static PyObject *_wrap_ART_ERROR_get() {
14464 PyObject *pyobj;
14465
14466 {
14467 #if wxUSE_UNICODE
14468 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14469 #else
14470 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14471 #endif
14472 }
14473 return pyobj;
14474 }
14475
14476
14477 static int _wrap_ART_QUESTION_set(PyObject *_val) {
14478 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
14479 return 1;
14480 }
14481
14482
14483 static PyObject *_wrap_ART_QUESTION_get() {
14484 PyObject *pyobj;
14485
14486 {
14487 #if wxUSE_UNICODE
14488 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14489 #else
14490 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14491 #endif
14492 }
14493 return pyobj;
14494 }
14495
14496
14497 static int _wrap_ART_WARNING_set(PyObject *_val) {
14498 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
14499 return 1;
14500 }
14501
14502
14503 static PyObject *_wrap_ART_WARNING_get() {
14504 PyObject *pyobj;
14505
14506 {
14507 #if wxUSE_UNICODE
14508 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14509 #else
14510 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14511 #endif
14512 }
14513 return pyobj;
14514 }
14515
14516
14517 static int _wrap_ART_INFORMATION_set(PyObject *_val) {
14518 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
14519 return 1;
14520 }
14521
14522
14523 static PyObject *_wrap_ART_INFORMATION_get() {
14524 PyObject *pyobj;
14525
14526 {
14527 #if wxUSE_UNICODE
14528 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14529 #else
14530 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14531 #endif
14532 }
14533 return pyobj;
14534 }
14535
14536
14537 static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) {
14538 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
14539 return 1;
14540 }
14541
14542
14543 static PyObject *_wrap_ART_MISSING_IMAGE_get() {
14544 PyObject *pyobj;
14545
14546 {
14547 #if wxUSE_UNICODE
14548 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14549 #else
14550 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14551 #endif
14552 }
14553 return pyobj;
14554 }
14555
14556
14557 static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14558 PyObject *resultobj;
14559 wxPyArtProvider *result;
14560 char *kwnames[] = {
14561 NULL
14562 };
14563
14564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
14565 {
14566 if (!wxPyCheckForApp()) SWIG_fail;
14567 PyThreadState* __tstate = wxPyBeginAllowThreads();
14568 result = (wxPyArtProvider *)new wxPyArtProvider();
14569
14570 wxPyEndAllowThreads(__tstate);
14571 if (PyErr_Occurred()) SWIG_fail;
14572 }
14573 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
14574 return resultobj;
14575 fail:
14576 return NULL;
14577 }
14578
14579
14580 static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
14581 PyObject *resultobj;
14582 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14583 PyObject *arg2 = (PyObject *) 0 ;
14584 PyObject *arg3 = (PyObject *) 0 ;
14585 PyObject * obj0 = 0 ;
14586 PyObject * obj1 = 0 ;
14587 PyObject * obj2 = 0 ;
14588 char *kwnames[] = {
14589 (char *) "self",(char *) "self",(char *) "_class", NULL
14590 };
14591
14592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
14593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14595 arg2 = obj1;
14596 arg3 = obj2;
14597 {
14598 PyThreadState* __tstate = wxPyBeginAllowThreads();
14599 (arg1)->_setCallbackInfo(arg2,arg3);
14600
14601 wxPyEndAllowThreads(__tstate);
14602 if (PyErr_Occurred()) SWIG_fail;
14603 }
14604 Py_INCREF(Py_None); resultobj = Py_None;
14605 return resultobj;
14606 fail:
14607 return NULL;
14608 }
14609
14610
14611 static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14612 PyObject *resultobj;
14613 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14614 PyObject * obj0 = 0 ;
14615 char *kwnames[] = {
14616 (char *) "provider", NULL
14617 };
14618
14619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
14620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14622 {
14623 PyThreadState* __tstate = wxPyBeginAllowThreads();
14624 wxPyArtProvider::PushProvider(arg1);
14625
14626 wxPyEndAllowThreads(__tstate);
14627 if (PyErr_Occurred()) SWIG_fail;
14628 }
14629 Py_INCREF(Py_None); resultobj = Py_None;
14630 return resultobj;
14631 fail:
14632 return NULL;
14633 }
14634
14635
14636 static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14637 PyObject *resultobj;
14638 bool result;
14639 char *kwnames[] = {
14640 NULL
14641 };
14642
14643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
14644 {
14645 PyThreadState* __tstate = wxPyBeginAllowThreads();
14646 result = (bool)wxPyArtProvider::PopProvider();
14647
14648 wxPyEndAllowThreads(__tstate);
14649 if (PyErr_Occurred()) SWIG_fail;
14650 }
14651 {
14652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14653 }
14654 return resultobj;
14655 fail:
14656 return NULL;
14657 }
14658
14659
14660 static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14661 PyObject *resultobj;
14662 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14663 bool result;
14664 PyObject * obj0 = 0 ;
14665 char *kwnames[] = {
14666 (char *) "provider", NULL
14667 };
14668
14669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
14670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14672 {
14673 PyThreadState* __tstate = wxPyBeginAllowThreads();
14674 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
14675
14676 wxPyEndAllowThreads(__tstate);
14677 if (PyErr_Occurred()) SWIG_fail;
14678 }
14679 {
14680 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14681 }
14682 return resultobj;
14683 fail:
14684 return NULL;
14685 }
14686
14687
14688 static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
14689 PyObject *resultobj;
14690 wxString *arg1 = 0 ;
14691 wxString const &arg2_defvalue = wxPyART_OTHER ;
14692 wxString *arg2 = (wxString *) &arg2_defvalue ;
14693 wxSize const &arg3_defvalue = wxDefaultSize ;
14694 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14695 wxBitmap result;
14696 bool temp1 = False ;
14697 bool temp2 = False ;
14698 wxSize temp3 ;
14699 PyObject * obj0 = 0 ;
14700 PyObject * obj1 = 0 ;
14701 PyObject * obj2 = 0 ;
14702 char *kwnames[] = {
14703 (char *) "id",(char *) "client",(char *) "size", NULL
14704 };
14705
14706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
14707 {
14708 arg1 = wxString_in_helper(obj0);
14709 if (arg1 == NULL) SWIG_fail;
14710 temp1 = True;
14711 }
14712 if (obj1) {
14713 {
14714 arg2 = wxString_in_helper(obj1);
14715 if (arg2 == NULL) SWIG_fail;
14716 temp2 = True;
14717 }
14718 }
14719 if (obj2) {
14720 {
14721 arg3 = &temp3;
14722 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14723 }
14724 }
14725 {
14726 if (!wxPyCheckForApp()) SWIG_fail;
14727 PyThreadState* __tstate = wxPyBeginAllowThreads();
14728 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14729
14730 wxPyEndAllowThreads(__tstate);
14731 if (PyErr_Occurred()) SWIG_fail;
14732 }
14733 {
14734 wxBitmap * resultptr;
14735 resultptr = new wxBitmap((wxBitmap &) result);
14736 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
14737 }
14738 {
14739 if (temp1)
14740 delete arg1;
14741 }
14742 {
14743 if (temp2)
14744 delete arg2;
14745 }
14746 return resultobj;
14747 fail:
14748 {
14749 if (temp1)
14750 delete arg1;
14751 }
14752 {
14753 if (temp2)
14754 delete arg2;
14755 }
14756 return NULL;
14757 }
14758
14759
14760 static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
14761 PyObject *resultobj;
14762 wxString *arg1 = 0 ;
14763 wxString const &arg2_defvalue = wxPyART_OTHER ;
14764 wxString *arg2 = (wxString *) &arg2_defvalue ;
14765 wxSize const &arg3_defvalue = wxDefaultSize ;
14766 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14767 wxIcon result;
14768 bool temp1 = False ;
14769 bool temp2 = False ;
14770 wxSize temp3 ;
14771 PyObject * obj0 = 0 ;
14772 PyObject * obj1 = 0 ;
14773 PyObject * obj2 = 0 ;
14774 char *kwnames[] = {
14775 (char *) "id",(char *) "client",(char *) "size", NULL
14776 };
14777
14778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
14779 {
14780 arg1 = wxString_in_helper(obj0);
14781 if (arg1 == NULL) SWIG_fail;
14782 temp1 = True;
14783 }
14784 if (obj1) {
14785 {
14786 arg2 = wxString_in_helper(obj1);
14787 if (arg2 == NULL) SWIG_fail;
14788 temp2 = True;
14789 }
14790 }
14791 if (obj2) {
14792 {
14793 arg3 = &temp3;
14794 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14795 }
14796 }
14797 {
14798 if (!wxPyCheckForApp()) SWIG_fail;
14799 PyThreadState* __tstate = wxPyBeginAllowThreads();
14800 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14801
14802 wxPyEndAllowThreads(__tstate);
14803 if (PyErr_Occurred()) SWIG_fail;
14804 }
14805 {
14806 wxIcon * resultptr;
14807 resultptr = new wxIcon((wxIcon &) result);
14808 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
14809 }
14810 {
14811 if (temp1)
14812 delete arg1;
14813 }
14814 {
14815 if (temp2)
14816 delete arg2;
14817 }
14818 return resultobj;
14819 fail:
14820 {
14821 if (temp1)
14822 delete arg1;
14823 }
14824 {
14825 if (temp2)
14826 delete arg2;
14827 }
14828 return NULL;
14829 }
14830
14831
14832 static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
14833 PyObject *resultobj;
14834 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14835 PyObject * obj0 = 0 ;
14836 char *kwnames[] = {
14837 (char *) "self", NULL
14838 };
14839
14840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
14841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14843 {
14844 PyThreadState* __tstate = wxPyBeginAllowThreads();
14845 wxPyArtProvider_Destroy(arg1);
14846
14847 wxPyEndAllowThreads(__tstate);
14848 if (PyErr_Occurred()) SWIG_fail;
14849 }
14850 Py_INCREF(Py_None); resultobj = Py_None;
14851 return resultobj;
14852 fail:
14853 return NULL;
14854 }
14855
14856
14857 static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) {
14858 PyObject *obj;
14859 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14860 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
14861 Py_INCREF(obj);
14862 return Py_BuildValue((char *)"");
14863 }
14864 static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) {
14865 PyObject *resultobj;
14866 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14867 PyObject * obj0 = 0 ;
14868 char *kwnames[] = {
14869 (char *) "self", NULL
14870 };
14871
14872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
14873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14875 {
14876 PyThreadState* __tstate = wxPyBeginAllowThreads();
14877 delete arg1;
14878
14879 wxPyEndAllowThreads(__tstate);
14880 if (PyErr_Occurred()) SWIG_fail;
14881 }
14882 Py_INCREF(Py_None); resultobj = Py_None;
14883 return resultobj;
14884 fail:
14885 return NULL;
14886 }
14887
14888
14889 static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
14890 PyObject *resultobj;
14891 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14892 wxConfigBase *result;
14893 PyObject * obj0 = 0 ;
14894 char *kwnames[] = {
14895 (char *) "config", NULL
14896 };
14897
14898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
14899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14901 {
14902 PyThreadState* __tstate = wxPyBeginAllowThreads();
14903 result = (wxConfigBase *)wxConfigBase::Set(arg1);
14904
14905 wxPyEndAllowThreads(__tstate);
14906 if (PyErr_Occurred()) SWIG_fail;
14907 }
14908 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14909 return resultobj;
14910 fail:
14911 return NULL;
14912 }
14913
14914
14915 static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
14916 PyObject *resultobj;
14917 bool arg1 = (bool) True ;
14918 wxConfigBase *result;
14919 PyObject * obj0 = 0 ;
14920 char *kwnames[] = {
14921 (char *) "createOnDemand", NULL
14922 };
14923
14924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
14925 if (obj0) {
14926 arg1 = (bool) SWIG_AsBool(obj0);
14927 if (PyErr_Occurred()) SWIG_fail;
14928 }
14929 {
14930 PyThreadState* __tstate = wxPyBeginAllowThreads();
14931 result = (wxConfigBase *)wxConfigBase::Get(arg1);
14932
14933 wxPyEndAllowThreads(__tstate);
14934 if (PyErr_Occurred()) SWIG_fail;
14935 }
14936 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14937 return resultobj;
14938 fail:
14939 return NULL;
14940 }
14941
14942
14943 static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14944 PyObject *resultobj;
14945 wxConfigBase *result;
14946 char *kwnames[] = {
14947 NULL
14948 };
14949
14950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
14951 {
14952 PyThreadState* __tstate = wxPyBeginAllowThreads();
14953 result = (wxConfigBase *)wxConfigBase::Create();
14954
14955 wxPyEndAllowThreads(__tstate);
14956 if (PyErr_Occurred()) SWIG_fail;
14957 }
14958 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14959 return resultobj;
14960 fail:
14961 return NULL;
14962 }
14963
14964
14965 static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
14966 PyObject *resultobj;
14967 char *kwnames[] = {
14968 NULL
14969 };
14970
14971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
14972 {
14973 PyThreadState* __tstate = wxPyBeginAllowThreads();
14974 wxConfigBase::DontCreateOnDemand();
14975
14976 wxPyEndAllowThreads(__tstate);
14977 if (PyErr_Occurred()) SWIG_fail;
14978 }
14979 Py_INCREF(Py_None); resultobj = Py_None;
14980 return resultobj;
14981 fail:
14982 return NULL;
14983 }
14984
14985
14986 static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14987 PyObject *resultobj;
14988 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14989 wxString *arg2 = 0 ;
14990 bool temp2 = False ;
14991 PyObject * obj0 = 0 ;
14992 PyObject * obj1 = 0 ;
14993 char *kwnames[] = {
14994 (char *) "self",(char *) "path", NULL
14995 };
14996
14997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
14998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15000 {
15001 arg2 = wxString_in_helper(obj1);
15002 if (arg2 == NULL) SWIG_fail;
15003 temp2 = True;
15004 }
15005 {
15006 PyThreadState* __tstate = wxPyBeginAllowThreads();
15007 (arg1)->SetPath((wxString const &)*arg2);
15008
15009 wxPyEndAllowThreads(__tstate);
15010 if (PyErr_Occurred()) SWIG_fail;
15011 }
15012 Py_INCREF(Py_None); resultobj = Py_None;
15013 {
15014 if (temp2)
15015 delete arg2;
15016 }
15017 return resultobj;
15018 fail:
15019 {
15020 if (temp2)
15021 delete arg2;
15022 }
15023 return NULL;
15024 }
15025
15026
15027 static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
15028 PyObject *resultobj;
15029 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15030 wxString *result;
15031 PyObject * obj0 = 0 ;
15032 char *kwnames[] = {
15033 (char *) "self", NULL
15034 };
15035
15036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
15037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15039 {
15040 PyThreadState* __tstate = wxPyBeginAllowThreads();
15041 {
15042 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
15043 result = (wxString *) &_result_ref;
15044 }
15045
15046 wxPyEndAllowThreads(__tstate);
15047 if (PyErr_Occurred()) SWIG_fail;
15048 }
15049 {
15050 #if wxUSE_UNICODE
15051 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15052 #else
15053 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15054 #endif
15055 }
15056 return resultobj;
15057 fail:
15058 return NULL;
15059 }
15060
15061
15062 static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15063 PyObject *resultobj;
15064 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15065 PyObject *result;
15066 PyObject * obj0 = 0 ;
15067 char *kwnames[] = {
15068 (char *) "self", NULL
15069 };
15070
15071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
15072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15074 {
15075 PyThreadState* __tstate = wxPyBeginAllowThreads();
15076 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
15077
15078 wxPyEndAllowThreads(__tstate);
15079 if (PyErr_Occurred()) SWIG_fail;
15080 }
15081 resultobj = result;
15082 return resultobj;
15083 fail:
15084 return NULL;
15085 }
15086
15087
15088 static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15089 PyObject *resultobj;
15090 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15091 long arg2 ;
15092 PyObject *result;
15093 PyObject * obj0 = 0 ;
15094 PyObject * obj1 = 0 ;
15095 char *kwnames[] = {
15096 (char *) "self",(char *) "index", NULL
15097 };
15098
15099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
15100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15102 arg2 = (long) SWIG_AsLong(obj1);
15103 if (PyErr_Occurred()) SWIG_fail;
15104 {
15105 PyThreadState* __tstate = wxPyBeginAllowThreads();
15106 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
15107
15108 wxPyEndAllowThreads(__tstate);
15109 if (PyErr_Occurred()) SWIG_fail;
15110 }
15111 resultobj = result;
15112 return resultobj;
15113 fail:
15114 return NULL;
15115 }
15116
15117
15118 static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15119 PyObject *resultobj;
15120 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15121 PyObject *result;
15122 PyObject * obj0 = 0 ;
15123 char *kwnames[] = {
15124 (char *) "self", NULL
15125 };
15126
15127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
15128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15130 {
15131 PyThreadState* __tstate = wxPyBeginAllowThreads();
15132 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
15133
15134 wxPyEndAllowThreads(__tstate);
15135 if (PyErr_Occurred()) SWIG_fail;
15136 }
15137 resultobj = result;
15138 return resultobj;
15139 fail:
15140 return NULL;
15141 }
15142
15143
15144 static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15145 PyObject *resultobj;
15146 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15147 long arg2 ;
15148 PyObject *result;
15149 PyObject * obj0 = 0 ;
15150 PyObject * obj1 = 0 ;
15151 char *kwnames[] = {
15152 (char *) "self",(char *) "index", NULL
15153 };
15154
15155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
15156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15158 arg2 = (long) SWIG_AsLong(obj1);
15159 if (PyErr_Occurred()) SWIG_fail;
15160 {
15161 PyThreadState* __tstate = wxPyBeginAllowThreads();
15162 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
15163
15164 wxPyEndAllowThreads(__tstate);
15165 if (PyErr_Occurred()) SWIG_fail;
15166 }
15167 resultobj = result;
15168 return resultobj;
15169 fail:
15170 return NULL;
15171 }
15172
15173
15174 static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) {
15175 PyObject *resultobj;
15176 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15177 bool arg2 = (bool) False ;
15178 size_t result;
15179 PyObject * obj0 = 0 ;
15180 PyObject * obj1 = 0 ;
15181 char *kwnames[] = {
15182 (char *) "self",(char *) "recursive", NULL
15183 };
15184
15185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
15186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15188 if (obj1) {
15189 arg2 = (bool) SWIG_AsBool(obj1);
15190 if (PyErr_Occurred()) SWIG_fail;
15191 }
15192 {
15193 PyThreadState* __tstate = wxPyBeginAllowThreads();
15194 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
15195
15196 wxPyEndAllowThreads(__tstate);
15197 if (PyErr_Occurred()) SWIG_fail;
15198 }
15199 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
15200 return resultobj;
15201 fail:
15202 return NULL;
15203 }
15204
15205
15206 static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) {
15207 PyObject *resultobj;
15208 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15209 bool arg2 = (bool) False ;
15210 size_t result;
15211 PyObject * obj0 = 0 ;
15212 PyObject * obj1 = 0 ;
15213 char *kwnames[] = {
15214 (char *) "self",(char *) "recursive", NULL
15215 };
15216
15217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
15218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15220 if (obj1) {
15221 arg2 = (bool) SWIG_AsBool(obj1);
15222 if (PyErr_Occurred()) SWIG_fail;
15223 }
15224 {
15225 PyThreadState* __tstate = wxPyBeginAllowThreads();
15226 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
15227
15228 wxPyEndAllowThreads(__tstate);
15229 if (PyErr_Occurred()) SWIG_fail;
15230 }
15231 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
15232 return resultobj;
15233 fail:
15234 return NULL;
15235 }
15236
15237
15238 static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15239 PyObject *resultobj;
15240 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15241 wxString *arg2 = 0 ;
15242 bool result;
15243 bool temp2 = False ;
15244 PyObject * obj0 = 0 ;
15245 PyObject * obj1 = 0 ;
15246 char *kwnames[] = {
15247 (char *) "self",(char *) "name", NULL
15248 };
15249
15250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
15251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15253 {
15254 arg2 = wxString_in_helper(obj1);
15255 if (arg2 == NULL) SWIG_fail;
15256 temp2 = True;
15257 }
15258 {
15259 PyThreadState* __tstate = wxPyBeginAllowThreads();
15260 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
15261
15262 wxPyEndAllowThreads(__tstate);
15263 if (PyErr_Occurred()) SWIG_fail;
15264 }
15265 {
15266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15267 }
15268 {
15269 if (temp2)
15270 delete arg2;
15271 }
15272 return resultobj;
15273 fail:
15274 {
15275 if (temp2)
15276 delete arg2;
15277 }
15278 return NULL;
15279 }
15280
15281
15282 static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15283 PyObject *resultobj;
15284 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15285 wxString *arg2 = 0 ;
15286 bool result;
15287 bool temp2 = False ;
15288 PyObject * obj0 = 0 ;
15289 PyObject * obj1 = 0 ;
15290 char *kwnames[] = {
15291 (char *) "self",(char *) "name", NULL
15292 };
15293
15294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
15295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15297 {
15298 arg2 = wxString_in_helper(obj1);
15299 if (arg2 == NULL) SWIG_fail;
15300 temp2 = True;
15301 }
15302 {
15303 PyThreadState* __tstate = wxPyBeginAllowThreads();
15304 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
15305
15306 wxPyEndAllowThreads(__tstate);
15307 if (PyErr_Occurred()) SWIG_fail;
15308 }
15309 {
15310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15311 }
15312 {
15313 if (temp2)
15314 delete arg2;
15315 }
15316 return resultobj;
15317 fail:
15318 {
15319 if (temp2)
15320 delete arg2;
15321 }
15322 return NULL;
15323 }
15324
15325
15326 static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
15327 PyObject *resultobj;
15328 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15329 wxString *arg2 = 0 ;
15330 bool result;
15331 bool temp2 = False ;
15332 PyObject * obj0 = 0 ;
15333 PyObject * obj1 = 0 ;
15334 char *kwnames[] = {
15335 (char *) "self",(char *) "name", NULL
15336 };
15337
15338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
15339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15341 {
15342 arg2 = wxString_in_helper(obj1);
15343 if (arg2 == NULL) SWIG_fail;
15344 temp2 = True;
15345 }
15346 {
15347 PyThreadState* __tstate = wxPyBeginAllowThreads();
15348 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
15349
15350 wxPyEndAllowThreads(__tstate);
15351 if (PyErr_Occurred()) SWIG_fail;
15352 }
15353 {
15354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15355 }
15356 {
15357 if (temp2)
15358 delete arg2;
15359 }
15360 return resultobj;
15361 fail:
15362 {
15363 if (temp2)
15364 delete arg2;
15365 }
15366 return NULL;
15367 }
15368
15369
15370 static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) {
15371 PyObject *resultobj;
15372 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15373 wxString *arg2 = 0 ;
15374 int result;
15375 bool temp2 = False ;
15376 PyObject * obj0 = 0 ;
15377 PyObject * obj1 = 0 ;
15378 char *kwnames[] = {
15379 (char *) "self",(char *) "name", NULL
15380 };
15381
15382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
15383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15385 {
15386 arg2 = wxString_in_helper(obj1);
15387 if (arg2 == NULL) SWIG_fail;
15388 temp2 = True;
15389 }
15390 {
15391 PyThreadState* __tstate = wxPyBeginAllowThreads();
15392 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
15393
15394 wxPyEndAllowThreads(__tstate);
15395 if (PyErr_Occurred()) SWIG_fail;
15396 }
15397 resultobj = SWIG_FromInt((int)result);
15398 {
15399 if (temp2)
15400 delete arg2;
15401 }
15402 return resultobj;
15403 fail:
15404 {
15405 if (temp2)
15406 delete arg2;
15407 }
15408 return NULL;
15409 }
15410
15411
15412 static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) {
15413 PyObject *resultobj;
15414 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15415 wxString *arg2 = 0 ;
15416 wxString const &arg3_defvalue = wxPyEmptyString ;
15417 wxString *arg3 = (wxString *) &arg3_defvalue ;
15418 wxString result;
15419 bool temp2 = False ;
15420 bool temp3 = False ;
15421 PyObject * obj0 = 0 ;
15422 PyObject * obj1 = 0 ;
15423 PyObject * obj2 = 0 ;
15424 char *kwnames[] = {
15425 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15426 };
15427
15428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
15429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15431 {
15432 arg2 = wxString_in_helper(obj1);
15433 if (arg2 == NULL) SWIG_fail;
15434 temp2 = True;
15435 }
15436 if (obj2) {
15437 {
15438 arg3 = wxString_in_helper(obj2);
15439 if (arg3 == NULL) SWIG_fail;
15440 temp3 = True;
15441 }
15442 }
15443 {
15444 PyThreadState* __tstate = wxPyBeginAllowThreads();
15445 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
15446
15447 wxPyEndAllowThreads(__tstate);
15448 if (PyErr_Occurred()) SWIG_fail;
15449 }
15450 {
15451 #if wxUSE_UNICODE
15452 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15453 #else
15454 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15455 #endif
15456 }
15457 {
15458 if (temp2)
15459 delete arg2;
15460 }
15461 {
15462 if (temp3)
15463 delete arg3;
15464 }
15465 return resultobj;
15466 fail:
15467 {
15468 if (temp2)
15469 delete arg2;
15470 }
15471 {
15472 if (temp3)
15473 delete arg3;
15474 }
15475 return NULL;
15476 }
15477
15478
15479 static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15480 PyObject *resultobj;
15481 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15482 wxString *arg2 = 0 ;
15483 long arg3 = (long) 0 ;
15484 long result;
15485 bool temp2 = False ;
15486 PyObject * obj0 = 0 ;
15487 PyObject * obj1 = 0 ;
15488 PyObject * obj2 = 0 ;
15489 char *kwnames[] = {
15490 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15491 };
15492
15493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15496 {
15497 arg2 = wxString_in_helper(obj1);
15498 if (arg2 == NULL) SWIG_fail;
15499 temp2 = True;
15500 }
15501 if (obj2) {
15502 arg3 = (long) SWIG_AsLong(obj2);
15503 if (PyErr_Occurred()) SWIG_fail;
15504 }
15505 {
15506 PyThreadState* __tstate = wxPyBeginAllowThreads();
15507 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
15508
15509 wxPyEndAllowThreads(__tstate);
15510 if (PyErr_Occurred()) SWIG_fail;
15511 }
15512 resultobj = SWIG_FromLong((long)result);
15513 {
15514 if (temp2)
15515 delete arg2;
15516 }
15517 return resultobj;
15518 fail:
15519 {
15520 if (temp2)
15521 delete arg2;
15522 }
15523 return NULL;
15524 }
15525
15526
15527 static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15528 PyObject *resultobj;
15529 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15530 wxString *arg2 = 0 ;
15531 double arg3 = (double) 0.0 ;
15532 double result;
15533 bool temp2 = False ;
15534 PyObject * obj0 = 0 ;
15535 PyObject * obj1 = 0 ;
15536 PyObject * obj2 = 0 ;
15537 char *kwnames[] = {
15538 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15539 };
15540
15541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15544 {
15545 arg2 = wxString_in_helper(obj1);
15546 if (arg2 == NULL) SWIG_fail;
15547 temp2 = True;
15548 }
15549 if (obj2) {
15550 arg3 = (double) SWIG_AsDouble(obj2);
15551 if (PyErr_Occurred()) SWIG_fail;
15552 }
15553 {
15554 PyThreadState* __tstate = wxPyBeginAllowThreads();
15555 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
15556
15557 wxPyEndAllowThreads(__tstate);
15558 if (PyErr_Occurred()) SWIG_fail;
15559 }
15560 resultobj = SWIG_FromDouble((double)result);
15561 {
15562 if (temp2)
15563 delete arg2;
15564 }
15565 return resultobj;
15566 fail:
15567 {
15568 if (temp2)
15569 delete arg2;
15570 }
15571 return NULL;
15572 }
15573
15574
15575 static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15576 PyObject *resultobj;
15577 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15578 wxString *arg2 = 0 ;
15579 bool arg3 = (bool) False ;
15580 bool result;
15581 bool temp2 = False ;
15582 PyObject * obj0 = 0 ;
15583 PyObject * obj1 = 0 ;
15584 PyObject * obj2 = 0 ;
15585 char *kwnames[] = {
15586 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15587 };
15588
15589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15592 {
15593 arg2 = wxString_in_helper(obj1);
15594 if (arg2 == NULL) SWIG_fail;
15595 temp2 = True;
15596 }
15597 if (obj2) {
15598 arg3 = (bool) SWIG_AsBool(obj2);
15599 if (PyErr_Occurred()) SWIG_fail;
15600 }
15601 {
15602 PyThreadState* __tstate = wxPyBeginAllowThreads();
15603 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
15604
15605 wxPyEndAllowThreads(__tstate);
15606 if (PyErr_Occurred()) SWIG_fail;
15607 }
15608 {
15609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15610 }
15611 {
15612 if (temp2)
15613 delete arg2;
15614 }
15615 return resultobj;
15616 fail:
15617 {
15618 if (temp2)
15619 delete arg2;
15620 }
15621 return NULL;
15622 }
15623
15624
15625 static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) {
15626 PyObject *resultobj;
15627 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15628 wxString *arg2 = 0 ;
15629 wxString *arg3 = 0 ;
15630 bool result;
15631 bool temp2 = False ;
15632 bool temp3 = False ;
15633 PyObject * obj0 = 0 ;
15634 PyObject * obj1 = 0 ;
15635 PyObject * obj2 = 0 ;
15636 char *kwnames[] = {
15637 (char *) "self",(char *) "key",(char *) "value", NULL
15638 };
15639
15640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
15641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15643 {
15644 arg2 = wxString_in_helper(obj1);
15645 if (arg2 == NULL) SWIG_fail;
15646 temp2 = True;
15647 }
15648 {
15649 arg3 = wxString_in_helper(obj2);
15650 if (arg3 == NULL) SWIG_fail;
15651 temp3 = True;
15652 }
15653 {
15654 PyThreadState* __tstate = wxPyBeginAllowThreads();
15655 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
15656
15657 wxPyEndAllowThreads(__tstate);
15658 if (PyErr_Occurred()) SWIG_fail;
15659 }
15660 {
15661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15662 }
15663 {
15664 if (temp2)
15665 delete arg2;
15666 }
15667 {
15668 if (temp3)
15669 delete arg3;
15670 }
15671 return resultobj;
15672 fail:
15673 {
15674 if (temp2)
15675 delete arg2;
15676 }
15677 {
15678 if (temp3)
15679 delete arg3;
15680 }
15681 return NULL;
15682 }
15683
15684
15685 static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15686 PyObject *resultobj;
15687 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15688 wxString *arg2 = 0 ;
15689 long arg3 ;
15690 bool result;
15691 bool temp2 = False ;
15692 PyObject * obj0 = 0 ;
15693 PyObject * obj1 = 0 ;
15694 PyObject * obj2 = 0 ;
15695 char *kwnames[] = {
15696 (char *) "self",(char *) "key",(char *) "value", NULL
15697 };
15698
15699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15702 {
15703 arg2 = wxString_in_helper(obj1);
15704 if (arg2 == NULL) SWIG_fail;
15705 temp2 = True;
15706 }
15707 arg3 = (long) SWIG_AsLong(obj2);
15708 if (PyErr_Occurred()) SWIG_fail;
15709 {
15710 PyThreadState* __tstate = wxPyBeginAllowThreads();
15711 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15712
15713 wxPyEndAllowThreads(__tstate);
15714 if (PyErr_Occurred()) SWIG_fail;
15715 }
15716 {
15717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15718 }
15719 {
15720 if (temp2)
15721 delete arg2;
15722 }
15723 return resultobj;
15724 fail:
15725 {
15726 if (temp2)
15727 delete arg2;
15728 }
15729 return NULL;
15730 }
15731
15732
15733 static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15734 PyObject *resultobj;
15735 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15736 wxString *arg2 = 0 ;
15737 double arg3 ;
15738 bool result;
15739 bool temp2 = False ;
15740 PyObject * obj0 = 0 ;
15741 PyObject * obj1 = 0 ;
15742 PyObject * obj2 = 0 ;
15743 char *kwnames[] = {
15744 (char *) "self",(char *) "key",(char *) "value", NULL
15745 };
15746
15747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15750 {
15751 arg2 = wxString_in_helper(obj1);
15752 if (arg2 == NULL) SWIG_fail;
15753 temp2 = True;
15754 }
15755 arg3 = (double) SWIG_AsDouble(obj2);
15756 if (PyErr_Occurred()) SWIG_fail;
15757 {
15758 PyThreadState* __tstate = wxPyBeginAllowThreads();
15759 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15760
15761 wxPyEndAllowThreads(__tstate);
15762 if (PyErr_Occurred()) SWIG_fail;
15763 }
15764 {
15765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15766 }
15767 {
15768 if (temp2)
15769 delete arg2;
15770 }
15771 return resultobj;
15772 fail:
15773 {
15774 if (temp2)
15775 delete arg2;
15776 }
15777 return NULL;
15778 }
15779
15780
15781 static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15782 PyObject *resultobj;
15783 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15784 wxString *arg2 = 0 ;
15785 bool arg3 ;
15786 bool result;
15787 bool temp2 = False ;
15788 PyObject * obj0 = 0 ;
15789 PyObject * obj1 = 0 ;
15790 PyObject * obj2 = 0 ;
15791 char *kwnames[] = {
15792 (char *) "self",(char *) "key",(char *) "value", NULL
15793 };
15794
15795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15798 {
15799 arg2 = wxString_in_helper(obj1);
15800 if (arg2 == NULL) SWIG_fail;
15801 temp2 = True;
15802 }
15803 arg3 = (bool) SWIG_AsBool(obj2);
15804 if (PyErr_Occurred()) SWIG_fail;
15805 {
15806 PyThreadState* __tstate = wxPyBeginAllowThreads();
15807 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15808
15809 wxPyEndAllowThreads(__tstate);
15810 if (PyErr_Occurred()) SWIG_fail;
15811 }
15812 {
15813 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15814 }
15815 {
15816 if (temp2)
15817 delete arg2;
15818 }
15819 return resultobj;
15820 fail:
15821 {
15822 if (temp2)
15823 delete arg2;
15824 }
15825 return NULL;
15826 }
15827
15828
15829 static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
15830 PyObject *resultobj;
15831 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15832 bool arg2 = (bool) False ;
15833 bool result;
15834 PyObject * obj0 = 0 ;
15835 PyObject * obj1 = 0 ;
15836 char *kwnames[] = {
15837 (char *) "self",(char *) "currentOnly", NULL
15838 };
15839
15840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
15841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15843 if (obj1) {
15844 arg2 = (bool) SWIG_AsBool(obj1);
15845 if (PyErr_Occurred()) SWIG_fail;
15846 }
15847 {
15848 PyThreadState* __tstate = wxPyBeginAllowThreads();
15849 result = (bool)(arg1)->Flush(arg2);
15850
15851 wxPyEndAllowThreads(__tstate);
15852 if (PyErr_Occurred()) SWIG_fail;
15853 }
15854 {
15855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15856 }
15857 return resultobj;
15858 fail:
15859 return NULL;
15860 }
15861
15862
15863 static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15864 PyObject *resultobj;
15865 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15866 wxString *arg2 = 0 ;
15867 wxString *arg3 = 0 ;
15868 bool result;
15869 bool temp2 = False ;
15870 bool temp3 = False ;
15871 PyObject * obj0 = 0 ;
15872 PyObject * obj1 = 0 ;
15873 PyObject * obj2 = 0 ;
15874 char *kwnames[] = {
15875 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15876 };
15877
15878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15881 {
15882 arg2 = wxString_in_helper(obj1);
15883 if (arg2 == NULL) SWIG_fail;
15884 temp2 = True;
15885 }
15886 {
15887 arg3 = wxString_in_helper(obj2);
15888 if (arg3 == NULL) SWIG_fail;
15889 temp3 = True;
15890 }
15891 {
15892 PyThreadState* __tstate = wxPyBeginAllowThreads();
15893 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
15894
15895 wxPyEndAllowThreads(__tstate);
15896 if (PyErr_Occurred()) SWIG_fail;
15897 }
15898 {
15899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15900 }
15901 {
15902 if (temp2)
15903 delete arg2;
15904 }
15905 {
15906 if (temp3)
15907 delete arg3;
15908 }
15909 return resultobj;
15910 fail:
15911 {
15912 if (temp2)
15913 delete arg2;
15914 }
15915 {
15916 if (temp3)
15917 delete arg3;
15918 }
15919 return NULL;
15920 }
15921
15922
15923 static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15924 PyObject *resultobj;
15925 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15926 wxString *arg2 = 0 ;
15927 wxString *arg3 = 0 ;
15928 bool result;
15929 bool temp2 = False ;
15930 bool temp3 = False ;
15931 PyObject * obj0 = 0 ;
15932 PyObject * obj1 = 0 ;
15933 PyObject * obj2 = 0 ;
15934 char *kwnames[] = {
15935 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15936 };
15937
15938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
15939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15941 {
15942 arg2 = wxString_in_helper(obj1);
15943 if (arg2 == NULL) SWIG_fail;
15944 temp2 = True;
15945 }
15946 {
15947 arg3 = wxString_in_helper(obj2);
15948 if (arg3 == NULL) SWIG_fail;
15949 temp3 = True;
15950 }
15951 {
15952 PyThreadState* __tstate = wxPyBeginAllowThreads();
15953 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
15954
15955 wxPyEndAllowThreads(__tstate);
15956 if (PyErr_Occurred()) SWIG_fail;
15957 }
15958 {
15959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15960 }
15961 {
15962 if (temp2)
15963 delete arg2;
15964 }
15965 {
15966 if (temp3)
15967 delete arg3;
15968 }
15969 return resultobj;
15970 fail:
15971 {
15972 if (temp2)
15973 delete arg2;
15974 }
15975 {
15976 if (temp3)
15977 delete arg3;
15978 }
15979 return NULL;
15980 }
15981
15982
15983 static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15984 PyObject *resultobj;
15985 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15986 wxString *arg2 = 0 ;
15987 bool arg3 = (bool) True ;
15988 bool result;
15989 bool temp2 = False ;
15990 PyObject * obj0 = 0 ;
15991 PyObject * obj1 = 0 ;
15992 PyObject * obj2 = 0 ;
15993 char *kwnames[] = {
15994 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
15995 };
15996
15997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16000 {
16001 arg2 = wxString_in_helper(obj1);
16002 if (arg2 == NULL) SWIG_fail;
16003 temp2 = True;
16004 }
16005 if (obj2) {
16006 arg3 = (bool) SWIG_AsBool(obj2);
16007 if (PyErr_Occurred()) SWIG_fail;
16008 }
16009 {
16010 PyThreadState* __tstate = wxPyBeginAllowThreads();
16011 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
16012
16013 wxPyEndAllowThreads(__tstate);
16014 if (PyErr_Occurred()) SWIG_fail;
16015 }
16016 {
16017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16018 }
16019 {
16020 if (temp2)
16021 delete arg2;
16022 }
16023 return resultobj;
16024 fail:
16025 {
16026 if (temp2)
16027 delete arg2;
16028 }
16029 return NULL;
16030 }
16031
16032
16033 static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
16034 PyObject *resultobj;
16035 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16036 wxString *arg2 = 0 ;
16037 bool result;
16038 bool temp2 = False ;
16039 PyObject * obj0 = 0 ;
16040 PyObject * obj1 = 0 ;
16041 char *kwnames[] = {
16042 (char *) "self",(char *) "key", NULL
16043 };
16044
16045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
16046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16048 {
16049 arg2 = wxString_in_helper(obj1);
16050 if (arg2 == NULL) SWIG_fail;
16051 temp2 = True;
16052 }
16053 {
16054 PyThreadState* __tstate = wxPyBeginAllowThreads();
16055 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
16056
16057 wxPyEndAllowThreads(__tstate);
16058 if (PyErr_Occurred()) SWIG_fail;
16059 }
16060 {
16061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16062 }
16063 {
16064 if (temp2)
16065 delete arg2;
16066 }
16067 return resultobj;
16068 fail:
16069 {
16070 if (temp2)
16071 delete arg2;
16072 }
16073 return NULL;
16074 }
16075
16076
16077 static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) {
16078 PyObject *resultobj;
16079 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16080 bool result;
16081 PyObject * obj0 = 0 ;
16082 char *kwnames[] = {
16083 (char *) "self", NULL
16084 };
16085
16086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
16087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16089 {
16090 PyThreadState* __tstate = wxPyBeginAllowThreads();
16091 result = (bool)(arg1)->DeleteAll();
16092
16093 wxPyEndAllowThreads(__tstate);
16094 if (PyErr_Occurred()) SWIG_fail;
16095 }
16096 {
16097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16098 }
16099 return resultobj;
16100 fail:
16101 return NULL;
16102 }
16103
16104
16105 static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16106 PyObject *resultobj;
16107 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16108 bool arg2 = (bool) True ;
16109 PyObject * obj0 = 0 ;
16110 PyObject * obj1 = 0 ;
16111 char *kwnames[] = {
16112 (char *) "self",(char *) "doIt", NULL
16113 };
16114
16115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
16116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16118 if (obj1) {
16119 arg2 = (bool) SWIG_AsBool(obj1);
16120 if (PyErr_Occurred()) SWIG_fail;
16121 }
16122 {
16123 PyThreadState* __tstate = wxPyBeginAllowThreads();
16124 (arg1)->SetExpandEnvVars(arg2);
16125
16126 wxPyEndAllowThreads(__tstate);
16127 if (PyErr_Occurred()) SWIG_fail;
16128 }
16129 Py_INCREF(Py_None); resultobj = Py_None;
16130 return resultobj;
16131 fail:
16132 return NULL;
16133 }
16134
16135
16136 static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16137 PyObject *resultobj;
16138 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16139 bool result;
16140 PyObject * obj0 = 0 ;
16141 char *kwnames[] = {
16142 (char *) "self", NULL
16143 };
16144
16145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
16146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16148 {
16149 PyThreadState* __tstate = wxPyBeginAllowThreads();
16150 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
16151
16152 wxPyEndAllowThreads(__tstate);
16153 if (PyErr_Occurred()) SWIG_fail;
16154 }
16155 {
16156 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16157 }
16158 return resultobj;
16159 fail:
16160 return NULL;
16161 }
16162
16163
16164 static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
16165 PyObject *resultobj;
16166 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16167 bool arg2 = (bool) True ;
16168 PyObject * obj0 = 0 ;
16169 PyObject * obj1 = 0 ;
16170 char *kwnames[] = {
16171 (char *) "self",(char *) "doIt", NULL
16172 };
16173
16174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
16175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16177 if (obj1) {
16178 arg2 = (bool) SWIG_AsBool(obj1);
16179 if (PyErr_Occurred()) SWIG_fail;
16180 }
16181 {
16182 PyThreadState* __tstate = wxPyBeginAllowThreads();
16183 (arg1)->SetRecordDefaults(arg2);
16184
16185 wxPyEndAllowThreads(__tstate);
16186 if (PyErr_Occurred()) SWIG_fail;
16187 }
16188 Py_INCREF(Py_None); resultobj = Py_None;
16189 return resultobj;
16190 fail:
16191 return NULL;
16192 }
16193
16194
16195 static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
16196 PyObject *resultobj;
16197 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16198 bool result;
16199 PyObject * obj0 = 0 ;
16200 char *kwnames[] = {
16201 (char *) "self", NULL
16202 };
16203
16204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
16205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16207 {
16208 PyThreadState* __tstate = wxPyBeginAllowThreads();
16209 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
16210
16211 wxPyEndAllowThreads(__tstate);
16212 if (PyErr_Occurred()) SWIG_fail;
16213 }
16214 {
16215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16216 }
16217 return resultobj;
16218 fail:
16219 return NULL;
16220 }
16221
16222
16223 static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16224 PyObject *resultobj;
16225 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16226 wxString *arg2 = 0 ;
16227 wxString result;
16228 bool temp2 = False ;
16229 PyObject * obj0 = 0 ;
16230 PyObject * obj1 = 0 ;
16231 char *kwnames[] = {
16232 (char *) "self",(char *) "str", NULL
16233 };
16234
16235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
16236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16238 {
16239 arg2 = wxString_in_helper(obj1);
16240 if (arg2 == NULL) SWIG_fail;
16241 temp2 = True;
16242 }
16243 {
16244 PyThreadState* __tstate = wxPyBeginAllowThreads();
16245 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
16246
16247 wxPyEndAllowThreads(__tstate);
16248 if (PyErr_Occurred()) SWIG_fail;
16249 }
16250 {
16251 #if wxUSE_UNICODE
16252 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16253 #else
16254 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16255 #endif
16256 }
16257 {
16258 if (temp2)
16259 delete arg2;
16260 }
16261 return resultobj;
16262 fail:
16263 {
16264 if (temp2)
16265 delete arg2;
16266 }
16267 return NULL;
16268 }
16269
16270
16271 static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
16272 PyObject *resultobj;
16273 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16274 wxString result;
16275 PyObject * obj0 = 0 ;
16276 char *kwnames[] = {
16277 (char *) "self", NULL
16278 };
16279
16280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
16281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16283 {
16284 PyThreadState* __tstate = wxPyBeginAllowThreads();
16285 result = ((wxConfigBase const *)arg1)->GetAppName();
16286
16287 wxPyEndAllowThreads(__tstate);
16288 if (PyErr_Occurred()) SWIG_fail;
16289 }
16290 {
16291 #if wxUSE_UNICODE
16292 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16293 #else
16294 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16295 #endif
16296 }
16297 return resultobj;
16298 fail:
16299 return NULL;
16300 }
16301
16302
16303 static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
16304 PyObject *resultobj;
16305 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16306 wxString result;
16307 PyObject * obj0 = 0 ;
16308 char *kwnames[] = {
16309 (char *) "self", NULL
16310 };
16311
16312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
16313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16315 {
16316 PyThreadState* __tstate = wxPyBeginAllowThreads();
16317 result = ((wxConfigBase const *)arg1)->GetVendorName();
16318
16319 wxPyEndAllowThreads(__tstate);
16320 if (PyErr_Occurred()) SWIG_fail;
16321 }
16322 {
16323 #if wxUSE_UNICODE
16324 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16325 #else
16326 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16327 #endif
16328 }
16329 return resultobj;
16330 fail:
16331 return NULL;
16332 }
16333
16334
16335 static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
16336 PyObject *resultobj;
16337 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16338 wxString *arg2 = 0 ;
16339 bool temp2 = False ;
16340 PyObject * obj0 = 0 ;
16341 PyObject * obj1 = 0 ;
16342 char *kwnames[] = {
16343 (char *) "self",(char *) "appName", NULL
16344 };
16345
16346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
16347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16349 {
16350 arg2 = wxString_in_helper(obj1);
16351 if (arg2 == NULL) SWIG_fail;
16352 temp2 = True;
16353 }
16354 {
16355 PyThreadState* __tstate = wxPyBeginAllowThreads();
16356 (arg1)->SetAppName((wxString const &)*arg2);
16357
16358 wxPyEndAllowThreads(__tstate);
16359 if (PyErr_Occurred()) SWIG_fail;
16360 }
16361 Py_INCREF(Py_None); resultobj = Py_None;
16362 {
16363 if (temp2)
16364 delete arg2;
16365 }
16366 return resultobj;
16367 fail:
16368 {
16369 if (temp2)
16370 delete arg2;
16371 }
16372 return NULL;
16373 }
16374
16375
16376 static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
16377 PyObject *resultobj;
16378 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16379 wxString *arg2 = 0 ;
16380 bool temp2 = False ;
16381 PyObject * obj0 = 0 ;
16382 PyObject * obj1 = 0 ;
16383 char *kwnames[] = {
16384 (char *) "self",(char *) "vendorName", NULL
16385 };
16386
16387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
16388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16390 {
16391 arg2 = wxString_in_helper(obj1);
16392 if (arg2 == NULL) SWIG_fail;
16393 temp2 = True;
16394 }
16395 {
16396 PyThreadState* __tstate = wxPyBeginAllowThreads();
16397 (arg1)->SetVendorName((wxString const &)*arg2);
16398
16399 wxPyEndAllowThreads(__tstate);
16400 if (PyErr_Occurred()) SWIG_fail;
16401 }
16402 Py_INCREF(Py_None); resultobj = Py_None;
16403 {
16404 if (temp2)
16405 delete arg2;
16406 }
16407 return resultobj;
16408 fail:
16409 {
16410 if (temp2)
16411 delete arg2;
16412 }
16413 return NULL;
16414 }
16415
16416
16417 static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16418 PyObject *resultobj;
16419 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16420 long arg2 ;
16421 PyObject * obj0 = 0 ;
16422 PyObject * obj1 = 0 ;
16423 char *kwnames[] = {
16424 (char *) "self",(char *) "style", NULL
16425 };
16426
16427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
16428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16430 arg2 = (long) SWIG_AsLong(obj1);
16431 if (PyErr_Occurred()) SWIG_fail;
16432 {
16433 PyThreadState* __tstate = wxPyBeginAllowThreads();
16434 (arg1)->SetStyle(arg2);
16435
16436 wxPyEndAllowThreads(__tstate);
16437 if (PyErr_Occurred()) SWIG_fail;
16438 }
16439 Py_INCREF(Py_None); resultobj = Py_None;
16440 return resultobj;
16441 fail:
16442 return NULL;
16443 }
16444
16445
16446 static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16447 PyObject *resultobj;
16448 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16449 long result;
16450 PyObject * obj0 = 0 ;
16451 char *kwnames[] = {
16452 (char *) "self", NULL
16453 };
16454
16455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
16456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16458 {
16459 PyThreadState* __tstate = wxPyBeginAllowThreads();
16460 result = (long)((wxConfigBase const *)arg1)->GetStyle();
16461
16462 wxPyEndAllowThreads(__tstate);
16463 if (PyErr_Occurred()) SWIG_fail;
16464 }
16465 resultobj = SWIG_FromLong((long)result);
16466 return resultobj;
16467 fail:
16468 return NULL;
16469 }
16470
16471
16472 static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) {
16473 PyObject *obj;
16474 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16475 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
16476 Py_INCREF(obj);
16477 return Py_BuildValue((char *)"");
16478 }
16479 static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16480 PyObject *resultobj;
16481 wxString const &arg1_defvalue = wxPyEmptyString ;
16482 wxString *arg1 = (wxString *) &arg1_defvalue ;
16483 wxString const &arg2_defvalue = wxPyEmptyString ;
16484 wxString *arg2 = (wxString *) &arg2_defvalue ;
16485 wxString const &arg3_defvalue = wxPyEmptyString ;
16486 wxString *arg3 = (wxString *) &arg3_defvalue ;
16487 wxString const &arg4_defvalue = wxPyEmptyString ;
16488 wxString *arg4 = (wxString *) &arg4_defvalue ;
16489 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16490 wxConfig *result;
16491 bool temp1 = False ;
16492 bool temp2 = False ;
16493 bool temp3 = False ;
16494 bool temp4 = False ;
16495 PyObject * obj0 = 0 ;
16496 PyObject * obj1 = 0 ;
16497 PyObject * obj2 = 0 ;
16498 PyObject * obj3 = 0 ;
16499 PyObject * obj4 = 0 ;
16500 char *kwnames[] = {
16501 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16502 };
16503
16504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16505 if (obj0) {
16506 {
16507 arg1 = wxString_in_helper(obj0);
16508 if (arg1 == NULL) SWIG_fail;
16509 temp1 = True;
16510 }
16511 }
16512 if (obj1) {
16513 {
16514 arg2 = wxString_in_helper(obj1);
16515 if (arg2 == NULL) SWIG_fail;
16516 temp2 = True;
16517 }
16518 }
16519 if (obj2) {
16520 {
16521 arg3 = wxString_in_helper(obj2);
16522 if (arg3 == NULL) SWIG_fail;
16523 temp3 = True;
16524 }
16525 }
16526 if (obj3) {
16527 {
16528 arg4 = wxString_in_helper(obj3);
16529 if (arg4 == NULL) SWIG_fail;
16530 temp4 = True;
16531 }
16532 }
16533 if (obj4) {
16534 arg5 = (long) SWIG_AsLong(obj4);
16535 if (PyErr_Occurred()) SWIG_fail;
16536 }
16537 {
16538 PyThreadState* __tstate = wxPyBeginAllowThreads();
16539 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16540
16541 wxPyEndAllowThreads(__tstate);
16542 if (PyErr_Occurred()) SWIG_fail;
16543 }
16544 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
16545 {
16546 if (temp1)
16547 delete arg1;
16548 }
16549 {
16550 if (temp2)
16551 delete arg2;
16552 }
16553 {
16554 if (temp3)
16555 delete arg3;
16556 }
16557 {
16558 if (temp4)
16559 delete arg4;
16560 }
16561 return resultobj;
16562 fail:
16563 {
16564 if (temp1)
16565 delete arg1;
16566 }
16567 {
16568 if (temp2)
16569 delete arg2;
16570 }
16571 {
16572 if (temp3)
16573 delete arg3;
16574 }
16575 {
16576 if (temp4)
16577 delete arg4;
16578 }
16579 return NULL;
16580 }
16581
16582
16583 static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16584 PyObject *resultobj;
16585 wxConfig *arg1 = (wxConfig *) 0 ;
16586 PyObject * obj0 = 0 ;
16587 char *kwnames[] = {
16588 (char *) "self", NULL
16589 };
16590
16591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
16592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig,
16593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16594 {
16595 PyThreadState* __tstate = wxPyBeginAllowThreads();
16596 delete arg1;
16597
16598 wxPyEndAllowThreads(__tstate);
16599 if (PyErr_Occurred()) SWIG_fail;
16600 }
16601 Py_INCREF(Py_None); resultobj = Py_None;
16602 return resultobj;
16603 fail:
16604 return NULL;
16605 }
16606
16607
16608 static PyObject * Config_swigregister(PyObject *self, PyObject *args) {
16609 PyObject *obj;
16610 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16611 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
16612 Py_INCREF(obj);
16613 return Py_BuildValue((char *)"");
16614 }
16615 static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16616 PyObject *resultobj;
16617 wxString const &arg1_defvalue = wxPyEmptyString ;
16618 wxString *arg1 = (wxString *) &arg1_defvalue ;
16619 wxString const &arg2_defvalue = wxPyEmptyString ;
16620 wxString *arg2 = (wxString *) &arg2_defvalue ;
16621 wxString const &arg3_defvalue = wxPyEmptyString ;
16622 wxString *arg3 = (wxString *) &arg3_defvalue ;
16623 wxString const &arg4_defvalue = wxPyEmptyString ;
16624 wxString *arg4 = (wxString *) &arg4_defvalue ;
16625 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16626 wxFileConfig *result;
16627 bool temp1 = False ;
16628 bool temp2 = False ;
16629 bool temp3 = False ;
16630 bool temp4 = False ;
16631 PyObject * obj0 = 0 ;
16632 PyObject * obj1 = 0 ;
16633 PyObject * obj2 = 0 ;
16634 PyObject * obj3 = 0 ;
16635 PyObject * obj4 = 0 ;
16636 char *kwnames[] = {
16637 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16638 };
16639
16640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16641 if (obj0) {
16642 {
16643 arg1 = wxString_in_helper(obj0);
16644 if (arg1 == NULL) SWIG_fail;
16645 temp1 = True;
16646 }
16647 }
16648 if (obj1) {
16649 {
16650 arg2 = wxString_in_helper(obj1);
16651 if (arg2 == NULL) SWIG_fail;
16652 temp2 = True;
16653 }
16654 }
16655 if (obj2) {
16656 {
16657 arg3 = wxString_in_helper(obj2);
16658 if (arg3 == NULL) SWIG_fail;
16659 temp3 = True;
16660 }
16661 }
16662 if (obj3) {
16663 {
16664 arg4 = wxString_in_helper(obj3);
16665 if (arg4 == NULL) SWIG_fail;
16666 temp4 = True;
16667 }
16668 }
16669 if (obj4) {
16670 arg5 = (long) SWIG_AsLong(obj4);
16671 if (PyErr_Occurred()) SWIG_fail;
16672 }
16673 {
16674 PyThreadState* __tstate = wxPyBeginAllowThreads();
16675 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16676
16677 wxPyEndAllowThreads(__tstate);
16678 if (PyErr_Occurred()) SWIG_fail;
16679 }
16680 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
16681 {
16682 if (temp1)
16683 delete arg1;
16684 }
16685 {
16686 if (temp2)
16687 delete arg2;
16688 }
16689 {
16690 if (temp3)
16691 delete arg3;
16692 }
16693 {
16694 if (temp4)
16695 delete arg4;
16696 }
16697 return resultobj;
16698 fail:
16699 {
16700 if (temp1)
16701 delete arg1;
16702 }
16703 {
16704 if (temp2)
16705 delete arg2;
16706 }
16707 {
16708 if (temp3)
16709 delete arg3;
16710 }
16711 {
16712 if (temp4)
16713 delete arg4;
16714 }
16715 return NULL;
16716 }
16717
16718
16719 static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16720 PyObject *resultobj;
16721 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
16722 PyObject * obj0 = 0 ;
16723 char *kwnames[] = {
16724 (char *) "self", NULL
16725 };
16726
16727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
16728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig,
16729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16730 {
16731 PyThreadState* __tstate = wxPyBeginAllowThreads();
16732 delete arg1;
16733
16734 wxPyEndAllowThreads(__tstate);
16735 if (PyErr_Occurred()) SWIG_fail;
16736 }
16737 Py_INCREF(Py_None); resultobj = Py_None;
16738 return resultobj;
16739 fail:
16740 return NULL;
16741 }
16742
16743
16744 static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) {
16745 PyObject *obj;
16746 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16747 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
16748 Py_INCREF(obj);
16749 return Py_BuildValue((char *)"");
16750 }
16751 static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16752 PyObject *resultobj;
16753 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16754 wxString *arg2 = 0 ;
16755 wxConfigPathChanger *result;
16756 bool temp2 = False ;
16757 PyObject * obj0 = 0 ;
16758 PyObject * obj1 = 0 ;
16759 char *kwnames[] = {
16760 (char *) "config",(char *) "entry", NULL
16761 };
16762
16763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
16764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16766 {
16767 arg2 = wxString_in_helper(obj1);
16768 if (arg2 == NULL) SWIG_fail;
16769 temp2 = True;
16770 }
16771 {
16772 PyThreadState* __tstate = wxPyBeginAllowThreads();
16773 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
16774
16775 wxPyEndAllowThreads(__tstate);
16776 if (PyErr_Occurred()) SWIG_fail;
16777 }
16778 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
16779 {
16780 if (temp2)
16781 delete arg2;
16782 }
16783 return resultobj;
16784 fail:
16785 {
16786 if (temp2)
16787 delete arg2;
16788 }
16789 return NULL;
16790 }
16791
16792
16793 static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16794 PyObject *resultobj;
16795 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16796 PyObject * obj0 = 0 ;
16797 char *kwnames[] = {
16798 (char *) "self", NULL
16799 };
16800
16801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
16802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16804 {
16805 PyThreadState* __tstate = wxPyBeginAllowThreads();
16806 delete arg1;
16807
16808 wxPyEndAllowThreads(__tstate);
16809 if (PyErr_Occurred()) SWIG_fail;
16810 }
16811 Py_INCREF(Py_None); resultobj = Py_None;
16812 return resultobj;
16813 fail:
16814 return NULL;
16815 }
16816
16817
16818 static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) {
16819 PyObject *resultobj;
16820 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16821 wxString *result;
16822 PyObject * obj0 = 0 ;
16823 char *kwnames[] = {
16824 (char *) "self", NULL
16825 };
16826
16827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
16828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16830 {
16831 PyThreadState* __tstate = wxPyBeginAllowThreads();
16832 {
16833 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
16834 result = (wxString *) &_result_ref;
16835 }
16836
16837 wxPyEndAllowThreads(__tstate);
16838 if (PyErr_Occurred()) SWIG_fail;
16839 }
16840 {
16841 #if wxUSE_UNICODE
16842 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16843 #else
16844 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16845 #endif
16846 }
16847 return resultobj;
16848 fail:
16849 return NULL;
16850 }
16851
16852
16853 static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) {
16854 PyObject *obj;
16855 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16856 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
16857 Py_INCREF(obj);
16858 return Py_BuildValue((char *)"");
16859 }
16860 static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16861 PyObject *resultobj;
16862 wxString *arg1 = 0 ;
16863 wxString result;
16864 bool temp1 = False ;
16865 PyObject * obj0 = 0 ;
16866 char *kwnames[] = {
16867 (char *) "sz", NULL
16868 };
16869
16870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
16871 {
16872 arg1 = wxString_in_helper(obj0);
16873 if (arg1 == NULL) SWIG_fail;
16874 temp1 = True;
16875 }
16876 {
16877 PyThreadState* __tstate = wxPyBeginAllowThreads();
16878 result = wxExpandEnvVars((wxString const &)*arg1);
16879
16880 wxPyEndAllowThreads(__tstate);
16881 if (PyErr_Occurred()) SWIG_fail;
16882 }
16883 {
16884 #if wxUSE_UNICODE
16885 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16886 #else
16887 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16888 #endif
16889 }
16890 {
16891 if (temp1)
16892 delete arg1;
16893 }
16894 return resultobj;
16895 fail:
16896 {
16897 if (temp1)
16898 delete arg1;
16899 }
16900 return NULL;
16901 }
16902
16903
16904 static int _wrap_DateFormatStr_set(PyObject *_val) {
16905 PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only.");
16906 return 1;
16907 }
16908
16909
16910 static PyObject *_wrap_DateFormatStr_get() {
16911 PyObject *pyobj;
16912
16913 {
16914 #if wxUSE_UNICODE
16915 pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16916 #else
16917 pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16918 #endif
16919 }
16920 return pyobj;
16921 }
16922
16923
16924 static int _wrap_TimeSpanFormatStr_set(PyObject *_val) {
16925 PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only.");
16926 return 1;
16927 }
16928
16929
16930 static PyObject *_wrap_TimeSpanFormatStr_get() {
16931 PyObject *pyobj;
16932
16933 {
16934 #if wxUSE_UNICODE
16935 pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16936 #else
16937 pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16938 #endif
16939 }
16940 return pyobj;
16941 }
16942
16943
16944 static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16945 PyObject *resultobj;
16946 int arg1 ;
16947 PyObject * obj0 = 0 ;
16948 char *kwnames[] = {
16949 (char *) "country", NULL
16950 };
16951
16952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
16953 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16954 if (PyErr_Occurred()) SWIG_fail;
16955 {
16956 PyThreadState* __tstate = wxPyBeginAllowThreads();
16957 wxDateTime::SetCountry((wxDateTime::Country )arg1);
16958
16959 wxPyEndAllowThreads(__tstate);
16960 if (PyErr_Occurred()) SWIG_fail;
16961 }
16962 Py_INCREF(Py_None); resultobj = Py_None;
16963 return resultobj;
16964 fail:
16965 return NULL;
16966 }
16967
16968
16969 static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16970 PyObject *resultobj;
16971 int result;
16972 char *kwnames[] = {
16973 NULL
16974 };
16975
16976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
16977 {
16978 PyThreadState* __tstate = wxPyBeginAllowThreads();
16979 result = (int)wxDateTime::GetCountry();
16980
16981 wxPyEndAllowThreads(__tstate);
16982 if (PyErr_Occurred()) SWIG_fail;
16983 }
16984 resultobj = SWIG_FromInt((int)result);
16985 return resultobj;
16986 fail:
16987 return NULL;
16988 }
16989
16990
16991 static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16992 PyObject *resultobj;
16993 int arg1 = (int) wxDateTime::Country_Default ;
16994 bool result;
16995 PyObject * obj0 = 0 ;
16996 char *kwnames[] = {
16997 (char *) "country", NULL
16998 };
16999
17000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
17001 if (obj0) {
17002 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
17003 if (PyErr_Occurred()) SWIG_fail;
17004 }
17005 {
17006 PyThreadState* __tstate = wxPyBeginAllowThreads();
17007 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
17008
17009 wxPyEndAllowThreads(__tstate);
17010 if (PyErr_Occurred()) SWIG_fail;
17011 }
17012 {
17013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17014 }
17015 return resultobj;
17016 fail:
17017 return NULL;
17018 }
17019
17020
17021 static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17022 PyObject *resultobj;
17023 int arg1 = (int) wxDateTime::Gregorian ;
17024 int result;
17025 PyObject * obj0 = 0 ;
17026 char *kwnames[] = {
17027 (char *) "cal", NULL
17028 };
17029
17030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
17031 if (obj0) {
17032 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
17033 if (PyErr_Occurred()) SWIG_fail;
17034 }
17035 {
17036 PyThreadState* __tstate = wxPyBeginAllowThreads();
17037 result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1);
17038
17039 wxPyEndAllowThreads(__tstate);
17040 if (PyErr_Occurred()) SWIG_fail;
17041 }
17042 resultobj = SWIG_FromInt((int)result);
17043 return resultobj;
17044 fail:
17045 return NULL;
17046 }
17047
17048
17049 static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) {
17050 PyObject *resultobj;
17051 int arg1 ;
17052 int result;
17053 PyObject * obj0 = 0 ;
17054 char *kwnames[] = {
17055 (char *) "year", NULL
17056 };
17057
17058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
17059 arg1 = (int) SWIG_AsInt(obj0);
17060 if (PyErr_Occurred()) SWIG_fail;
17061 {
17062 PyThreadState* __tstate = wxPyBeginAllowThreads();
17063 result = (int)wxDateTime::ConvertYearToBC(arg1);
17064
17065 wxPyEndAllowThreads(__tstate);
17066 if (PyErr_Occurred()) SWIG_fail;
17067 }
17068 resultobj = SWIG_FromInt((int)result);
17069 return resultobj;
17070 fail:
17071 return NULL;
17072 }
17073
17074
17075 static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17076 PyObject *resultobj;
17077 int arg1 = (int) wxDateTime::Gregorian ;
17078 int result;
17079 PyObject * obj0 = 0 ;
17080 char *kwnames[] = {
17081 (char *) "cal", NULL
17082 };
17083
17084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
17085 if (obj0) {
17086 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
17087 if (PyErr_Occurred()) SWIG_fail;
17088 }
17089 {
17090 PyThreadState* __tstate = wxPyBeginAllowThreads();
17091 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
17092
17093 wxPyEndAllowThreads(__tstate);
17094 if (PyErr_Occurred()) SWIG_fail;
17095 }
17096 resultobj = SWIG_FromInt((int)result);
17097 return resultobj;
17098 fail:
17099 return NULL;
17100 }
17101
17102
17103 static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17104 PyObject *resultobj;
17105 int arg1 = (int) wxDateTime::Inv_Year ;
17106 int arg2 = (int) wxDateTime::Gregorian ;
17107 bool result;
17108 PyObject * obj0 = 0 ;
17109 PyObject * obj1 = 0 ;
17110 char *kwnames[] = {
17111 (char *) "year",(char *) "cal", NULL
17112 };
17113
17114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
17115 if (obj0) {
17116 arg1 = (int) SWIG_AsInt(obj0);
17117 if (PyErr_Occurred()) SWIG_fail;
17118 }
17119 if (obj1) {
17120 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
17121 if (PyErr_Occurred()) SWIG_fail;
17122 }
17123 {
17124 PyThreadState* __tstate = wxPyBeginAllowThreads();
17125 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
17126
17127 wxPyEndAllowThreads(__tstate);
17128 if (PyErr_Occurred()) SWIG_fail;
17129 }
17130 {
17131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17132 }
17133 return resultobj;
17134 fail:
17135 return NULL;
17136 }
17137
17138
17139 static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) {
17140 PyObject *resultobj;
17141 int arg1 = (int) wxDateTime::Inv_Year ;
17142 int result;
17143 PyObject * obj0 = 0 ;
17144 char *kwnames[] = {
17145 (char *) "year", NULL
17146 };
17147
17148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
17149 if (obj0) {
17150 arg1 = (int) SWIG_AsInt(obj0);
17151 if (PyErr_Occurred()) SWIG_fail;
17152 }
17153 {
17154 PyThreadState* __tstate = wxPyBeginAllowThreads();
17155 result = (int)wxDateTime::GetCentury(arg1);
17156
17157 wxPyEndAllowThreads(__tstate);
17158 if (PyErr_Occurred()) SWIG_fail;
17159 }
17160 resultobj = SWIG_FromInt((int)result);
17161 return resultobj;
17162 fail:
17163 return NULL;
17164 }
17165
17166
17167 static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17168 PyObject *resultobj;
17169 int arg1 ;
17170 int arg2 = (int) wxDateTime::Gregorian ;
17171 int result;
17172 PyObject * obj0 = 0 ;
17173 PyObject * obj1 = 0 ;
17174 char *kwnames[] = {
17175 (char *) "year",(char *) "cal", NULL
17176 };
17177
17178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
17179 arg1 = (int) SWIG_AsInt(obj0);
17180 if (PyErr_Occurred()) SWIG_fail;
17181 if (obj1) {
17182 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
17183 if (PyErr_Occurred()) SWIG_fail;
17184 }
17185 {
17186 PyThreadState* __tstate = wxPyBeginAllowThreads();
17187 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
17188
17189 wxPyEndAllowThreads(__tstate);
17190 if (PyErr_Occurred()) SWIG_fail;
17191 }
17192 resultobj = SWIG_FromInt((int)result);
17193 return resultobj;
17194 fail:
17195 return NULL;
17196 }
17197
17198
17199 static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17200 PyObject *resultobj;
17201 int arg1 ;
17202 int arg2 = (int) wxDateTime::Inv_Year ;
17203 int arg3 = (int) wxDateTime::Gregorian ;
17204 int result;
17205 PyObject * obj0 = 0 ;
17206 PyObject * obj1 = 0 ;
17207 PyObject * obj2 = 0 ;
17208 char *kwnames[] = {
17209 (char *) "month",(char *) "year",(char *) "cal", NULL
17210 };
17211
17212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
17213 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
17214 if (PyErr_Occurred()) SWIG_fail;
17215 if (obj1) {
17216 arg2 = (int) SWIG_AsInt(obj1);
17217 if (PyErr_Occurred()) SWIG_fail;
17218 }
17219 if (obj2) {
17220 arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2);
17221 if (PyErr_Occurred()) SWIG_fail;
17222 }
17223 {
17224 PyThreadState* __tstate = wxPyBeginAllowThreads();
17225 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
17226
17227 wxPyEndAllowThreads(__tstate);
17228 if (PyErr_Occurred()) SWIG_fail;
17229 }
17230 resultobj = SWIG_FromInt((int)result);
17231 return resultobj;
17232 fail:
17233 return NULL;
17234 }
17235
17236
17237 static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) {
17238 PyObject *resultobj;
17239 int arg1 ;
17240 int arg2 = (int) wxDateTime::Name_Full ;
17241 wxString result;
17242 PyObject * obj0 = 0 ;
17243 PyObject * obj1 = 0 ;
17244 char *kwnames[] = {
17245 (char *) "month",(char *) "flags", NULL
17246 };
17247
17248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
17249 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
17250 if (PyErr_Occurred()) SWIG_fail;
17251 if (obj1) {
17252 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
17253 if (PyErr_Occurred()) SWIG_fail;
17254 }
17255 {
17256 PyThreadState* __tstate = wxPyBeginAllowThreads();
17257 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
17258
17259 wxPyEndAllowThreads(__tstate);
17260 if (PyErr_Occurred()) SWIG_fail;
17261 }
17262 {
17263 #if wxUSE_UNICODE
17264 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17265 #else
17266 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17267 #endif
17268 }
17269 return resultobj;
17270 fail:
17271 return NULL;
17272 }
17273
17274
17275 static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) {
17276 PyObject *resultobj;
17277 int arg1 ;
17278 int arg2 = (int) wxDateTime::Name_Full ;
17279 wxString result;
17280 PyObject * obj0 = 0 ;
17281 PyObject * obj1 = 0 ;
17282 char *kwnames[] = {
17283 (char *) "weekday",(char *) "flags", NULL
17284 };
17285
17286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
17287 arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0);
17288 if (PyErr_Occurred()) SWIG_fail;
17289 if (obj1) {
17290 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
17291 if (PyErr_Occurred()) SWIG_fail;
17292 }
17293 {
17294 PyThreadState* __tstate = wxPyBeginAllowThreads();
17295 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
17296
17297 wxPyEndAllowThreads(__tstate);
17298 if (PyErr_Occurred()) SWIG_fail;
17299 }
17300 {
17301 #if wxUSE_UNICODE
17302 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17303 #else
17304 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17305 #endif
17306 }
17307 return resultobj;
17308 fail:
17309 return NULL;
17310 }
17311
17312
17313 static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
17314 PyObject *resultobj;
17315 wxString *arg1 = (wxString *) 0 ;
17316 wxString *arg2 = (wxString *) 0 ;
17317 bool temp1 = False ;
17318 bool temp2 = False ;
17319 PyObject * obj0 = 0 ;
17320 PyObject * obj1 = 0 ;
17321 char *kwnames[] = {
17322 (char *) "OUTPUT",(char *) "OUTPUT", NULL
17323 };
17324
17325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
17326 {
17327 arg1 = wxString_in_helper(obj0);
17328 if (arg1 == NULL) SWIG_fail;
17329 temp1 = True;
17330 }
17331 {
17332 arg2 = wxString_in_helper(obj1);
17333 if (arg2 == NULL) SWIG_fail;
17334 temp2 = True;
17335 }
17336 {
17337 PyThreadState* __tstate = wxPyBeginAllowThreads();
17338 wxDateTime::GetAmPmStrings(arg1,arg2);
17339
17340 wxPyEndAllowThreads(__tstate);
17341 if (PyErr_Occurred()) SWIG_fail;
17342 }
17343 Py_INCREF(Py_None); resultobj = Py_None;
17344 {
17345 if (temp1)
17346 delete arg1;
17347 }
17348 {
17349 if (temp2)
17350 delete arg2;
17351 }
17352 return resultobj;
17353 fail:
17354 {
17355 if (temp1)
17356 delete arg1;
17357 }
17358 {
17359 if (temp2)
17360 delete arg2;
17361 }
17362 return NULL;
17363 }
17364
17365
17366 static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) {
17367 PyObject *resultobj;
17368 int arg1 = (int) wxDateTime::Inv_Year ;
17369 int arg2 = (int) wxDateTime::Country_Default ;
17370 bool result;
17371 PyObject * obj0 = 0 ;
17372 PyObject * obj1 = 0 ;
17373 char *kwnames[] = {
17374 (char *) "year",(char *) "country", NULL
17375 };
17376
17377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
17378 if (obj0) {
17379 arg1 = (int) SWIG_AsInt(obj0);
17380 if (PyErr_Occurred()) SWIG_fail;
17381 }
17382 if (obj1) {
17383 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17384 if (PyErr_Occurred()) SWIG_fail;
17385 }
17386 {
17387 PyThreadState* __tstate = wxPyBeginAllowThreads();
17388 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
17389
17390 wxPyEndAllowThreads(__tstate);
17391 if (PyErr_Occurred()) SWIG_fail;
17392 }
17393 {
17394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17395 }
17396 return resultobj;
17397 fail:
17398 return NULL;
17399 }
17400
17401
17402 static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17403 PyObject *resultobj;
17404 int arg1 = (int) wxDateTime::Inv_Year ;
17405 int arg2 = (int) wxDateTime::Country_Default ;
17406 wxDateTime result;
17407 PyObject * obj0 = 0 ;
17408 PyObject * obj1 = 0 ;
17409 char *kwnames[] = {
17410 (char *) "year",(char *) "country", NULL
17411 };
17412
17413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
17414 if (obj0) {
17415 arg1 = (int) SWIG_AsInt(obj0);
17416 if (PyErr_Occurred()) SWIG_fail;
17417 }
17418 if (obj1) {
17419 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17420 if (PyErr_Occurred()) SWIG_fail;
17421 }
17422 {
17423 PyThreadState* __tstate = wxPyBeginAllowThreads();
17424 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
17425
17426 wxPyEndAllowThreads(__tstate);
17427 if (PyErr_Occurred()) SWIG_fail;
17428 }
17429 {
17430 wxDateTime * resultptr;
17431 resultptr = new wxDateTime((wxDateTime &) result);
17432 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17433 }
17434 return resultobj;
17435 fail:
17436 return NULL;
17437 }
17438
17439
17440 static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17441 PyObject *resultobj;
17442 int arg1 = (int) wxDateTime::Inv_Year ;
17443 int arg2 = (int) wxDateTime::Country_Default ;
17444 wxDateTime result;
17445 PyObject * obj0 = 0 ;
17446 PyObject * obj1 = 0 ;
17447 char *kwnames[] = {
17448 (char *) "year",(char *) "country", NULL
17449 };
17450
17451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
17452 if (obj0) {
17453 arg1 = (int) SWIG_AsInt(obj0);
17454 if (PyErr_Occurred()) SWIG_fail;
17455 }
17456 if (obj1) {
17457 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17458 if (PyErr_Occurred()) SWIG_fail;
17459 }
17460 {
17461 PyThreadState* __tstate = wxPyBeginAllowThreads();
17462 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
17463
17464 wxPyEndAllowThreads(__tstate);
17465 if (PyErr_Occurred()) SWIG_fail;
17466 }
17467 {
17468 wxDateTime * resultptr;
17469 resultptr = new wxDateTime((wxDateTime &) result);
17470 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17471 }
17472 return resultobj;
17473 fail:
17474 return NULL;
17475 }
17476
17477
17478 static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
17479 PyObject *resultobj;
17480 wxDateTime result;
17481 char *kwnames[] = {
17482 NULL
17483 };
17484
17485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
17486 {
17487 PyThreadState* __tstate = wxPyBeginAllowThreads();
17488 result = wxDateTime::Now();
17489
17490 wxPyEndAllowThreads(__tstate);
17491 if (PyErr_Occurred()) SWIG_fail;
17492 }
17493 {
17494 wxDateTime * resultptr;
17495 resultptr = new wxDateTime((wxDateTime &) result);
17496 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17497 }
17498 return resultobj;
17499 fail:
17500 return NULL;
17501 }
17502
17503
17504 static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) {
17505 PyObject *resultobj;
17506 wxDateTime result;
17507 char *kwnames[] = {
17508 NULL
17509 };
17510
17511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
17512 {
17513 PyThreadState* __tstate = wxPyBeginAllowThreads();
17514 result = wxDateTime::UNow();
17515
17516 wxPyEndAllowThreads(__tstate);
17517 if (PyErr_Occurred()) SWIG_fail;
17518 }
17519 {
17520 wxDateTime * resultptr;
17521 resultptr = new wxDateTime((wxDateTime &) result);
17522 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17523 }
17524 return resultobj;
17525 fail:
17526 return NULL;
17527 }
17528
17529
17530 static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) {
17531 PyObject *resultobj;
17532 wxDateTime result;
17533 char *kwnames[] = {
17534 NULL
17535 };
17536
17537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
17538 {
17539 PyThreadState* __tstate = wxPyBeginAllowThreads();
17540 result = wxDateTime::Today();
17541
17542 wxPyEndAllowThreads(__tstate);
17543 if (PyErr_Occurred()) SWIG_fail;
17544 }
17545 {
17546 wxDateTime * resultptr;
17547 resultptr = new wxDateTime((wxDateTime &) result);
17548 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17549 }
17550 return resultobj;
17551 fail:
17552 return NULL;
17553 }
17554
17555
17556 static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17557 PyObject *resultobj;
17558 wxDateTime *result;
17559 char *kwnames[] = {
17560 NULL
17561 };
17562
17563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
17564 {
17565 PyThreadState* __tstate = wxPyBeginAllowThreads();
17566 result = (wxDateTime *)new wxDateTime();
17567
17568 wxPyEndAllowThreads(__tstate);
17569 if (PyErr_Occurred()) SWIG_fail;
17570 }
17571 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17572 return resultobj;
17573 fail:
17574 return NULL;
17575 }
17576
17577
17578 static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17579 PyObject *resultobj;
17580 time_t arg1 ;
17581 wxDateTime *result;
17582 PyObject * obj0 = 0 ;
17583 char *kwnames[] = {
17584 (char *) "timet", NULL
17585 };
17586
17587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
17588 arg1 = (time_t) SWIG_AsUnsignedInt(obj0);
17589 if (PyErr_Occurred()) SWIG_fail;
17590 {
17591 PyThreadState* __tstate = wxPyBeginAllowThreads();
17592 result = (wxDateTime *)new wxDateTime(arg1);
17593
17594 wxPyEndAllowThreads(__tstate);
17595 if (PyErr_Occurred()) SWIG_fail;
17596 }
17597 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17598 return resultobj;
17599 fail:
17600 return NULL;
17601 }
17602
17603
17604 static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17605 PyObject *resultobj;
17606 double arg1 ;
17607 wxDateTime *result;
17608 PyObject * obj0 = 0 ;
17609 char *kwnames[] = {
17610 (char *) "jdn", NULL
17611 };
17612
17613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
17614 arg1 = (double) SWIG_AsDouble(obj0);
17615 if (PyErr_Occurred()) SWIG_fail;
17616 {
17617 PyThreadState* __tstate = wxPyBeginAllowThreads();
17618 result = (wxDateTime *)new wxDateTime(arg1);
17619
17620 wxPyEndAllowThreads(__tstate);
17621 if (PyErr_Occurred()) SWIG_fail;
17622 }
17623 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17624 return resultobj;
17625 fail:
17626 return NULL;
17627 }
17628
17629
17630 static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17631 PyObject *resultobj;
17632 int arg1 ;
17633 int arg2 = (int) 0 ;
17634 int arg3 = (int) 0 ;
17635 int arg4 = (int) 0 ;
17636 wxDateTime *result;
17637 PyObject * obj0 = 0 ;
17638 PyObject * obj1 = 0 ;
17639 PyObject * obj2 = 0 ;
17640 PyObject * obj3 = 0 ;
17641 char *kwnames[] = {
17642 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17643 };
17644
17645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17646 arg1 = (int) SWIG_AsInt(obj0);
17647 if (PyErr_Occurred()) SWIG_fail;
17648 if (obj1) {
17649 arg2 = (int) SWIG_AsInt(obj1);
17650 if (PyErr_Occurred()) SWIG_fail;
17651 }
17652 if (obj2) {
17653 arg3 = (int) SWIG_AsInt(obj2);
17654 if (PyErr_Occurred()) SWIG_fail;
17655 }
17656 if (obj3) {
17657 arg4 = (int) SWIG_AsInt(obj3);
17658 if (PyErr_Occurred()) SWIG_fail;
17659 }
17660 {
17661 PyThreadState* __tstate = wxPyBeginAllowThreads();
17662 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
17663
17664 wxPyEndAllowThreads(__tstate);
17665 if (PyErr_Occurred()) SWIG_fail;
17666 }
17667 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17668 return resultobj;
17669 fail:
17670 return NULL;
17671 }
17672
17673
17674 static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) {
17675 PyObject *resultobj;
17676 int arg1 ;
17677 int arg2 = (int) wxDateTime::Inv_Month ;
17678 int arg3 = (int) wxDateTime::Inv_Year ;
17679 int arg4 = (int) 0 ;
17680 int arg5 = (int) 0 ;
17681 int arg6 = (int) 0 ;
17682 int arg7 = (int) 0 ;
17683 wxDateTime *result;
17684 PyObject * obj0 = 0 ;
17685 PyObject * obj1 = 0 ;
17686 PyObject * obj2 = 0 ;
17687 PyObject * obj3 = 0 ;
17688 PyObject * obj4 = 0 ;
17689 PyObject * obj5 = 0 ;
17690 PyObject * obj6 = 0 ;
17691 char *kwnames[] = {
17692 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17693 };
17694
17695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17696 arg1 = (int) SWIG_AsInt(obj0);
17697 if (PyErr_Occurred()) SWIG_fail;
17698 if (obj1) {
17699 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17700 if (PyErr_Occurred()) SWIG_fail;
17701 }
17702 if (obj2) {
17703 arg3 = (int) SWIG_AsInt(obj2);
17704 if (PyErr_Occurred()) SWIG_fail;
17705 }
17706 if (obj3) {
17707 arg4 = (int) SWIG_AsInt(obj3);
17708 if (PyErr_Occurred()) SWIG_fail;
17709 }
17710 if (obj4) {
17711 arg5 = (int) SWIG_AsInt(obj4);
17712 if (PyErr_Occurred()) SWIG_fail;
17713 }
17714 if (obj5) {
17715 arg6 = (int) SWIG_AsInt(obj5);
17716 if (PyErr_Occurred()) SWIG_fail;
17717 }
17718 if (obj6) {
17719 arg7 = (int) SWIG_AsInt(obj6);
17720 if (PyErr_Occurred()) SWIG_fail;
17721 }
17722 {
17723 PyThreadState* __tstate = wxPyBeginAllowThreads();
17724 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
17725
17726 wxPyEndAllowThreads(__tstate);
17727 if (PyErr_Occurred()) SWIG_fail;
17728 }
17729 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17730 return resultobj;
17731 fail:
17732 return NULL;
17733 }
17734
17735
17736 static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17737 PyObject *resultobj;
17738 wxDateTime *arg1 = (wxDateTime *) 0 ;
17739 PyObject * obj0 = 0 ;
17740 char *kwnames[] = {
17741 (char *) "self", NULL
17742 };
17743
17744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
17745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17747 {
17748 PyThreadState* __tstate = wxPyBeginAllowThreads();
17749 delete arg1;
17750
17751 wxPyEndAllowThreads(__tstate);
17752 if (PyErr_Occurred()) SWIG_fail;
17753 }
17754 Py_INCREF(Py_None); resultobj = Py_None;
17755 return resultobj;
17756 fail:
17757 return NULL;
17758 }
17759
17760
17761 static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
17762 PyObject *resultobj;
17763 wxDateTime *arg1 = (wxDateTime *) 0 ;
17764 wxDateTime *result;
17765 PyObject * obj0 = 0 ;
17766 char *kwnames[] = {
17767 (char *) "self", NULL
17768 };
17769
17770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
17771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17773 {
17774 PyThreadState* __tstate = wxPyBeginAllowThreads();
17775 {
17776 wxDateTime &_result_ref = (arg1)->SetToCurrent();
17777 result = (wxDateTime *) &_result_ref;
17778 }
17779
17780 wxPyEndAllowThreads(__tstate);
17781 if (PyErr_Occurred()) SWIG_fail;
17782 }
17783 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17784 return resultobj;
17785 fail:
17786 return NULL;
17787 }
17788
17789
17790 static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17791 PyObject *resultobj;
17792 wxDateTime *arg1 = (wxDateTime *) 0 ;
17793 time_t arg2 ;
17794 wxDateTime *result;
17795 PyObject * obj0 = 0 ;
17796 PyObject * obj1 = 0 ;
17797 char *kwnames[] = {
17798 (char *) "self",(char *) "timet", NULL
17799 };
17800
17801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
17802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17804 arg2 = (time_t) SWIG_AsUnsignedInt(obj1);
17805 if (PyErr_Occurred()) SWIG_fail;
17806 {
17807 PyThreadState* __tstate = wxPyBeginAllowThreads();
17808 {
17809 wxDateTime &_result_ref = (arg1)->Set(arg2);
17810 result = (wxDateTime *) &_result_ref;
17811 }
17812
17813 wxPyEndAllowThreads(__tstate);
17814 if (PyErr_Occurred()) SWIG_fail;
17815 }
17816 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17817 return resultobj;
17818 fail:
17819 return NULL;
17820 }
17821
17822
17823 static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17824 PyObject *resultobj;
17825 wxDateTime *arg1 = (wxDateTime *) 0 ;
17826 double arg2 ;
17827 wxDateTime *result;
17828 PyObject * obj0 = 0 ;
17829 PyObject * obj1 = 0 ;
17830 char *kwnames[] = {
17831 (char *) "self",(char *) "jdn", NULL
17832 };
17833
17834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
17835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17837 arg2 = (double) SWIG_AsDouble(obj1);
17838 if (PyErr_Occurred()) SWIG_fail;
17839 {
17840 PyThreadState* __tstate = wxPyBeginAllowThreads();
17841 {
17842 wxDateTime &_result_ref = (arg1)->Set(arg2);
17843 result = (wxDateTime *) &_result_ref;
17844 }
17845
17846 wxPyEndAllowThreads(__tstate);
17847 if (PyErr_Occurred()) SWIG_fail;
17848 }
17849 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17850 return resultobj;
17851 fail:
17852 return NULL;
17853 }
17854
17855
17856 static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17857 PyObject *resultobj;
17858 wxDateTime *arg1 = (wxDateTime *) 0 ;
17859 int arg2 ;
17860 int arg3 = (int) 0 ;
17861 int arg4 = (int) 0 ;
17862 int arg5 = (int) 0 ;
17863 wxDateTime *result;
17864 PyObject * obj0 = 0 ;
17865 PyObject * obj1 = 0 ;
17866 PyObject * obj2 = 0 ;
17867 PyObject * obj3 = 0 ;
17868 PyObject * obj4 = 0 ;
17869 char *kwnames[] = {
17870 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17871 };
17872
17873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17876 arg2 = (int) SWIG_AsInt(obj1);
17877 if (PyErr_Occurred()) SWIG_fail;
17878 if (obj2) {
17879 arg3 = (int) SWIG_AsInt(obj2);
17880 if (PyErr_Occurred()) SWIG_fail;
17881 }
17882 if (obj3) {
17883 arg4 = (int) SWIG_AsInt(obj3);
17884 if (PyErr_Occurred()) SWIG_fail;
17885 }
17886 if (obj4) {
17887 arg5 = (int) SWIG_AsInt(obj4);
17888 if (PyErr_Occurred()) SWIG_fail;
17889 }
17890 {
17891 PyThreadState* __tstate = wxPyBeginAllowThreads();
17892 {
17893 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
17894 result = (wxDateTime *) &_result_ref;
17895 }
17896
17897 wxPyEndAllowThreads(__tstate);
17898 if (PyErr_Occurred()) SWIG_fail;
17899 }
17900 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17901 return resultobj;
17902 fail:
17903 return NULL;
17904 }
17905
17906
17907 static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17908 PyObject *resultobj;
17909 wxDateTime *arg1 = (wxDateTime *) 0 ;
17910 int arg2 ;
17911 int arg3 = (int) wxDateTime::Inv_Month ;
17912 int arg4 = (int) wxDateTime::Inv_Year ;
17913 int arg5 = (int) 0 ;
17914 int arg6 = (int) 0 ;
17915 int arg7 = (int) 0 ;
17916 int arg8 = (int) 0 ;
17917 wxDateTime *result;
17918 PyObject * obj0 = 0 ;
17919 PyObject * obj1 = 0 ;
17920 PyObject * obj2 = 0 ;
17921 PyObject * obj3 = 0 ;
17922 PyObject * obj4 = 0 ;
17923 PyObject * obj5 = 0 ;
17924 PyObject * obj6 = 0 ;
17925 PyObject * obj7 = 0 ;
17926 char *kwnames[] = {
17927 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17928 };
17929
17930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17933 arg2 = (int) SWIG_AsInt(obj1);
17934 if (PyErr_Occurred()) SWIG_fail;
17935 if (obj2) {
17936 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
17937 if (PyErr_Occurred()) SWIG_fail;
17938 }
17939 if (obj3) {
17940 arg4 = (int) SWIG_AsInt(obj3);
17941 if (PyErr_Occurred()) SWIG_fail;
17942 }
17943 if (obj4) {
17944 arg5 = (int) SWIG_AsInt(obj4);
17945 if (PyErr_Occurred()) SWIG_fail;
17946 }
17947 if (obj5) {
17948 arg6 = (int) SWIG_AsInt(obj5);
17949 if (PyErr_Occurred()) SWIG_fail;
17950 }
17951 if (obj6) {
17952 arg7 = (int) SWIG_AsInt(obj6);
17953 if (PyErr_Occurred()) SWIG_fail;
17954 }
17955 if (obj7) {
17956 arg8 = (int) SWIG_AsInt(obj7);
17957 if (PyErr_Occurred()) SWIG_fail;
17958 }
17959 {
17960 PyThreadState* __tstate = wxPyBeginAllowThreads();
17961 {
17962 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
17963 result = (wxDateTime *) &_result_ref;
17964 }
17965
17966 wxPyEndAllowThreads(__tstate);
17967 if (PyErr_Occurred()) SWIG_fail;
17968 }
17969 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17970 return resultobj;
17971 fail:
17972 return NULL;
17973 }
17974
17975
17976 static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17977 PyObject *resultobj;
17978 wxDateTime *arg1 = (wxDateTime *) 0 ;
17979 wxDateTime *result;
17980 PyObject * obj0 = 0 ;
17981 char *kwnames[] = {
17982 (char *) "self", NULL
17983 };
17984
17985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
17986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17988 {
17989 PyThreadState* __tstate = wxPyBeginAllowThreads();
17990 {
17991 wxDateTime &_result_ref = (arg1)->ResetTime();
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_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
18006 PyObject *resultobj;
18007 wxDateTime *arg1 = (wxDateTime *) 0 ;
18008 int arg2 ;
18009 wxDateTime *result;
18010 PyObject * obj0 = 0 ;
18011 PyObject * obj1 = 0 ;
18012 char *kwnames[] = {
18013 (char *) "self",(char *) "year", NULL
18014 };
18015
18016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
18017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18019 arg2 = (int) SWIG_AsInt(obj1);
18020 if (PyErr_Occurred()) SWIG_fail;
18021 {
18022 PyThreadState* __tstate = wxPyBeginAllowThreads();
18023 {
18024 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
18025 result = (wxDateTime *) &_result_ref;
18026 }
18027
18028 wxPyEndAllowThreads(__tstate);
18029 if (PyErr_Occurred()) SWIG_fail;
18030 }
18031 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18032 return resultobj;
18033 fail:
18034 return NULL;
18035 }
18036
18037
18038 static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
18039 PyObject *resultobj;
18040 wxDateTime *arg1 = (wxDateTime *) 0 ;
18041 int arg2 ;
18042 wxDateTime *result;
18043 PyObject * obj0 = 0 ;
18044 PyObject * obj1 = 0 ;
18045 char *kwnames[] = {
18046 (char *) "self",(char *) "month", NULL
18047 };
18048
18049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
18050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18052 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18053 if (PyErr_Occurred()) SWIG_fail;
18054 {
18055 PyThreadState* __tstate = wxPyBeginAllowThreads();
18056 {
18057 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
18058 result = (wxDateTime *) &_result_ref;
18059 }
18060
18061 wxPyEndAllowThreads(__tstate);
18062 if (PyErr_Occurred()) SWIG_fail;
18063 }
18064 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18065 return resultobj;
18066 fail:
18067 return NULL;
18068 }
18069
18070
18071 static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18072 PyObject *resultobj;
18073 wxDateTime *arg1 = (wxDateTime *) 0 ;
18074 int arg2 ;
18075 wxDateTime *result;
18076 PyObject * obj0 = 0 ;
18077 PyObject * obj1 = 0 ;
18078 char *kwnames[] = {
18079 (char *) "self",(char *) "day", NULL
18080 };
18081
18082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
18083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18085 arg2 = (int) SWIG_AsInt(obj1);
18086 if (PyErr_Occurred()) SWIG_fail;
18087 {
18088 PyThreadState* __tstate = wxPyBeginAllowThreads();
18089 {
18090 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
18091 result = (wxDateTime *) &_result_ref;
18092 }
18093
18094 wxPyEndAllowThreads(__tstate);
18095 if (PyErr_Occurred()) SWIG_fail;
18096 }
18097 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18098 return resultobj;
18099 fail:
18100 return NULL;
18101 }
18102
18103
18104 static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
18105 PyObject *resultobj;
18106 wxDateTime *arg1 = (wxDateTime *) 0 ;
18107 int arg2 ;
18108 wxDateTime *result;
18109 PyObject * obj0 = 0 ;
18110 PyObject * obj1 = 0 ;
18111 char *kwnames[] = {
18112 (char *) "self",(char *) "hour", NULL
18113 };
18114
18115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
18116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18118 arg2 = (int) SWIG_AsInt(obj1);
18119 if (PyErr_Occurred()) SWIG_fail;
18120 {
18121 PyThreadState* __tstate = wxPyBeginAllowThreads();
18122 {
18123 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
18124 result = (wxDateTime *) &_result_ref;
18125 }
18126
18127 wxPyEndAllowThreads(__tstate);
18128 if (PyErr_Occurred()) SWIG_fail;
18129 }
18130 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18131 return resultobj;
18132 fail:
18133 return NULL;
18134 }
18135
18136
18137 static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
18138 PyObject *resultobj;
18139 wxDateTime *arg1 = (wxDateTime *) 0 ;
18140 int arg2 ;
18141 wxDateTime *result;
18142 PyObject * obj0 = 0 ;
18143 PyObject * obj1 = 0 ;
18144 char *kwnames[] = {
18145 (char *) "self",(char *) "minute", NULL
18146 };
18147
18148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
18149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18151 arg2 = (int) SWIG_AsInt(obj1);
18152 if (PyErr_Occurred()) SWIG_fail;
18153 {
18154 PyThreadState* __tstate = wxPyBeginAllowThreads();
18155 {
18156 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
18157 result = (wxDateTime *) &_result_ref;
18158 }
18159
18160 wxPyEndAllowThreads(__tstate);
18161 if (PyErr_Occurred()) SWIG_fail;
18162 }
18163 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18164 return resultobj;
18165 fail:
18166 return NULL;
18167 }
18168
18169
18170 static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
18171 PyObject *resultobj;
18172 wxDateTime *arg1 = (wxDateTime *) 0 ;
18173 int arg2 ;
18174 wxDateTime *result;
18175 PyObject * obj0 = 0 ;
18176 PyObject * obj1 = 0 ;
18177 char *kwnames[] = {
18178 (char *) "self",(char *) "second", NULL
18179 };
18180
18181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
18182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18184 arg2 = (int) SWIG_AsInt(obj1);
18185 if (PyErr_Occurred()) SWIG_fail;
18186 {
18187 PyThreadState* __tstate = wxPyBeginAllowThreads();
18188 {
18189 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
18190 result = (wxDateTime *) &_result_ref;
18191 }
18192
18193 wxPyEndAllowThreads(__tstate);
18194 if (PyErr_Occurred()) SWIG_fail;
18195 }
18196 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18197 return resultobj;
18198 fail:
18199 return NULL;
18200 }
18201
18202
18203 static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
18204 PyObject *resultobj;
18205 wxDateTime *arg1 = (wxDateTime *) 0 ;
18206 int arg2 ;
18207 wxDateTime *result;
18208 PyObject * obj0 = 0 ;
18209 PyObject * obj1 = 0 ;
18210 char *kwnames[] = {
18211 (char *) "self",(char *) "millisecond", NULL
18212 };
18213
18214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
18215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18217 arg2 = (int) SWIG_AsInt(obj1);
18218 if (PyErr_Occurred()) SWIG_fail;
18219 {
18220 PyThreadState* __tstate = wxPyBeginAllowThreads();
18221 {
18222 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
18223 result = (wxDateTime *) &_result_ref;
18224 }
18225
18226 wxPyEndAllowThreads(__tstate);
18227 if (PyErr_Occurred()) SWIG_fail;
18228 }
18229 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18230 return resultobj;
18231 fail:
18232 return NULL;
18233 }
18234
18235
18236 static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18237 PyObject *resultobj;
18238 wxDateTime *arg1 = (wxDateTime *) 0 ;
18239 int arg2 ;
18240 int arg3 = (int) wxDateTime::Monday_First ;
18241 wxDateTime *result;
18242 PyObject * obj0 = 0 ;
18243 PyObject * obj1 = 0 ;
18244 PyObject * obj2 = 0 ;
18245 char *kwnames[] = {
18246 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18247 };
18248
18249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18252 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18253 if (PyErr_Occurred()) SWIG_fail;
18254 if (obj2) {
18255 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
18256 if (PyErr_Occurred()) SWIG_fail;
18257 }
18258 {
18259 PyThreadState* __tstate = wxPyBeginAllowThreads();
18260 {
18261 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18262 result = (wxDateTime *) &_result_ref;
18263 }
18264
18265 wxPyEndAllowThreads(__tstate);
18266 if (PyErr_Occurred()) SWIG_fail;
18267 }
18268 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18269 return resultobj;
18270 fail:
18271 return NULL;
18272 }
18273
18274
18275 static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18276 PyObject *resultobj;
18277 wxDateTime *arg1 = (wxDateTime *) 0 ;
18278 int arg2 ;
18279 int arg3 = (int) wxDateTime::Monday_First ;
18280 wxDateTime result;
18281 PyObject * obj0 = 0 ;
18282 PyObject * obj1 = 0 ;
18283 PyObject * obj2 = 0 ;
18284 char *kwnames[] = {
18285 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18286 };
18287
18288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) 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::WeekFlags) SWIG_AsInt(obj2);
18295 if (PyErr_Occurred()) SWIG_fail;
18296 }
18297 {
18298 PyThreadState* __tstate = wxPyBeginAllowThreads();
18299 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18300
18301 wxPyEndAllowThreads(__tstate);
18302 if (PyErr_Occurred()) SWIG_fail;
18303 }
18304 {
18305 wxDateTime * resultptr;
18306 resultptr = new wxDateTime((wxDateTime &) result);
18307 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18308 }
18309 return resultobj;
18310 fail:
18311 return NULL;
18312 }
18313
18314
18315 static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18316 PyObject *resultobj;
18317 wxDateTime *arg1 = (wxDateTime *) 0 ;
18318 int arg2 ;
18319 wxDateTime *result;
18320 PyObject * obj0 = 0 ;
18321 PyObject * obj1 = 0 ;
18322 char *kwnames[] = {
18323 (char *) "self",(char *) "weekday", NULL
18324 };
18325
18326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18329 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18330 if (PyErr_Occurred()) SWIG_fail;
18331 {
18332 PyThreadState* __tstate = wxPyBeginAllowThreads();
18333 {
18334 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
18335 result = (wxDateTime *) &_result_ref;
18336 }
18337
18338 wxPyEndAllowThreads(__tstate);
18339 if (PyErr_Occurred()) SWIG_fail;
18340 }
18341 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18342 return resultobj;
18343 fail:
18344 return NULL;
18345 }
18346
18347
18348 static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18349 PyObject *resultobj;
18350 wxDateTime *arg1 = (wxDateTime *) 0 ;
18351 int arg2 ;
18352 wxDateTime result;
18353 PyObject * obj0 = 0 ;
18354 PyObject * obj1 = 0 ;
18355 char *kwnames[] = {
18356 (char *) "self",(char *) "weekday", NULL
18357 };
18358
18359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18362 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18363 if (PyErr_Occurred()) SWIG_fail;
18364 {
18365 PyThreadState* __tstate = wxPyBeginAllowThreads();
18366 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
18367
18368 wxPyEndAllowThreads(__tstate);
18369 if (PyErr_Occurred()) SWIG_fail;
18370 }
18371 {
18372 wxDateTime * resultptr;
18373 resultptr = new wxDateTime((wxDateTime &) result);
18374 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18375 }
18376 return resultobj;
18377 fail:
18378 return NULL;
18379 }
18380
18381
18382 static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18383 PyObject *resultobj;
18384 wxDateTime *arg1 = (wxDateTime *) 0 ;
18385 int arg2 ;
18386 wxDateTime *result;
18387 PyObject * obj0 = 0 ;
18388 PyObject * obj1 = 0 ;
18389 char *kwnames[] = {
18390 (char *) "self",(char *) "weekday", NULL
18391 };
18392
18393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18396 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18397 if (PyErr_Occurred()) SWIG_fail;
18398 {
18399 PyThreadState* __tstate = wxPyBeginAllowThreads();
18400 {
18401 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
18402 result = (wxDateTime *) &_result_ref;
18403 }
18404
18405 wxPyEndAllowThreads(__tstate);
18406 if (PyErr_Occurred()) SWIG_fail;
18407 }
18408 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18409 return resultobj;
18410 fail:
18411 return NULL;
18412 }
18413
18414
18415 static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18416 PyObject *resultobj;
18417 wxDateTime *arg1 = (wxDateTime *) 0 ;
18418 int arg2 ;
18419 wxDateTime result;
18420 PyObject * obj0 = 0 ;
18421 PyObject * obj1 = 0 ;
18422 char *kwnames[] = {
18423 (char *) "self",(char *) "weekday", NULL
18424 };
18425
18426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18429 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18430 if (PyErr_Occurred()) SWIG_fail;
18431 {
18432 PyThreadState* __tstate = wxPyBeginAllowThreads();
18433 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2);
18434
18435 wxPyEndAllowThreads(__tstate);
18436 if (PyErr_Occurred()) SWIG_fail;
18437 }
18438 {
18439 wxDateTime * resultptr;
18440 resultptr = new wxDateTime((wxDateTime &) result);
18441 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18442 }
18443 return resultobj;
18444 fail:
18445 return NULL;
18446 }
18447
18448
18449 static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18450 PyObject *resultobj;
18451 wxDateTime *arg1 = (wxDateTime *) 0 ;
18452 int arg2 ;
18453 int arg3 = (int) 1 ;
18454 int arg4 = (int) wxDateTime::Inv_Month ;
18455 int arg5 = (int) wxDateTime::Inv_Year ;
18456 bool result;
18457 PyObject * obj0 = 0 ;
18458 PyObject * obj1 = 0 ;
18459 PyObject * obj2 = 0 ;
18460 PyObject * obj3 = 0 ;
18461 PyObject * obj4 = 0 ;
18462 char *kwnames[] = {
18463 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
18464 };
18465
18466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18469 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18470 if (PyErr_Occurred()) SWIG_fail;
18471 if (obj2) {
18472 arg3 = (int) SWIG_AsInt(obj2);
18473 if (PyErr_Occurred()) SWIG_fail;
18474 }
18475 if (obj3) {
18476 arg4 = (wxDateTime::Month) SWIG_AsInt(obj3);
18477 if (PyErr_Occurred()) SWIG_fail;
18478 }
18479 if (obj4) {
18480 arg5 = (int) SWIG_AsInt(obj4);
18481 if (PyErr_Occurred()) SWIG_fail;
18482 }
18483 {
18484 PyThreadState* __tstate = wxPyBeginAllowThreads();
18485 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
18486
18487 wxPyEndAllowThreads(__tstate);
18488 if (PyErr_Occurred()) SWIG_fail;
18489 }
18490 {
18491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18492 }
18493 return resultobj;
18494 fail:
18495 return NULL;
18496 }
18497
18498
18499 static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18500 PyObject *resultobj;
18501 wxDateTime *arg1 = (wxDateTime *) 0 ;
18502 int arg2 ;
18503 int arg3 = (int) wxDateTime::Inv_Month ;
18504 int arg4 = (int) wxDateTime::Inv_Year ;
18505 bool result;
18506 PyObject * obj0 = 0 ;
18507 PyObject * obj1 = 0 ;
18508 PyObject * obj2 = 0 ;
18509 PyObject * obj3 = 0 ;
18510 char *kwnames[] = {
18511 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18512 };
18513
18514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18517 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18518 if (PyErr_Occurred()) SWIG_fail;
18519 if (obj2) {
18520 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18521 if (PyErr_Occurred()) SWIG_fail;
18522 }
18523 if (obj3) {
18524 arg4 = (int) SWIG_AsInt(obj3);
18525 if (PyErr_Occurred()) SWIG_fail;
18526 }
18527 {
18528 PyThreadState* __tstate = wxPyBeginAllowThreads();
18529 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18530
18531 wxPyEndAllowThreads(__tstate);
18532 if (PyErr_Occurred()) SWIG_fail;
18533 }
18534 {
18535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18536 }
18537 return resultobj;
18538 fail:
18539 return NULL;
18540 }
18541
18542
18543 static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18544 PyObject *resultobj;
18545 wxDateTime *arg1 = (wxDateTime *) 0 ;
18546 int arg2 ;
18547 int arg3 = (int) wxDateTime::Inv_Month ;
18548 int arg4 = (int) wxDateTime::Inv_Year ;
18549 wxDateTime result;
18550 PyObject * obj0 = 0 ;
18551 PyObject * obj1 = 0 ;
18552 PyObject * obj2 = 0 ;
18553 PyObject * obj3 = 0 ;
18554 char *kwnames[] = {
18555 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18556 };
18557
18558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18561 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18562 if (PyErr_Occurred()) SWIG_fail;
18563 if (obj2) {
18564 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18565 if (PyErr_Occurred()) SWIG_fail;
18566 }
18567 if (obj3) {
18568 arg4 = (int) SWIG_AsInt(obj3);
18569 if (PyErr_Occurred()) SWIG_fail;
18570 }
18571 {
18572 PyThreadState* __tstate = wxPyBeginAllowThreads();
18573 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18574
18575 wxPyEndAllowThreads(__tstate);
18576 if (PyErr_Occurred()) SWIG_fail;
18577 }
18578 {
18579 wxDateTime * resultptr;
18580 resultptr = new wxDateTime((wxDateTime &) result);
18581 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18582 }
18583 return resultobj;
18584 fail:
18585 return NULL;
18586 }
18587
18588
18589 static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18590 PyObject *resultobj;
18591 wxDateTime *arg1 = (wxDateTime *) 0 ;
18592 int arg2 ;
18593 int arg3 = (int) wxDateTime::Mon ;
18594 int arg4 = (int) wxDateTime::Monday_First ;
18595 bool result;
18596 PyObject * obj0 = 0 ;
18597 PyObject * obj1 = 0 ;
18598 PyObject * obj2 = 0 ;
18599 PyObject * obj3 = 0 ;
18600 char *kwnames[] = {
18601 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18602 };
18603
18604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18607 arg2 = (int) SWIG_AsInt(obj1);
18608 if (PyErr_Occurred()) SWIG_fail;
18609 if (obj2) {
18610 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18611 if (PyErr_Occurred()) SWIG_fail;
18612 }
18613 if (obj3) {
18614 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18615 if (PyErr_Occurred()) SWIG_fail;
18616 }
18617 {
18618 PyThreadState* __tstate = wxPyBeginAllowThreads();
18619 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18620
18621 wxPyEndAllowThreads(__tstate);
18622 if (PyErr_Occurred()) SWIG_fail;
18623 }
18624 {
18625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18626 }
18627 return resultobj;
18628 fail:
18629 return NULL;
18630 }
18631
18632
18633 static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18634 PyObject *resultobj;
18635 wxDateTime *arg1 = (wxDateTime *) 0 ;
18636 int arg2 ;
18637 int arg3 = (int) wxDateTime::Mon ;
18638 int arg4 = (int) wxDateTime::Monday_First ;
18639 wxDateTime result;
18640 PyObject * obj0 = 0 ;
18641 PyObject * obj1 = 0 ;
18642 PyObject * obj2 = 0 ;
18643 PyObject * obj3 = 0 ;
18644 char *kwnames[] = {
18645 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18646 };
18647
18648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18651 arg2 = (int) SWIG_AsInt(obj1);
18652 if (PyErr_Occurred()) SWIG_fail;
18653 if (obj2) {
18654 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18655 if (PyErr_Occurred()) SWIG_fail;
18656 }
18657 if (obj3) {
18658 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18659 if (PyErr_Occurred()) SWIG_fail;
18660 }
18661 {
18662 PyThreadState* __tstate = wxPyBeginAllowThreads();
18663 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18664
18665 wxPyEndAllowThreads(__tstate);
18666 if (PyErr_Occurred()) SWIG_fail;
18667 }
18668 {
18669 wxDateTime * resultptr;
18670 resultptr = new wxDateTime((wxDateTime &) result);
18671 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18672 }
18673 return resultobj;
18674 fail:
18675 return NULL;
18676 }
18677
18678
18679 static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18680 PyObject *resultobj;
18681 wxDateTime *arg1 = (wxDateTime *) 0 ;
18682 int arg2 = (int) wxDateTime::Inv_Month ;
18683 int arg3 = (int) wxDateTime::Inv_Year ;
18684 wxDateTime *result;
18685 PyObject * obj0 = 0 ;
18686 PyObject * obj1 = 0 ;
18687 PyObject * obj2 = 0 ;
18688 char *kwnames[] = {
18689 (char *) "self",(char *) "month",(char *) "year", NULL
18690 };
18691
18692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18695 if (obj1) {
18696 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18697 if (PyErr_Occurred()) SWIG_fail;
18698 }
18699 if (obj2) {
18700 arg3 = (int) SWIG_AsInt(obj2);
18701 if (PyErr_Occurred()) SWIG_fail;
18702 }
18703 {
18704 PyThreadState* __tstate = wxPyBeginAllowThreads();
18705 {
18706 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
18707 result = (wxDateTime *) &_result_ref;
18708 }
18709
18710 wxPyEndAllowThreads(__tstate);
18711 if (PyErr_Occurred()) SWIG_fail;
18712 }
18713 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18714 return resultobj;
18715 fail:
18716 return NULL;
18717 }
18718
18719
18720 static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18721 PyObject *resultobj;
18722 wxDateTime *arg1 = (wxDateTime *) 0 ;
18723 int arg2 = (int) wxDateTime::Inv_Month ;
18724 int arg3 = (int) wxDateTime::Inv_Year ;
18725 wxDateTime result;
18726 PyObject * obj0 = 0 ;
18727 PyObject * obj1 = 0 ;
18728 PyObject * obj2 = 0 ;
18729 char *kwnames[] = {
18730 (char *) "self",(char *) "month",(char *) "year", NULL
18731 };
18732
18733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18736 if (obj1) {
18737 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18738 if (PyErr_Occurred()) SWIG_fail;
18739 }
18740 if (obj2) {
18741 arg3 = (int) SWIG_AsInt(obj2);
18742 if (PyErr_Occurred()) SWIG_fail;
18743 }
18744 {
18745 PyThreadState* __tstate = wxPyBeginAllowThreads();
18746 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
18747
18748 wxPyEndAllowThreads(__tstate);
18749 if (PyErr_Occurred()) SWIG_fail;
18750 }
18751 {
18752 wxDateTime * resultptr;
18753 resultptr = new wxDateTime((wxDateTime &) result);
18754 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18755 }
18756 return resultobj;
18757 fail:
18758 return NULL;
18759 }
18760
18761
18762 static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18763 PyObject *resultobj;
18764 wxDateTime *arg1 = (wxDateTime *) 0 ;
18765 int arg2 ;
18766 wxDateTime *result;
18767 PyObject * obj0 = 0 ;
18768 PyObject * obj1 = 0 ;
18769 char *kwnames[] = {
18770 (char *) "self",(char *) "yday", NULL
18771 };
18772
18773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
18774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18776 arg2 = (int) SWIG_AsInt(obj1);
18777 if (PyErr_Occurred()) SWIG_fail;
18778 {
18779 PyThreadState* __tstate = wxPyBeginAllowThreads();
18780 {
18781 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
18782 result = (wxDateTime *) &_result_ref;
18783 }
18784
18785 wxPyEndAllowThreads(__tstate);
18786 if (PyErr_Occurred()) SWIG_fail;
18787 }
18788 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18789 return resultobj;
18790 fail:
18791 return NULL;
18792 }
18793
18794
18795 static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18796 PyObject *resultobj;
18797 wxDateTime *arg1 = (wxDateTime *) 0 ;
18798 int arg2 ;
18799 wxDateTime result;
18800 PyObject * obj0 = 0 ;
18801 PyObject * obj1 = 0 ;
18802 char *kwnames[] = {
18803 (char *) "self",(char *) "yday", NULL
18804 };
18805
18806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
18807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18809 arg2 = (int) SWIG_AsInt(obj1);
18810 if (PyErr_Occurred()) SWIG_fail;
18811 {
18812 PyThreadState* __tstate = wxPyBeginAllowThreads();
18813 result = (arg1)->GetYearDay(arg2);
18814
18815 wxPyEndAllowThreads(__tstate);
18816 if (PyErr_Occurred()) SWIG_fail;
18817 }
18818 {
18819 wxDateTime * resultptr;
18820 resultptr = new wxDateTime((wxDateTime &) result);
18821 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18822 }
18823 return resultobj;
18824 fail:
18825 return NULL;
18826 }
18827
18828
18829 static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18830 PyObject *resultobj;
18831 wxDateTime *arg1 = (wxDateTime *) 0 ;
18832 double result;
18833 PyObject * obj0 = 0 ;
18834 char *kwnames[] = {
18835 (char *) "self", NULL
18836 };
18837
18838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
18839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18841 {
18842 PyThreadState* __tstate = wxPyBeginAllowThreads();
18843 result = (double)(arg1)->GetJulianDayNumber();
18844
18845 wxPyEndAllowThreads(__tstate);
18846 if (PyErr_Occurred()) SWIG_fail;
18847 }
18848 resultobj = SWIG_FromDouble((double)result);
18849 return resultobj;
18850 fail:
18851 return NULL;
18852 }
18853
18854
18855 static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
18856 PyObject *resultobj;
18857 wxDateTime *arg1 = (wxDateTime *) 0 ;
18858 double result;
18859 PyObject * obj0 = 0 ;
18860 char *kwnames[] = {
18861 (char *) "self", NULL
18862 };
18863
18864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
18865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18867 {
18868 PyThreadState* __tstate = wxPyBeginAllowThreads();
18869 result = (double)(arg1)->GetJDN();
18870
18871 wxPyEndAllowThreads(__tstate);
18872 if (PyErr_Occurred()) SWIG_fail;
18873 }
18874 resultobj = SWIG_FromDouble((double)result);
18875 return resultobj;
18876 fail:
18877 return NULL;
18878 }
18879
18880
18881 static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18882 PyObject *resultobj;
18883 wxDateTime *arg1 = (wxDateTime *) 0 ;
18884 double result;
18885 PyObject * obj0 = 0 ;
18886 char *kwnames[] = {
18887 (char *) "self", NULL
18888 };
18889
18890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
18891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18893 {
18894 PyThreadState* __tstate = wxPyBeginAllowThreads();
18895 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
18896
18897 wxPyEndAllowThreads(__tstate);
18898 if (PyErr_Occurred()) SWIG_fail;
18899 }
18900 resultobj = SWIG_FromDouble((double)result);
18901 return resultobj;
18902 fail:
18903 return NULL;
18904 }
18905
18906
18907 static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) {
18908 PyObject *resultobj;
18909 wxDateTime *arg1 = (wxDateTime *) 0 ;
18910 double result;
18911 PyObject * obj0 = 0 ;
18912 char *kwnames[] = {
18913 (char *) "self", NULL
18914 };
18915
18916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
18917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18919 {
18920 PyThreadState* __tstate = wxPyBeginAllowThreads();
18921 result = (double)(arg1)->GetMJD();
18922
18923 wxPyEndAllowThreads(__tstate);
18924 if (PyErr_Occurred()) SWIG_fail;
18925 }
18926 resultobj = SWIG_FromDouble((double)result);
18927 return resultobj;
18928 fail:
18929 return NULL;
18930 }
18931
18932
18933 static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) {
18934 PyObject *resultobj;
18935 wxDateTime *arg1 = (wxDateTime *) 0 ;
18936 double result;
18937 PyObject * obj0 = 0 ;
18938 char *kwnames[] = {
18939 (char *) "self", NULL
18940 };
18941
18942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
18943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18945 {
18946 PyThreadState* __tstate = wxPyBeginAllowThreads();
18947 result = (double)(arg1)->GetRataDie();
18948
18949 wxPyEndAllowThreads(__tstate);
18950 if (PyErr_Occurred()) SWIG_fail;
18951 }
18952 resultobj = SWIG_FromDouble((double)result);
18953 return resultobj;
18954 fail:
18955 return NULL;
18956 }
18957
18958
18959 static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18960 PyObject *resultobj;
18961 wxDateTime *arg1 = (wxDateTime *) 0 ;
18962 wxDateTime::TimeZone *arg2 = 0 ;
18963 bool arg3 = (bool) False ;
18964 wxDateTime result;
18965 bool temp2 = False ;
18966 PyObject * obj0 = 0 ;
18967 PyObject * obj1 = 0 ;
18968 PyObject * obj2 = 0 ;
18969 char *kwnames[] = {
18970 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18971 };
18972
18973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18976 {
18977 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18978 temp2 = True;
18979 }
18980 if (obj2) {
18981 arg3 = (bool) SWIG_AsBool(obj2);
18982 if (PyErr_Occurred()) SWIG_fail;
18983 }
18984 {
18985 PyThreadState* __tstate = wxPyBeginAllowThreads();
18986 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18987
18988 wxPyEndAllowThreads(__tstate);
18989 if (PyErr_Occurred()) SWIG_fail;
18990 }
18991 {
18992 wxDateTime * resultptr;
18993 resultptr = new wxDateTime((wxDateTime &) result);
18994 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18995 }
18996 {
18997 if (temp2) delete arg2;
18998 }
18999 return resultobj;
19000 fail:
19001 {
19002 if (temp2) delete arg2;
19003 }
19004 return NULL;
19005 }
19006
19007
19008 static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
19009 PyObject *resultobj;
19010 wxDateTime *arg1 = (wxDateTime *) 0 ;
19011 wxDateTime::TimeZone *arg2 = 0 ;
19012 bool arg3 = (bool) False ;
19013 wxDateTime *result;
19014 bool temp2 = False ;
19015 PyObject * obj0 = 0 ;
19016 PyObject * obj1 = 0 ;
19017 PyObject * obj2 = 0 ;
19018 char *kwnames[] = {
19019 (char *) "self",(char *) "tz",(char *) "noDST", NULL
19020 };
19021
19022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
19023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19025 {
19026 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19027 temp2 = True;
19028 }
19029 if (obj2) {
19030 arg3 = (bool) SWIG_AsBool(obj2);
19031 if (PyErr_Occurred()) SWIG_fail;
19032 }
19033 {
19034 PyThreadState* __tstate = wxPyBeginAllowThreads();
19035 {
19036 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
19037 result = (wxDateTime *) &_result_ref;
19038 }
19039
19040 wxPyEndAllowThreads(__tstate);
19041 if (PyErr_Occurred()) SWIG_fail;
19042 }
19043 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19044 {
19045 if (temp2) delete arg2;
19046 }
19047 return resultobj;
19048 fail:
19049 {
19050 if (temp2) delete arg2;
19051 }
19052 return NULL;
19053 }
19054
19055
19056 static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
19057 PyObject *resultobj;
19058 wxDateTime *arg1 = (wxDateTime *) 0 ;
19059 bool arg2 = (bool) False ;
19060 wxDateTime result;
19061 PyObject * obj0 = 0 ;
19062 PyObject * obj1 = 0 ;
19063 char *kwnames[] = {
19064 (char *) "self",(char *) "noDST", NULL
19065 };
19066
19067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
19068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19070 if (obj1) {
19071 arg2 = (bool) SWIG_AsBool(obj1);
19072 if (PyErr_Occurred()) SWIG_fail;
19073 }
19074 {
19075 PyThreadState* __tstate = wxPyBeginAllowThreads();
19076 result = (arg1)->ToGMT(arg2);
19077
19078 wxPyEndAllowThreads(__tstate);
19079 if (PyErr_Occurred()) SWIG_fail;
19080 }
19081 {
19082 wxDateTime * resultptr;
19083 resultptr = new wxDateTime((wxDateTime &) result);
19084 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
19085 }
19086 return resultobj;
19087 fail:
19088 return NULL;
19089 }
19090
19091
19092 static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
19093 PyObject *resultobj;
19094 wxDateTime *arg1 = (wxDateTime *) 0 ;
19095 bool arg2 = (bool) False ;
19096 wxDateTime *result;
19097 PyObject * obj0 = 0 ;
19098 PyObject * obj1 = 0 ;
19099 char *kwnames[] = {
19100 (char *) "self",(char *) "noDST", NULL
19101 };
19102
19103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
19104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19106 if (obj1) {
19107 arg2 = (bool) SWIG_AsBool(obj1);
19108 if (PyErr_Occurred()) SWIG_fail;
19109 }
19110 {
19111 PyThreadState* __tstate = wxPyBeginAllowThreads();
19112 {
19113 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
19114 result = (wxDateTime *) &_result_ref;
19115 }
19116
19117 wxPyEndAllowThreads(__tstate);
19118 if (PyErr_Occurred()) SWIG_fail;
19119 }
19120 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19121 return resultobj;
19122 fail:
19123 return NULL;
19124 }
19125
19126
19127 static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) {
19128 PyObject *resultobj;
19129 wxDateTime *arg1 = (wxDateTime *) 0 ;
19130 int arg2 = (int) wxDateTime::Country_Default ;
19131 int result;
19132 PyObject * obj0 = 0 ;
19133 PyObject * obj1 = 0 ;
19134 char *kwnames[] = {
19135 (char *) "self",(char *) "country", NULL
19136 };
19137
19138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
19139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19141 if (obj1) {
19142 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
19143 if (PyErr_Occurred()) SWIG_fail;
19144 }
19145 {
19146 PyThreadState* __tstate = wxPyBeginAllowThreads();
19147 result = (int)(arg1)->IsDST((wxDateTime::Country )arg2);
19148
19149 wxPyEndAllowThreads(__tstate);
19150 if (PyErr_Occurred()) SWIG_fail;
19151 }
19152 resultobj = SWIG_FromInt((int)result);
19153 return resultobj;
19154 fail:
19155 return NULL;
19156 }
19157
19158
19159 static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
19160 PyObject *resultobj;
19161 wxDateTime *arg1 = (wxDateTime *) 0 ;
19162 bool result;
19163 PyObject * obj0 = 0 ;
19164 char *kwnames[] = {
19165 (char *) "self", NULL
19166 };
19167
19168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
19169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19171 {
19172 PyThreadState* __tstate = wxPyBeginAllowThreads();
19173 result = (bool)((wxDateTime const *)arg1)->IsValid();
19174
19175 wxPyEndAllowThreads(__tstate);
19176 if (PyErr_Occurred()) SWIG_fail;
19177 }
19178 {
19179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19180 }
19181 return resultobj;
19182 fail:
19183 return NULL;
19184 }
19185
19186
19187 static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
19188 PyObject *resultobj;
19189 wxDateTime *arg1 = (wxDateTime *) 0 ;
19190 time_t result;
19191 PyObject * obj0 = 0 ;
19192 char *kwnames[] = {
19193 (char *) "self", NULL
19194 };
19195
19196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
19197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19199 {
19200 PyThreadState* __tstate = wxPyBeginAllowThreads();
19201 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
19202
19203 wxPyEndAllowThreads(__tstate);
19204 if (PyErr_Occurred()) SWIG_fail;
19205 }
19206 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
19207 return resultobj;
19208 fail:
19209 return NULL;
19210 }
19211
19212
19213 static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19214 PyObject *resultobj;
19215 wxDateTime *arg1 = (wxDateTime *) 0 ;
19216 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19217 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19218 int result;
19219 bool temp2 = False ;
19220 PyObject * obj0 = 0 ;
19221 PyObject * obj1 = 0 ;
19222 char *kwnames[] = {
19223 (char *) "self",(char *) "tz", NULL
19224 };
19225
19226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
19227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19229 if (obj1) {
19230 {
19231 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19232 temp2 = True;
19233 }
19234 }
19235 {
19236 PyThreadState* __tstate = wxPyBeginAllowThreads();
19237 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
19238
19239 wxPyEndAllowThreads(__tstate);
19240 if (PyErr_Occurred()) SWIG_fail;
19241 }
19242 resultobj = SWIG_FromInt((int)result);
19243 {
19244 if (temp2) delete arg2;
19245 }
19246 return resultobj;
19247 fail:
19248 {
19249 if (temp2) delete arg2;
19250 }
19251 return NULL;
19252 }
19253
19254
19255 static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
19256 PyObject *resultobj;
19257 wxDateTime *arg1 = (wxDateTime *) 0 ;
19258 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19259 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19260 int result;
19261 bool temp2 = False ;
19262 PyObject * obj0 = 0 ;
19263 PyObject * obj1 = 0 ;
19264 char *kwnames[] = {
19265 (char *) "self",(char *) "tz", NULL
19266 };
19267
19268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
19269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19271 if (obj1) {
19272 {
19273 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19274 temp2 = True;
19275 }
19276 }
19277 {
19278 PyThreadState* __tstate = wxPyBeginAllowThreads();
19279 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
19280
19281 wxPyEndAllowThreads(__tstate);
19282 if (PyErr_Occurred()) SWIG_fail;
19283 }
19284 resultobj = SWIG_FromInt((int)result);
19285 {
19286 if (temp2) delete arg2;
19287 }
19288 return resultobj;
19289 fail:
19290 {
19291 if (temp2) delete arg2;
19292 }
19293 return NULL;
19294 }
19295
19296
19297 static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19298 PyObject *resultobj;
19299 wxDateTime *arg1 = (wxDateTime *) 0 ;
19300 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19301 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19302 int result;
19303 bool temp2 = False ;
19304 PyObject * obj0 = 0 ;
19305 PyObject * obj1 = 0 ;
19306 char *kwnames[] = {
19307 (char *) "self",(char *) "tz", NULL
19308 };
19309
19310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
19311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19313 if (obj1) {
19314 {
19315 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19316 temp2 = True;
19317 }
19318 }
19319 {
19320 PyThreadState* __tstate = wxPyBeginAllowThreads();
19321 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
19322
19323 wxPyEndAllowThreads(__tstate);
19324 if (PyErr_Occurred()) SWIG_fail;
19325 }
19326 resultobj = SWIG_FromInt((int)result);
19327 {
19328 if (temp2) delete arg2;
19329 }
19330 return resultobj;
19331 fail:
19332 {
19333 if (temp2) delete arg2;
19334 }
19335 return NULL;
19336 }
19337
19338
19339 static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19340 PyObject *resultobj;
19341 wxDateTime *arg1 = (wxDateTime *) 0 ;
19342 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19343 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19344 int result;
19345 bool temp2 = False ;
19346 PyObject * obj0 = 0 ;
19347 PyObject * obj1 = 0 ;
19348 char *kwnames[] = {
19349 (char *) "self",(char *) "tz", NULL
19350 };
19351
19352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
19353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19355 if (obj1) {
19356 {
19357 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19358 temp2 = True;
19359 }
19360 }
19361 {
19362 PyThreadState* __tstate = wxPyBeginAllowThreads();
19363 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
19364
19365 wxPyEndAllowThreads(__tstate);
19366 if (PyErr_Occurred()) SWIG_fail;
19367 }
19368 resultobj = SWIG_FromInt((int)result);
19369 {
19370 if (temp2) delete arg2;
19371 }
19372 return resultobj;
19373 fail:
19374 {
19375 if (temp2) delete arg2;
19376 }
19377 return NULL;
19378 }
19379
19380
19381 static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
19382 PyObject *resultobj;
19383 wxDateTime *arg1 = (wxDateTime *) 0 ;
19384 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19385 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19386 int result;
19387 bool temp2 = False ;
19388 PyObject * obj0 = 0 ;
19389 PyObject * obj1 = 0 ;
19390 char *kwnames[] = {
19391 (char *) "self",(char *) "tz", NULL
19392 };
19393
19394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
19395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19397 if (obj1) {
19398 {
19399 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19400 temp2 = True;
19401 }
19402 }
19403 {
19404 PyThreadState* __tstate = wxPyBeginAllowThreads();
19405 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
19406
19407 wxPyEndAllowThreads(__tstate);
19408 if (PyErr_Occurred()) SWIG_fail;
19409 }
19410 resultobj = SWIG_FromInt((int)result);
19411 {
19412 if (temp2) delete arg2;
19413 }
19414 return resultobj;
19415 fail:
19416 {
19417 if (temp2) delete arg2;
19418 }
19419 return NULL;
19420 }
19421
19422
19423 static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
19424 PyObject *resultobj;
19425 wxDateTime *arg1 = (wxDateTime *) 0 ;
19426 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19427 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19428 int result;
19429 bool temp2 = False ;
19430 PyObject * obj0 = 0 ;
19431 PyObject * obj1 = 0 ;
19432 char *kwnames[] = {
19433 (char *) "self",(char *) "tz", NULL
19434 };
19435
19436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
19437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19439 if (obj1) {
19440 {
19441 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19442 temp2 = True;
19443 }
19444 }
19445 {
19446 PyThreadState* __tstate = wxPyBeginAllowThreads();
19447 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
19448
19449 wxPyEndAllowThreads(__tstate);
19450 if (PyErr_Occurred()) SWIG_fail;
19451 }
19452 resultobj = SWIG_FromInt((int)result);
19453 {
19454 if (temp2) delete arg2;
19455 }
19456 return resultobj;
19457 fail:
19458 {
19459 if (temp2) delete arg2;
19460 }
19461 return NULL;
19462 }
19463
19464
19465 static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19466 PyObject *resultobj;
19467 wxDateTime *arg1 = (wxDateTime *) 0 ;
19468 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19469 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19470 int result;
19471 bool temp2 = False ;
19472 PyObject * obj0 = 0 ;
19473 PyObject * obj1 = 0 ;
19474 char *kwnames[] = {
19475 (char *) "self",(char *) "tz", NULL
19476 };
19477
19478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
19479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19481 if (obj1) {
19482 {
19483 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19484 temp2 = True;
19485 }
19486 }
19487 {
19488 PyThreadState* __tstate = wxPyBeginAllowThreads();
19489 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
19490
19491 wxPyEndAllowThreads(__tstate);
19492 if (PyErr_Occurred()) SWIG_fail;
19493 }
19494 resultobj = SWIG_FromInt((int)result);
19495 {
19496 if (temp2) delete arg2;
19497 }
19498 return resultobj;
19499 fail:
19500 {
19501 if (temp2) delete arg2;
19502 }
19503 return NULL;
19504 }
19505
19506
19507 static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19508 PyObject *resultobj;
19509 wxDateTime *arg1 = (wxDateTime *) 0 ;
19510 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19511 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19512 int result;
19513 bool temp2 = False ;
19514 PyObject * obj0 = 0 ;
19515 PyObject * obj1 = 0 ;
19516 char *kwnames[] = {
19517 (char *) "self",(char *) "tz", NULL
19518 };
19519
19520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
19521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19523 if (obj1) {
19524 {
19525 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19526 temp2 = True;
19527 }
19528 }
19529 {
19530 PyThreadState* __tstate = wxPyBeginAllowThreads();
19531 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
19532
19533 wxPyEndAllowThreads(__tstate);
19534 if (PyErr_Occurred()) SWIG_fail;
19535 }
19536 resultobj = SWIG_FromInt((int)result);
19537 {
19538 if (temp2) delete arg2;
19539 }
19540 return resultobj;
19541 fail:
19542 {
19543 if (temp2) delete arg2;
19544 }
19545 return NULL;
19546 }
19547
19548
19549 static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19550 PyObject *resultobj;
19551 wxDateTime *arg1 = (wxDateTime *) 0 ;
19552 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19553 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19554 int result;
19555 bool temp2 = False ;
19556 PyObject * obj0 = 0 ;
19557 PyObject * obj1 = 0 ;
19558 char *kwnames[] = {
19559 (char *) "self",(char *) "tz", NULL
19560 };
19561
19562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
19563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19565 if (obj1) {
19566 {
19567 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19568 temp2 = True;
19569 }
19570 }
19571 {
19572 PyThreadState* __tstate = wxPyBeginAllowThreads();
19573 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
19574
19575 wxPyEndAllowThreads(__tstate);
19576 if (PyErr_Occurred()) SWIG_fail;
19577 }
19578 resultobj = SWIG_FromInt((int)result);
19579 {
19580 if (temp2) delete arg2;
19581 }
19582 return resultobj;
19583 fail:
19584 {
19585 if (temp2) delete arg2;
19586 }
19587 return NULL;
19588 }
19589
19590
19591 static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19592 PyObject *resultobj;
19593 wxDateTime *arg1 = (wxDateTime *) 0 ;
19594 int arg2 = (int) wxDateTime::Monday_First ;
19595 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19596 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19597 int result;
19598 bool temp3 = False ;
19599 PyObject * obj0 = 0 ;
19600 PyObject * obj1 = 0 ;
19601 PyObject * obj2 = 0 ;
19602 char *kwnames[] = {
19603 (char *) "self",(char *) "flags",(char *) "tz", NULL
19604 };
19605
19606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
19607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19609 if (obj1) {
19610 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19611 if (PyErr_Occurred()) SWIG_fail;
19612 }
19613 if (obj2) {
19614 {
19615 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19616 temp3 = True;
19617 }
19618 }
19619 {
19620 PyThreadState* __tstate = wxPyBeginAllowThreads();
19621 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19622
19623 wxPyEndAllowThreads(__tstate);
19624 if (PyErr_Occurred()) SWIG_fail;
19625 }
19626 resultobj = SWIG_FromInt((int)result);
19627 {
19628 if (temp3) delete arg3;
19629 }
19630 return resultobj;
19631 fail:
19632 {
19633 if (temp3) delete arg3;
19634 }
19635 return NULL;
19636 }
19637
19638
19639 static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
19640 PyObject *resultobj;
19641 wxDateTime *arg1 = (wxDateTime *) 0 ;
19642 int arg2 = (int) wxDateTime::Monday_First ;
19643 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19644 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19645 int result;
19646 bool temp3 = False ;
19647 PyObject * obj0 = 0 ;
19648 PyObject * obj1 = 0 ;
19649 PyObject * obj2 = 0 ;
19650 char *kwnames[] = {
19651 (char *) "self",(char *) "flags",(char *) "tz", NULL
19652 };
19653
19654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
19655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19657 if (obj1) {
19658 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19659 if (PyErr_Occurred()) SWIG_fail;
19660 }
19661 if (obj2) {
19662 {
19663 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19664 temp3 = True;
19665 }
19666 }
19667 {
19668 PyThreadState* __tstate = wxPyBeginAllowThreads();
19669 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19670
19671 wxPyEndAllowThreads(__tstate);
19672 if (PyErr_Occurred()) SWIG_fail;
19673 }
19674 resultobj = SWIG_FromInt((int)result);
19675 {
19676 if (temp3) delete arg3;
19677 }
19678 return resultobj;
19679 fail:
19680 {
19681 if (temp3) delete arg3;
19682 }
19683 return NULL;
19684 }
19685
19686
19687 static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19688 PyObject *resultobj;
19689 wxDateTime *arg1 = (wxDateTime *) 0 ;
19690 int arg2 = (int) wxDateTime::Country_Default ;
19691 bool result;
19692 PyObject * obj0 = 0 ;
19693 PyObject * obj1 = 0 ;
19694 char *kwnames[] = {
19695 (char *) "self",(char *) "country", NULL
19696 };
19697
19698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail;
19699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19701 if (obj1) {
19702 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
19703 if (PyErr_Occurred()) SWIG_fail;
19704 }
19705 {
19706 PyThreadState* __tstate = wxPyBeginAllowThreads();
19707 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
19708
19709 wxPyEndAllowThreads(__tstate);
19710 if (PyErr_Occurred()) SWIG_fail;
19711 }
19712 {
19713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19714 }
19715 return resultobj;
19716 fail:
19717 return NULL;
19718 }
19719
19720
19721 static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19722 PyObject *resultobj;
19723 wxDateTime *arg1 = (wxDateTime *) 0 ;
19724 wxDateTime *arg2 = 0 ;
19725 bool result;
19726 PyObject * obj0 = 0 ;
19727 PyObject * obj1 = 0 ;
19728 char *kwnames[] = {
19729 (char *) "self",(char *) "datetime", NULL
19730 };
19731
19732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
19733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19735 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19736 SWIG_POINTER_EXCEPTION | 0)) == -1)
19737 SWIG_fail;
19738 if (arg2 == NULL) {
19739 PyErr_SetString(PyExc_TypeError,"null reference");
19740 SWIG_fail;
19741 }
19742 {
19743 PyThreadState* __tstate = wxPyBeginAllowThreads();
19744 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
19745
19746 wxPyEndAllowThreads(__tstate);
19747 if (PyErr_Occurred()) SWIG_fail;
19748 }
19749 {
19750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19751 }
19752 return resultobj;
19753 fail:
19754 return NULL;
19755 }
19756
19757
19758 static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19759 PyObject *resultobj;
19760 wxDateTime *arg1 = (wxDateTime *) 0 ;
19761 wxDateTime *arg2 = 0 ;
19762 bool result;
19763 PyObject * obj0 = 0 ;
19764 PyObject * obj1 = 0 ;
19765 char *kwnames[] = {
19766 (char *) "self",(char *) "datetime", NULL
19767 };
19768
19769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
19770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19772 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19773 SWIG_POINTER_EXCEPTION | 0)) == -1)
19774 SWIG_fail;
19775 if (arg2 == NULL) {
19776 PyErr_SetString(PyExc_TypeError,"null reference");
19777 SWIG_fail;
19778 }
19779 {
19780 PyThreadState* __tstate = wxPyBeginAllowThreads();
19781 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
19782
19783 wxPyEndAllowThreads(__tstate);
19784 if (PyErr_Occurred()) SWIG_fail;
19785 }
19786 {
19787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19788 }
19789 return resultobj;
19790 fail:
19791 return NULL;
19792 }
19793
19794
19795 static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19796 PyObject *resultobj;
19797 wxDateTime *arg1 = (wxDateTime *) 0 ;
19798 wxDateTime *arg2 = 0 ;
19799 bool result;
19800 PyObject * obj0 = 0 ;
19801 PyObject * obj1 = 0 ;
19802 char *kwnames[] = {
19803 (char *) "self",(char *) "datetime", NULL
19804 };
19805
19806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
19807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19809 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19810 SWIG_POINTER_EXCEPTION | 0)) == -1)
19811 SWIG_fail;
19812 if (arg2 == NULL) {
19813 PyErr_SetString(PyExc_TypeError,"null reference");
19814 SWIG_fail;
19815 }
19816 {
19817 PyThreadState* __tstate = wxPyBeginAllowThreads();
19818 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
19819
19820 wxPyEndAllowThreads(__tstate);
19821 if (PyErr_Occurred()) SWIG_fail;
19822 }
19823 {
19824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19825 }
19826 return resultobj;
19827 fail:
19828 return NULL;
19829 }
19830
19831
19832 static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19833 PyObject *resultobj;
19834 wxDateTime *arg1 = (wxDateTime *) 0 ;
19835 wxDateTime *arg2 = 0 ;
19836 wxDateTime *arg3 = 0 ;
19837 bool result;
19838 PyObject * obj0 = 0 ;
19839 PyObject * obj1 = 0 ;
19840 PyObject * obj2 = 0 ;
19841 char *kwnames[] = {
19842 (char *) "self",(char *) "t1",(char *) "t2", NULL
19843 };
19844
19845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19848 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19849 SWIG_POINTER_EXCEPTION | 0)) == -1)
19850 SWIG_fail;
19851 if (arg2 == NULL) {
19852 PyErr_SetString(PyExc_TypeError,"null reference");
19853 SWIG_fail;
19854 }
19855 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19856 SWIG_POINTER_EXCEPTION | 0)) == -1)
19857 SWIG_fail;
19858 if (arg3 == NULL) {
19859 PyErr_SetString(PyExc_TypeError,"null reference");
19860 SWIG_fail;
19861 }
19862 {
19863 PyThreadState* __tstate = wxPyBeginAllowThreads();
19864 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19865
19866 wxPyEndAllowThreads(__tstate);
19867 if (PyErr_Occurred()) SWIG_fail;
19868 }
19869 {
19870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19871 }
19872 return resultobj;
19873 fail:
19874 return NULL;
19875 }
19876
19877
19878 static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19879 PyObject *resultobj;
19880 wxDateTime *arg1 = (wxDateTime *) 0 ;
19881 wxDateTime *arg2 = 0 ;
19882 wxDateTime *arg3 = 0 ;
19883 bool result;
19884 PyObject * obj0 = 0 ;
19885 PyObject * obj1 = 0 ;
19886 PyObject * obj2 = 0 ;
19887 char *kwnames[] = {
19888 (char *) "self",(char *) "t1",(char *) "t2", NULL
19889 };
19890
19891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19894 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19895 SWIG_POINTER_EXCEPTION | 0)) == -1)
19896 SWIG_fail;
19897 if (arg2 == NULL) {
19898 PyErr_SetString(PyExc_TypeError,"null reference");
19899 SWIG_fail;
19900 }
19901 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19902 SWIG_POINTER_EXCEPTION | 0)) == -1)
19903 SWIG_fail;
19904 if (arg3 == NULL) {
19905 PyErr_SetString(PyExc_TypeError,"null reference");
19906 SWIG_fail;
19907 }
19908 {
19909 PyThreadState* __tstate = wxPyBeginAllowThreads();
19910 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19911
19912 wxPyEndAllowThreads(__tstate);
19913 if (PyErr_Occurred()) SWIG_fail;
19914 }
19915 {
19916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19917 }
19918 return resultobj;
19919 fail:
19920 return NULL;
19921 }
19922
19923
19924 static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) {
19925 PyObject *resultobj;
19926 wxDateTime *arg1 = (wxDateTime *) 0 ;
19927 wxDateTime *arg2 = 0 ;
19928 bool result;
19929 PyObject * obj0 = 0 ;
19930 PyObject * obj1 = 0 ;
19931 char *kwnames[] = {
19932 (char *) "self",(char *) "dt", NULL
19933 };
19934
19935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
19936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19938 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19939 SWIG_POINTER_EXCEPTION | 0)) == -1)
19940 SWIG_fail;
19941 if (arg2 == NULL) {
19942 PyErr_SetString(PyExc_TypeError,"null reference");
19943 SWIG_fail;
19944 }
19945 {
19946 PyThreadState* __tstate = wxPyBeginAllowThreads();
19947 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
19948
19949 wxPyEndAllowThreads(__tstate);
19950 if (PyErr_Occurred()) SWIG_fail;
19951 }
19952 {
19953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19954 }
19955 return resultobj;
19956 fail:
19957 return NULL;
19958 }
19959
19960
19961 static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) {
19962 PyObject *resultobj;
19963 wxDateTime *arg1 = (wxDateTime *) 0 ;
19964 wxDateTime *arg2 = 0 ;
19965 bool result;
19966 PyObject * obj0 = 0 ;
19967 PyObject * obj1 = 0 ;
19968 char *kwnames[] = {
19969 (char *) "self",(char *) "dt", NULL
19970 };
19971
19972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
19973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19975 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19976 SWIG_POINTER_EXCEPTION | 0)) == -1)
19977 SWIG_fail;
19978 if (arg2 == NULL) {
19979 PyErr_SetString(PyExc_TypeError,"null reference");
19980 SWIG_fail;
19981 }
19982 {
19983 PyThreadState* __tstate = wxPyBeginAllowThreads();
19984 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
19985
19986 wxPyEndAllowThreads(__tstate);
19987 if (PyErr_Occurred()) SWIG_fail;
19988 }
19989 {
19990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19991 }
19992 return resultobj;
19993 fail:
19994 return NULL;
19995 }
19996
19997
19998 static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19999 PyObject *resultobj;
20000 wxDateTime *arg1 = (wxDateTime *) 0 ;
20001 wxDateTime *arg2 = 0 ;
20002 wxTimeSpan *arg3 = 0 ;
20003 bool result;
20004 PyObject * obj0 = 0 ;
20005 PyObject * obj1 = 0 ;
20006 PyObject * obj2 = 0 ;
20007 char *kwnames[] = {
20008 (char *) "self",(char *) "dt",(char *) "ts", NULL
20009 };
20010
20011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
20012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20014 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20015 SWIG_POINTER_EXCEPTION | 0)) == -1)
20016 SWIG_fail;
20017 if (arg2 == NULL) {
20018 PyErr_SetString(PyExc_TypeError,"null reference");
20019 SWIG_fail;
20020 }
20021 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan,
20022 SWIG_POINTER_EXCEPTION | 0)) == -1)
20023 SWIG_fail;
20024 if (arg3 == NULL) {
20025 PyErr_SetString(PyExc_TypeError,"null reference");
20026 SWIG_fail;
20027 }
20028 {
20029 PyThreadState* __tstate = wxPyBeginAllowThreads();
20030 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
20031
20032 wxPyEndAllowThreads(__tstate);
20033 if (PyErr_Occurred()) SWIG_fail;
20034 }
20035 {
20036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20037 }
20038 return resultobj;
20039 fail:
20040 return NULL;
20041 }
20042
20043
20044 static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) {
20045 PyObject *resultobj;
20046 wxDateTime *arg1 = (wxDateTime *) 0 ;
20047 wxTimeSpan *arg2 = 0 ;
20048 wxDateTime *result;
20049 PyObject * obj0 = 0 ;
20050 PyObject * obj1 = 0 ;
20051 char *kwnames[] = {
20052 (char *) "self",(char *) "diff", NULL
20053 };
20054
20055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
20056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20058 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20059 SWIG_POINTER_EXCEPTION | 0)) == -1)
20060 SWIG_fail;
20061 if (arg2 == NULL) {
20062 PyErr_SetString(PyExc_TypeError,"null reference");
20063 SWIG_fail;
20064 }
20065 {
20066 PyThreadState* __tstate = wxPyBeginAllowThreads();
20067 {
20068 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
20069 result = (wxDateTime *) &_result_ref;
20070 }
20071
20072 wxPyEndAllowThreads(__tstate);
20073 if (PyErr_Occurred()) SWIG_fail;
20074 }
20075 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20076 return resultobj;
20077 fail:
20078 return NULL;
20079 }
20080
20081
20082 static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) {
20083 PyObject *resultobj;
20084 wxDateTime *arg1 = (wxDateTime *) 0 ;
20085 wxDateSpan *arg2 = 0 ;
20086 wxDateTime *result;
20087 PyObject * obj0 = 0 ;
20088 PyObject * obj1 = 0 ;
20089 char *kwnames[] = {
20090 (char *) "self",(char *) "diff", NULL
20091 };
20092
20093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
20094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20096 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20097 SWIG_POINTER_EXCEPTION | 0)) == -1)
20098 SWIG_fail;
20099 if (arg2 == NULL) {
20100 PyErr_SetString(PyExc_TypeError,"null reference");
20101 SWIG_fail;
20102 }
20103 {
20104 PyThreadState* __tstate = wxPyBeginAllowThreads();
20105 {
20106 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
20107 result = (wxDateTime *) &_result_ref;
20108 }
20109
20110 wxPyEndAllowThreads(__tstate);
20111 if (PyErr_Occurred()) SWIG_fail;
20112 }
20113 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20114 return resultobj;
20115 fail:
20116 return NULL;
20117 }
20118
20119
20120 static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) {
20121 PyObject *resultobj;
20122 wxDateTime *arg1 = (wxDateTime *) 0 ;
20123 wxTimeSpan *arg2 = 0 ;
20124 wxDateTime *result;
20125 PyObject * obj0 = 0 ;
20126 PyObject * obj1 = 0 ;
20127 char *kwnames[] = {
20128 (char *) "self",(char *) "diff", NULL
20129 };
20130
20131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
20132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20134 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20135 SWIG_POINTER_EXCEPTION | 0)) == -1)
20136 SWIG_fail;
20137 if (arg2 == NULL) {
20138 PyErr_SetString(PyExc_TypeError,"null reference");
20139 SWIG_fail;
20140 }
20141 {
20142 PyThreadState* __tstate = wxPyBeginAllowThreads();
20143 {
20144 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
20145 result = (wxDateTime *) &_result_ref;
20146 }
20147
20148 wxPyEndAllowThreads(__tstate);
20149 if (PyErr_Occurred()) SWIG_fail;
20150 }
20151 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20152 return resultobj;
20153 fail:
20154 return NULL;
20155 }
20156
20157
20158 static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) {
20159 PyObject *resultobj;
20160 wxDateTime *arg1 = (wxDateTime *) 0 ;
20161 wxDateSpan *arg2 = 0 ;
20162 wxDateTime *result;
20163 PyObject * obj0 = 0 ;
20164 PyObject * obj1 = 0 ;
20165 char *kwnames[] = {
20166 (char *) "self",(char *) "diff", NULL
20167 };
20168
20169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
20170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20172 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20173 SWIG_POINTER_EXCEPTION | 0)) == -1)
20174 SWIG_fail;
20175 if (arg2 == NULL) {
20176 PyErr_SetString(PyExc_TypeError,"null reference");
20177 SWIG_fail;
20178 }
20179 {
20180 PyThreadState* __tstate = wxPyBeginAllowThreads();
20181 {
20182 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
20183 result = (wxDateTime *) &_result_ref;
20184 }
20185
20186 wxPyEndAllowThreads(__tstate);
20187 if (PyErr_Occurred()) SWIG_fail;
20188 }
20189 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20190 return resultobj;
20191 fail:
20192 return NULL;
20193 }
20194
20195
20196 static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
20197 PyObject *resultobj;
20198 wxDateTime *arg1 = (wxDateTime *) 0 ;
20199 wxDateTime *arg2 = 0 ;
20200 wxTimeSpan result;
20201 PyObject * obj0 = 0 ;
20202 PyObject * obj1 = 0 ;
20203 char *kwnames[] = {
20204 (char *) "self",(char *) "dt", NULL
20205 };
20206
20207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
20208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20210 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20211 SWIG_POINTER_EXCEPTION | 0)) == -1)
20212 SWIG_fail;
20213 if (arg2 == NULL) {
20214 PyErr_SetString(PyExc_TypeError,"null reference");
20215 SWIG_fail;
20216 }
20217 {
20218 PyThreadState* __tstate = wxPyBeginAllowThreads();
20219 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
20220
20221 wxPyEndAllowThreads(__tstate);
20222 if (PyErr_Occurred()) SWIG_fail;
20223 }
20224 {
20225 wxTimeSpan * resultptr;
20226 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20227 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20228 }
20229 return resultobj;
20230 fail:
20231 return NULL;
20232 }
20233
20234
20235 static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) {
20236 PyObject *resultobj;
20237 wxDateTime *arg1 = (wxDateTime *) 0 ;
20238 wxTimeSpan *arg2 = 0 ;
20239 wxDateTime *result;
20240 PyObject * obj0 = 0 ;
20241 PyObject * obj1 = 0 ;
20242
20243 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20246 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20247 SWIG_POINTER_EXCEPTION | 0)) == -1)
20248 SWIG_fail;
20249 if (arg2 == NULL) {
20250 PyErr_SetString(PyExc_TypeError,"null reference");
20251 SWIG_fail;
20252 }
20253 {
20254 PyThreadState* __tstate = wxPyBeginAllowThreads();
20255 {
20256 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
20257 result = (wxDateTime *) &_result_ref;
20258 }
20259
20260 wxPyEndAllowThreads(__tstate);
20261 if (PyErr_Occurred()) SWIG_fail;
20262 }
20263 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20264 return resultobj;
20265 fail:
20266 return NULL;
20267 }
20268
20269
20270 static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) {
20271 PyObject *resultobj;
20272 wxDateTime *arg1 = (wxDateTime *) 0 ;
20273 wxDateSpan *arg2 = 0 ;
20274 wxDateTime *result;
20275 PyObject * obj0 = 0 ;
20276 PyObject * obj1 = 0 ;
20277
20278 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20281 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20282 SWIG_POINTER_EXCEPTION | 0)) == -1)
20283 SWIG_fail;
20284 if (arg2 == NULL) {
20285 PyErr_SetString(PyExc_TypeError,"null reference");
20286 SWIG_fail;
20287 }
20288 {
20289 PyThreadState* __tstate = wxPyBeginAllowThreads();
20290 {
20291 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
20292 result = (wxDateTime *) &_result_ref;
20293 }
20294
20295 wxPyEndAllowThreads(__tstate);
20296 if (PyErr_Occurred()) SWIG_fail;
20297 }
20298 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20299 return resultobj;
20300 fail:
20301 return NULL;
20302 }
20303
20304
20305 static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
20306 int argc;
20307 PyObject *argv[3];
20308 int ii;
20309
20310 argc = PyObject_Length(args);
20311 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20312 argv[ii] = PyTuple_GetItem(args,ii);
20313 }
20314 if (argc == 2) {
20315 int _v;
20316 {
20317 void *ptr;
20318 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20319 _v = 0;
20320 PyErr_Clear();
20321 } else {
20322 _v = 1;
20323 }
20324 }
20325 if (_v) {
20326 {
20327 void *ptr;
20328 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20329 _v = 0;
20330 PyErr_Clear();
20331 } else {
20332 _v = 1;
20333 }
20334 }
20335 if (_v) {
20336 return _wrap_DateTime___iadd____SWIG_0(self,args);
20337 }
20338 }
20339 }
20340 if (argc == 2) {
20341 int _v;
20342 {
20343 void *ptr;
20344 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20345 _v = 0;
20346 PyErr_Clear();
20347 } else {
20348 _v = 1;
20349 }
20350 }
20351 if (_v) {
20352 {
20353 void *ptr;
20354 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20355 _v = 0;
20356 PyErr_Clear();
20357 } else {
20358 _v = 1;
20359 }
20360 }
20361 if (_v) {
20362 return _wrap_DateTime___iadd____SWIG_1(self,args);
20363 }
20364 }
20365 }
20366
20367 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
20368 return NULL;
20369 }
20370
20371
20372 static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) {
20373 PyObject *resultobj;
20374 wxDateTime *arg1 = (wxDateTime *) 0 ;
20375 wxTimeSpan *arg2 = 0 ;
20376 wxDateTime *result;
20377 PyObject * obj0 = 0 ;
20378 PyObject * obj1 = 0 ;
20379
20380 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20383 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20384 SWIG_POINTER_EXCEPTION | 0)) == -1)
20385 SWIG_fail;
20386 if (arg2 == NULL) {
20387 PyErr_SetString(PyExc_TypeError,"null reference");
20388 SWIG_fail;
20389 }
20390 {
20391 PyThreadState* __tstate = wxPyBeginAllowThreads();
20392 {
20393 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
20394 result = (wxDateTime *) &_result_ref;
20395 }
20396
20397 wxPyEndAllowThreads(__tstate);
20398 if (PyErr_Occurred()) SWIG_fail;
20399 }
20400 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20401 return resultobj;
20402 fail:
20403 return NULL;
20404 }
20405
20406
20407 static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) {
20408 PyObject *resultobj;
20409 wxDateTime *arg1 = (wxDateTime *) 0 ;
20410 wxDateSpan *arg2 = 0 ;
20411 wxDateTime *result;
20412 PyObject * obj0 = 0 ;
20413 PyObject * obj1 = 0 ;
20414
20415 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20418 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20419 SWIG_POINTER_EXCEPTION | 0)) == -1)
20420 SWIG_fail;
20421 if (arg2 == NULL) {
20422 PyErr_SetString(PyExc_TypeError,"null reference");
20423 SWIG_fail;
20424 }
20425 {
20426 PyThreadState* __tstate = wxPyBeginAllowThreads();
20427 {
20428 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
20429 result = (wxDateTime *) &_result_ref;
20430 }
20431
20432 wxPyEndAllowThreads(__tstate);
20433 if (PyErr_Occurred()) SWIG_fail;
20434 }
20435 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20436 return resultobj;
20437 fail:
20438 return NULL;
20439 }
20440
20441
20442 static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
20443 int argc;
20444 PyObject *argv[3];
20445 int ii;
20446
20447 argc = PyObject_Length(args);
20448 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20449 argv[ii] = PyTuple_GetItem(args,ii);
20450 }
20451 if (argc == 2) {
20452 int _v;
20453 {
20454 void *ptr;
20455 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20456 _v = 0;
20457 PyErr_Clear();
20458 } else {
20459 _v = 1;
20460 }
20461 }
20462 if (_v) {
20463 {
20464 void *ptr;
20465 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20466 _v = 0;
20467 PyErr_Clear();
20468 } else {
20469 _v = 1;
20470 }
20471 }
20472 if (_v) {
20473 return _wrap_DateTime___isub____SWIG_0(self,args);
20474 }
20475 }
20476 }
20477 if (argc == 2) {
20478 int _v;
20479 {
20480 void *ptr;
20481 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20482 _v = 0;
20483 PyErr_Clear();
20484 } else {
20485 _v = 1;
20486 }
20487 }
20488 if (_v) {
20489 {
20490 void *ptr;
20491 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20492 _v = 0;
20493 PyErr_Clear();
20494 } else {
20495 _v = 1;
20496 }
20497 }
20498 if (_v) {
20499 return _wrap_DateTime___isub____SWIG_1(self,args);
20500 }
20501 }
20502 }
20503
20504 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
20505 return NULL;
20506 }
20507
20508
20509 static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) {
20510 PyObject *resultobj;
20511 wxDateTime *arg1 = (wxDateTime *) 0 ;
20512 wxTimeSpan *arg2 = 0 ;
20513 wxDateTime result;
20514 PyObject * obj0 = 0 ;
20515 PyObject * obj1 = 0 ;
20516
20517 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20520 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20521 SWIG_POINTER_EXCEPTION | 0)) == -1)
20522 SWIG_fail;
20523 if (arg2 == NULL) {
20524 PyErr_SetString(PyExc_TypeError,"null reference");
20525 SWIG_fail;
20526 }
20527 {
20528 PyThreadState* __tstate = wxPyBeginAllowThreads();
20529 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
20530
20531 wxPyEndAllowThreads(__tstate);
20532 if (PyErr_Occurred()) SWIG_fail;
20533 }
20534 {
20535 wxDateTime * resultptr;
20536 resultptr = new wxDateTime((wxDateTime &) result);
20537 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20538 }
20539 return resultobj;
20540 fail:
20541 return NULL;
20542 }
20543
20544
20545 static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) {
20546 PyObject *resultobj;
20547 wxDateTime *arg1 = (wxDateTime *) 0 ;
20548 wxDateSpan *arg2 = 0 ;
20549 wxDateTime result;
20550 PyObject * obj0 = 0 ;
20551 PyObject * obj1 = 0 ;
20552
20553 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20556 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20557 SWIG_POINTER_EXCEPTION | 0)) == -1)
20558 SWIG_fail;
20559 if (arg2 == NULL) {
20560 PyErr_SetString(PyExc_TypeError,"null reference");
20561 SWIG_fail;
20562 }
20563 {
20564 PyThreadState* __tstate = wxPyBeginAllowThreads();
20565 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
20566
20567 wxPyEndAllowThreads(__tstate);
20568 if (PyErr_Occurred()) SWIG_fail;
20569 }
20570 {
20571 wxDateTime * resultptr;
20572 resultptr = new wxDateTime((wxDateTime &) result);
20573 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20574 }
20575 return resultobj;
20576 fail:
20577 return NULL;
20578 }
20579
20580
20581 static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
20582 int argc;
20583 PyObject *argv[3];
20584 int ii;
20585
20586 argc = PyObject_Length(args);
20587 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20588 argv[ii] = PyTuple_GetItem(args,ii);
20589 }
20590 if (argc == 2) {
20591 int _v;
20592 {
20593 void *ptr;
20594 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20595 _v = 0;
20596 PyErr_Clear();
20597 } else {
20598 _v = 1;
20599 }
20600 }
20601 if (_v) {
20602 {
20603 void *ptr;
20604 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20605 _v = 0;
20606 PyErr_Clear();
20607 } else {
20608 _v = 1;
20609 }
20610 }
20611 if (_v) {
20612 return _wrap_DateTime___add____SWIG_0(self,args);
20613 }
20614 }
20615 }
20616 if (argc == 2) {
20617 int _v;
20618 {
20619 void *ptr;
20620 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20621 _v = 0;
20622 PyErr_Clear();
20623 } else {
20624 _v = 1;
20625 }
20626 }
20627 if (_v) {
20628 {
20629 void *ptr;
20630 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20631 _v = 0;
20632 PyErr_Clear();
20633 } else {
20634 _v = 1;
20635 }
20636 }
20637 if (_v) {
20638 return _wrap_DateTime___add____SWIG_1(self,args);
20639 }
20640 }
20641 }
20642
20643 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
20644 return NULL;
20645 }
20646
20647
20648 static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) {
20649 PyObject *resultobj;
20650 wxDateTime *arg1 = (wxDateTime *) 0 ;
20651 wxDateTime *arg2 = 0 ;
20652 wxTimeSpan result;
20653 PyObject * obj0 = 0 ;
20654 PyObject * obj1 = 0 ;
20655
20656 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20659 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20660 SWIG_POINTER_EXCEPTION | 0)) == -1)
20661 SWIG_fail;
20662 if (arg2 == NULL) {
20663 PyErr_SetString(PyExc_TypeError,"null reference");
20664 SWIG_fail;
20665 }
20666 {
20667 PyThreadState* __tstate = wxPyBeginAllowThreads();
20668 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
20669
20670 wxPyEndAllowThreads(__tstate);
20671 if (PyErr_Occurred()) SWIG_fail;
20672 }
20673 {
20674 wxTimeSpan * resultptr;
20675 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20676 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20677 }
20678 return resultobj;
20679 fail:
20680 return NULL;
20681 }
20682
20683
20684 static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) {
20685 PyObject *resultobj;
20686 wxDateTime *arg1 = (wxDateTime *) 0 ;
20687 wxTimeSpan *arg2 = 0 ;
20688 wxDateTime result;
20689 PyObject * obj0 = 0 ;
20690 PyObject * obj1 = 0 ;
20691
20692 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20695 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20696 SWIG_POINTER_EXCEPTION | 0)) == -1)
20697 SWIG_fail;
20698 if (arg2 == NULL) {
20699 PyErr_SetString(PyExc_TypeError,"null reference");
20700 SWIG_fail;
20701 }
20702 {
20703 PyThreadState* __tstate = wxPyBeginAllowThreads();
20704 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
20705
20706 wxPyEndAllowThreads(__tstate);
20707 if (PyErr_Occurred()) SWIG_fail;
20708 }
20709 {
20710 wxDateTime * resultptr;
20711 resultptr = new wxDateTime((wxDateTime &) result);
20712 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20713 }
20714 return resultobj;
20715 fail:
20716 return NULL;
20717 }
20718
20719
20720 static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) {
20721 PyObject *resultobj;
20722 wxDateTime *arg1 = (wxDateTime *) 0 ;
20723 wxDateSpan *arg2 = 0 ;
20724 wxDateTime result;
20725 PyObject * obj0 = 0 ;
20726 PyObject * obj1 = 0 ;
20727
20728 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20731 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20732 SWIG_POINTER_EXCEPTION | 0)) == -1)
20733 SWIG_fail;
20734 if (arg2 == NULL) {
20735 PyErr_SetString(PyExc_TypeError,"null reference");
20736 SWIG_fail;
20737 }
20738 {
20739 PyThreadState* __tstate = wxPyBeginAllowThreads();
20740 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
20741
20742 wxPyEndAllowThreads(__tstate);
20743 if (PyErr_Occurred()) SWIG_fail;
20744 }
20745 {
20746 wxDateTime * resultptr;
20747 resultptr = new wxDateTime((wxDateTime &) result);
20748 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20749 }
20750 return resultobj;
20751 fail:
20752 return NULL;
20753 }
20754
20755
20756 static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
20757 int argc;
20758 PyObject *argv[3];
20759 int ii;
20760
20761 argc = PyObject_Length(args);
20762 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20763 argv[ii] = PyTuple_GetItem(args,ii);
20764 }
20765 if (argc == 2) {
20766 int _v;
20767 {
20768 void *ptr;
20769 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20770 _v = 0;
20771 PyErr_Clear();
20772 } else {
20773 _v = 1;
20774 }
20775 }
20776 if (_v) {
20777 {
20778 void *ptr;
20779 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20780 _v = 0;
20781 PyErr_Clear();
20782 } else {
20783 _v = 1;
20784 }
20785 }
20786 if (_v) {
20787 return _wrap_DateTime___sub____SWIG_0(self,args);
20788 }
20789 }
20790 }
20791 if (argc == 2) {
20792 int _v;
20793 {
20794 void *ptr;
20795 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20796 _v = 0;
20797 PyErr_Clear();
20798 } else {
20799 _v = 1;
20800 }
20801 }
20802 if (_v) {
20803 {
20804 void *ptr;
20805 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20806 _v = 0;
20807 PyErr_Clear();
20808 } else {
20809 _v = 1;
20810 }
20811 }
20812 if (_v) {
20813 return _wrap_DateTime___sub____SWIG_1(self,args);
20814 }
20815 }
20816 }
20817 if (argc == 2) {
20818 int _v;
20819 {
20820 void *ptr;
20821 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20822 _v = 0;
20823 PyErr_Clear();
20824 } else {
20825 _v = 1;
20826 }
20827 }
20828 if (_v) {
20829 {
20830 void *ptr;
20831 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20832 _v = 0;
20833 PyErr_Clear();
20834 } else {
20835 _v = 1;
20836 }
20837 }
20838 if (_v) {
20839 return _wrap_DateTime___sub____SWIG_2(self,args);
20840 }
20841 }
20842 }
20843
20844 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
20845 return NULL;
20846 }
20847
20848
20849 static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) {
20850 PyObject *resultobj;
20851 wxDateTime *arg1 = (wxDateTime *) 0 ;
20852 wxDateTime *arg2 = (wxDateTime *) 0 ;
20853 bool result;
20854 PyObject * obj0 = 0 ;
20855 PyObject * obj1 = 0 ;
20856
20857 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
20858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20860 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20862 {
20863 PyThreadState* __tstate = wxPyBeginAllowThreads();
20864 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
20865
20866 wxPyEndAllowThreads(__tstate);
20867 if (PyErr_Occurred()) SWIG_fail;
20868 }
20869 {
20870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20871 }
20872 return resultobj;
20873 fail:
20874 return NULL;
20875 }
20876
20877
20878 static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) {
20879 PyObject *resultobj;
20880 wxDateTime *arg1 = (wxDateTime *) 0 ;
20881 wxDateTime *arg2 = (wxDateTime *) 0 ;
20882 bool result;
20883 PyObject * obj0 = 0 ;
20884 PyObject * obj1 = 0 ;
20885
20886 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
20887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20889 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20891 {
20892 PyThreadState* __tstate = wxPyBeginAllowThreads();
20893 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
20894
20895 wxPyEndAllowThreads(__tstate);
20896 if (PyErr_Occurred()) SWIG_fail;
20897 }
20898 {
20899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20900 }
20901 return resultobj;
20902 fail:
20903 return NULL;
20904 }
20905
20906
20907 static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) {
20908 PyObject *resultobj;
20909 wxDateTime *arg1 = (wxDateTime *) 0 ;
20910 wxDateTime *arg2 = (wxDateTime *) 0 ;
20911 bool result;
20912 PyObject * obj0 = 0 ;
20913 PyObject * obj1 = 0 ;
20914
20915 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
20916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20918 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20920 {
20921 PyThreadState* __tstate = wxPyBeginAllowThreads();
20922 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
20923
20924 wxPyEndAllowThreads(__tstate);
20925 if (PyErr_Occurred()) SWIG_fail;
20926 }
20927 {
20928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20929 }
20930 return resultobj;
20931 fail:
20932 return NULL;
20933 }
20934
20935
20936 static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) {
20937 PyObject *resultobj;
20938 wxDateTime *arg1 = (wxDateTime *) 0 ;
20939 wxDateTime *arg2 = (wxDateTime *) 0 ;
20940 bool result;
20941 PyObject * obj0 = 0 ;
20942 PyObject * obj1 = 0 ;
20943
20944 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail;
20945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20947 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20949 {
20950 PyThreadState* __tstate = wxPyBeginAllowThreads();
20951 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
20952
20953 wxPyEndAllowThreads(__tstate);
20954 if (PyErr_Occurred()) SWIG_fail;
20955 }
20956 {
20957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20958 }
20959 return resultobj;
20960 fail:
20961 return NULL;
20962 }
20963
20964
20965 static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) {
20966 PyObject *resultobj;
20967 wxDateTime *arg1 = (wxDateTime *) 0 ;
20968 wxDateTime *arg2 = (wxDateTime *) 0 ;
20969 bool result;
20970 PyObject * obj0 = 0 ;
20971 PyObject * obj1 = 0 ;
20972
20973 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail;
20974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20976 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20978 {
20979 PyThreadState* __tstate = wxPyBeginAllowThreads();
20980 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
20981
20982 wxPyEndAllowThreads(__tstate);
20983 if (PyErr_Occurred()) SWIG_fail;
20984 }
20985 {
20986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20987 }
20988 return resultobj;
20989 fail:
20990 return NULL;
20991 }
20992
20993
20994 static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) {
20995 PyObject *resultobj;
20996 wxDateTime *arg1 = (wxDateTime *) 0 ;
20997 wxDateTime *arg2 = (wxDateTime *) 0 ;
20998 bool result;
20999 PyObject * obj0 = 0 ;
21000 PyObject * obj1 = 0 ;
21001
21002 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail;
21003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21005 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21007 {
21008 PyThreadState* __tstate = wxPyBeginAllowThreads();
21009 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
21010
21011 wxPyEndAllowThreads(__tstate);
21012 if (PyErr_Occurred()) SWIG_fail;
21013 }
21014 {
21015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21016 }
21017 return resultobj;
21018 fail:
21019 return NULL;
21020 }
21021
21022
21023 static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) {
21024 PyObject *resultobj;
21025 wxDateTime *arg1 = (wxDateTime *) 0 ;
21026 wxString *arg2 = 0 ;
21027 int result;
21028 bool temp2 = False ;
21029 PyObject * obj0 = 0 ;
21030 PyObject * obj1 = 0 ;
21031 char *kwnames[] = {
21032 (char *) "self",(char *) "date", NULL
21033 };
21034
21035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
21036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21038 {
21039 arg2 = wxString_in_helper(obj1);
21040 if (arg2 == NULL) SWIG_fail;
21041 temp2 = True;
21042 }
21043 {
21044 PyThreadState* __tstate = wxPyBeginAllowThreads();
21045 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
21046
21047 wxPyEndAllowThreads(__tstate);
21048 if (PyErr_Occurred()) SWIG_fail;
21049 }
21050 resultobj = SWIG_FromInt((int)result);
21051 {
21052 if (temp2)
21053 delete arg2;
21054 }
21055 return resultobj;
21056 fail:
21057 {
21058 if (temp2)
21059 delete arg2;
21060 }
21061 return NULL;
21062 }
21063
21064
21065 static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
21066 PyObject *resultobj;
21067 wxDateTime *arg1 = (wxDateTime *) 0 ;
21068 wxString *arg2 = 0 ;
21069 wxString const &arg3_defvalue = wxPyDateFormatStr ;
21070 wxString *arg3 = (wxString *) &arg3_defvalue ;
21071 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
21072 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
21073 int result;
21074 bool temp2 = False ;
21075 bool temp3 = False ;
21076 PyObject * obj0 = 0 ;
21077 PyObject * obj1 = 0 ;
21078 PyObject * obj2 = 0 ;
21079 PyObject * obj3 = 0 ;
21080 char *kwnames[] = {
21081 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
21082 };
21083
21084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21087 {
21088 arg2 = wxString_in_helper(obj1);
21089 if (arg2 == NULL) SWIG_fail;
21090 temp2 = True;
21091 }
21092 if (obj2) {
21093 {
21094 arg3 = wxString_in_helper(obj2);
21095 if (arg3 == NULL) SWIG_fail;
21096 temp3 = True;
21097 }
21098 }
21099 if (obj3) {
21100 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime,
21101 SWIG_POINTER_EXCEPTION | 0)) == -1)
21102 SWIG_fail;
21103 if (arg4 == NULL) {
21104 PyErr_SetString(PyExc_TypeError,"null reference");
21105 SWIG_fail;
21106 }
21107 }
21108 {
21109 PyThreadState* __tstate = wxPyBeginAllowThreads();
21110 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
21111
21112 wxPyEndAllowThreads(__tstate);
21113 if (PyErr_Occurred()) SWIG_fail;
21114 }
21115 resultobj = SWIG_FromInt((int)result);
21116 {
21117 if (temp2)
21118 delete arg2;
21119 }
21120 {
21121 if (temp3)
21122 delete arg3;
21123 }
21124 return resultobj;
21125 fail:
21126 {
21127 if (temp2)
21128 delete arg2;
21129 }
21130 {
21131 if (temp3)
21132 delete arg3;
21133 }
21134 return NULL;
21135 }
21136
21137
21138 static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21139 PyObject *resultobj;
21140 wxDateTime *arg1 = (wxDateTime *) 0 ;
21141 wxString *arg2 = 0 ;
21142 int result;
21143 bool temp2 = False ;
21144 PyObject * obj0 = 0 ;
21145 PyObject * obj1 = 0 ;
21146 char *kwnames[] = {
21147 (char *) "self",(char *) "datetime", NULL
21148 };
21149
21150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
21151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21153 {
21154 arg2 = wxString_in_helper(obj1);
21155 if (arg2 == NULL) SWIG_fail;
21156 temp2 = True;
21157 }
21158 {
21159 PyThreadState* __tstate = wxPyBeginAllowThreads();
21160 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
21161
21162 wxPyEndAllowThreads(__tstate);
21163 if (PyErr_Occurred()) SWIG_fail;
21164 }
21165 resultobj = SWIG_FromInt((int)result);
21166 {
21167 if (temp2)
21168 delete arg2;
21169 }
21170 return resultobj;
21171 fail:
21172 {
21173 if (temp2)
21174 delete arg2;
21175 }
21176 return NULL;
21177 }
21178
21179
21180 static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) {
21181 PyObject *resultobj;
21182 wxDateTime *arg1 = (wxDateTime *) 0 ;
21183 wxString *arg2 = 0 ;
21184 int result;
21185 bool temp2 = False ;
21186 PyObject * obj0 = 0 ;
21187 PyObject * obj1 = 0 ;
21188 char *kwnames[] = {
21189 (char *) "self",(char *) "date", NULL
21190 };
21191
21192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
21193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21195 {
21196 arg2 = wxString_in_helper(obj1);
21197 if (arg2 == NULL) SWIG_fail;
21198 temp2 = True;
21199 }
21200 {
21201 PyThreadState* __tstate = wxPyBeginAllowThreads();
21202 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
21203
21204 wxPyEndAllowThreads(__tstate);
21205 if (PyErr_Occurred()) SWIG_fail;
21206 }
21207 resultobj = SWIG_FromInt((int)result);
21208 {
21209 if (temp2)
21210 delete arg2;
21211 }
21212 return resultobj;
21213 fail:
21214 {
21215 if (temp2)
21216 delete arg2;
21217 }
21218 return NULL;
21219 }
21220
21221
21222 static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21223 PyObject *resultobj;
21224 wxDateTime *arg1 = (wxDateTime *) 0 ;
21225 wxString *arg2 = 0 ;
21226 int result;
21227 bool temp2 = False ;
21228 PyObject * obj0 = 0 ;
21229 PyObject * obj1 = 0 ;
21230 char *kwnames[] = {
21231 (char *) "self",(char *) "time", NULL
21232 };
21233
21234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
21235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21237 {
21238 arg2 = wxString_in_helper(obj1);
21239 if (arg2 == NULL) SWIG_fail;
21240 temp2 = True;
21241 }
21242 {
21243 PyThreadState* __tstate = wxPyBeginAllowThreads();
21244 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
21245
21246 wxPyEndAllowThreads(__tstate);
21247 if (PyErr_Occurred()) SWIG_fail;
21248 }
21249 resultobj = SWIG_FromInt((int)result);
21250 {
21251 if (temp2)
21252 delete arg2;
21253 }
21254 return resultobj;
21255 fail:
21256 {
21257 if (temp2)
21258 delete arg2;
21259 }
21260 return NULL;
21261 }
21262
21263
21264 static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
21265 PyObject *resultobj;
21266 wxDateTime *arg1 = (wxDateTime *) 0 ;
21267 wxString const &arg2_defvalue = wxPyDateFormatStr ;
21268 wxString *arg2 = (wxString *) &arg2_defvalue ;
21269 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
21270 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
21271 wxString result;
21272 bool temp2 = False ;
21273 bool temp3 = False ;
21274 PyObject * obj0 = 0 ;
21275 PyObject * obj1 = 0 ;
21276 PyObject * obj2 = 0 ;
21277 char *kwnames[] = {
21278 (char *) "self",(char *) "format",(char *) "tz", NULL
21279 };
21280
21281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
21282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21284 if (obj1) {
21285 {
21286 arg2 = wxString_in_helper(obj1);
21287 if (arg2 == NULL) SWIG_fail;
21288 temp2 = True;
21289 }
21290 }
21291 if (obj2) {
21292 {
21293 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
21294 temp3 = True;
21295 }
21296 }
21297 {
21298 PyThreadState* __tstate = wxPyBeginAllowThreads();
21299 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
21300
21301 wxPyEndAllowThreads(__tstate);
21302 if (PyErr_Occurred()) SWIG_fail;
21303 }
21304 {
21305 #if wxUSE_UNICODE
21306 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21307 #else
21308 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21309 #endif
21310 }
21311 {
21312 if (temp2)
21313 delete arg2;
21314 }
21315 {
21316 if (temp3) delete arg3;
21317 }
21318 return resultobj;
21319 fail:
21320 {
21321 if (temp2)
21322 delete arg2;
21323 }
21324 {
21325 if (temp3) delete arg3;
21326 }
21327 return NULL;
21328 }
21329
21330
21331 static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) {
21332 PyObject *resultobj;
21333 wxDateTime *arg1 = (wxDateTime *) 0 ;
21334 wxString result;
21335 PyObject * obj0 = 0 ;
21336 char *kwnames[] = {
21337 (char *) "self", NULL
21338 };
21339
21340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
21341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21343 {
21344 PyThreadState* __tstate = wxPyBeginAllowThreads();
21345 result = ((wxDateTime const *)arg1)->FormatDate();
21346
21347 wxPyEndAllowThreads(__tstate);
21348 if (PyErr_Occurred()) SWIG_fail;
21349 }
21350 {
21351 #if wxUSE_UNICODE
21352 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21353 #else
21354 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21355 #endif
21356 }
21357 return resultobj;
21358 fail:
21359 return NULL;
21360 }
21361
21362
21363 static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21364 PyObject *resultobj;
21365 wxDateTime *arg1 = (wxDateTime *) 0 ;
21366 wxString result;
21367 PyObject * obj0 = 0 ;
21368 char *kwnames[] = {
21369 (char *) "self", NULL
21370 };
21371
21372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
21373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21375 {
21376 PyThreadState* __tstate = wxPyBeginAllowThreads();
21377 result = ((wxDateTime const *)arg1)->FormatTime();
21378
21379 wxPyEndAllowThreads(__tstate);
21380 if (PyErr_Occurred()) SWIG_fail;
21381 }
21382 {
21383 #if wxUSE_UNICODE
21384 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21385 #else
21386 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21387 #endif
21388 }
21389 return resultobj;
21390 fail:
21391 return NULL;
21392 }
21393
21394
21395 static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) {
21396 PyObject *resultobj;
21397 wxDateTime *arg1 = (wxDateTime *) 0 ;
21398 wxString result;
21399 PyObject * obj0 = 0 ;
21400 char *kwnames[] = {
21401 (char *) "self", NULL
21402 };
21403
21404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
21405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21407 {
21408 PyThreadState* __tstate = wxPyBeginAllowThreads();
21409 result = ((wxDateTime const *)arg1)->FormatISODate();
21410
21411 wxPyEndAllowThreads(__tstate);
21412 if (PyErr_Occurred()) SWIG_fail;
21413 }
21414 {
21415 #if wxUSE_UNICODE
21416 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21417 #else
21418 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21419 #endif
21420 }
21421 return resultobj;
21422 fail:
21423 return NULL;
21424 }
21425
21426
21427 static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21428 PyObject *resultobj;
21429 wxDateTime *arg1 = (wxDateTime *) 0 ;
21430 wxString result;
21431 PyObject * obj0 = 0 ;
21432 char *kwnames[] = {
21433 (char *) "self", NULL
21434 };
21435
21436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
21437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21439 {
21440 PyThreadState* __tstate = wxPyBeginAllowThreads();
21441 result = ((wxDateTime const *)arg1)->FormatISOTime();
21442
21443 wxPyEndAllowThreads(__tstate);
21444 if (PyErr_Occurred()) SWIG_fail;
21445 }
21446 {
21447 #if wxUSE_UNICODE
21448 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21449 #else
21450 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21451 #endif
21452 }
21453 return resultobj;
21454 fail:
21455 return NULL;
21456 }
21457
21458
21459 static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) {
21460 PyObject *obj;
21461 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21462 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
21463 Py_INCREF(obj);
21464 return Py_BuildValue((char *)"");
21465 }
21466 static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) {
21467 PyObject *resultobj;
21468 long arg1 ;
21469 wxTimeSpan result;
21470 PyObject * obj0 = 0 ;
21471 char *kwnames[] = {
21472 (char *) "sec", NULL
21473 };
21474
21475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
21476 arg1 = (long) SWIG_AsLong(obj0);
21477 if (PyErr_Occurred()) SWIG_fail;
21478 {
21479 PyThreadState* __tstate = wxPyBeginAllowThreads();
21480 result = wxTimeSpan::Seconds(arg1);
21481
21482 wxPyEndAllowThreads(__tstate);
21483 if (PyErr_Occurred()) SWIG_fail;
21484 }
21485 {
21486 wxTimeSpan * resultptr;
21487 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21488 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21489 }
21490 return resultobj;
21491 fail:
21492 return NULL;
21493 }
21494
21495
21496 static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) {
21497 PyObject *resultobj;
21498 wxTimeSpan result;
21499 char *kwnames[] = {
21500 NULL
21501 };
21502
21503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
21504 {
21505 PyThreadState* __tstate = wxPyBeginAllowThreads();
21506 result = wxTimeSpan::Second();
21507
21508 wxPyEndAllowThreads(__tstate);
21509 if (PyErr_Occurred()) SWIG_fail;
21510 }
21511 {
21512 wxTimeSpan * resultptr;
21513 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21514 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21515 }
21516 return resultobj;
21517 fail:
21518 return NULL;
21519 }
21520
21521
21522 static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) {
21523 PyObject *resultobj;
21524 long arg1 ;
21525 wxTimeSpan result;
21526 PyObject * obj0 = 0 ;
21527 char *kwnames[] = {
21528 (char *) "min", NULL
21529 };
21530
21531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
21532 arg1 = (long) SWIG_AsLong(obj0);
21533 if (PyErr_Occurred()) SWIG_fail;
21534 {
21535 PyThreadState* __tstate = wxPyBeginAllowThreads();
21536 result = wxTimeSpan::Minutes(arg1);
21537
21538 wxPyEndAllowThreads(__tstate);
21539 if (PyErr_Occurred()) SWIG_fail;
21540 }
21541 {
21542 wxTimeSpan * resultptr;
21543 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21544 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21545 }
21546 return resultobj;
21547 fail:
21548 return NULL;
21549 }
21550
21551
21552 static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) {
21553 PyObject *resultobj;
21554 wxTimeSpan result;
21555 char *kwnames[] = {
21556 NULL
21557 };
21558
21559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
21560 {
21561 PyThreadState* __tstate = wxPyBeginAllowThreads();
21562 result = wxTimeSpan::Minute();
21563
21564 wxPyEndAllowThreads(__tstate);
21565 if (PyErr_Occurred()) SWIG_fail;
21566 }
21567 {
21568 wxTimeSpan * resultptr;
21569 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21570 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21571 }
21572 return resultobj;
21573 fail:
21574 return NULL;
21575 }
21576
21577
21578 static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) {
21579 PyObject *resultobj;
21580 long arg1 ;
21581 wxTimeSpan result;
21582 PyObject * obj0 = 0 ;
21583 char *kwnames[] = {
21584 (char *) "hours", NULL
21585 };
21586
21587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
21588 arg1 = (long) SWIG_AsLong(obj0);
21589 if (PyErr_Occurred()) SWIG_fail;
21590 {
21591 PyThreadState* __tstate = wxPyBeginAllowThreads();
21592 result = wxTimeSpan::Hours(arg1);
21593
21594 wxPyEndAllowThreads(__tstate);
21595 if (PyErr_Occurred()) SWIG_fail;
21596 }
21597 {
21598 wxTimeSpan * resultptr;
21599 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21600 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21601 }
21602 return resultobj;
21603 fail:
21604 return NULL;
21605 }
21606
21607
21608 static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) {
21609 PyObject *resultobj;
21610 wxTimeSpan result;
21611 char *kwnames[] = {
21612 NULL
21613 };
21614
21615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
21616 {
21617 PyThreadState* __tstate = wxPyBeginAllowThreads();
21618 result = wxTimeSpan::Hour();
21619
21620 wxPyEndAllowThreads(__tstate);
21621 if (PyErr_Occurred()) SWIG_fail;
21622 }
21623 {
21624 wxTimeSpan * resultptr;
21625 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21626 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21627 }
21628 return resultobj;
21629 fail:
21630 return NULL;
21631 }
21632
21633
21634 static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
21635 PyObject *resultobj;
21636 long arg1 ;
21637 wxTimeSpan result;
21638 PyObject * obj0 = 0 ;
21639 char *kwnames[] = {
21640 (char *) "days", NULL
21641 };
21642
21643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
21644 arg1 = (long) SWIG_AsLong(obj0);
21645 if (PyErr_Occurred()) SWIG_fail;
21646 {
21647 PyThreadState* __tstate = wxPyBeginAllowThreads();
21648 result = wxTimeSpan::Days(arg1);
21649
21650 wxPyEndAllowThreads(__tstate);
21651 if (PyErr_Occurred()) SWIG_fail;
21652 }
21653 {
21654 wxTimeSpan * resultptr;
21655 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21656 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21657 }
21658 return resultobj;
21659 fail:
21660 return NULL;
21661 }
21662
21663
21664 static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
21665 PyObject *resultobj;
21666 wxTimeSpan result;
21667 char *kwnames[] = {
21668 NULL
21669 };
21670
21671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
21672 {
21673 PyThreadState* __tstate = wxPyBeginAllowThreads();
21674 result = wxTimeSpan::Day();
21675
21676 wxPyEndAllowThreads(__tstate);
21677 if (PyErr_Occurred()) SWIG_fail;
21678 }
21679 {
21680 wxTimeSpan * resultptr;
21681 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21682 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21683 }
21684 return resultobj;
21685 fail:
21686 return NULL;
21687 }
21688
21689
21690 static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
21691 PyObject *resultobj;
21692 long arg1 ;
21693 wxTimeSpan result;
21694 PyObject * obj0 = 0 ;
21695 char *kwnames[] = {
21696 (char *) "days", NULL
21697 };
21698
21699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
21700 arg1 = (long) SWIG_AsLong(obj0);
21701 if (PyErr_Occurred()) SWIG_fail;
21702 {
21703 PyThreadState* __tstate = wxPyBeginAllowThreads();
21704 result = wxTimeSpan::Weeks(arg1);
21705
21706 wxPyEndAllowThreads(__tstate);
21707 if (PyErr_Occurred()) SWIG_fail;
21708 }
21709 {
21710 wxTimeSpan * resultptr;
21711 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21712 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21713 }
21714 return resultobj;
21715 fail:
21716 return NULL;
21717 }
21718
21719
21720 static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
21721 PyObject *resultobj;
21722 wxTimeSpan result;
21723 char *kwnames[] = {
21724 NULL
21725 };
21726
21727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
21728 {
21729 PyThreadState* __tstate = wxPyBeginAllowThreads();
21730 result = wxTimeSpan::Week();
21731
21732 wxPyEndAllowThreads(__tstate);
21733 if (PyErr_Occurred()) SWIG_fail;
21734 }
21735 {
21736 wxTimeSpan * resultptr;
21737 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21738 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21739 }
21740 return resultobj;
21741 fail:
21742 return NULL;
21743 }
21744
21745
21746 static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21747 PyObject *resultobj;
21748 long arg1 = (long) 0 ;
21749 long arg2 = (long) 0 ;
21750 long arg3 = (long) 0 ;
21751 long arg4 = (long) 0 ;
21752 wxTimeSpan *result;
21753 PyObject * obj0 = 0 ;
21754 PyObject * obj1 = 0 ;
21755 PyObject * obj2 = 0 ;
21756 PyObject * obj3 = 0 ;
21757 char *kwnames[] = {
21758 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
21759 };
21760
21761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21762 if (obj0) {
21763 arg1 = (long) SWIG_AsLong(obj0);
21764 if (PyErr_Occurred()) SWIG_fail;
21765 }
21766 if (obj1) {
21767 arg2 = (long) SWIG_AsLong(obj1);
21768 if (PyErr_Occurred()) SWIG_fail;
21769 }
21770 if (obj2) {
21771 arg3 = (long) SWIG_AsLong(obj2);
21772 if (PyErr_Occurred()) SWIG_fail;
21773 }
21774 if (obj3) {
21775 arg4 = (long) SWIG_AsLong(obj3);
21776 if (PyErr_Occurred()) SWIG_fail;
21777 }
21778 {
21779 PyThreadState* __tstate = wxPyBeginAllowThreads();
21780 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
21781
21782 wxPyEndAllowThreads(__tstate);
21783 if (PyErr_Occurred()) SWIG_fail;
21784 }
21785 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
21786 return resultobj;
21787 fail:
21788 return NULL;
21789 }
21790
21791
21792 static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21793 PyObject *resultobj;
21794 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21795 PyObject * obj0 = 0 ;
21796 char *kwnames[] = {
21797 (char *) "self", NULL
21798 };
21799
21800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
21801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21803 {
21804 PyThreadState* __tstate = wxPyBeginAllowThreads();
21805 delete arg1;
21806
21807 wxPyEndAllowThreads(__tstate);
21808 if (PyErr_Occurred()) SWIG_fail;
21809 }
21810 Py_INCREF(Py_None); resultobj = Py_None;
21811 return resultobj;
21812 fail:
21813 return NULL;
21814 }
21815
21816
21817 static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
21818 PyObject *resultobj;
21819 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21820 wxTimeSpan *arg2 = 0 ;
21821 wxTimeSpan *result;
21822 PyObject * obj0 = 0 ;
21823 PyObject * obj1 = 0 ;
21824 char *kwnames[] = {
21825 (char *) "self",(char *) "diff", NULL
21826 };
21827
21828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
21829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21831 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21832 SWIG_POINTER_EXCEPTION | 0)) == -1)
21833 SWIG_fail;
21834 if (arg2 == NULL) {
21835 PyErr_SetString(PyExc_TypeError,"null reference");
21836 SWIG_fail;
21837 }
21838 {
21839 PyThreadState* __tstate = wxPyBeginAllowThreads();
21840 {
21841 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
21842 result = (wxTimeSpan *) &_result_ref;
21843 }
21844
21845 wxPyEndAllowThreads(__tstate);
21846 if (PyErr_Occurred()) SWIG_fail;
21847 }
21848 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21849 return resultobj;
21850 fail:
21851 return NULL;
21852 }
21853
21854
21855 static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
21856 PyObject *resultobj;
21857 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21858 wxTimeSpan *arg2 = 0 ;
21859 wxTimeSpan *result;
21860 PyObject * obj0 = 0 ;
21861 PyObject * obj1 = 0 ;
21862 char *kwnames[] = {
21863 (char *) "self",(char *) "diff", NULL
21864 };
21865
21866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
21867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21869 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21870 SWIG_POINTER_EXCEPTION | 0)) == -1)
21871 SWIG_fail;
21872 if (arg2 == NULL) {
21873 PyErr_SetString(PyExc_TypeError,"null reference");
21874 SWIG_fail;
21875 }
21876 {
21877 PyThreadState* __tstate = wxPyBeginAllowThreads();
21878 {
21879 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
21880 result = (wxTimeSpan *) &_result_ref;
21881 }
21882
21883 wxPyEndAllowThreads(__tstate);
21884 if (PyErr_Occurred()) SWIG_fail;
21885 }
21886 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21887 return resultobj;
21888 fail:
21889 return NULL;
21890 }
21891
21892
21893 static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
21894 PyObject *resultobj;
21895 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21896 int arg2 ;
21897 wxTimeSpan *result;
21898 PyObject * obj0 = 0 ;
21899 PyObject * obj1 = 0 ;
21900 char *kwnames[] = {
21901 (char *) "self",(char *) "n", NULL
21902 };
21903
21904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
21905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21907 arg2 = (int) SWIG_AsInt(obj1);
21908 if (PyErr_Occurred()) SWIG_fail;
21909 {
21910 PyThreadState* __tstate = wxPyBeginAllowThreads();
21911 {
21912 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
21913 result = (wxTimeSpan *) &_result_ref;
21914 }
21915
21916 wxPyEndAllowThreads(__tstate);
21917 if (PyErr_Occurred()) SWIG_fail;
21918 }
21919 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21920 return resultobj;
21921 fail:
21922 return NULL;
21923 }
21924
21925
21926 static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
21927 PyObject *resultobj;
21928 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21929 wxTimeSpan *result;
21930 PyObject * obj0 = 0 ;
21931 char *kwnames[] = {
21932 (char *) "self", NULL
21933 };
21934
21935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
21936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21938 {
21939 PyThreadState* __tstate = wxPyBeginAllowThreads();
21940 {
21941 wxTimeSpan &_result_ref = (arg1)->Neg();
21942 result = (wxTimeSpan *) &_result_ref;
21943 }
21944
21945 wxPyEndAllowThreads(__tstate);
21946 if (PyErr_Occurred()) SWIG_fail;
21947 }
21948 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21949 return resultobj;
21950 fail:
21951 return NULL;
21952 }
21953
21954
21955 static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) {
21956 PyObject *resultobj;
21957 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21958 wxTimeSpan result;
21959 PyObject * obj0 = 0 ;
21960 char *kwnames[] = {
21961 (char *) "self", NULL
21962 };
21963
21964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
21965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21967 {
21968 PyThreadState* __tstate = wxPyBeginAllowThreads();
21969 result = ((wxTimeSpan const *)arg1)->Abs();
21970
21971 wxPyEndAllowThreads(__tstate);
21972 if (PyErr_Occurred()) SWIG_fail;
21973 }
21974 {
21975 wxTimeSpan * resultptr;
21976 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21977 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21978 }
21979 return resultobj;
21980 fail:
21981 return NULL;
21982 }
21983
21984
21985 static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
21986 PyObject *resultobj;
21987 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21988 wxTimeSpan *arg2 = 0 ;
21989 wxTimeSpan *result;
21990 PyObject * obj0 = 0 ;
21991 PyObject * obj1 = 0 ;
21992 char *kwnames[] = {
21993 (char *) "self",(char *) "diff", NULL
21994 };
21995
21996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
21997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21999 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22000 SWIG_POINTER_EXCEPTION | 0)) == -1)
22001 SWIG_fail;
22002 if (arg2 == NULL) {
22003 PyErr_SetString(PyExc_TypeError,"null reference");
22004 SWIG_fail;
22005 }
22006 {
22007 PyThreadState* __tstate = wxPyBeginAllowThreads();
22008 {
22009 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
22010 result = (wxTimeSpan *) &_result_ref;
22011 }
22012
22013 wxPyEndAllowThreads(__tstate);
22014 if (PyErr_Occurred()) SWIG_fail;
22015 }
22016 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22017 return resultobj;
22018 fail:
22019 return NULL;
22020 }
22021
22022
22023 static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
22024 PyObject *resultobj;
22025 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22026 wxTimeSpan *arg2 = 0 ;
22027 wxTimeSpan *result;
22028 PyObject * obj0 = 0 ;
22029 PyObject * obj1 = 0 ;
22030 char *kwnames[] = {
22031 (char *) "self",(char *) "diff", NULL
22032 };
22033
22034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
22035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22037 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22038 SWIG_POINTER_EXCEPTION | 0)) == -1)
22039 SWIG_fail;
22040 if (arg2 == NULL) {
22041 PyErr_SetString(PyExc_TypeError,"null reference");
22042 SWIG_fail;
22043 }
22044 {
22045 PyThreadState* __tstate = wxPyBeginAllowThreads();
22046 {
22047 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
22048 result = (wxTimeSpan *) &_result_ref;
22049 }
22050
22051 wxPyEndAllowThreads(__tstate);
22052 if (PyErr_Occurred()) SWIG_fail;
22053 }
22054 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22055 return resultobj;
22056 fail:
22057 return NULL;
22058 }
22059
22060
22061 static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
22062 PyObject *resultobj;
22063 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22064 int arg2 ;
22065 wxTimeSpan *result;
22066 PyObject * obj0 = 0 ;
22067 PyObject * obj1 = 0 ;
22068 char *kwnames[] = {
22069 (char *) "self",(char *) "n", NULL
22070 };
22071
22072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
22073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22075 arg2 = (int) SWIG_AsInt(obj1);
22076 if (PyErr_Occurred()) SWIG_fail;
22077 {
22078 PyThreadState* __tstate = wxPyBeginAllowThreads();
22079 {
22080 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
22081 result = (wxTimeSpan *) &_result_ref;
22082 }
22083
22084 wxPyEndAllowThreads(__tstate);
22085 if (PyErr_Occurred()) SWIG_fail;
22086 }
22087 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22088 return resultobj;
22089 fail:
22090 return NULL;
22091 }
22092
22093
22094 static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
22095 PyObject *resultobj;
22096 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22097 wxTimeSpan *result;
22098 PyObject * obj0 = 0 ;
22099 char *kwnames[] = {
22100 (char *) "self", NULL
22101 };
22102
22103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
22104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22106 {
22107 PyThreadState* __tstate = wxPyBeginAllowThreads();
22108 {
22109 wxTimeSpan &_result_ref = (arg1)->operator -();
22110 result = (wxTimeSpan *) &_result_ref;
22111 }
22112
22113 wxPyEndAllowThreads(__tstate);
22114 if (PyErr_Occurred()) SWIG_fail;
22115 }
22116 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22117 return resultobj;
22118 fail:
22119 return NULL;
22120 }
22121
22122
22123 static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
22124 PyObject *resultobj;
22125 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22126 wxTimeSpan *arg2 = 0 ;
22127 wxTimeSpan result;
22128 PyObject * obj0 = 0 ;
22129 PyObject * obj1 = 0 ;
22130 char *kwnames[] = {
22131 (char *) "self",(char *) "other", NULL
22132 };
22133
22134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
22135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22137 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22138 SWIG_POINTER_EXCEPTION | 0)) == -1)
22139 SWIG_fail;
22140 if (arg2 == NULL) {
22141 PyErr_SetString(PyExc_TypeError,"null reference");
22142 SWIG_fail;
22143 }
22144 {
22145 PyThreadState* __tstate = wxPyBeginAllowThreads();
22146 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
22147
22148 wxPyEndAllowThreads(__tstate);
22149 if (PyErr_Occurred()) SWIG_fail;
22150 }
22151 {
22152 wxTimeSpan * resultptr;
22153 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22154 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22155 }
22156 return resultobj;
22157 fail:
22158 return NULL;
22159 }
22160
22161
22162 static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
22163 PyObject *resultobj;
22164 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22165 wxTimeSpan *arg2 = 0 ;
22166 wxTimeSpan result;
22167 PyObject * obj0 = 0 ;
22168 PyObject * obj1 = 0 ;
22169 char *kwnames[] = {
22170 (char *) "self",(char *) "other", NULL
22171 };
22172
22173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
22174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22176 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22177 SWIG_POINTER_EXCEPTION | 0)) == -1)
22178 SWIG_fail;
22179 if (arg2 == NULL) {
22180 PyErr_SetString(PyExc_TypeError,"null reference");
22181 SWIG_fail;
22182 }
22183 {
22184 PyThreadState* __tstate = wxPyBeginAllowThreads();
22185 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
22186
22187 wxPyEndAllowThreads(__tstate);
22188 if (PyErr_Occurred()) SWIG_fail;
22189 }
22190 {
22191 wxTimeSpan * resultptr;
22192 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22193 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22194 }
22195 return resultobj;
22196 fail:
22197 return NULL;
22198 }
22199
22200
22201 static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
22202 PyObject *resultobj;
22203 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22204 int arg2 ;
22205 wxTimeSpan result;
22206 PyObject * obj0 = 0 ;
22207 PyObject * obj1 = 0 ;
22208 char *kwnames[] = {
22209 (char *) "self",(char *) "n", NULL
22210 };
22211
22212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
22213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22215 arg2 = (int) SWIG_AsInt(obj1);
22216 if (PyErr_Occurred()) SWIG_fail;
22217 {
22218 PyThreadState* __tstate = wxPyBeginAllowThreads();
22219 result = wxTimeSpan___mul__(arg1,arg2);
22220
22221 wxPyEndAllowThreads(__tstate);
22222 if (PyErr_Occurred()) SWIG_fail;
22223 }
22224 {
22225 wxTimeSpan * resultptr;
22226 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22227 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22228 }
22229 return resultobj;
22230 fail:
22231 return NULL;
22232 }
22233
22234
22235 static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
22236 PyObject *resultobj;
22237 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22238 int arg2 ;
22239 wxTimeSpan result;
22240 PyObject * obj0 = 0 ;
22241 PyObject * obj1 = 0 ;
22242 char *kwnames[] = {
22243 (char *) "self",(char *) "n", NULL
22244 };
22245
22246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
22247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22249 arg2 = (int) SWIG_AsInt(obj1);
22250 if (PyErr_Occurred()) SWIG_fail;
22251 {
22252 PyThreadState* __tstate = wxPyBeginAllowThreads();
22253 result = wxTimeSpan___rmul__(arg1,arg2);
22254
22255 wxPyEndAllowThreads(__tstate);
22256 if (PyErr_Occurred()) SWIG_fail;
22257 }
22258 {
22259 wxTimeSpan * resultptr;
22260 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22261 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22262 }
22263 return resultobj;
22264 fail:
22265 return NULL;
22266 }
22267
22268
22269 static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) {
22270 PyObject *resultobj;
22271 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22272 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22273 bool result;
22274 PyObject * obj0 = 0 ;
22275 PyObject * obj1 = 0 ;
22276 char *kwnames[] = {
22277 (char *) "self",(char *) "other", NULL
22278 };
22279
22280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
22281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22283 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22285 {
22286 PyThreadState* __tstate = wxPyBeginAllowThreads();
22287 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
22288
22289 wxPyEndAllowThreads(__tstate);
22290 if (PyErr_Occurred()) SWIG_fail;
22291 }
22292 {
22293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22294 }
22295 return resultobj;
22296 fail:
22297 return NULL;
22298 }
22299
22300
22301 static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) {
22302 PyObject *resultobj;
22303 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22304 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22305 bool result;
22306 PyObject * obj0 = 0 ;
22307 PyObject * obj1 = 0 ;
22308 char *kwnames[] = {
22309 (char *) "self",(char *) "other", NULL
22310 };
22311
22312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
22313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22315 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22317 {
22318 PyThreadState* __tstate = wxPyBeginAllowThreads();
22319 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
22320
22321 wxPyEndAllowThreads(__tstate);
22322 if (PyErr_Occurred()) SWIG_fail;
22323 }
22324 {
22325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22326 }
22327 return resultobj;
22328 fail:
22329 return NULL;
22330 }
22331
22332
22333 static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) {
22334 PyObject *resultobj;
22335 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22336 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22337 bool result;
22338 PyObject * obj0 = 0 ;
22339 PyObject * obj1 = 0 ;
22340 char *kwnames[] = {
22341 (char *) "self",(char *) "other", NULL
22342 };
22343
22344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
22345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22347 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22349 {
22350 PyThreadState* __tstate = wxPyBeginAllowThreads();
22351 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
22352
22353 wxPyEndAllowThreads(__tstate);
22354 if (PyErr_Occurred()) SWIG_fail;
22355 }
22356 {
22357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22358 }
22359 return resultobj;
22360 fail:
22361 return NULL;
22362 }
22363
22364
22365 static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) {
22366 PyObject *resultobj;
22367 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22368 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22369 bool result;
22370 PyObject * obj0 = 0 ;
22371 PyObject * obj1 = 0 ;
22372 char *kwnames[] = {
22373 (char *) "self",(char *) "other", NULL
22374 };
22375
22376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
22377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22379 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22381 {
22382 PyThreadState* __tstate = wxPyBeginAllowThreads();
22383 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
22384
22385 wxPyEndAllowThreads(__tstate);
22386 if (PyErr_Occurred()) SWIG_fail;
22387 }
22388 {
22389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22390 }
22391 return resultobj;
22392 fail:
22393 return NULL;
22394 }
22395
22396
22397 static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
22398 PyObject *resultobj;
22399 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22400 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22401 bool result;
22402 PyObject * obj0 = 0 ;
22403 PyObject * obj1 = 0 ;
22404 char *kwnames[] = {
22405 (char *) "self",(char *) "other", NULL
22406 };
22407
22408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
22409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22411 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22413 {
22414 PyThreadState* __tstate = wxPyBeginAllowThreads();
22415 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
22416
22417 wxPyEndAllowThreads(__tstate);
22418 if (PyErr_Occurred()) SWIG_fail;
22419 }
22420 {
22421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22422 }
22423 return resultobj;
22424 fail:
22425 return NULL;
22426 }
22427
22428
22429 static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
22430 PyObject *resultobj;
22431 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22432 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22433 bool result;
22434 PyObject * obj0 = 0 ;
22435 PyObject * obj1 = 0 ;
22436 char *kwnames[] = {
22437 (char *) "self",(char *) "other", NULL
22438 };
22439
22440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
22441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22443 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22445 {
22446 PyThreadState* __tstate = wxPyBeginAllowThreads();
22447 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
22448
22449 wxPyEndAllowThreads(__tstate);
22450 if (PyErr_Occurred()) SWIG_fail;
22451 }
22452 {
22453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22454 }
22455 return resultobj;
22456 fail:
22457 return NULL;
22458 }
22459
22460
22461 static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
22462 PyObject *resultobj;
22463 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22464 bool result;
22465 PyObject * obj0 = 0 ;
22466 char *kwnames[] = {
22467 (char *) "self", NULL
22468 };
22469
22470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
22471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22473 {
22474 PyThreadState* __tstate = wxPyBeginAllowThreads();
22475 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
22476
22477 wxPyEndAllowThreads(__tstate);
22478 if (PyErr_Occurred()) SWIG_fail;
22479 }
22480 {
22481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22482 }
22483 return resultobj;
22484 fail:
22485 return NULL;
22486 }
22487
22488
22489 static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) {
22490 PyObject *resultobj;
22491 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22492 bool result;
22493 PyObject * obj0 = 0 ;
22494 char *kwnames[] = {
22495 (char *) "self", NULL
22496 };
22497
22498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
22499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22501 {
22502 PyThreadState* __tstate = wxPyBeginAllowThreads();
22503 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
22504
22505 wxPyEndAllowThreads(__tstate);
22506 if (PyErr_Occurred()) SWIG_fail;
22507 }
22508 {
22509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22510 }
22511 return resultobj;
22512 fail:
22513 return NULL;
22514 }
22515
22516
22517 static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) {
22518 PyObject *resultobj;
22519 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22520 bool result;
22521 PyObject * obj0 = 0 ;
22522 char *kwnames[] = {
22523 (char *) "self", NULL
22524 };
22525
22526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
22527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22529 {
22530 PyThreadState* __tstate = wxPyBeginAllowThreads();
22531 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
22532
22533 wxPyEndAllowThreads(__tstate);
22534 if (PyErr_Occurred()) SWIG_fail;
22535 }
22536 {
22537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22538 }
22539 return resultobj;
22540 fail:
22541 return NULL;
22542 }
22543
22544
22545 static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
22546 PyObject *resultobj;
22547 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22548 wxTimeSpan *arg2 = 0 ;
22549 bool result;
22550 PyObject * obj0 = 0 ;
22551 PyObject * obj1 = 0 ;
22552 char *kwnames[] = {
22553 (char *) "self",(char *) "ts", NULL
22554 };
22555
22556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
22557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22559 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22560 SWIG_POINTER_EXCEPTION | 0)) == -1)
22561 SWIG_fail;
22562 if (arg2 == NULL) {
22563 PyErr_SetString(PyExc_TypeError,"null reference");
22564 SWIG_fail;
22565 }
22566 {
22567 PyThreadState* __tstate = wxPyBeginAllowThreads();
22568 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
22569
22570 wxPyEndAllowThreads(__tstate);
22571 if (PyErr_Occurred()) SWIG_fail;
22572 }
22573 {
22574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22575 }
22576 return resultobj;
22577 fail:
22578 return NULL;
22579 }
22580
22581
22582 static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22583 PyObject *resultobj;
22584 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22585 wxTimeSpan *arg2 = 0 ;
22586 bool result;
22587 PyObject * obj0 = 0 ;
22588 PyObject * obj1 = 0 ;
22589 char *kwnames[] = {
22590 (char *) "self",(char *) "ts", NULL
22591 };
22592
22593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
22594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22596 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22597 SWIG_POINTER_EXCEPTION | 0)) == -1)
22598 SWIG_fail;
22599 if (arg2 == NULL) {
22600 PyErr_SetString(PyExc_TypeError,"null reference");
22601 SWIG_fail;
22602 }
22603 {
22604 PyThreadState* __tstate = wxPyBeginAllowThreads();
22605 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
22606
22607 wxPyEndAllowThreads(__tstate);
22608 if (PyErr_Occurred()) SWIG_fail;
22609 }
22610 {
22611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22612 }
22613 return resultobj;
22614 fail:
22615 return NULL;
22616 }
22617
22618
22619 static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22620 PyObject *resultobj;
22621 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22622 wxTimeSpan *arg2 = 0 ;
22623 bool result;
22624 PyObject * obj0 = 0 ;
22625 PyObject * obj1 = 0 ;
22626 char *kwnames[] = {
22627 (char *) "self",(char *) "t", NULL
22628 };
22629
22630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
22631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22633 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22634 SWIG_POINTER_EXCEPTION | 0)) == -1)
22635 SWIG_fail;
22636 if (arg2 == NULL) {
22637 PyErr_SetString(PyExc_TypeError,"null reference");
22638 SWIG_fail;
22639 }
22640 {
22641 PyThreadState* __tstate = wxPyBeginAllowThreads();
22642 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
22643
22644 wxPyEndAllowThreads(__tstate);
22645 if (PyErr_Occurred()) SWIG_fail;
22646 }
22647 {
22648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22649 }
22650 return resultobj;
22651 fail:
22652 return NULL;
22653 }
22654
22655
22656 static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22657 PyObject *resultobj;
22658 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22659 int result;
22660 PyObject * obj0 = 0 ;
22661 char *kwnames[] = {
22662 (char *) "self", NULL
22663 };
22664
22665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
22666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22668 {
22669 PyThreadState* __tstate = wxPyBeginAllowThreads();
22670 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
22671
22672 wxPyEndAllowThreads(__tstate);
22673 if (PyErr_Occurred()) SWIG_fail;
22674 }
22675 resultobj = SWIG_FromInt((int)result);
22676 return resultobj;
22677 fail:
22678 return NULL;
22679 }
22680
22681
22682 static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22683 PyObject *resultobj;
22684 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22685 int result;
22686 PyObject * obj0 = 0 ;
22687 char *kwnames[] = {
22688 (char *) "self", NULL
22689 };
22690
22691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
22692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22694 {
22695 PyThreadState* __tstate = wxPyBeginAllowThreads();
22696 result = (int)((wxTimeSpan const *)arg1)->GetDays();
22697
22698 wxPyEndAllowThreads(__tstate);
22699 if (PyErr_Occurred()) SWIG_fail;
22700 }
22701 resultobj = SWIG_FromInt((int)result);
22702 return resultobj;
22703 fail:
22704 return NULL;
22705 }
22706
22707
22708 static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) {
22709 PyObject *resultobj;
22710 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22711 int result;
22712 PyObject * obj0 = 0 ;
22713 char *kwnames[] = {
22714 (char *) "self", NULL
22715 };
22716
22717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
22718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22720 {
22721 PyThreadState* __tstate = wxPyBeginAllowThreads();
22722 result = (int)((wxTimeSpan const *)arg1)->GetHours();
22723
22724 wxPyEndAllowThreads(__tstate);
22725 if (PyErr_Occurred()) SWIG_fail;
22726 }
22727 resultobj = SWIG_FromInt((int)result);
22728 return resultobj;
22729 fail:
22730 return NULL;
22731 }
22732
22733
22734 static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) {
22735 PyObject *resultobj;
22736 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22737 int result;
22738 PyObject * obj0 = 0 ;
22739 char *kwnames[] = {
22740 (char *) "self", NULL
22741 };
22742
22743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
22744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22746 {
22747 PyThreadState* __tstate = wxPyBeginAllowThreads();
22748 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
22749
22750 wxPyEndAllowThreads(__tstate);
22751 if (PyErr_Occurred()) SWIG_fail;
22752 }
22753 resultobj = SWIG_FromInt((int)result);
22754 return resultobj;
22755 fail:
22756 return NULL;
22757 }
22758
22759
22760 static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22761 PyObject *resultobj;
22762 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22763 wxLongLong result;
22764 PyObject * obj0 = 0 ;
22765 char *kwnames[] = {
22766 (char *) "self", NULL
22767 };
22768
22769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
22770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22772 {
22773 PyThreadState* __tstate = wxPyBeginAllowThreads();
22774 result = ((wxTimeSpan const *)arg1)->GetSeconds();
22775
22776 wxPyEndAllowThreads(__tstate);
22777 if (PyErr_Occurred()) SWIG_fail;
22778 }
22779 {
22780 PyObject *hi, *lo, *shifter, *shifted;
22781 hi = PyLong_FromLong( (&result)->GetHi() );
22782 lo = PyLong_FromLong( (&result)->GetLo() );
22783 shifter = PyLong_FromLong(32);
22784 shifted = PyNumber_Lshift(hi, shifter);
22785 resultobj = PyNumber_Or(shifted, lo);
22786 Py_DECREF(hi);
22787 Py_DECREF(lo);
22788 Py_DECREF(shifter);
22789 Py_DECREF(shifted);
22790 }
22791 return resultobj;
22792 fail:
22793 return NULL;
22794 }
22795
22796
22797 static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22798 PyObject *resultobj;
22799 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22800 wxLongLong result;
22801 PyObject * obj0 = 0 ;
22802 char *kwnames[] = {
22803 (char *) "self", NULL
22804 };
22805
22806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
22807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22809 {
22810 PyThreadState* __tstate = wxPyBeginAllowThreads();
22811 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
22812
22813 wxPyEndAllowThreads(__tstate);
22814 if (PyErr_Occurred()) SWIG_fail;
22815 }
22816 {
22817 PyObject *hi, *lo, *shifter, *shifted;
22818 hi = PyLong_FromLong( (&result)->GetHi() );
22819 lo = PyLong_FromLong( (&result)->GetLo() );
22820 shifter = PyLong_FromLong(32);
22821 shifted = PyNumber_Lshift(hi, shifter);
22822 resultobj = PyNumber_Or(shifted, lo);
22823 Py_DECREF(hi);
22824 Py_DECREF(lo);
22825 Py_DECREF(shifter);
22826 Py_DECREF(shifted);
22827 }
22828 return resultobj;
22829 fail:
22830 return NULL;
22831 }
22832
22833
22834 static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
22835 PyObject *resultobj;
22836 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22837 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
22838 wxString *arg2 = (wxString *) &arg2_defvalue ;
22839 wxString result;
22840 bool temp2 = False ;
22841 PyObject * obj0 = 0 ;
22842 PyObject * obj1 = 0 ;
22843 char *kwnames[] = {
22844 (char *) "self",(char *) "format", NULL
22845 };
22846
22847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
22848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22850 if (obj1) {
22851 {
22852 arg2 = wxString_in_helper(obj1);
22853 if (arg2 == NULL) SWIG_fail;
22854 temp2 = True;
22855 }
22856 }
22857 {
22858 PyThreadState* __tstate = wxPyBeginAllowThreads();
22859 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
22860
22861 wxPyEndAllowThreads(__tstate);
22862 if (PyErr_Occurred()) SWIG_fail;
22863 }
22864 {
22865 #if wxUSE_UNICODE
22866 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22867 #else
22868 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22869 #endif
22870 }
22871 {
22872 if (temp2)
22873 delete arg2;
22874 }
22875 return resultobj;
22876 fail:
22877 {
22878 if (temp2)
22879 delete arg2;
22880 }
22881 return NULL;
22882 }
22883
22884
22885 static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) {
22886 PyObject *obj;
22887 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22888 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
22889 Py_INCREF(obj);
22890 return Py_BuildValue((char *)"");
22891 }
22892 static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22893 PyObject *resultobj;
22894 int arg1 = (int) 0 ;
22895 int arg2 = (int) 0 ;
22896 int arg3 = (int) 0 ;
22897 int arg4 = (int) 0 ;
22898 wxDateSpan *result;
22899 PyObject * obj0 = 0 ;
22900 PyObject * obj1 = 0 ;
22901 PyObject * obj2 = 0 ;
22902 PyObject * obj3 = 0 ;
22903 char *kwnames[] = {
22904 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
22905 };
22906
22907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22908 if (obj0) {
22909 arg1 = (int) SWIG_AsInt(obj0);
22910 if (PyErr_Occurred()) SWIG_fail;
22911 }
22912 if (obj1) {
22913 arg2 = (int) SWIG_AsInt(obj1);
22914 if (PyErr_Occurred()) SWIG_fail;
22915 }
22916 if (obj2) {
22917 arg3 = (int) SWIG_AsInt(obj2);
22918 if (PyErr_Occurred()) SWIG_fail;
22919 }
22920 if (obj3) {
22921 arg4 = (int) SWIG_AsInt(obj3);
22922 if (PyErr_Occurred()) SWIG_fail;
22923 }
22924 {
22925 PyThreadState* __tstate = wxPyBeginAllowThreads();
22926 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
22927
22928 wxPyEndAllowThreads(__tstate);
22929 if (PyErr_Occurred()) SWIG_fail;
22930 }
22931 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
22932 return resultobj;
22933 fail:
22934 return NULL;
22935 }
22936
22937
22938 static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22939 PyObject *resultobj;
22940 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22941 PyObject * obj0 = 0 ;
22942 char *kwnames[] = {
22943 (char *) "self", NULL
22944 };
22945
22946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
22947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22949 {
22950 PyThreadState* __tstate = wxPyBeginAllowThreads();
22951 delete arg1;
22952
22953 wxPyEndAllowThreads(__tstate);
22954 if (PyErr_Occurred()) SWIG_fail;
22955 }
22956 Py_INCREF(Py_None); resultobj = Py_None;
22957 return resultobj;
22958 fail:
22959 return NULL;
22960 }
22961
22962
22963 static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
22964 PyObject *resultobj;
22965 int arg1 ;
22966 wxDateSpan result;
22967 PyObject * obj0 = 0 ;
22968 char *kwnames[] = {
22969 (char *) "days", NULL
22970 };
22971
22972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
22973 arg1 = (int) SWIG_AsInt(obj0);
22974 if (PyErr_Occurred()) SWIG_fail;
22975 {
22976 PyThreadState* __tstate = wxPyBeginAllowThreads();
22977 result = wxDateSpan::Days(arg1);
22978
22979 wxPyEndAllowThreads(__tstate);
22980 if (PyErr_Occurred()) SWIG_fail;
22981 }
22982 {
22983 wxDateSpan * resultptr;
22984 resultptr = new wxDateSpan((wxDateSpan &) result);
22985 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22986 }
22987 return resultobj;
22988 fail:
22989 return NULL;
22990 }
22991
22992
22993 static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
22994 PyObject *resultobj;
22995 wxDateSpan result;
22996 char *kwnames[] = {
22997 NULL
22998 };
22999
23000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
23001 {
23002 PyThreadState* __tstate = wxPyBeginAllowThreads();
23003 result = wxDateSpan::Day();
23004
23005 wxPyEndAllowThreads(__tstate);
23006 if (PyErr_Occurred()) SWIG_fail;
23007 }
23008 {
23009 wxDateSpan * resultptr;
23010 resultptr = new wxDateSpan((wxDateSpan &) result);
23011 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23012 }
23013 return resultobj;
23014 fail:
23015 return NULL;
23016 }
23017
23018
23019 static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
23020 PyObject *resultobj;
23021 int arg1 ;
23022 wxDateSpan result;
23023 PyObject * obj0 = 0 ;
23024 char *kwnames[] = {
23025 (char *) "weeks", NULL
23026 };
23027
23028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
23029 arg1 = (int) SWIG_AsInt(obj0);
23030 if (PyErr_Occurred()) SWIG_fail;
23031 {
23032 PyThreadState* __tstate = wxPyBeginAllowThreads();
23033 result = wxDateSpan::Weeks(arg1);
23034
23035 wxPyEndAllowThreads(__tstate);
23036 if (PyErr_Occurred()) SWIG_fail;
23037 }
23038 {
23039 wxDateSpan * resultptr;
23040 resultptr = new wxDateSpan((wxDateSpan &) result);
23041 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23042 }
23043 return resultobj;
23044 fail:
23045 return NULL;
23046 }
23047
23048
23049 static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
23050 PyObject *resultobj;
23051 wxDateSpan result;
23052 char *kwnames[] = {
23053 NULL
23054 };
23055
23056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
23057 {
23058 PyThreadState* __tstate = wxPyBeginAllowThreads();
23059 result = wxDateSpan::Week();
23060
23061 wxPyEndAllowThreads(__tstate);
23062 if (PyErr_Occurred()) SWIG_fail;
23063 }
23064 {
23065 wxDateSpan * resultptr;
23066 resultptr = new wxDateSpan((wxDateSpan &) result);
23067 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23068 }
23069 return resultobj;
23070 fail:
23071 return NULL;
23072 }
23073
23074
23075 static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) {
23076 PyObject *resultobj;
23077 int arg1 ;
23078 wxDateSpan result;
23079 PyObject * obj0 = 0 ;
23080 char *kwnames[] = {
23081 (char *) "mon", NULL
23082 };
23083
23084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
23085 arg1 = (int) SWIG_AsInt(obj0);
23086 if (PyErr_Occurred()) SWIG_fail;
23087 {
23088 PyThreadState* __tstate = wxPyBeginAllowThreads();
23089 result = wxDateSpan::Months(arg1);
23090
23091 wxPyEndAllowThreads(__tstate);
23092 if (PyErr_Occurred()) SWIG_fail;
23093 }
23094 {
23095 wxDateSpan * resultptr;
23096 resultptr = new wxDateSpan((wxDateSpan &) result);
23097 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23098 }
23099 return resultobj;
23100 fail:
23101 return NULL;
23102 }
23103
23104
23105 static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) {
23106 PyObject *resultobj;
23107 wxDateSpan result;
23108 char *kwnames[] = {
23109 NULL
23110 };
23111
23112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
23113 {
23114 PyThreadState* __tstate = wxPyBeginAllowThreads();
23115 result = wxDateSpan::Month();
23116
23117 wxPyEndAllowThreads(__tstate);
23118 if (PyErr_Occurred()) SWIG_fail;
23119 }
23120 {
23121 wxDateSpan * resultptr;
23122 resultptr = new wxDateSpan((wxDateSpan &) result);
23123 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23124 }
23125 return resultobj;
23126 fail:
23127 return NULL;
23128 }
23129
23130
23131 static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) {
23132 PyObject *resultobj;
23133 int arg1 ;
23134 wxDateSpan result;
23135 PyObject * obj0 = 0 ;
23136 char *kwnames[] = {
23137 (char *) "years", NULL
23138 };
23139
23140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
23141 arg1 = (int) SWIG_AsInt(obj0);
23142 if (PyErr_Occurred()) SWIG_fail;
23143 {
23144 PyThreadState* __tstate = wxPyBeginAllowThreads();
23145 result = wxDateSpan::Years(arg1);
23146
23147 wxPyEndAllowThreads(__tstate);
23148 if (PyErr_Occurred()) SWIG_fail;
23149 }
23150 {
23151 wxDateSpan * resultptr;
23152 resultptr = new wxDateSpan((wxDateSpan &) result);
23153 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23154 }
23155 return resultobj;
23156 fail:
23157 return NULL;
23158 }
23159
23160
23161 static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) {
23162 PyObject *resultobj;
23163 wxDateSpan result;
23164 char *kwnames[] = {
23165 NULL
23166 };
23167
23168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
23169 {
23170 PyThreadState* __tstate = wxPyBeginAllowThreads();
23171 result = wxDateSpan::Year();
23172
23173 wxPyEndAllowThreads(__tstate);
23174 if (PyErr_Occurred()) SWIG_fail;
23175 }
23176 {
23177 wxDateSpan * resultptr;
23178 resultptr = new wxDateSpan((wxDateSpan &) result);
23179 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23180 }
23181 return resultobj;
23182 fail:
23183 return NULL;
23184 }
23185
23186
23187 static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
23188 PyObject *resultobj;
23189 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23190 int arg2 ;
23191 wxDateSpan *result;
23192 PyObject * obj0 = 0 ;
23193 PyObject * obj1 = 0 ;
23194 char *kwnames[] = {
23195 (char *) "self",(char *) "n", NULL
23196 };
23197
23198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
23199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23201 arg2 = (int) SWIG_AsInt(obj1);
23202 if (PyErr_Occurred()) SWIG_fail;
23203 {
23204 PyThreadState* __tstate = wxPyBeginAllowThreads();
23205 {
23206 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
23207 result = (wxDateSpan *) &_result_ref;
23208 }
23209
23210 wxPyEndAllowThreads(__tstate);
23211 if (PyErr_Occurred()) SWIG_fail;
23212 }
23213 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23214 return resultobj;
23215 fail:
23216 return NULL;
23217 }
23218
23219
23220 static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
23221 PyObject *resultobj;
23222 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23223 int arg2 ;
23224 wxDateSpan *result;
23225 PyObject * obj0 = 0 ;
23226 PyObject * obj1 = 0 ;
23227 char *kwnames[] = {
23228 (char *) "self",(char *) "n", NULL
23229 };
23230
23231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
23232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23234 arg2 = (int) SWIG_AsInt(obj1);
23235 if (PyErr_Occurred()) SWIG_fail;
23236 {
23237 PyThreadState* __tstate = wxPyBeginAllowThreads();
23238 {
23239 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
23240 result = (wxDateSpan *) &_result_ref;
23241 }
23242
23243 wxPyEndAllowThreads(__tstate);
23244 if (PyErr_Occurred()) SWIG_fail;
23245 }
23246 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23247 return resultobj;
23248 fail:
23249 return NULL;
23250 }
23251
23252
23253 static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
23254 PyObject *resultobj;
23255 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23256 int arg2 ;
23257 wxDateSpan *result;
23258 PyObject * obj0 = 0 ;
23259 PyObject * obj1 = 0 ;
23260 char *kwnames[] = {
23261 (char *) "self",(char *) "n", NULL
23262 };
23263
23264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
23265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23267 arg2 = (int) SWIG_AsInt(obj1);
23268 if (PyErr_Occurred()) SWIG_fail;
23269 {
23270 PyThreadState* __tstate = wxPyBeginAllowThreads();
23271 {
23272 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
23273 result = (wxDateSpan *) &_result_ref;
23274 }
23275
23276 wxPyEndAllowThreads(__tstate);
23277 if (PyErr_Occurred()) SWIG_fail;
23278 }
23279 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23280 return resultobj;
23281 fail:
23282 return NULL;
23283 }
23284
23285
23286 static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23287 PyObject *resultobj;
23288 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23289 int arg2 ;
23290 wxDateSpan *result;
23291 PyObject * obj0 = 0 ;
23292 PyObject * obj1 = 0 ;
23293 char *kwnames[] = {
23294 (char *) "self",(char *) "n", NULL
23295 };
23296
23297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
23298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23300 arg2 = (int) SWIG_AsInt(obj1);
23301 if (PyErr_Occurred()) SWIG_fail;
23302 {
23303 PyThreadState* __tstate = wxPyBeginAllowThreads();
23304 {
23305 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
23306 result = (wxDateSpan *) &_result_ref;
23307 }
23308
23309 wxPyEndAllowThreads(__tstate);
23310 if (PyErr_Occurred()) SWIG_fail;
23311 }
23312 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23313 return resultobj;
23314 fail:
23315 return NULL;
23316 }
23317
23318
23319 static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
23320 PyObject *resultobj;
23321 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23322 int result;
23323 PyObject * obj0 = 0 ;
23324 char *kwnames[] = {
23325 (char *) "self", NULL
23326 };
23327
23328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
23329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23331 {
23332 PyThreadState* __tstate = wxPyBeginAllowThreads();
23333 result = (int)((wxDateSpan const *)arg1)->GetYears();
23334
23335 wxPyEndAllowThreads(__tstate);
23336 if (PyErr_Occurred()) SWIG_fail;
23337 }
23338 resultobj = SWIG_FromInt((int)result);
23339 return resultobj;
23340 fail:
23341 return NULL;
23342 }
23343
23344
23345 static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
23346 PyObject *resultobj;
23347 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23348 int result;
23349 PyObject * obj0 = 0 ;
23350 char *kwnames[] = {
23351 (char *) "self", NULL
23352 };
23353
23354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
23355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23357 {
23358 PyThreadState* __tstate = wxPyBeginAllowThreads();
23359 result = (int)((wxDateSpan const *)arg1)->GetMonths();
23360
23361 wxPyEndAllowThreads(__tstate);
23362 if (PyErr_Occurred()) SWIG_fail;
23363 }
23364 resultobj = SWIG_FromInt((int)result);
23365 return resultobj;
23366 fail:
23367 return NULL;
23368 }
23369
23370
23371 static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
23372 PyObject *resultobj;
23373 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23374 int result;
23375 PyObject * obj0 = 0 ;
23376 char *kwnames[] = {
23377 (char *) "self", NULL
23378 };
23379
23380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
23381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23383 {
23384 PyThreadState* __tstate = wxPyBeginAllowThreads();
23385 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
23386
23387 wxPyEndAllowThreads(__tstate);
23388 if (PyErr_Occurred()) SWIG_fail;
23389 }
23390 resultobj = SWIG_FromInt((int)result);
23391 return resultobj;
23392 fail:
23393 return NULL;
23394 }
23395
23396
23397 static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23398 PyObject *resultobj;
23399 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23400 int result;
23401 PyObject * obj0 = 0 ;
23402 char *kwnames[] = {
23403 (char *) "self", NULL
23404 };
23405
23406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
23407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23409 {
23410 PyThreadState* __tstate = wxPyBeginAllowThreads();
23411 result = (int)((wxDateSpan const *)arg1)->GetDays();
23412
23413 wxPyEndAllowThreads(__tstate);
23414 if (PyErr_Occurred()) SWIG_fail;
23415 }
23416 resultobj = SWIG_FromInt((int)result);
23417 return resultobj;
23418 fail:
23419 return NULL;
23420 }
23421
23422
23423 static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23424 PyObject *resultobj;
23425 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23426 int result;
23427 PyObject * obj0 = 0 ;
23428 char *kwnames[] = {
23429 (char *) "self", NULL
23430 };
23431
23432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
23433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23435 {
23436 PyThreadState* __tstate = wxPyBeginAllowThreads();
23437 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
23438
23439 wxPyEndAllowThreads(__tstate);
23440 if (PyErr_Occurred()) SWIG_fail;
23441 }
23442 resultobj = SWIG_FromInt((int)result);
23443 return resultobj;
23444 fail:
23445 return NULL;
23446 }
23447
23448
23449 static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
23450 PyObject *resultobj;
23451 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23452 wxDateSpan *arg2 = 0 ;
23453 wxDateSpan *result;
23454 PyObject * obj0 = 0 ;
23455 PyObject * obj1 = 0 ;
23456 char *kwnames[] = {
23457 (char *) "self",(char *) "other", NULL
23458 };
23459
23460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
23461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23463 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23464 SWIG_POINTER_EXCEPTION | 0)) == -1)
23465 SWIG_fail;
23466 if (arg2 == NULL) {
23467 PyErr_SetString(PyExc_TypeError,"null reference");
23468 SWIG_fail;
23469 }
23470 {
23471 PyThreadState* __tstate = wxPyBeginAllowThreads();
23472 {
23473 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
23474 result = (wxDateSpan *) &_result_ref;
23475 }
23476
23477 wxPyEndAllowThreads(__tstate);
23478 if (PyErr_Occurred()) SWIG_fail;
23479 }
23480 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23481 return resultobj;
23482 fail:
23483 return NULL;
23484 }
23485
23486
23487 static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
23488 PyObject *resultobj;
23489 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23490 wxDateSpan *arg2 = 0 ;
23491 wxDateSpan *result;
23492 PyObject * obj0 = 0 ;
23493 PyObject * obj1 = 0 ;
23494 char *kwnames[] = {
23495 (char *) "self",(char *) "other", NULL
23496 };
23497
23498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
23499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23501 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23502 SWIG_POINTER_EXCEPTION | 0)) == -1)
23503 SWIG_fail;
23504 if (arg2 == NULL) {
23505 PyErr_SetString(PyExc_TypeError,"null reference");
23506 SWIG_fail;
23507 }
23508 {
23509 PyThreadState* __tstate = wxPyBeginAllowThreads();
23510 {
23511 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
23512 result = (wxDateSpan *) &_result_ref;
23513 }
23514
23515 wxPyEndAllowThreads(__tstate);
23516 if (PyErr_Occurred()) SWIG_fail;
23517 }
23518 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23519 return resultobj;
23520 fail:
23521 return NULL;
23522 }
23523
23524
23525 static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
23526 PyObject *resultobj;
23527 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23528 wxDateSpan *result;
23529 PyObject * obj0 = 0 ;
23530 char *kwnames[] = {
23531 (char *) "self", NULL
23532 };
23533
23534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
23535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23537 {
23538 PyThreadState* __tstate = wxPyBeginAllowThreads();
23539 {
23540 wxDateSpan &_result_ref = (arg1)->Neg();
23541 result = (wxDateSpan *) &_result_ref;
23542 }
23543
23544 wxPyEndAllowThreads(__tstate);
23545 if (PyErr_Occurred()) SWIG_fail;
23546 }
23547 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23548 return resultobj;
23549 fail:
23550 return NULL;
23551 }
23552
23553
23554 static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
23555 PyObject *resultobj;
23556 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23557 int arg2 ;
23558 wxDateSpan *result;
23559 PyObject * obj0 = 0 ;
23560 PyObject * obj1 = 0 ;
23561 char *kwnames[] = {
23562 (char *) "self",(char *) "factor", NULL
23563 };
23564
23565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
23566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23568 arg2 = (int) SWIG_AsInt(obj1);
23569 if (PyErr_Occurred()) SWIG_fail;
23570 {
23571 PyThreadState* __tstate = wxPyBeginAllowThreads();
23572 {
23573 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
23574 result = (wxDateSpan *) &_result_ref;
23575 }
23576
23577 wxPyEndAllowThreads(__tstate);
23578 if (PyErr_Occurred()) SWIG_fail;
23579 }
23580 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23581 return resultobj;
23582 fail:
23583 return NULL;
23584 }
23585
23586
23587 static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
23588 PyObject *resultobj;
23589 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23590 wxDateSpan *arg2 = 0 ;
23591 wxDateSpan *result;
23592 PyObject * obj0 = 0 ;
23593 PyObject * obj1 = 0 ;
23594 char *kwnames[] = {
23595 (char *) "self",(char *) "other", NULL
23596 };
23597
23598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
23599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23601 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23602 SWIG_POINTER_EXCEPTION | 0)) == -1)
23603 SWIG_fail;
23604 if (arg2 == NULL) {
23605 PyErr_SetString(PyExc_TypeError,"null reference");
23606 SWIG_fail;
23607 }
23608 {
23609 PyThreadState* __tstate = wxPyBeginAllowThreads();
23610 {
23611 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
23612 result = (wxDateSpan *) &_result_ref;
23613 }
23614
23615 wxPyEndAllowThreads(__tstate);
23616 if (PyErr_Occurred()) SWIG_fail;
23617 }
23618 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23619 return resultobj;
23620 fail:
23621 return NULL;
23622 }
23623
23624
23625 static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23626 PyObject *resultobj;
23627 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23628 wxDateSpan *arg2 = 0 ;
23629 wxDateSpan *result;
23630 PyObject * obj0 = 0 ;
23631 PyObject * obj1 = 0 ;
23632 char *kwnames[] = {
23633 (char *) "self",(char *) "other", NULL
23634 };
23635
23636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
23637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23639 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23640 SWIG_POINTER_EXCEPTION | 0)) == -1)
23641 SWIG_fail;
23642 if (arg2 == NULL) {
23643 PyErr_SetString(PyExc_TypeError,"null reference");
23644 SWIG_fail;
23645 }
23646 {
23647 PyThreadState* __tstate = wxPyBeginAllowThreads();
23648 {
23649 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
23650 result = (wxDateSpan *) &_result_ref;
23651 }
23652
23653 wxPyEndAllowThreads(__tstate);
23654 if (PyErr_Occurred()) SWIG_fail;
23655 }
23656 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23657 return resultobj;
23658 fail:
23659 return NULL;
23660 }
23661
23662
23663 static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
23664 PyObject *resultobj;
23665 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23666 wxDateSpan *result;
23667 PyObject * obj0 = 0 ;
23668 char *kwnames[] = {
23669 (char *) "self", NULL
23670 };
23671
23672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
23673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23675 {
23676 PyThreadState* __tstate = wxPyBeginAllowThreads();
23677 {
23678 wxDateSpan &_result_ref = (arg1)->operator -();
23679 result = (wxDateSpan *) &_result_ref;
23680 }
23681
23682 wxPyEndAllowThreads(__tstate);
23683 if (PyErr_Occurred()) SWIG_fail;
23684 }
23685 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23686 return resultobj;
23687 fail:
23688 return NULL;
23689 }
23690
23691
23692 static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23693 PyObject *resultobj;
23694 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23695 int arg2 ;
23696 wxDateSpan *result;
23697 PyObject * obj0 = 0 ;
23698 PyObject * obj1 = 0 ;
23699 char *kwnames[] = {
23700 (char *) "self",(char *) "factor", NULL
23701 };
23702
23703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
23704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23706 arg2 = (int) SWIG_AsInt(obj1);
23707 if (PyErr_Occurred()) SWIG_fail;
23708 {
23709 PyThreadState* __tstate = wxPyBeginAllowThreads();
23710 {
23711 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
23712 result = (wxDateSpan *) &_result_ref;
23713 }
23714
23715 wxPyEndAllowThreads(__tstate);
23716 if (PyErr_Occurred()) SWIG_fail;
23717 }
23718 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23719 return resultobj;
23720 fail:
23721 return NULL;
23722 }
23723
23724
23725 static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
23726 PyObject *resultobj;
23727 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23728 wxDateSpan *arg2 = 0 ;
23729 wxDateSpan result;
23730 PyObject * obj0 = 0 ;
23731 PyObject * obj1 = 0 ;
23732 char *kwnames[] = {
23733 (char *) "self",(char *) "other", NULL
23734 };
23735
23736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
23737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23739 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23740 SWIG_POINTER_EXCEPTION | 0)) == -1)
23741 SWIG_fail;
23742 if (arg2 == NULL) {
23743 PyErr_SetString(PyExc_TypeError,"null reference");
23744 SWIG_fail;
23745 }
23746 {
23747 PyThreadState* __tstate = wxPyBeginAllowThreads();
23748 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
23749
23750 wxPyEndAllowThreads(__tstate);
23751 if (PyErr_Occurred()) SWIG_fail;
23752 }
23753 {
23754 wxDateSpan * resultptr;
23755 resultptr = new wxDateSpan((wxDateSpan &) result);
23756 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23757 }
23758 return resultobj;
23759 fail:
23760 return NULL;
23761 }
23762
23763
23764 static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23765 PyObject *resultobj;
23766 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23767 wxDateSpan *arg2 = 0 ;
23768 wxDateSpan result;
23769 PyObject * obj0 = 0 ;
23770 PyObject * obj1 = 0 ;
23771 char *kwnames[] = {
23772 (char *) "self",(char *) "other", NULL
23773 };
23774
23775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
23776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23778 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23779 SWIG_POINTER_EXCEPTION | 0)) == -1)
23780 SWIG_fail;
23781 if (arg2 == NULL) {
23782 PyErr_SetString(PyExc_TypeError,"null reference");
23783 SWIG_fail;
23784 }
23785 {
23786 PyThreadState* __tstate = wxPyBeginAllowThreads();
23787 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
23788
23789 wxPyEndAllowThreads(__tstate);
23790 if (PyErr_Occurred()) SWIG_fail;
23791 }
23792 {
23793 wxDateSpan * resultptr;
23794 resultptr = new wxDateSpan((wxDateSpan &) result);
23795 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23796 }
23797 return resultobj;
23798 fail:
23799 return NULL;
23800 }
23801
23802
23803 static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23804 PyObject *resultobj;
23805 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23806 int arg2 ;
23807 wxDateSpan result;
23808 PyObject * obj0 = 0 ;
23809 PyObject * obj1 = 0 ;
23810 char *kwnames[] = {
23811 (char *) "self",(char *) "n", NULL
23812 };
23813
23814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
23815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23817 arg2 = (int) SWIG_AsInt(obj1);
23818 if (PyErr_Occurred()) SWIG_fail;
23819 {
23820 PyThreadState* __tstate = wxPyBeginAllowThreads();
23821 result = wxDateSpan___mul__(arg1,arg2);
23822
23823 wxPyEndAllowThreads(__tstate);
23824 if (PyErr_Occurred()) SWIG_fail;
23825 }
23826 {
23827 wxDateSpan * resultptr;
23828 resultptr = new wxDateSpan((wxDateSpan &) result);
23829 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23830 }
23831 return resultobj;
23832 fail:
23833 return NULL;
23834 }
23835
23836
23837 static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23838 PyObject *resultobj;
23839 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23840 int arg2 ;
23841 wxDateSpan result;
23842 PyObject * obj0 = 0 ;
23843 PyObject * obj1 = 0 ;
23844 char *kwnames[] = {
23845 (char *) "self",(char *) "n", NULL
23846 };
23847
23848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
23849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23851 arg2 = (int) SWIG_AsInt(obj1);
23852 if (PyErr_Occurred()) SWIG_fail;
23853 {
23854 PyThreadState* __tstate = wxPyBeginAllowThreads();
23855 result = wxDateSpan___rmul__(arg1,arg2);
23856
23857 wxPyEndAllowThreads(__tstate);
23858 if (PyErr_Occurred()) SWIG_fail;
23859 }
23860 {
23861 wxDateSpan * resultptr;
23862 resultptr = new wxDateSpan((wxDateSpan &) result);
23863 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23864 }
23865 return resultobj;
23866 fail:
23867 return NULL;
23868 }
23869
23870
23871 static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
23872 PyObject *resultobj;
23873 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23874 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23875 bool result;
23876 PyObject * obj0 = 0 ;
23877 PyObject * obj1 = 0 ;
23878 char *kwnames[] = {
23879 (char *) "self",(char *) "other", NULL
23880 };
23881
23882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
23883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23885 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23887 {
23888 PyThreadState* __tstate = wxPyBeginAllowThreads();
23889 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)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_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
23904 PyObject *resultobj;
23905 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23906 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23907 bool result;
23908 PyObject * obj0 = 0 ;
23909 PyObject * obj1 = 0 ;
23910 char *kwnames[] = {
23911 (char *) "self",(char *) "other", NULL
23912 };
23913
23914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
23915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23917 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23919 {
23920 PyThreadState* __tstate = wxPyBeginAllowThreads();
23921 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
23922
23923 wxPyEndAllowThreads(__tstate);
23924 if (PyErr_Occurred()) SWIG_fail;
23925 }
23926 {
23927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23928 }
23929 return resultobj;
23930 fail:
23931 return NULL;
23932 }
23933
23934
23935 static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) {
23936 PyObject *obj;
23937 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23938 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
23939 Py_INCREF(obj);
23940 return Py_BuildValue((char *)"");
23941 }
23942 static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23943 PyObject *resultobj;
23944 long result;
23945 char *kwnames[] = {
23946 NULL
23947 };
23948
23949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
23950 {
23951 PyThreadState* __tstate = wxPyBeginAllowThreads();
23952 result = (long)wxGetLocalTime();
23953
23954 wxPyEndAllowThreads(__tstate);
23955 if (PyErr_Occurred()) SWIG_fail;
23956 }
23957 resultobj = SWIG_FromLong((long)result);
23958 return resultobj;
23959 fail:
23960 return NULL;
23961 }
23962
23963
23964 static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23965 PyObject *resultobj;
23966 long result;
23967 char *kwnames[] = {
23968 NULL
23969 };
23970
23971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
23972 {
23973 PyThreadState* __tstate = wxPyBeginAllowThreads();
23974 result = (long)wxGetUTCTime();
23975
23976 wxPyEndAllowThreads(__tstate);
23977 if (PyErr_Occurred()) SWIG_fail;
23978 }
23979 resultobj = SWIG_FromLong((long)result);
23980 return resultobj;
23981 fail:
23982 return NULL;
23983 }
23984
23985
23986 static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23987 PyObject *resultobj;
23988 long result;
23989 char *kwnames[] = {
23990 NULL
23991 };
23992
23993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
23994 {
23995 PyThreadState* __tstate = wxPyBeginAllowThreads();
23996 result = (long)wxGetCurrentTime();
23997
23998 wxPyEndAllowThreads(__tstate);
23999 if (PyErr_Occurred()) SWIG_fail;
24000 }
24001 resultobj = SWIG_FromLong((long)result);
24002 return resultobj;
24003 fail:
24004 return NULL;
24005 }
24006
24007
24008 static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) {
24009 PyObject *resultobj;
24010 wxLongLong result;
24011 char *kwnames[] = {
24012 NULL
24013 };
24014
24015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
24016 {
24017 PyThreadState* __tstate = wxPyBeginAllowThreads();
24018 result = wxGetLocalTimeMillis();
24019
24020 wxPyEndAllowThreads(__tstate);
24021 if (PyErr_Occurred()) SWIG_fail;
24022 }
24023 {
24024 PyObject *hi, *lo, *shifter, *shifted;
24025 hi = PyLong_FromLong( (&result)->GetHi() );
24026 lo = PyLong_FromLong( (&result)->GetLo() );
24027 shifter = PyLong_FromLong(32);
24028 shifted = PyNumber_Lshift(hi, shifter);
24029 resultobj = PyNumber_Or(shifted, lo);
24030 Py_DECREF(hi);
24031 Py_DECREF(lo);
24032 Py_DECREF(shifter);
24033 Py_DECREF(shifted);
24034 }
24035 return resultobj;
24036 fail:
24037 return NULL;
24038 }
24039
24040
24041 static int _wrap_DefaultDateTime_set(PyObject *_val) {
24042 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
24043 return 1;
24044 }
24045
24046
24047 static PyObject *_wrap_DefaultDateTime_get() {
24048 PyObject *pyobj;
24049
24050 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
24051 return pyobj;
24052 }
24053
24054
24055 static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24056 PyObject *resultobj;
24057 int arg1 ;
24058 wxDataFormat *result;
24059 PyObject * obj0 = 0 ;
24060 char *kwnames[] = {
24061 (char *) "type", NULL
24062 };
24063
24064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
24065 arg1 = (wxDataFormatId) SWIG_AsInt(obj0);
24066 if (PyErr_Occurred()) SWIG_fail;
24067 {
24068 PyThreadState* __tstate = wxPyBeginAllowThreads();
24069 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
24070
24071 wxPyEndAllowThreads(__tstate);
24072 if (PyErr_Occurred()) SWIG_fail;
24073 }
24074 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
24075 return resultobj;
24076 fail:
24077 return NULL;
24078 }
24079
24080
24081 static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24082 PyObject *resultobj;
24083 wxString *arg1 = 0 ;
24084 wxDataFormat *result;
24085 bool temp1 = False ;
24086 PyObject * obj0 = 0 ;
24087 char *kwnames[] = {
24088 (char *) "format", NULL
24089 };
24090
24091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
24092 {
24093 arg1 = wxString_in_helper(obj0);
24094 if (arg1 == NULL) SWIG_fail;
24095 temp1 = True;
24096 }
24097 {
24098 PyThreadState* __tstate = wxPyBeginAllowThreads();
24099 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
24100
24101 wxPyEndAllowThreads(__tstate);
24102 if (PyErr_Occurred()) SWIG_fail;
24103 }
24104 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
24105 {
24106 if (temp1)
24107 delete arg1;
24108 }
24109 return resultobj;
24110 fail:
24111 {
24112 if (temp1)
24113 delete arg1;
24114 }
24115 return NULL;
24116 }
24117
24118
24119 static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24120 PyObject *resultobj;
24121 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24122 PyObject * obj0 = 0 ;
24123 char *kwnames[] = {
24124 (char *) "self", NULL
24125 };
24126
24127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
24128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24130 {
24131 PyThreadState* __tstate = wxPyBeginAllowThreads();
24132 delete arg1;
24133
24134 wxPyEndAllowThreads(__tstate);
24135 if (PyErr_Occurred()) SWIG_fail;
24136 }
24137 Py_INCREF(Py_None); resultobj = Py_None;
24138 return resultobj;
24139 fail:
24140 return NULL;
24141 }
24142
24143
24144 static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) {
24145 PyObject *resultobj;
24146 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24147 int arg2 ;
24148 bool result;
24149 PyObject * obj0 = 0 ;
24150 PyObject * obj1 = 0 ;
24151
24152 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
24153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24155 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24156 if (PyErr_Occurred()) SWIG_fail;
24157 {
24158 PyThreadState* __tstate = wxPyBeginAllowThreads();
24159 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
24160
24161 wxPyEndAllowThreads(__tstate);
24162 if (PyErr_Occurred()) SWIG_fail;
24163 }
24164 {
24165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24166 }
24167 return resultobj;
24168 fail:
24169 return NULL;
24170 }
24171
24172
24173 static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) {
24174 PyObject *resultobj;
24175 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24176 int arg2 ;
24177 bool result;
24178 PyObject * obj0 = 0 ;
24179 PyObject * obj1 = 0 ;
24180
24181 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24184 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24185 if (PyErr_Occurred()) SWIG_fail;
24186 {
24187 PyThreadState* __tstate = wxPyBeginAllowThreads();
24188 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2);
24189
24190 wxPyEndAllowThreads(__tstate);
24191 if (PyErr_Occurred()) SWIG_fail;
24192 }
24193 {
24194 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24195 }
24196 return resultobj;
24197 fail:
24198 return NULL;
24199 }
24200
24201
24202 static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) {
24203 PyObject *resultobj;
24204 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24205 wxDataFormat *arg2 = 0 ;
24206 bool result;
24207 PyObject * obj0 = 0 ;
24208 PyObject * obj1 = 0 ;
24209
24210 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
24211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24213 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24214 SWIG_POINTER_EXCEPTION | 0)) == -1)
24215 SWIG_fail;
24216 if (arg2 == NULL) {
24217 PyErr_SetString(PyExc_TypeError,"null reference");
24218 SWIG_fail;
24219 }
24220 {
24221 PyThreadState* __tstate = wxPyBeginAllowThreads();
24222 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
24223
24224 wxPyEndAllowThreads(__tstate);
24225 if (PyErr_Occurred()) SWIG_fail;
24226 }
24227 {
24228 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24229 }
24230 return resultobj;
24231 fail:
24232 return NULL;
24233 }
24234
24235
24236 static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
24237 int argc;
24238 PyObject *argv[3];
24239 int ii;
24240
24241 argc = PyObject_Length(args);
24242 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24243 argv[ii] = PyTuple_GetItem(args,ii);
24244 }
24245 if (argc == 2) {
24246 int _v;
24247 {
24248 void *ptr;
24249 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24250 _v = 0;
24251 PyErr_Clear();
24252 } else {
24253 _v = 1;
24254 }
24255 }
24256 if (_v) {
24257 {
24258 void *ptr;
24259 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24260 _v = 0;
24261 PyErr_Clear();
24262 } else {
24263 _v = 1;
24264 }
24265 }
24266 if (_v) {
24267 return _wrap_DataFormat___eq____SWIG_1(self,args);
24268 }
24269 }
24270 }
24271 if (argc == 2) {
24272 int _v;
24273 {
24274 void *ptr;
24275 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24276 _v = 0;
24277 PyErr_Clear();
24278 } else {
24279 _v = 1;
24280 }
24281 }
24282 if (_v) {
24283 _v = SWIG_CheckInt(argv[1]);
24284 if (_v) {
24285 return _wrap_DataFormat___eq____SWIG_0(self,args);
24286 }
24287 }
24288 }
24289
24290 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
24291 return NULL;
24292 }
24293
24294
24295 static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) {
24296 PyObject *resultobj;
24297 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24298 wxDataFormat *arg2 = 0 ;
24299 bool result;
24300 PyObject * obj0 = 0 ;
24301 PyObject * obj1 = 0 ;
24302
24303 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24306 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24307 SWIG_POINTER_EXCEPTION | 0)) == -1)
24308 SWIG_fail;
24309 if (arg2 == NULL) {
24310 PyErr_SetString(PyExc_TypeError,"null reference");
24311 SWIG_fail;
24312 }
24313 {
24314 PyThreadState* __tstate = wxPyBeginAllowThreads();
24315 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
24316
24317 wxPyEndAllowThreads(__tstate);
24318 if (PyErr_Occurred()) SWIG_fail;
24319 }
24320 {
24321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24322 }
24323 return resultobj;
24324 fail:
24325 return NULL;
24326 }
24327
24328
24329 static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
24330 int argc;
24331 PyObject *argv[3];
24332 int ii;
24333
24334 argc = PyObject_Length(args);
24335 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24336 argv[ii] = PyTuple_GetItem(args,ii);
24337 }
24338 if (argc == 2) {
24339 int _v;
24340 {
24341 void *ptr;
24342 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24343 _v = 0;
24344 PyErr_Clear();
24345 } else {
24346 _v = 1;
24347 }
24348 }
24349 if (_v) {
24350 {
24351 void *ptr;
24352 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24353 _v = 0;
24354 PyErr_Clear();
24355 } else {
24356 _v = 1;
24357 }
24358 }
24359 if (_v) {
24360 return _wrap_DataFormat___ne____SWIG_1(self,args);
24361 }
24362 }
24363 }
24364 if (argc == 2) {
24365 int _v;
24366 {
24367 void *ptr;
24368 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24369 _v = 0;
24370 PyErr_Clear();
24371 } else {
24372 _v = 1;
24373 }
24374 }
24375 if (_v) {
24376 _v = SWIG_CheckInt(argv[1]);
24377 if (_v) {
24378 return _wrap_DataFormat___ne____SWIG_0(self,args);
24379 }
24380 }
24381 }
24382
24383 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
24384 return NULL;
24385 }
24386
24387
24388 static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24389 PyObject *resultobj;
24390 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24391 int arg2 ;
24392 PyObject * obj0 = 0 ;
24393 PyObject * obj1 = 0 ;
24394 char *kwnames[] = {
24395 (char *) "self",(char *) "format", NULL
24396 };
24397
24398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
24399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24401 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24402 if (PyErr_Occurred()) SWIG_fail;
24403 {
24404 PyThreadState* __tstate = wxPyBeginAllowThreads();
24405 (arg1)->SetType((wxDataFormatId )arg2);
24406
24407 wxPyEndAllowThreads(__tstate);
24408 if (PyErr_Occurred()) SWIG_fail;
24409 }
24410 Py_INCREF(Py_None); resultobj = Py_None;
24411 return resultobj;
24412 fail:
24413 return NULL;
24414 }
24415
24416
24417 static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24418 PyObject *resultobj;
24419 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24420 int result;
24421 PyObject * obj0 = 0 ;
24422 char *kwnames[] = {
24423 (char *) "self", NULL
24424 };
24425
24426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
24427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24429 {
24430 PyThreadState* __tstate = wxPyBeginAllowThreads();
24431 result = (int)((wxDataFormat const *)arg1)->GetType();
24432
24433 wxPyEndAllowThreads(__tstate);
24434 if (PyErr_Occurred()) SWIG_fail;
24435 }
24436 resultobj = SWIG_FromInt((int)result);
24437 return resultobj;
24438 fail:
24439 return NULL;
24440 }
24441
24442
24443 static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24444 PyObject *resultobj;
24445 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24446 wxString result;
24447 PyObject * obj0 = 0 ;
24448 char *kwnames[] = {
24449 (char *) "self", NULL
24450 };
24451
24452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
24453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24455 {
24456 PyThreadState* __tstate = wxPyBeginAllowThreads();
24457 result = ((wxDataFormat const *)arg1)->GetId();
24458
24459 wxPyEndAllowThreads(__tstate);
24460 if (PyErr_Occurred()) SWIG_fail;
24461 }
24462 {
24463 #if wxUSE_UNICODE
24464 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24465 #else
24466 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24467 #endif
24468 }
24469 return resultobj;
24470 fail:
24471 return NULL;
24472 }
24473
24474
24475 static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24476 PyObject *resultobj;
24477 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24478 wxString *arg2 = 0 ;
24479 bool temp2 = False ;
24480 PyObject * obj0 = 0 ;
24481 PyObject * obj1 = 0 ;
24482 char *kwnames[] = {
24483 (char *) "self",(char *) "format", NULL
24484 };
24485
24486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
24487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24489 {
24490 arg2 = wxString_in_helper(obj1);
24491 if (arg2 == NULL) SWIG_fail;
24492 temp2 = True;
24493 }
24494 {
24495 PyThreadState* __tstate = wxPyBeginAllowThreads();
24496 (arg1)->SetId((wxString const &)*arg2);
24497
24498 wxPyEndAllowThreads(__tstate);
24499 if (PyErr_Occurred()) SWIG_fail;
24500 }
24501 Py_INCREF(Py_None); resultobj = Py_None;
24502 {
24503 if (temp2)
24504 delete arg2;
24505 }
24506 return resultobj;
24507 fail:
24508 {
24509 if (temp2)
24510 delete arg2;
24511 }
24512 return NULL;
24513 }
24514
24515
24516 static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) {
24517 PyObject *obj;
24518 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24519 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
24520 Py_INCREF(obj);
24521 return Py_BuildValue((char *)"");
24522 }
24523 static int _wrap_FormatInvalid_set(PyObject *_val) {
24524 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
24525 return 1;
24526 }
24527
24528
24529 static PyObject *_wrap_FormatInvalid_get() {
24530 PyObject *pyobj;
24531
24532 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
24533 return pyobj;
24534 }
24535
24536
24537 static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24538 PyObject *resultobj;
24539 wxDataObject *arg1 = (wxDataObject *) 0 ;
24540 PyObject * obj0 = 0 ;
24541 char *kwnames[] = {
24542 (char *) "self", NULL
24543 };
24544
24545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
24546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24548 {
24549 PyThreadState* __tstate = wxPyBeginAllowThreads();
24550 delete arg1;
24551
24552 wxPyEndAllowThreads(__tstate);
24553 if (PyErr_Occurred()) SWIG_fail;
24554 }
24555 Py_INCREF(Py_None); resultobj = Py_None;
24556 return resultobj;
24557 fail:
24558 return NULL;
24559 }
24560
24561
24562 static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24563 PyObject *resultobj;
24564 wxDataObject *arg1 = (wxDataObject *) 0 ;
24565 int arg2 = (int) wxDataObject::Get ;
24566 SwigValueWrapper< wxDataFormat > result;
24567 PyObject * obj0 = 0 ;
24568 PyObject * obj1 = 0 ;
24569 char *kwnames[] = {
24570 (char *) "self",(char *) "dir", NULL
24571 };
24572
24573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
24574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24576 if (obj1) {
24577 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24578 if (PyErr_Occurred()) SWIG_fail;
24579 }
24580 {
24581 PyThreadState* __tstate = wxPyBeginAllowThreads();
24582 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
24583
24584 wxPyEndAllowThreads(__tstate);
24585 if (PyErr_Occurred()) SWIG_fail;
24586 }
24587 {
24588 wxDataFormat * resultptr;
24589 resultptr = new wxDataFormat((wxDataFormat &) result);
24590 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
24591 }
24592 return resultobj;
24593 fail:
24594 return NULL;
24595 }
24596
24597
24598 static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) {
24599 PyObject *resultobj;
24600 wxDataObject *arg1 = (wxDataObject *) 0 ;
24601 int arg2 = (int) wxDataObject::Get ;
24602 size_t result;
24603 PyObject * obj0 = 0 ;
24604 PyObject * obj1 = 0 ;
24605 char *kwnames[] = {
24606 (char *) "self",(char *) "dir", NULL
24607 };
24608
24609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
24610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24612 if (obj1) {
24613 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24614 if (PyErr_Occurred()) SWIG_fail;
24615 }
24616 {
24617 PyThreadState* __tstate = wxPyBeginAllowThreads();
24618 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
24619
24620 wxPyEndAllowThreads(__tstate);
24621 if (PyErr_Occurred()) SWIG_fail;
24622 }
24623 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24624 return resultobj;
24625 fail:
24626 return NULL;
24627 }
24628
24629
24630 static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
24631 PyObject *resultobj;
24632 wxDataObject *arg1 = (wxDataObject *) 0 ;
24633 wxDataFormat *arg2 = 0 ;
24634 int arg3 = (int) wxDataObject::Get ;
24635 bool result;
24636 PyObject * obj0 = 0 ;
24637 PyObject * obj1 = 0 ;
24638 PyObject * obj2 = 0 ;
24639 char *kwnames[] = {
24640 (char *) "self",(char *) "format",(char *) "dir", NULL
24641 };
24642
24643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
24644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24646 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24647 SWIG_POINTER_EXCEPTION | 0)) == -1)
24648 SWIG_fail;
24649 if (arg2 == NULL) {
24650 PyErr_SetString(PyExc_TypeError,"null reference");
24651 SWIG_fail;
24652 }
24653 if (obj2) {
24654 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24655 if (PyErr_Occurred()) SWIG_fail;
24656 }
24657 {
24658 PyThreadState* __tstate = wxPyBeginAllowThreads();
24659 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
24660
24661 wxPyEndAllowThreads(__tstate);
24662 if (PyErr_Occurred()) SWIG_fail;
24663 }
24664 {
24665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24666 }
24667 return resultobj;
24668 fail:
24669 return NULL;
24670 }
24671
24672
24673 static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24674 PyObject *resultobj;
24675 wxDataObject *arg1 = (wxDataObject *) 0 ;
24676 wxDataFormat *arg2 = 0 ;
24677 size_t result;
24678 PyObject * obj0 = 0 ;
24679 PyObject * obj1 = 0 ;
24680 char *kwnames[] = {
24681 (char *) "self",(char *) "format", NULL
24682 };
24683
24684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
24685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24687 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24688 SWIG_POINTER_EXCEPTION | 0)) == -1)
24689 SWIG_fail;
24690 if (arg2 == NULL) {
24691 PyErr_SetString(PyExc_TypeError,"null reference");
24692 SWIG_fail;
24693 }
24694 {
24695 PyThreadState* __tstate = wxPyBeginAllowThreads();
24696 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
24697
24698 wxPyEndAllowThreads(__tstate);
24699 if (PyErr_Occurred()) SWIG_fail;
24700 }
24701 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24702 return resultobj;
24703 fail:
24704 return NULL;
24705 }
24706
24707
24708 static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) {
24709 PyObject *resultobj;
24710 wxDataObject *arg1 = (wxDataObject *) 0 ;
24711 int arg2 = (int) wxDataObject::Get ;
24712 PyObject *result;
24713 PyObject * obj0 = 0 ;
24714 PyObject * obj1 = 0 ;
24715 char *kwnames[] = {
24716 (char *) "self",(char *) "dir", NULL
24717 };
24718
24719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail;
24720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24722 if (obj1) {
24723 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24724 if (PyErr_Occurred()) SWIG_fail;
24725 }
24726 {
24727 PyThreadState* __tstate = wxPyBeginAllowThreads();
24728 result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2);
24729
24730 wxPyEndAllowThreads(__tstate);
24731 if (PyErr_Occurred()) SWIG_fail;
24732 }
24733 resultobj = result;
24734 return resultobj;
24735 fail:
24736 return NULL;
24737 }
24738
24739
24740 static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24741 PyObject *resultobj;
24742 wxDataObject *arg1 = (wxDataObject *) 0 ;
24743 wxDataFormat *arg2 = 0 ;
24744 PyObject *result;
24745 PyObject * obj0 = 0 ;
24746 PyObject * obj1 = 0 ;
24747 char *kwnames[] = {
24748 (char *) "self",(char *) "format", NULL
24749 };
24750
24751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail;
24752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24754 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24755 SWIG_POINTER_EXCEPTION | 0)) == -1)
24756 SWIG_fail;
24757 if (arg2 == NULL) {
24758 PyErr_SetString(PyExc_TypeError,"null reference");
24759 SWIG_fail;
24760 }
24761 {
24762 PyThreadState* __tstate = wxPyBeginAllowThreads();
24763 result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2);
24764
24765 wxPyEndAllowThreads(__tstate);
24766 if (PyErr_Occurred()) SWIG_fail;
24767 }
24768 resultobj = result;
24769 return resultobj;
24770 fail:
24771 return NULL;
24772 }
24773
24774
24775 static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24776 PyObject *resultobj;
24777 wxDataObject *arg1 = (wxDataObject *) 0 ;
24778 wxDataFormat *arg2 = 0 ;
24779 PyObject *arg3 = (PyObject *) 0 ;
24780 bool result;
24781 PyObject * obj0 = 0 ;
24782 PyObject * obj1 = 0 ;
24783 PyObject * obj2 = 0 ;
24784 char *kwnames[] = {
24785 (char *) "self",(char *) "format",(char *) "data", NULL
24786 };
24787
24788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail;
24789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24791 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24792 SWIG_POINTER_EXCEPTION | 0)) == -1)
24793 SWIG_fail;
24794 if (arg2 == NULL) {
24795 PyErr_SetString(PyExc_TypeError,"null reference");
24796 SWIG_fail;
24797 }
24798 arg3 = obj2;
24799 {
24800 PyThreadState* __tstate = wxPyBeginAllowThreads();
24801 result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3);
24802
24803 wxPyEndAllowThreads(__tstate);
24804 if (PyErr_Occurred()) SWIG_fail;
24805 }
24806 {
24807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24808 }
24809 return resultobj;
24810 fail:
24811 return NULL;
24812 }
24813
24814
24815 static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) {
24816 PyObject *obj;
24817 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24818 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
24819 Py_INCREF(obj);
24820 return Py_BuildValue((char *)"");
24821 }
24822 static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24823 PyObject *resultobj;
24824 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24825 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24826 wxDataObjectSimple *result;
24827 PyObject * obj0 = 0 ;
24828 char *kwnames[] = {
24829 (char *) "format", NULL
24830 };
24831
24832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
24833 if (obj0) {
24834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24835 SWIG_POINTER_EXCEPTION | 0)) == -1)
24836 SWIG_fail;
24837 if (arg1 == NULL) {
24838 PyErr_SetString(PyExc_TypeError,"null reference");
24839 SWIG_fail;
24840 }
24841 }
24842 {
24843 PyThreadState* __tstate = wxPyBeginAllowThreads();
24844 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
24845
24846 wxPyEndAllowThreads(__tstate);
24847 if (PyErr_Occurred()) SWIG_fail;
24848 }
24849 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
24850 return resultobj;
24851 fail:
24852 return NULL;
24853 }
24854
24855
24856 static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24857 PyObject *resultobj;
24858 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24859 wxDataFormat *result;
24860 PyObject * obj0 = 0 ;
24861 char *kwnames[] = {
24862 (char *) "self", NULL
24863 };
24864
24865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
24866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24868 {
24869 PyThreadState* __tstate = wxPyBeginAllowThreads();
24870 {
24871 wxDataFormat const &_result_ref = (arg1)->GetFormat();
24872 result = (wxDataFormat *) &_result_ref;
24873 }
24874
24875 wxPyEndAllowThreads(__tstate);
24876 if (PyErr_Occurred()) SWIG_fail;
24877 }
24878 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
24879 return resultobj;
24880 fail:
24881 return NULL;
24882 }
24883
24884
24885 static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24886 PyObject *resultobj;
24887 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24888 wxDataFormat *arg2 = 0 ;
24889 PyObject * obj0 = 0 ;
24890 PyObject * obj1 = 0 ;
24891 char *kwnames[] = {
24892 (char *) "self",(char *) "format", NULL
24893 };
24894
24895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
24896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24898 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24899 SWIG_POINTER_EXCEPTION | 0)) == -1)
24900 SWIG_fail;
24901 if (arg2 == NULL) {
24902 PyErr_SetString(PyExc_TypeError,"null reference");
24903 SWIG_fail;
24904 }
24905 {
24906 PyThreadState* __tstate = wxPyBeginAllowThreads();
24907 (arg1)->SetFormat((wxDataFormat const &)*arg2);
24908
24909 wxPyEndAllowThreads(__tstate);
24910 if (PyErr_Occurred()) SWIG_fail;
24911 }
24912 Py_INCREF(Py_None); resultobj = Py_None;
24913 return resultobj;
24914 fail:
24915 return NULL;
24916 }
24917
24918
24919 static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24920 PyObject *resultobj;
24921 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24922 size_t result;
24923 PyObject * obj0 = 0 ;
24924 char *kwnames[] = {
24925 (char *) "self", NULL
24926 };
24927
24928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail;
24929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24931 {
24932 PyThreadState* __tstate = wxPyBeginAllowThreads();
24933 result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize();
24934
24935 wxPyEndAllowThreads(__tstate);
24936 if (PyErr_Occurred()) SWIG_fail;
24937 }
24938 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24939 return resultobj;
24940 fail:
24941 return NULL;
24942 }
24943
24944
24945 static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24946 PyObject *resultobj;
24947 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24948 PyObject *result;
24949 PyObject * obj0 = 0 ;
24950 char *kwnames[] = {
24951 (char *) "self", NULL
24952 };
24953
24954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail;
24955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24957 {
24958 PyThreadState* __tstate = wxPyBeginAllowThreads();
24959 result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1);
24960
24961 wxPyEndAllowThreads(__tstate);
24962 if (PyErr_Occurred()) SWIG_fail;
24963 }
24964 resultobj = result;
24965 return resultobj;
24966 fail:
24967 return NULL;
24968 }
24969
24970
24971 static PyObject *_wrap_DataObjectSimple_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24972 PyObject *resultobj;
24973 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24974 PyObject *arg2 = (PyObject *) 0 ;
24975 bool result;
24976 PyObject * obj0 = 0 ;
24977 PyObject * obj1 = 0 ;
24978 char *kwnames[] = {
24979 (char *) "self",(char *) "data", NULL
24980 };
24981
24982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail;
24983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24985 arg2 = obj1;
24986 {
24987 PyThreadState* __tstate = wxPyBeginAllowThreads();
24988 result = (bool)wxDataObjectSimple_SetData(arg1,arg2);
24989
24990 wxPyEndAllowThreads(__tstate);
24991 if (PyErr_Occurred()) SWIG_fail;
24992 }
24993 {
24994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24995 }
24996 return resultobj;
24997 fail:
24998 return NULL;
24999 }
25000
25001
25002 static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) {
25003 PyObject *obj;
25004 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25005 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
25006 Py_INCREF(obj);
25007 return Py_BuildValue((char *)"");
25008 }
25009 static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
25010 PyObject *resultobj;
25011 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25012 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25013 wxPyDataObjectSimple *result;
25014 PyObject * obj0 = 0 ;
25015 char *kwnames[] = {
25016 (char *) "format", NULL
25017 };
25018
25019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
25020 if (obj0) {
25021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25022 SWIG_POINTER_EXCEPTION | 0)) == -1)
25023 SWIG_fail;
25024 if (arg1 == NULL) {
25025 PyErr_SetString(PyExc_TypeError,"null reference");
25026 SWIG_fail;
25027 }
25028 }
25029 {
25030 PyThreadState* __tstate = wxPyBeginAllowThreads();
25031 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
25032
25033 wxPyEndAllowThreads(__tstate);
25034 if (PyErr_Occurred()) SWIG_fail;
25035 }
25036 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
25037 return resultobj;
25038 fail:
25039 return NULL;
25040 }
25041
25042
25043 static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25044 PyObject *resultobj;
25045 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
25046 PyObject *arg2 = (PyObject *) 0 ;
25047 PyObject *arg3 = (PyObject *) 0 ;
25048 PyObject * obj0 = 0 ;
25049 PyObject * obj1 = 0 ;
25050 PyObject * obj2 = 0 ;
25051 char *kwnames[] = {
25052 (char *) "self",(char *) "self",(char *) "_class", NULL
25053 };
25054
25055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple,
25057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25058 arg2 = obj1;
25059 arg3 = obj2;
25060 {
25061 PyThreadState* __tstate = wxPyBeginAllowThreads();
25062 (arg1)->_setCallbackInfo(arg2,arg3);
25063
25064 wxPyEndAllowThreads(__tstate);
25065 if (PyErr_Occurred()) SWIG_fail;
25066 }
25067 Py_INCREF(Py_None); resultobj = Py_None;
25068 return resultobj;
25069 fail:
25070 return NULL;
25071 }
25072
25073
25074 static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) {
25075 PyObject *obj;
25076 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25077 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
25078 Py_INCREF(obj);
25079 return Py_BuildValue((char *)"");
25080 }
25081 static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) {
25082 PyObject *resultobj;
25083 wxDataObjectComposite *result;
25084 char *kwnames[] = {
25085 NULL
25086 };
25087
25088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
25089 {
25090 PyThreadState* __tstate = wxPyBeginAllowThreads();
25091 result = (wxDataObjectComposite *)new wxDataObjectComposite();
25092
25093 wxPyEndAllowThreads(__tstate);
25094 if (PyErr_Occurred()) SWIG_fail;
25095 }
25096 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
25097 return resultobj;
25098 fail:
25099 return NULL;
25100 }
25101
25102
25103 static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
25104 PyObject *resultobj;
25105 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
25106 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
25107 bool arg3 = (bool) False ;
25108 PyObject * obj0 = 0 ;
25109 PyObject * obj1 = 0 ;
25110 PyObject * obj2 = 0 ;
25111 char *kwnames[] = {
25112 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
25113 };
25114
25115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
25116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite,
25117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25118 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple,
25119 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25120 if (obj2) {
25121 arg3 = (bool) SWIG_AsBool(obj2);
25122 if (PyErr_Occurred()) SWIG_fail;
25123 }
25124 {
25125 PyThreadState* __tstate = wxPyBeginAllowThreads();
25126 (arg1)->Add(arg2,arg3);
25127
25128 wxPyEndAllowThreads(__tstate);
25129 if (PyErr_Occurred()) SWIG_fail;
25130 }
25131 Py_INCREF(Py_None); resultobj = Py_None;
25132 return resultobj;
25133 fail:
25134 return NULL;
25135 }
25136
25137
25138 static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) {
25139 PyObject *obj;
25140 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25141 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
25142 Py_INCREF(obj);
25143 return Py_BuildValue((char *)"");
25144 }
25145 static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25146 PyObject *resultobj;
25147 wxString const &arg1_defvalue = wxPyEmptyString ;
25148 wxString *arg1 = (wxString *) &arg1_defvalue ;
25149 wxTextDataObject *result;
25150 bool temp1 = False ;
25151 PyObject * obj0 = 0 ;
25152 char *kwnames[] = {
25153 (char *) "text", NULL
25154 };
25155
25156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
25157 if (obj0) {
25158 {
25159 arg1 = wxString_in_helper(obj0);
25160 if (arg1 == NULL) SWIG_fail;
25161 temp1 = True;
25162 }
25163 }
25164 {
25165 PyThreadState* __tstate = wxPyBeginAllowThreads();
25166 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
25167
25168 wxPyEndAllowThreads(__tstate);
25169 if (PyErr_Occurred()) SWIG_fail;
25170 }
25171 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
25172 {
25173 if (temp1)
25174 delete arg1;
25175 }
25176 return resultobj;
25177 fail:
25178 {
25179 if (temp1)
25180 delete arg1;
25181 }
25182 return NULL;
25183 }
25184
25185
25186 static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) {
25187 PyObject *resultobj;
25188 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25189 size_t result;
25190 PyObject * obj0 = 0 ;
25191 char *kwnames[] = {
25192 (char *) "self", NULL
25193 };
25194
25195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
25196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25198 {
25199 PyThreadState* __tstate = wxPyBeginAllowThreads();
25200 result = (size_t)(arg1)->GetTextLength();
25201
25202 wxPyEndAllowThreads(__tstate);
25203 if (PyErr_Occurred()) SWIG_fail;
25204 }
25205 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25206 return resultobj;
25207 fail:
25208 return NULL;
25209 }
25210
25211
25212 static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
25213 PyObject *resultobj;
25214 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25215 wxString result;
25216 PyObject * obj0 = 0 ;
25217 char *kwnames[] = {
25218 (char *) "self", NULL
25219 };
25220
25221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
25222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25224 {
25225 PyThreadState* __tstate = wxPyBeginAllowThreads();
25226 result = (arg1)->GetText();
25227
25228 wxPyEndAllowThreads(__tstate);
25229 if (PyErr_Occurred()) SWIG_fail;
25230 }
25231 {
25232 #if wxUSE_UNICODE
25233 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25234 #else
25235 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25236 #endif
25237 }
25238 return resultobj;
25239 fail:
25240 return NULL;
25241 }
25242
25243
25244 static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
25245 PyObject *resultobj;
25246 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25247 wxString *arg2 = 0 ;
25248 bool temp2 = False ;
25249 PyObject * obj0 = 0 ;
25250 PyObject * obj1 = 0 ;
25251 char *kwnames[] = {
25252 (char *) "self",(char *) "text", NULL
25253 };
25254
25255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
25256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25258 {
25259 arg2 = wxString_in_helper(obj1);
25260 if (arg2 == NULL) SWIG_fail;
25261 temp2 = True;
25262 }
25263 {
25264 PyThreadState* __tstate = wxPyBeginAllowThreads();
25265 (arg1)->SetText((wxString const &)*arg2);
25266
25267 wxPyEndAllowThreads(__tstate);
25268 if (PyErr_Occurred()) SWIG_fail;
25269 }
25270 Py_INCREF(Py_None); resultobj = Py_None;
25271 {
25272 if (temp2)
25273 delete arg2;
25274 }
25275 return resultobj;
25276 fail:
25277 {
25278 if (temp2)
25279 delete arg2;
25280 }
25281 return NULL;
25282 }
25283
25284
25285 static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) {
25286 PyObject *obj;
25287 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25288 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
25289 Py_INCREF(obj);
25290 return Py_BuildValue((char *)"");
25291 }
25292 static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25293 PyObject *resultobj;
25294 wxString const &arg1_defvalue = wxPyEmptyString ;
25295 wxString *arg1 = (wxString *) &arg1_defvalue ;
25296 wxPyTextDataObject *result;
25297 bool temp1 = False ;
25298 PyObject * obj0 = 0 ;
25299 char *kwnames[] = {
25300 (char *) "text", NULL
25301 };
25302
25303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
25304 if (obj0) {
25305 {
25306 arg1 = wxString_in_helper(obj0);
25307 if (arg1 == NULL) SWIG_fail;
25308 temp1 = True;
25309 }
25310 }
25311 {
25312 PyThreadState* __tstate = wxPyBeginAllowThreads();
25313 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
25314
25315 wxPyEndAllowThreads(__tstate);
25316 if (PyErr_Occurred()) SWIG_fail;
25317 }
25318 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
25319 {
25320 if (temp1)
25321 delete arg1;
25322 }
25323 return resultobj;
25324 fail:
25325 {
25326 if (temp1)
25327 delete arg1;
25328 }
25329 return NULL;
25330 }
25331
25332
25333 static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25334 PyObject *resultobj;
25335 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
25336 PyObject *arg2 = (PyObject *) 0 ;
25337 PyObject *arg3 = (PyObject *) 0 ;
25338 PyObject * obj0 = 0 ;
25339 PyObject * obj1 = 0 ;
25340 PyObject * obj2 = 0 ;
25341 char *kwnames[] = {
25342 (char *) "self",(char *) "self",(char *) "_class", NULL
25343 };
25344
25345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject,
25347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25348 arg2 = obj1;
25349 arg3 = obj2;
25350 {
25351 PyThreadState* __tstate = wxPyBeginAllowThreads();
25352 (arg1)->_setCallbackInfo(arg2,arg3);
25353
25354 wxPyEndAllowThreads(__tstate);
25355 if (PyErr_Occurred()) SWIG_fail;
25356 }
25357 Py_INCREF(Py_None); resultobj = Py_None;
25358 return resultobj;
25359 fail:
25360 return NULL;
25361 }
25362
25363
25364 static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) {
25365 PyObject *obj;
25366 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25367 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
25368 Py_INCREF(obj);
25369 return Py_BuildValue((char *)"");
25370 }
25371 static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25372 PyObject *resultobj;
25373 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25374 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25375 wxBitmapDataObject *result;
25376 PyObject * obj0 = 0 ;
25377 char *kwnames[] = {
25378 (char *) "bitmap", NULL
25379 };
25380
25381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
25382 if (obj0) {
25383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25384 SWIG_POINTER_EXCEPTION | 0)) == -1)
25385 SWIG_fail;
25386 if (arg1 == NULL) {
25387 PyErr_SetString(PyExc_TypeError,"null reference");
25388 SWIG_fail;
25389 }
25390 }
25391 {
25392 PyThreadState* __tstate = wxPyBeginAllowThreads();
25393 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
25394
25395 wxPyEndAllowThreads(__tstate);
25396 if (PyErr_Occurred()) SWIG_fail;
25397 }
25398 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
25399 return resultobj;
25400 fail:
25401 return NULL;
25402 }
25403
25404
25405 static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
25406 PyObject *resultobj;
25407 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25408 wxBitmap result;
25409 PyObject * obj0 = 0 ;
25410 char *kwnames[] = {
25411 (char *) "self", NULL
25412 };
25413
25414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
25415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25417 {
25418 PyThreadState* __tstate = wxPyBeginAllowThreads();
25419 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
25420
25421 wxPyEndAllowThreads(__tstate);
25422 if (PyErr_Occurred()) SWIG_fail;
25423 }
25424 {
25425 wxBitmap * resultptr;
25426 resultptr = new wxBitmap((wxBitmap &) result);
25427 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
25428 }
25429 return resultobj;
25430 fail:
25431 return NULL;
25432 }
25433
25434
25435 static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
25436 PyObject *resultobj;
25437 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25438 wxBitmap *arg2 = 0 ;
25439 PyObject * obj0 = 0 ;
25440 PyObject * obj1 = 0 ;
25441 char *kwnames[] = {
25442 (char *) "self",(char *) "bitmap", NULL
25443 };
25444
25445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
25446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25448 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
25449 SWIG_POINTER_EXCEPTION | 0)) == -1)
25450 SWIG_fail;
25451 if (arg2 == NULL) {
25452 PyErr_SetString(PyExc_TypeError,"null reference");
25453 SWIG_fail;
25454 }
25455 {
25456 PyThreadState* __tstate = wxPyBeginAllowThreads();
25457 (arg1)->SetBitmap((wxBitmap const &)*arg2);
25458
25459 wxPyEndAllowThreads(__tstate);
25460 if (PyErr_Occurred()) SWIG_fail;
25461 }
25462 Py_INCREF(Py_None); resultobj = Py_None;
25463 return resultobj;
25464 fail:
25465 return NULL;
25466 }
25467
25468
25469 static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25470 PyObject *obj;
25471 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25472 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
25473 Py_INCREF(obj);
25474 return Py_BuildValue((char *)"");
25475 }
25476 static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25477 PyObject *resultobj;
25478 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25479 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25480 wxPyBitmapDataObject *result;
25481 PyObject * obj0 = 0 ;
25482 char *kwnames[] = {
25483 (char *) "bitmap", NULL
25484 };
25485
25486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
25487 if (obj0) {
25488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25489 SWIG_POINTER_EXCEPTION | 0)) == -1)
25490 SWIG_fail;
25491 if (arg1 == NULL) {
25492 PyErr_SetString(PyExc_TypeError,"null reference");
25493 SWIG_fail;
25494 }
25495 }
25496 {
25497 PyThreadState* __tstate = wxPyBeginAllowThreads();
25498 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
25499
25500 wxPyEndAllowThreads(__tstate);
25501 if (PyErr_Occurred()) SWIG_fail;
25502 }
25503 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
25504 return resultobj;
25505 fail:
25506 return NULL;
25507 }
25508
25509
25510 static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25511 PyObject *resultobj;
25512 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
25513 PyObject *arg2 = (PyObject *) 0 ;
25514 PyObject *arg3 = (PyObject *) 0 ;
25515 PyObject * obj0 = 0 ;
25516 PyObject * obj1 = 0 ;
25517 PyObject * obj2 = 0 ;
25518 char *kwnames[] = {
25519 (char *) "self",(char *) "self",(char *) "_class", NULL
25520 };
25521
25522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject,
25524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25525 arg2 = obj1;
25526 arg3 = obj2;
25527 {
25528 PyThreadState* __tstate = wxPyBeginAllowThreads();
25529 (arg1)->_setCallbackInfo(arg2,arg3);
25530
25531 wxPyEndAllowThreads(__tstate);
25532 if (PyErr_Occurred()) SWIG_fail;
25533 }
25534 Py_INCREF(Py_None); resultobj = Py_None;
25535 return resultobj;
25536 fail:
25537 return NULL;
25538 }
25539
25540
25541 static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25542 PyObject *obj;
25543 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25544 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
25545 Py_INCREF(obj);
25546 return Py_BuildValue((char *)"");
25547 }
25548 static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25549 PyObject *resultobj;
25550 wxFileDataObject *result;
25551 char *kwnames[] = {
25552 NULL
25553 };
25554
25555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
25556 {
25557 PyThreadState* __tstate = wxPyBeginAllowThreads();
25558 result = (wxFileDataObject *)new wxFileDataObject();
25559
25560 wxPyEndAllowThreads(__tstate);
25561 if (PyErr_Occurred()) SWIG_fail;
25562 }
25563 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
25564 return resultobj;
25565 fail:
25566 return NULL;
25567 }
25568
25569
25570 static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) {
25571 PyObject *resultobj;
25572 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25573 wxArrayString *result;
25574 PyObject * obj0 = 0 ;
25575 char *kwnames[] = {
25576 (char *) "self", NULL
25577 };
25578
25579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
25580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25582 {
25583 PyThreadState* __tstate = wxPyBeginAllowThreads();
25584 {
25585 wxArrayString const &_result_ref = (arg1)->GetFilenames();
25586 result = (wxArrayString *) &_result_ref;
25587 }
25588
25589 wxPyEndAllowThreads(__tstate);
25590 if (PyErr_Occurred()) SWIG_fail;
25591 }
25592 {
25593 resultobj = wxArrayString2PyList_helper(*result);
25594 }
25595 return resultobj;
25596 fail:
25597 return NULL;
25598 }
25599
25600
25601 static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) {
25602 PyObject *resultobj;
25603 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25604 wxString *arg2 = 0 ;
25605 bool temp2 = False ;
25606 PyObject * obj0 = 0 ;
25607 PyObject * obj1 = 0 ;
25608 char *kwnames[] = {
25609 (char *) "self",(char *) "filename", NULL
25610 };
25611
25612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
25613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25615 {
25616 arg2 = wxString_in_helper(obj1);
25617 if (arg2 == NULL) SWIG_fail;
25618 temp2 = True;
25619 }
25620 {
25621 PyThreadState* __tstate = wxPyBeginAllowThreads();
25622 (arg1)->AddFile((wxString const &)*arg2);
25623
25624 wxPyEndAllowThreads(__tstate);
25625 if (PyErr_Occurred()) SWIG_fail;
25626 }
25627 Py_INCREF(Py_None); resultobj = Py_None;
25628 {
25629 if (temp2)
25630 delete arg2;
25631 }
25632 return resultobj;
25633 fail:
25634 {
25635 if (temp2)
25636 delete arg2;
25637 }
25638 return NULL;
25639 }
25640
25641
25642 static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) {
25643 PyObject *obj;
25644 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25645 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
25646 Py_INCREF(obj);
25647 return Py_BuildValue((char *)"");
25648 }
25649 static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25650 PyObject *resultobj;
25651 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25652 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25653 wxCustomDataObject *result;
25654 PyObject * obj0 = 0 ;
25655 char *kwnames[] = {
25656 (char *) "format", NULL
25657 };
25658
25659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
25660 if (obj0) {
25661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25662 SWIG_POINTER_EXCEPTION | 0)) == -1)
25663 SWIG_fail;
25664 if (arg1 == NULL) {
25665 PyErr_SetString(PyExc_TypeError,"null reference");
25666 SWIG_fail;
25667 }
25668 }
25669 {
25670 PyThreadState* __tstate = wxPyBeginAllowThreads();
25671 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
25672
25673 wxPyEndAllowThreads(__tstate);
25674 if (PyErr_Occurred()) SWIG_fail;
25675 }
25676 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
25677 return resultobj;
25678 fail:
25679 return NULL;
25680 }
25681
25682
25683 static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25684 PyObject *resultobj;
25685 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25686 PyObject *arg2 = (PyObject *) 0 ;
25687 bool result;
25688 PyObject * obj0 = 0 ;
25689 PyObject * obj1 = 0 ;
25690 char *kwnames[] = {
25691 (char *) "self",(char *) "data", NULL
25692 };
25693
25694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
25695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25697 arg2 = obj1;
25698 {
25699 PyThreadState* __tstate = wxPyBeginAllowThreads();
25700 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
25701
25702 wxPyEndAllowThreads(__tstate);
25703 if (PyErr_Occurred()) SWIG_fail;
25704 }
25705 {
25706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25707 }
25708 return resultobj;
25709 fail:
25710 return NULL;
25711 }
25712
25713
25714 static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
25715 PyObject *resultobj;
25716 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25717 size_t result;
25718 PyObject * obj0 = 0 ;
25719 char *kwnames[] = {
25720 (char *) "self", NULL
25721 };
25722
25723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
25724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25726 {
25727 PyThreadState* __tstate = wxPyBeginAllowThreads();
25728 result = (size_t)(arg1)->GetSize();
25729
25730 wxPyEndAllowThreads(__tstate);
25731 if (PyErr_Occurred()) SWIG_fail;
25732 }
25733 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25734 return resultobj;
25735 fail:
25736 return NULL;
25737 }
25738
25739
25740 static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25741 PyObject *resultobj;
25742 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25743 PyObject *result;
25744 PyObject * obj0 = 0 ;
25745 char *kwnames[] = {
25746 (char *) "self", NULL
25747 };
25748
25749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
25750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25752 {
25753 PyThreadState* __tstate = wxPyBeginAllowThreads();
25754 result = (PyObject *)wxCustomDataObject_GetData(arg1);
25755
25756 wxPyEndAllowThreads(__tstate);
25757 if (PyErr_Occurred()) SWIG_fail;
25758 }
25759 resultobj = result;
25760 return resultobj;
25761 fail:
25762 return NULL;
25763 }
25764
25765
25766 static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) {
25767 PyObject *obj;
25768 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25769 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
25770 Py_INCREF(obj);
25771 return Py_BuildValue((char *)"");
25772 }
25773 static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25774 PyObject *resultobj;
25775 wxURLDataObject *result;
25776 char *kwnames[] = {
25777 NULL
25778 };
25779
25780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
25781 {
25782 PyThreadState* __tstate = wxPyBeginAllowThreads();
25783 result = (wxURLDataObject *)new wxURLDataObject();
25784
25785 wxPyEndAllowThreads(__tstate);
25786 if (PyErr_Occurred()) SWIG_fail;
25787 }
25788 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
25789 return resultobj;
25790 fail:
25791 return NULL;
25792 }
25793
25794
25795 static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25796 PyObject *resultobj;
25797 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25798 wxString result;
25799 PyObject * obj0 = 0 ;
25800 char *kwnames[] = {
25801 (char *) "self", NULL
25802 };
25803
25804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
25805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25807 {
25808 PyThreadState* __tstate = wxPyBeginAllowThreads();
25809 result = (arg1)->GetURL();
25810
25811 wxPyEndAllowThreads(__tstate);
25812 if (PyErr_Occurred()) SWIG_fail;
25813 }
25814 {
25815 #if wxUSE_UNICODE
25816 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25817 #else
25818 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25819 #endif
25820 }
25821 return resultobj;
25822 fail:
25823 return NULL;
25824 }
25825
25826
25827 static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25828 PyObject *resultobj;
25829 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25830 wxString *arg2 = 0 ;
25831 bool temp2 = False ;
25832 PyObject * obj0 = 0 ;
25833 PyObject * obj1 = 0 ;
25834 char *kwnames[] = {
25835 (char *) "self",(char *) "url", NULL
25836 };
25837
25838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
25839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25841 {
25842 arg2 = wxString_in_helper(obj1);
25843 if (arg2 == NULL) SWIG_fail;
25844 temp2 = True;
25845 }
25846 {
25847 PyThreadState* __tstate = wxPyBeginAllowThreads();
25848 (arg1)->SetURL((wxString const &)*arg2);
25849
25850 wxPyEndAllowThreads(__tstate);
25851 if (PyErr_Occurred()) SWIG_fail;
25852 }
25853 Py_INCREF(Py_None); resultobj = Py_None;
25854 {
25855 if (temp2)
25856 delete arg2;
25857 }
25858 return resultobj;
25859 fail:
25860 {
25861 if (temp2)
25862 delete arg2;
25863 }
25864 return NULL;
25865 }
25866
25867
25868 static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) {
25869 PyObject *obj;
25870 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25871 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
25872 Py_INCREF(obj);
25873 return Py_BuildValue((char *)"");
25874 }
25875 static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25876 PyObject *resultobj;
25877 wxMetafileDataObject *result;
25878 char *kwnames[] = {
25879 NULL
25880 };
25881
25882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
25883 {
25884 PyThreadState* __tstate = wxPyBeginAllowThreads();
25885 result = (wxMetafileDataObject *)new wxMetafileDataObject();
25886
25887 wxPyEndAllowThreads(__tstate);
25888 if (PyErr_Occurred()) SWIG_fail;
25889 }
25890 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
25891 return resultobj;
25892 fail:
25893 return NULL;
25894 }
25895
25896
25897 static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) {
25898 PyObject *resultobj;
25899 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25900 wxMetafile *arg2 = 0 ;
25901 PyObject * obj0 = 0 ;
25902 PyObject * obj1 = 0 ;
25903 char *kwnames[] = {
25904 (char *) "self",(char *) "metafile", NULL
25905 };
25906
25907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail;
25908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
25909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25910 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile,
25911 SWIG_POINTER_EXCEPTION | 0)) == -1)
25912 SWIG_fail;
25913 if (arg2 == NULL) {
25914 PyErr_SetString(PyExc_TypeError,"null reference");
25915 SWIG_fail;
25916 }
25917 {
25918 PyThreadState* __tstate = wxPyBeginAllowThreads();
25919 (arg1)->SetMetafile((wxMetafile const &)*arg2);
25920
25921 wxPyEndAllowThreads(__tstate);
25922 if (PyErr_Occurred()) SWIG_fail;
25923 }
25924 Py_INCREF(Py_None); resultobj = Py_None;
25925 return resultobj;
25926 fail:
25927 return NULL;
25928 }
25929
25930
25931 static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) {
25932 PyObject *resultobj;
25933 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25934 wxMetafile result;
25935 PyObject * obj0 = 0 ;
25936 char *kwnames[] = {
25937 (char *) "self", NULL
25938 };
25939
25940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail;
25941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
25942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25943 {
25944 PyThreadState* __tstate = wxPyBeginAllowThreads();
25945 result = ((wxMetafileDataObject const *)arg1)->GetMetafile();
25946
25947 wxPyEndAllowThreads(__tstate);
25948 if (PyErr_Occurred()) SWIG_fail;
25949 }
25950 {
25951 wxMetafile * resultptr;
25952 resultptr = new wxMetafile((wxMetafile &) result);
25953 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1);
25954 }
25955 return resultobj;
25956 fail:
25957 return NULL;
25958 }
25959
25960
25961 static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) {
25962 PyObject *obj;
25963 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25964 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
25965 Py_INCREF(obj);
25966 return Py_BuildValue((char *)"");
25967 }
25968 static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) {
25969 PyObject *resultobj;
25970 int arg1 ;
25971 bool result;
25972 PyObject * obj0 = 0 ;
25973 char *kwnames[] = {
25974 (char *) "res", NULL
25975 };
25976
25977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
25978 arg1 = (wxDragResult) SWIG_AsInt(obj0);
25979 if (PyErr_Occurred()) SWIG_fail;
25980 {
25981 PyThreadState* __tstate = wxPyBeginAllowThreads();
25982 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
25983
25984 wxPyEndAllowThreads(__tstate);
25985 if (PyErr_Occurred()) SWIG_fail;
25986 }
25987 {
25988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25989 }
25990 return resultobj;
25991 fail:
25992 return NULL;
25993 }
25994
25995
25996 static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25997 PyObject *resultobj;
25998 wxWindow *arg1 = (wxWindow *) 0 ;
25999 wxCursor const &arg2_defvalue = wxNullCursor ;
26000 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
26001 wxCursor const &arg3_defvalue = wxNullCursor ;
26002 wxCursor *arg3 = (wxCursor *) &arg3_defvalue ;
26003 wxCursor const &arg4_defvalue = wxNullCursor ;
26004 wxCursor *arg4 = (wxCursor *) &arg4_defvalue ;
26005 wxPyDropSource *result;
26006 PyObject * obj0 = 0 ;
26007 PyObject * obj1 = 0 ;
26008 PyObject * obj2 = 0 ;
26009 PyObject * obj3 = 0 ;
26010 char *kwnames[] = {
26011 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
26012 };
26013
26014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26017 if (obj1) {
26018 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
26019 SWIG_POINTER_EXCEPTION | 0)) == -1)
26020 SWIG_fail;
26021 if (arg2 == NULL) {
26022 PyErr_SetString(PyExc_TypeError,"null reference");
26023 SWIG_fail;
26024 }
26025 }
26026 if (obj2) {
26027 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
26028 SWIG_POINTER_EXCEPTION | 0)) == -1)
26029 SWIG_fail;
26030 if (arg3 == NULL) {
26031 PyErr_SetString(PyExc_TypeError,"null reference");
26032 SWIG_fail;
26033 }
26034 }
26035 if (obj3) {
26036 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor,
26037 SWIG_POINTER_EXCEPTION | 0)) == -1)
26038 SWIG_fail;
26039 if (arg4 == NULL) {
26040 PyErr_SetString(PyExc_TypeError,"null reference");
26041 SWIG_fail;
26042 }
26043 }
26044 {
26045 PyThreadState* __tstate = wxPyBeginAllowThreads();
26046 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4);
26047
26048 wxPyEndAllowThreads(__tstate);
26049 if (PyErr_Occurred()) SWIG_fail;
26050 }
26051 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
26052 return resultobj;
26053 fail:
26054 return NULL;
26055 }
26056
26057
26058 static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26059 PyObject *resultobj;
26060 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26061 PyObject *arg2 = (PyObject *) 0 ;
26062 PyObject *arg3 = (PyObject *) 0 ;
26063 int arg4 ;
26064 PyObject * obj0 = 0 ;
26065 PyObject * obj1 = 0 ;
26066 PyObject * obj2 = 0 ;
26067 PyObject * obj3 = 0 ;
26068 char *kwnames[] = {
26069 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
26070 };
26071
26072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26075 arg2 = obj1;
26076 arg3 = obj2;
26077 arg4 = (int) SWIG_AsInt(obj3);
26078 if (PyErr_Occurred()) SWIG_fail;
26079 {
26080 PyThreadState* __tstate = wxPyBeginAllowThreads();
26081 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
26082
26083 wxPyEndAllowThreads(__tstate);
26084 if (PyErr_Occurred()) SWIG_fail;
26085 }
26086 Py_INCREF(Py_None); resultobj = Py_None;
26087 return resultobj;
26088 fail:
26089 return NULL;
26090 }
26091
26092
26093 static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
26094 PyObject *resultobj;
26095 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26096 PyObject * obj0 = 0 ;
26097 char *kwnames[] = {
26098 (char *) "self", NULL
26099 };
26100
26101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
26102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26104 {
26105 PyThreadState* __tstate = wxPyBeginAllowThreads();
26106 delete arg1;
26107
26108 wxPyEndAllowThreads(__tstate);
26109 if (PyErr_Occurred()) SWIG_fail;
26110 }
26111 Py_INCREF(Py_None); resultobj = Py_None;
26112 return resultobj;
26113 fail:
26114 return NULL;
26115 }
26116
26117
26118 static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26119 PyObject *resultobj;
26120 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26121 wxDataObject *arg2 = 0 ;
26122 PyObject * obj0 = 0 ;
26123 PyObject * obj1 = 0 ;
26124 char *kwnames[] = {
26125 (char *) "self",(char *) "data", NULL
26126 };
26127
26128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
26129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26131 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26132 SWIG_POINTER_EXCEPTION | 0)) == -1)
26133 SWIG_fail;
26134 if (arg2 == NULL) {
26135 PyErr_SetString(PyExc_TypeError,"null reference");
26136 SWIG_fail;
26137 }
26138 {
26139 PyThreadState* __tstate = wxPyBeginAllowThreads();
26140 (arg1)->SetData(*arg2);
26141
26142 wxPyEndAllowThreads(__tstate);
26143 if (PyErr_Occurred()) SWIG_fail;
26144 }
26145 Py_INCREF(Py_None); resultobj = Py_None;
26146 return resultobj;
26147 fail:
26148 return NULL;
26149 }
26150
26151
26152 static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26153 PyObject *resultobj;
26154 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26155 wxDataObject *result;
26156 PyObject * obj0 = 0 ;
26157 char *kwnames[] = {
26158 (char *) "self", NULL
26159 };
26160
26161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
26162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26164 {
26165 PyThreadState* __tstate = wxPyBeginAllowThreads();
26166 result = (wxDataObject *)(arg1)->GetDataObject();
26167
26168 wxPyEndAllowThreads(__tstate);
26169 if (PyErr_Occurred()) SWIG_fail;
26170 }
26171 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26172 return resultobj;
26173 fail:
26174 return NULL;
26175 }
26176
26177
26178 static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
26179 PyObject *resultobj;
26180 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26181 int arg2 ;
26182 wxCursor *arg3 = 0 ;
26183 PyObject * obj0 = 0 ;
26184 PyObject * obj1 = 0 ;
26185 PyObject * obj2 = 0 ;
26186 char *kwnames[] = {
26187 (char *) "self",(char *) "res",(char *) "cursor", NULL
26188 };
26189
26190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
26191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26193 arg2 = (wxDragResult) SWIG_AsInt(obj1);
26194 if (PyErr_Occurred()) SWIG_fail;
26195 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
26196 SWIG_POINTER_EXCEPTION | 0)) == -1)
26197 SWIG_fail;
26198 if (arg3 == NULL) {
26199 PyErr_SetString(PyExc_TypeError,"null reference");
26200 SWIG_fail;
26201 }
26202 {
26203 PyThreadState* __tstate = wxPyBeginAllowThreads();
26204 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
26205
26206 wxPyEndAllowThreads(__tstate);
26207 if (PyErr_Occurred()) SWIG_fail;
26208 }
26209 Py_INCREF(Py_None); resultobj = Py_None;
26210 return resultobj;
26211 fail:
26212 return NULL;
26213 }
26214
26215
26216 static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26217 PyObject *resultobj;
26218 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26219 int arg2 = (int) wxDrag_CopyOnly ;
26220 int result;
26221 PyObject * obj0 = 0 ;
26222 PyObject * obj1 = 0 ;
26223 char *kwnames[] = {
26224 (char *) "self",(char *) "flags", NULL
26225 };
26226
26227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
26228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26230 if (obj1) {
26231 arg2 = (int) SWIG_AsInt(obj1);
26232 if (PyErr_Occurred()) SWIG_fail;
26233 }
26234 {
26235 PyThreadState* __tstate = wxPyBeginAllowThreads();
26236 result = (int)(arg1)->DoDragDrop(arg2);
26237
26238 wxPyEndAllowThreads(__tstate);
26239 if (PyErr_Occurred()) SWIG_fail;
26240 }
26241 resultobj = SWIG_FromInt((int)result);
26242 return resultobj;
26243 fail:
26244 return NULL;
26245 }
26246
26247
26248 static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) {
26249 PyObject *resultobj;
26250 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26251 int arg2 ;
26252 bool result;
26253 PyObject * obj0 = 0 ;
26254 PyObject * obj1 = 0 ;
26255 char *kwnames[] = {
26256 (char *) "self",(char *) "effect", NULL
26257 };
26258
26259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
26260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26262 arg2 = (wxDragResult) SWIG_AsInt(obj1);
26263 if (PyErr_Occurred()) SWIG_fail;
26264 {
26265 PyThreadState* __tstate = wxPyBeginAllowThreads();
26266 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
26267
26268 wxPyEndAllowThreads(__tstate);
26269 if (PyErr_Occurred()) SWIG_fail;
26270 }
26271 {
26272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26273 }
26274 return resultobj;
26275 fail:
26276 return NULL;
26277 }
26278
26279
26280 static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) {
26281 PyObject *obj;
26282 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26283 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
26284 Py_INCREF(obj);
26285 return Py_BuildValue((char *)"");
26286 }
26287 static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26288 PyObject *resultobj;
26289 wxDataObject *arg1 = (wxDataObject *) NULL ;
26290 wxPyDropTarget *result;
26291 PyObject * obj0 = 0 ;
26292 char *kwnames[] = {
26293 (char *) "dataObject", NULL
26294 };
26295
26296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
26297 if (obj0) {
26298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
26299 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26300 }
26301 {
26302 PyThreadState* __tstate = wxPyBeginAllowThreads();
26303 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
26304
26305 wxPyEndAllowThreads(__tstate);
26306 if (PyErr_Occurred()) SWIG_fail;
26307 }
26308 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
26309 return resultobj;
26310 fail:
26311 return NULL;
26312 }
26313
26314
26315 static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26316 PyObject *resultobj;
26317 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26318 PyObject *arg2 = (PyObject *) 0 ;
26319 PyObject *arg3 = (PyObject *) 0 ;
26320 PyObject * obj0 = 0 ;
26321 PyObject * obj1 = 0 ;
26322 PyObject * obj2 = 0 ;
26323 char *kwnames[] = {
26324 (char *) "self",(char *) "self",(char *) "_class", NULL
26325 };
26326
26327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26330 arg2 = obj1;
26331 arg3 = obj2;
26332 {
26333 PyThreadState* __tstate = wxPyBeginAllowThreads();
26334 (arg1)->_setCallbackInfo(arg2,arg3);
26335
26336 wxPyEndAllowThreads(__tstate);
26337 if (PyErr_Occurred()) SWIG_fail;
26338 }
26339 Py_INCREF(Py_None); resultobj = Py_None;
26340 return resultobj;
26341 fail:
26342 return NULL;
26343 }
26344
26345
26346 static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26347 PyObject *resultobj;
26348 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26349 PyObject * obj0 = 0 ;
26350 char *kwnames[] = {
26351 (char *) "self", NULL
26352 };
26353
26354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
26355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26357 {
26358 PyThreadState* __tstate = wxPyBeginAllowThreads();
26359 delete arg1;
26360
26361 wxPyEndAllowThreads(__tstate);
26362 if (PyErr_Occurred()) SWIG_fail;
26363 }
26364 Py_INCREF(Py_None); resultobj = Py_None;
26365 return resultobj;
26366 fail:
26367 return NULL;
26368 }
26369
26370
26371 static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26372 PyObject *resultobj;
26373 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26374 wxDataObject *result;
26375 PyObject * obj0 = 0 ;
26376 char *kwnames[] = {
26377 (char *) "self", NULL
26378 };
26379
26380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
26381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26383 {
26384 PyThreadState* __tstate = wxPyBeginAllowThreads();
26385 result = (wxDataObject *)(arg1)->GetDataObject();
26386
26387 wxPyEndAllowThreads(__tstate);
26388 if (PyErr_Occurred()) SWIG_fail;
26389 }
26390 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26391 return resultobj;
26392 fail:
26393 return NULL;
26394 }
26395
26396
26397 static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26398 PyObject *resultobj;
26399 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26400 wxDataObject *arg2 = (wxDataObject *) 0 ;
26401 PyObject * obj0 = 0 ;
26402 PyObject * obj1 = 0 ;
26403 char *kwnames[] = {
26404 (char *) "self",(char *) "dataObject", NULL
26405 };
26406
26407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
26408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26410 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26411 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26412 {
26413 PyThreadState* __tstate = wxPyBeginAllowThreads();
26414 (arg1)->SetDataObject(arg2);
26415
26416 wxPyEndAllowThreads(__tstate);
26417 if (PyErr_Occurred()) SWIG_fail;
26418 }
26419 Py_INCREF(Py_None); resultobj = Py_None;
26420 return resultobj;
26421 fail:
26422 return NULL;
26423 }
26424
26425
26426 static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26427 PyObject *resultobj;
26428 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26429 int arg2 ;
26430 int arg3 ;
26431 int arg4 ;
26432 int result;
26433 PyObject * obj0 = 0 ;
26434 PyObject * obj1 = 0 ;
26435 PyObject * obj2 = 0 ;
26436 PyObject * obj3 = 0 ;
26437 char *kwnames[] = {
26438 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26439 };
26440
26441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26444 arg2 = (int) SWIG_AsInt(obj1);
26445 if (PyErr_Occurred()) SWIG_fail;
26446 arg3 = (int) SWIG_AsInt(obj2);
26447 if (PyErr_Occurred()) SWIG_fail;
26448 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26449 if (PyErr_Occurred()) SWIG_fail;
26450 {
26451 PyThreadState* __tstate = wxPyBeginAllowThreads();
26452 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26453
26454 wxPyEndAllowThreads(__tstate);
26455 if (PyErr_Occurred()) SWIG_fail;
26456 }
26457 resultobj = SWIG_FromInt((int)result);
26458 return resultobj;
26459 fail:
26460 return NULL;
26461 }
26462
26463
26464 static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26465 PyObject *resultobj;
26466 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26467 int arg2 ;
26468 int arg3 ;
26469 int arg4 ;
26470 int result;
26471 PyObject * obj0 = 0 ;
26472 PyObject * obj1 = 0 ;
26473 PyObject * obj2 = 0 ;
26474 PyObject * obj3 = 0 ;
26475 char *kwnames[] = {
26476 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26477 };
26478
26479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26482 arg2 = (int) SWIG_AsInt(obj1);
26483 if (PyErr_Occurred()) SWIG_fail;
26484 arg3 = (int) SWIG_AsInt(obj2);
26485 if (PyErr_Occurred()) SWIG_fail;
26486 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26487 if (PyErr_Occurred()) SWIG_fail;
26488 {
26489 PyThreadState* __tstate = wxPyBeginAllowThreads();
26490 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26491
26492 wxPyEndAllowThreads(__tstate);
26493 if (PyErr_Occurred()) SWIG_fail;
26494 }
26495 resultobj = SWIG_FromInt((int)result);
26496 return resultobj;
26497 fail:
26498 return NULL;
26499 }
26500
26501
26502 static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26503 PyObject *resultobj;
26504 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26505 PyObject * obj0 = 0 ;
26506 char *kwnames[] = {
26507 (char *) "self", NULL
26508 };
26509
26510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26513 {
26514 PyThreadState* __tstate = wxPyBeginAllowThreads();
26515 (arg1)->base_OnLeave();
26516
26517 wxPyEndAllowThreads(__tstate);
26518 if (PyErr_Occurred()) SWIG_fail;
26519 }
26520 Py_INCREF(Py_None); resultobj = Py_None;
26521 return resultobj;
26522 fail:
26523 return NULL;
26524 }
26525
26526
26527 static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26528 PyObject *resultobj;
26529 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26530 int arg2 ;
26531 int arg3 ;
26532 bool result;
26533 PyObject * obj0 = 0 ;
26534 PyObject * obj1 = 0 ;
26535 PyObject * obj2 = 0 ;
26536 char *kwnames[] = {
26537 (char *) "self",(char *) "x",(char *) "y", NULL
26538 };
26539
26540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26543 arg2 = (int) SWIG_AsInt(obj1);
26544 if (PyErr_Occurred()) SWIG_fail;
26545 arg3 = (int) SWIG_AsInt(obj2);
26546 if (PyErr_Occurred()) SWIG_fail;
26547 {
26548 PyThreadState* __tstate = wxPyBeginAllowThreads();
26549 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26550
26551 wxPyEndAllowThreads(__tstate);
26552 if (PyErr_Occurred()) SWIG_fail;
26553 }
26554 {
26555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26556 }
26557 return resultobj;
26558 fail:
26559 return NULL;
26560 }
26561
26562
26563 static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26564 PyObject *resultobj;
26565 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26566 bool result;
26567 PyObject * obj0 = 0 ;
26568 char *kwnames[] = {
26569 (char *) "self", NULL
26570 };
26571
26572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
26573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26575 {
26576 PyThreadState* __tstate = wxPyBeginAllowThreads();
26577 result = (bool)(arg1)->GetData();
26578
26579 wxPyEndAllowThreads(__tstate);
26580 if (PyErr_Occurred()) SWIG_fail;
26581 }
26582 {
26583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26584 }
26585 return resultobj;
26586 fail:
26587 return NULL;
26588 }
26589
26590
26591 static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) {
26592 PyObject *obj;
26593 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26594 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
26595 Py_INCREF(obj);
26596 return Py_BuildValue((char *)"");
26597 }
26598 static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26599 PyObject *resultobj;
26600 wxPyTextDropTarget *result;
26601 char *kwnames[] = {
26602 NULL
26603 };
26604
26605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
26606 {
26607 PyThreadState* __tstate = wxPyBeginAllowThreads();
26608 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
26609
26610 wxPyEndAllowThreads(__tstate);
26611 if (PyErr_Occurred()) SWIG_fail;
26612 }
26613 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
26614 return resultobj;
26615 fail:
26616 return NULL;
26617 }
26618
26619
26620 static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26621 PyObject *resultobj;
26622 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26623 PyObject *arg2 = (PyObject *) 0 ;
26624 PyObject *arg3 = (PyObject *) 0 ;
26625 PyObject * obj0 = 0 ;
26626 PyObject * obj1 = 0 ;
26627 PyObject * obj2 = 0 ;
26628 char *kwnames[] = {
26629 (char *) "self",(char *) "self",(char *) "_class", NULL
26630 };
26631
26632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26635 arg2 = obj1;
26636 arg3 = obj2;
26637 {
26638 PyThreadState* __tstate = wxPyBeginAllowThreads();
26639 (arg1)->_setCallbackInfo(arg2,arg3);
26640
26641 wxPyEndAllowThreads(__tstate);
26642 if (PyErr_Occurred()) SWIG_fail;
26643 }
26644 Py_INCREF(Py_None); resultobj = Py_None;
26645 return resultobj;
26646 fail:
26647 return NULL;
26648 }
26649
26650
26651 static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26652 PyObject *resultobj;
26653 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26654 int arg2 ;
26655 int arg3 ;
26656 int arg4 ;
26657 int result;
26658 PyObject * obj0 = 0 ;
26659 PyObject * obj1 = 0 ;
26660 PyObject * obj2 = 0 ;
26661 PyObject * obj3 = 0 ;
26662 char *kwnames[] = {
26663 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26664 };
26665
26666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26669 arg2 = (int) SWIG_AsInt(obj1);
26670 if (PyErr_Occurred()) SWIG_fail;
26671 arg3 = (int) SWIG_AsInt(obj2);
26672 if (PyErr_Occurred()) SWIG_fail;
26673 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26674 if (PyErr_Occurred()) SWIG_fail;
26675 {
26676 PyThreadState* __tstate = wxPyBeginAllowThreads();
26677 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26678
26679 wxPyEndAllowThreads(__tstate);
26680 if (PyErr_Occurred()) SWIG_fail;
26681 }
26682 resultobj = SWIG_FromInt((int)result);
26683 return resultobj;
26684 fail:
26685 return NULL;
26686 }
26687
26688
26689 static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26690 PyObject *resultobj;
26691 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26692 int arg2 ;
26693 int arg3 ;
26694 int arg4 ;
26695 int result;
26696 PyObject * obj0 = 0 ;
26697 PyObject * obj1 = 0 ;
26698 PyObject * obj2 = 0 ;
26699 PyObject * obj3 = 0 ;
26700 char *kwnames[] = {
26701 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26702 };
26703
26704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26707 arg2 = (int) SWIG_AsInt(obj1);
26708 if (PyErr_Occurred()) SWIG_fail;
26709 arg3 = (int) SWIG_AsInt(obj2);
26710 if (PyErr_Occurred()) SWIG_fail;
26711 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26712 if (PyErr_Occurred()) SWIG_fail;
26713 {
26714 PyThreadState* __tstate = wxPyBeginAllowThreads();
26715 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26716
26717 wxPyEndAllowThreads(__tstate);
26718 if (PyErr_Occurred()) SWIG_fail;
26719 }
26720 resultobj = SWIG_FromInt((int)result);
26721 return resultobj;
26722 fail:
26723 return NULL;
26724 }
26725
26726
26727 static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26728 PyObject *resultobj;
26729 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26730 PyObject * obj0 = 0 ;
26731 char *kwnames[] = {
26732 (char *) "self", NULL
26733 };
26734
26735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26738 {
26739 PyThreadState* __tstate = wxPyBeginAllowThreads();
26740 (arg1)->base_OnLeave();
26741
26742 wxPyEndAllowThreads(__tstate);
26743 if (PyErr_Occurred()) SWIG_fail;
26744 }
26745 Py_INCREF(Py_None); resultobj = Py_None;
26746 return resultobj;
26747 fail:
26748 return NULL;
26749 }
26750
26751
26752 static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26753 PyObject *resultobj;
26754 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26755 int arg2 ;
26756 int arg3 ;
26757 bool result;
26758 PyObject * obj0 = 0 ;
26759 PyObject * obj1 = 0 ;
26760 PyObject * obj2 = 0 ;
26761 char *kwnames[] = {
26762 (char *) "self",(char *) "x",(char *) "y", NULL
26763 };
26764
26765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26768 arg2 = (int) SWIG_AsInt(obj1);
26769 if (PyErr_Occurred()) SWIG_fail;
26770 arg3 = (int) SWIG_AsInt(obj2);
26771 if (PyErr_Occurred()) SWIG_fail;
26772 {
26773 PyThreadState* __tstate = wxPyBeginAllowThreads();
26774 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26775
26776 wxPyEndAllowThreads(__tstate);
26777 if (PyErr_Occurred()) SWIG_fail;
26778 }
26779 {
26780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26781 }
26782 return resultobj;
26783 fail:
26784 return NULL;
26785 }
26786
26787
26788 static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26789 PyObject *resultobj;
26790 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26791 int arg2 ;
26792 int arg3 ;
26793 int arg4 ;
26794 int result;
26795 PyObject * obj0 = 0 ;
26796 PyObject * obj1 = 0 ;
26797 PyObject * obj2 = 0 ;
26798 PyObject * obj3 = 0 ;
26799 char *kwnames[] = {
26800 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26801 };
26802
26803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26806 arg2 = (int) SWIG_AsInt(obj1);
26807 if (PyErr_Occurred()) SWIG_fail;
26808 arg3 = (int) SWIG_AsInt(obj2);
26809 if (PyErr_Occurred()) SWIG_fail;
26810 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26811 if (PyErr_Occurred()) SWIG_fail;
26812 {
26813 PyThreadState* __tstate = wxPyBeginAllowThreads();
26814 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26815
26816 wxPyEndAllowThreads(__tstate);
26817 if (PyErr_Occurred()) SWIG_fail;
26818 }
26819 resultobj = SWIG_FromInt((int)result);
26820 return resultobj;
26821 fail:
26822 return NULL;
26823 }
26824
26825
26826 static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) {
26827 PyObject *obj;
26828 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26829 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
26830 Py_INCREF(obj);
26831 return Py_BuildValue((char *)"");
26832 }
26833 static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26834 PyObject *resultobj;
26835 wxPyFileDropTarget *result;
26836 char *kwnames[] = {
26837 NULL
26838 };
26839
26840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
26841 {
26842 PyThreadState* __tstate = wxPyBeginAllowThreads();
26843 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
26844
26845 wxPyEndAllowThreads(__tstate);
26846 if (PyErr_Occurred()) SWIG_fail;
26847 }
26848 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
26849 return resultobj;
26850 fail:
26851 return NULL;
26852 }
26853
26854
26855 static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26856 PyObject *resultobj;
26857 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26858 PyObject *arg2 = (PyObject *) 0 ;
26859 PyObject *arg3 = (PyObject *) 0 ;
26860 PyObject * obj0 = 0 ;
26861 PyObject * obj1 = 0 ;
26862 PyObject * obj2 = 0 ;
26863 char *kwnames[] = {
26864 (char *) "self",(char *) "self",(char *) "_class", NULL
26865 };
26866
26867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26870 arg2 = obj1;
26871 arg3 = obj2;
26872 {
26873 PyThreadState* __tstate = wxPyBeginAllowThreads();
26874 (arg1)->_setCallbackInfo(arg2,arg3);
26875
26876 wxPyEndAllowThreads(__tstate);
26877 if (PyErr_Occurred()) SWIG_fail;
26878 }
26879 Py_INCREF(Py_None); resultobj = Py_None;
26880 return resultobj;
26881 fail:
26882 return NULL;
26883 }
26884
26885
26886 static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26887 PyObject *resultobj;
26888 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26889 int arg2 ;
26890 int arg3 ;
26891 int arg4 ;
26892 int result;
26893 PyObject * obj0 = 0 ;
26894 PyObject * obj1 = 0 ;
26895 PyObject * obj2 = 0 ;
26896 PyObject * obj3 = 0 ;
26897 char *kwnames[] = {
26898 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26899 };
26900
26901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26904 arg2 = (int) SWIG_AsInt(obj1);
26905 if (PyErr_Occurred()) SWIG_fail;
26906 arg3 = (int) SWIG_AsInt(obj2);
26907 if (PyErr_Occurred()) SWIG_fail;
26908 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26909 if (PyErr_Occurred()) SWIG_fail;
26910 {
26911 PyThreadState* __tstate = wxPyBeginAllowThreads();
26912 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26913
26914 wxPyEndAllowThreads(__tstate);
26915 if (PyErr_Occurred()) SWIG_fail;
26916 }
26917 resultobj = SWIG_FromInt((int)result);
26918 return resultobj;
26919 fail:
26920 return NULL;
26921 }
26922
26923
26924 static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26925 PyObject *resultobj;
26926 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26927 int arg2 ;
26928 int arg3 ;
26929 int arg4 ;
26930 int result;
26931 PyObject * obj0 = 0 ;
26932 PyObject * obj1 = 0 ;
26933 PyObject * obj2 = 0 ;
26934 PyObject * obj3 = 0 ;
26935 char *kwnames[] = {
26936 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26937 };
26938
26939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26942 arg2 = (int) SWIG_AsInt(obj1);
26943 if (PyErr_Occurred()) SWIG_fail;
26944 arg3 = (int) SWIG_AsInt(obj2);
26945 if (PyErr_Occurred()) SWIG_fail;
26946 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26947 if (PyErr_Occurred()) SWIG_fail;
26948 {
26949 PyThreadState* __tstate = wxPyBeginAllowThreads();
26950 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26951
26952 wxPyEndAllowThreads(__tstate);
26953 if (PyErr_Occurred()) SWIG_fail;
26954 }
26955 resultobj = SWIG_FromInt((int)result);
26956 return resultobj;
26957 fail:
26958 return NULL;
26959 }
26960
26961
26962 static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26963 PyObject *resultobj;
26964 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26965 PyObject * obj0 = 0 ;
26966 char *kwnames[] = {
26967 (char *) "self", NULL
26968 };
26969
26970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26973 {
26974 PyThreadState* __tstate = wxPyBeginAllowThreads();
26975 (arg1)->base_OnLeave();
26976
26977 wxPyEndAllowThreads(__tstate);
26978 if (PyErr_Occurred()) SWIG_fail;
26979 }
26980 Py_INCREF(Py_None); resultobj = Py_None;
26981 return resultobj;
26982 fail:
26983 return NULL;
26984 }
26985
26986
26987 static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26988 PyObject *resultobj;
26989 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26990 int arg2 ;
26991 int arg3 ;
26992 bool result;
26993 PyObject * obj0 = 0 ;
26994 PyObject * obj1 = 0 ;
26995 PyObject * obj2 = 0 ;
26996 char *kwnames[] = {
26997 (char *) "self",(char *) "x",(char *) "y", NULL
26998 };
26999
27000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
27001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27003 arg2 = (int) SWIG_AsInt(obj1);
27004 if (PyErr_Occurred()) SWIG_fail;
27005 arg3 = (int) SWIG_AsInt(obj2);
27006 if (PyErr_Occurred()) SWIG_fail;
27007 {
27008 PyThreadState* __tstate = wxPyBeginAllowThreads();
27009 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
27010
27011 wxPyEndAllowThreads(__tstate);
27012 if (PyErr_Occurred()) SWIG_fail;
27013 }
27014 {
27015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27016 }
27017 return resultobj;
27018 fail:
27019 return NULL;
27020 }
27021
27022
27023 static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
27024 PyObject *resultobj;
27025 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27026 int arg2 ;
27027 int arg3 ;
27028 int arg4 ;
27029 int result;
27030 PyObject * obj0 = 0 ;
27031 PyObject * obj1 = 0 ;
27032 PyObject * obj2 = 0 ;
27033 PyObject * obj3 = 0 ;
27034 char *kwnames[] = {
27035 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
27036 };
27037
27038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27041 arg2 = (int) SWIG_AsInt(obj1);
27042 if (PyErr_Occurred()) SWIG_fail;
27043 arg3 = (int) SWIG_AsInt(obj2);
27044 if (PyErr_Occurred()) SWIG_fail;
27045 arg4 = (wxDragResult) SWIG_AsInt(obj3);
27046 if (PyErr_Occurred()) SWIG_fail;
27047 {
27048 PyThreadState* __tstate = wxPyBeginAllowThreads();
27049 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
27050
27051 wxPyEndAllowThreads(__tstate);
27052 if (PyErr_Occurred()) SWIG_fail;
27053 }
27054 resultobj = SWIG_FromInt((int)result);
27055 return resultobj;
27056 fail:
27057 return NULL;
27058 }
27059
27060
27061 static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) {
27062 PyObject *obj;
27063 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27064 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
27065 Py_INCREF(obj);
27066 return Py_BuildValue((char *)"");
27067 }
27068 static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
27069 PyObject *resultobj;
27070 wxClipboard *result;
27071 char *kwnames[] = {
27072 NULL
27073 };
27074
27075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
27076 {
27077 PyThreadState* __tstate = wxPyBeginAllowThreads();
27078 result = (wxClipboard *)new wxClipboard();
27079
27080 wxPyEndAllowThreads(__tstate);
27081 if (PyErr_Occurred()) SWIG_fail;
27082 }
27083 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
27084 return resultobj;
27085 fail:
27086 return NULL;
27087 }
27088
27089
27090 static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
27091 PyObject *resultobj;
27092 wxClipboard *arg1 = (wxClipboard *) 0 ;
27093 PyObject * obj0 = 0 ;
27094 char *kwnames[] = {
27095 (char *) "self", NULL
27096 };
27097
27098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
27099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
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_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
27116 PyObject *resultobj;
27117 wxClipboard *arg1 = (wxClipboard *) 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:Clipboard_Open",kwnames,&obj0)) goto fail;
27125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27127 {
27128 PyThreadState* __tstate = wxPyBeginAllowThreads();
27129 result = (bool)(arg1)->Open();
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 *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
27144 PyObject *resultobj;
27145 wxClipboard *arg1 = (wxClipboard *) 0 ;
27146 PyObject * obj0 = 0 ;
27147 char *kwnames[] = {
27148 (char *) "self", NULL
27149 };
27150
27151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
27152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27154 {
27155 PyThreadState* __tstate = wxPyBeginAllowThreads();
27156 (arg1)->Close();
27157
27158 wxPyEndAllowThreads(__tstate);
27159 if (PyErr_Occurred()) SWIG_fail;
27160 }
27161 Py_INCREF(Py_None); resultobj = Py_None;
27162 return resultobj;
27163 fail:
27164 return NULL;
27165 }
27166
27167
27168 static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
27169 PyObject *resultobj;
27170 wxClipboard *arg1 = (wxClipboard *) 0 ;
27171 bool result;
27172 PyObject * obj0 = 0 ;
27173 char *kwnames[] = {
27174 (char *) "self", NULL
27175 };
27176
27177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
27178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27180 {
27181 PyThreadState* __tstate = wxPyBeginAllowThreads();
27182 result = (bool)((wxClipboard const *)arg1)->IsOpened();
27183
27184 wxPyEndAllowThreads(__tstate);
27185 if (PyErr_Occurred()) SWIG_fail;
27186 }
27187 {
27188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27189 }
27190 return resultobj;
27191 fail:
27192 return NULL;
27193 }
27194
27195
27196 static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) {
27197 PyObject *resultobj;
27198 wxClipboard *arg1 = (wxClipboard *) 0 ;
27199 wxDataObject *arg2 = (wxDataObject *) 0 ;
27200 bool result;
27201 PyObject * obj0 = 0 ;
27202 PyObject * obj1 = 0 ;
27203 char *kwnames[] = {
27204 (char *) "self",(char *) "data", NULL
27205 };
27206
27207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
27208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27210 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27211 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27212 {
27213 PyThreadState* __tstate = wxPyBeginAllowThreads();
27214 result = (bool)(arg1)->AddData(arg2);
27215
27216 wxPyEndAllowThreads(__tstate);
27217 if (PyErr_Occurred()) SWIG_fail;
27218 }
27219 {
27220 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27221 }
27222 return resultobj;
27223 fail:
27224 return NULL;
27225 }
27226
27227
27228 static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
27229 PyObject *resultobj;
27230 wxClipboard *arg1 = (wxClipboard *) 0 ;
27231 wxDataObject *arg2 = (wxDataObject *) 0 ;
27232 bool result;
27233 PyObject * obj0 = 0 ;
27234 PyObject * obj1 = 0 ;
27235 char *kwnames[] = {
27236 (char *) "self",(char *) "data", NULL
27237 };
27238
27239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
27240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27242 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27243 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27244 {
27245 PyThreadState* __tstate = wxPyBeginAllowThreads();
27246 result = (bool)(arg1)->SetData(arg2);
27247
27248 wxPyEndAllowThreads(__tstate);
27249 if (PyErr_Occurred()) SWIG_fail;
27250 }
27251 {
27252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27253 }
27254 return resultobj;
27255 fail:
27256 return NULL;
27257 }
27258
27259
27260 static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
27261 PyObject *resultobj;
27262 wxClipboard *arg1 = (wxClipboard *) 0 ;
27263 wxDataFormat *arg2 = 0 ;
27264 bool result;
27265 PyObject * obj0 = 0 ;
27266 PyObject * obj1 = 0 ;
27267 char *kwnames[] = {
27268 (char *) "self",(char *) "format", NULL
27269 };
27270
27271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
27272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27274 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
27275 SWIG_POINTER_EXCEPTION | 0)) == -1)
27276 SWIG_fail;
27277 if (arg2 == NULL) {
27278 PyErr_SetString(PyExc_TypeError,"null reference");
27279 SWIG_fail;
27280 }
27281 {
27282 PyThreadState* __tstate = wxPyBeginAllowThreads();
27283 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
27284
27285 wxPyEndAllowThreads(__tstate);
27286 if (PyErr_Occurred()) SWIG_fail;
27287 }
27288 {
27289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27290 }
27291 return resultobj;
27292 fail:
27293 return NULL;
27294 }
27295
27296
27297 static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
27298 PyObject *resultobj;
27299 wxClipboard *arg1 = (wxClipboard *) 0 ;
27300 wxDataObject *arg2 = 0 ;
27301 bool result;
27302 PyObject * obj0 = 0 ;
27303 PyObject * obj1 = 0 ;
27304 char *kwnames[] = {
27305 (char *) "self",(char *) "data", NULL
27306 };
27307
27308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
27309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27311 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27312 SWIG_POINTER_EXCEPTION | 0)) == -1)
27313 SWIG_fail;
27314 if (arg2 == NULL) {
27315 PyErr_SetString(PyExc_TypeError,"null reference");
27316 SWIG_fail;
27317 }
27318 {
27319 PyThreadState* __tstate = wxPyBeginAllowThreads();
27320 result = (bool)(arg1)->GetData(*arg2);
27321
27322 wxPyEndAllowThreads(__tstate);
27323 if (PyErr_Occurred()) SWIG_fail;
27324 }
27325 {
27326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27327 }
27328 return resultobj;
27329 fail:
27330 return NULL;
27331 }
27332
27333
27334 static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
27335 PyObject *resultobj;
27336 wxClipboard *arg1 = (wxClipboard *) 0 ;
27337 PyObject * obj0 = 0 ;
27338 char *kwnames[] = {
27339 (char *) "self", NULL
27340 };
27341
27342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
27343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27345 {
27346 PyThreadState* __tstate = wxPyBeginAllowThreads();
27347 (arg1)->Clear();
27348
27349 wxPyEndAllowThreads(__tstate);
27350 if (PyErr_Occurred()) SWIG_fail;
27351 }
27352 Py_INCREF(Py_None); resultobj = Py_None;
27353 return resultobj;
27354 fail:
27355 return NULL;
27356 }
27357
27358
27359 static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
27360 PyObject *resultobj;
27361 wxClipboard *arg1 = (wxClipboard *) 0 ;
27362 bool result;
27363 PyObject * obj0 = 0 ;
27364 char *kwnames[] = {
27365 (char *) "self", NULL
27366 };
27367
27368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
27369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27371 {
27372 PyThreadState* __tstate = wxPyBeginAllowThreads();
27373 result = (bool)(arg1)->Flush();
27374
27375 wxPyEndAllowThreads(__tstate);
27376 if (PyErr_Occurred()) SWIG_fail;
27377 }
27378 {
27379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27380 }
27381 return resultobj;
27382 fail:
27383 return NULL;
27384 }
27385
27386
27387 static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) {
27388 PyObject *resultobj;
27389 wxClipboard *arg1 = (wxClipboard *) 0 ;
27390 bool arg2 = (bool) True ;
27391 PyObject * obj0 = 0 ;
27392 PyObject * obj1 = 0 ;
27393 char *kwnames[] = {
27394 (char *) "self",(char *) "primary", NULL
27395 };
27396
27397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
27398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27400 if (obj1) {
27401 arg2 = (bool) SWIG_AsBool(obj1);
27402 if (PyErr_Occurred()) SWIG_fail;
27403 }
27404 {
27405 PyThreadState* __tstate = wxPyBeginAllowThreads();
27406 (arg1)->UsePrimarySelection(arg2);
27407
27408 wxPyEndAllowThreads(__tstate);
27409 if (PyErr_Occurred()) SWIG_fail;
27410 }
27411 Py_INCREF(Py_None); resultobj = Py_None;
27412 return resultobj;
27413 fail:
27414 return NULL;
27415 }
27416
27417
27418 static PyObject *_wrap_Clipboard_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
27419 PyObject *resultobj;
27420 wxClipboard *result;
27421 char *kwnames[] = {
27422 NULL
27423 };
27424
27425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail;
27426 {
27427 PyThreadState* __tstate = wxPyBeginAllowThreads();
27428 result = (wxClipboard *)wxClipboard::Get();
27429
27430 wxPyEndAllowThreads(__tstate);
27431 if (PyErr_Occurred()) SWIG_fail;
27432 }
27433 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0);
27434 return resultobj;
27435 fail:
27436 return NULL;
27437 }
27438
27439
27440 static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) {
27441 PyObject *obj;
27442 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27443 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
27444 Py_INCREF(obj);
27445 return Py_BuildValue((char *)"");
27446 }
27447 static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27448 PyObject *resultobj;
27449 wxClipboard *arg1 = (wxClipboard *) NULL ;
27450 wxClipboardLocker *result;
27451 PyObject * obj0 = 0 ;
27452 char *kwnames[] = {
27453 (char *) "clipboard", NULL
27454 };
27455
27456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
27457 if (obj0) {
27458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27460 }
27461 {
27462 PyThreadState* __tstate = wxPyBeginAllowThreads();
27463 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
27464
27465 wxPyEndAllowThreads(__tstate);
27466 if (PyErr_Occurred()) SWIG_fail;
27467 }
27468 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
27469 return resultobj;
27470 fail:
27471 return NULL;
27472 }
27473
27474
27475 static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27476 PyObject *resultobj;
27477 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27478 PyObject * obj0 = 0 ;
27479 char *kwnames[] = {
27480 (char *) "self", NULL
27481 };
27482
27483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
27484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27486 {
27487 PyThreadState* __tstate = wxPyBeginAllowThreads();
27488 delete arg1;
27489
27490 wxPyEndAllowThreads(__tstate);
27491 if (PyErr_Occurred()) SWIG_fail;
27492 }
27493 Py_INCREF(Py_None); resultobj = Py_None;
27494 return resultobj;
27495 fail:
27496 return NULL;
27497 }
27498
27499
27500 static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
27501 PyObject *resultobj;
27502 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27503 bool result;
27504 PyObject * obj0 = 0 ;
27505 char *kwnames[] = {
27506 (char *) "self", NULL
27507 };
27508
27509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
27510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27512 {
27513 PyThreadState* __tstate = wxPyBeginAllowThreads();
27514 result = (bool)wxClipboardLocker___nonzero__(arg1);
27515
27516 wxPyEndAllowThreads(__tstate);
27517 if (PyErr_Occurred()) SWIG_fail;
27518 }
27519 {
27520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27521 }
27522 return resultobj;
27523 fail:
27524 return NULL;
27525 }
27526
27527
27528 static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) {
27529 PyObject *obj;
27530 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27531 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
27532 Py_INCREF(obj);
27533 return Py_BuildValue((char *)"");
27534 }
27535 static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27536 PyObject *resultobj;
27537 int arg1 = (int) 0 ;
27538 int arg2 = (int) 0 ;
27539 int arg3 = (int) 0 ;
27540 int arg4 = (int) 0 ;
27541 wxVideoMode *result;
27542 PyObject * obj0 = 0 ;
27543 PyObject * obj1 = 0 ;
27544 PyObject * obj2 = 0 ;
27545 PyObject * obj3 = 0 ;
27546 char *kwnames[] = {
27547 (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL
27548 };
27549
27550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27551 if (obj0) {
27552 arg1 = (int) SWIG_AsInt(obj0);
27553 if (PyErr_Occurred()) SWIG_fail;
27554 }
27555 if (obj1) {
27556 arg2 = (int) SWIG_AsInt(obj1);
27557 if (PyErr_Occurred()) SWIG_fail;
27558 }
27559 if (obj2) {
27560 arg3 = (int) SWIG_AsInt(obj2);
27561 if (PyErr_Occurred()) SWIG_fail;
27562 }
27563 if (obj3) {
27564 arg4 = (int) SWIG_AsInt(obj3);
27565 if (PyErr_Occurred()) SWIG_fail;
27566 }
27567 {
27568 PyThreadState* __tstate = wxPyBeginAllowThreads();
27569 result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4);
27570
27571 wxPyEndAllowThreads(__tstate);
27572 if (PyErr_Occurred()) SWIG_fail;
27573 }
27574 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1);
27575 return resultobj;
27576 fail:
27577 return NULL;
27578 }
27579
27580
27581 static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27582 PyObject *resultobj;
27583 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27584 PyObject * obj0 = 0 ;
27585 char *kwnames[] = {
27586 (char *) "self", NULL
27587 };
27588
27589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail;
27590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27592 {
27593 PyThreadState* __tstate = wxPyBeginAllowThreads();
27594 delete arg1;
27595
27596 wxPyEndAllowThreads(__tstate);
27597 if (PyErr_Occurred()) SWIG_fail;
27598 }
27599 Py_INCREF(Py_None); resultobj = Py_None;
27600 return resultobj;
27601 fail:
27602 return NULL;
27603 }
27604
27605
27606 static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) {
27607 PyObject *resultobj;
27608 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27609 wxVideoMode *arg2 = 0 ;
27610 bool result;
27611 PyObject * obj0 = 0 ;
27612 PyObject * obj1 = 0 ;
27613 char *kwnames[] = {
27614 (char *) "self",(char *) "other", NULL
27615 };
27616
27617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail;
27618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27620 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27621 SWIG_POINTER_EXCEPTION | 0)) == -1)
27622 SWIG_fail;
27623 if (arg2 == NULL) {
27624 PyErr_SetString(PyExc_TypeError,"null reference");
27625 SWIG_fail;
27626 }
27627 {
27628 PyThreadState* __tstate = wxPyBeginAllowThreads();
27629 result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2);
27630
27631 wxPyEndAllowThreads(__tstate);
27632 if (PyErr_Occurred()) SWIG_fail;
27633 }
27634 {
27635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27636 }
27637 return resultobj;
27638 fail:
27639 return NULL;
27640 }
27641
27642
27643 static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
27644 PyObject *resultobj;
27645 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27646 int result;
27647 PyObject * obj0 = 0 ;
27648 char *kwnames[] = {
27649 (char *) "self", NULL
27650 };
27651
27652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail;
27653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27655 {
27656 PyThreadState* __tstate = wxPyBeginAllowThreads();
27657 result = (int)((wxVideoMode const *)arg1)->GetWidth();
27658
27659 wxPyEndAllowThreads(__tstate);
27660 if (PyErr_Occurred()) SWIG_fail;
27661 }
27662 resultobj = SWIG_FromInt((int)result);
27663 return resultobj;
27664 fail:
27665 return NULL;
27666 }
27667
27668
27669 static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
27670 PyObject *resultobj;
27671 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27672 int result;
27673 PyObject * obj0 = 0 ;
27674 char *kwnames[] = {
27675 (char *) "self", NULL
27676 };
27677
27678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail;
27679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27681 {
27682 PyThreadState* __tstate = wxPyBeginAllowThreads();
27683 result = (int)((wxVideoMode const *)arg1)->GetHeight();
27684
27685 wxPyEndAllowThreads(__tstate);
27686 if (PyErr_Occurred()) SWIG_fail;
27687 }
27688 resultobj = SWIG_FromInt((int)result);
27689 return resultobj;
27690 fail:
27691 return NULL;
27692 }
27693
27694
27695 static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
27696 PyObject *resultobj;
27697 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27698 int result;
27699 PyObject * obj0 = 0 ;
27700 char *kwnames[] = {
27701 (char *) "self", NULL
27702 };
27703
27704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail;
27705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27707 {
27708 PyThreadState* __tstate = wxPyBeginAllowThreads();
27709 result = (int)((wxVideoMode const *)arg1)->GetDepth();
27710
27711 wxPyEndAllowThreads(__tstate);
27712 if (PyErr_Occurred()) SWIG_fail;
27713 }
27714 resultobj = SWIG_FromInt((int)result);
27715 return resultobj;
27716 fail:
27717 return NULL;
27718 }
27719
27720
27721 static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
27722 PyObject *resultobj;
27723 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27724 bool result;
27725 PyObject * obj0 = 0 ;
27726 char *kwnames[] = {
27727 (char *) "self", NULL
27728 };
27729
27730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail;
27731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27733 {
27734 PyThreadState* __tstate = wxPyBeginAllowThreads();
27735 result = (bool)((wxVideoMode const *)arg1)->IsOk();
27736
27737 wxPyEndAllowThreads(__tstate);
27738 if (PyErr_Occurred()) SWIG_fail;
27739 }
27740 {
27741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27742 }
27743 return resultobj;
27744 fail:
27745 return NULL;
27746 }
27747
27748
27749 static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
27750 PyObject *resultobj;
27751 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27752 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27753 bool result;
27754 PyObject * obj0 = 0 ;
27755 PyObject * obj1 = 0 ;
27756 char *kwnames[] = {
27757 (char *) "self",(char *) "other", NULL
27758 };
27759
27760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail;
27761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27763 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27765 {
27766 PyThreadState* __tstate = wxPyBeginAllowThreads();
27767 result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2);
27768
27769 wxPyEndAllowThreads(__tstate);
27770 if (PyErr_Occurred()) SWIG_fail;
27771 }
27772 {
27773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27774 }
27775 return resultobj;
27776 fail:
27777 return NULL;
27778 }
27779
27780
27781 static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
27782 PyObject *resultobj;
27783 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27784 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27785 bool result;
27786 PyObject * obj0 = 0 ;
27787 PyObject * obj1 = 0 ;
27788 char *kwnames[] = {
27789 (char *) "self",(char *) "other", NULL
27790 };
27791
27792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail;
27793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27795 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27797 {
27798 PyThreadState* __tstate = wxPyBeginAllowThreads();
27799 result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2);
27800
27801 wxPyEndAllowThreads(__tstate);
27802 if (PyErr_Occurred()) SWIG_fail;
27803 }
27804 {
27805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27806 }
27807 return resultobj;
27808 fail:
27809 return NULL;
27810 }
27811
27812
27813 static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27814 PyObject *resultobj;
27815 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27816 int arg2 ;
27817 PyObject * obj0 = 0 ;
27818 PyObject * obj1 = 0 ;
27819 char *kwnames[] = {
27820 (char *) "self",(char *) "w", NULL
27821 };
27822
27823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail;
27824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27826 arg2 = (int) SWIG_AsInt(obj1);
27827 if (PyErr_Occurred()) SWIG_fail;
27828 if (arg1) (arg1)->w = arg2;
27829
27830 Py_INCREF(Py_None); resultobj = Py_None;
27831 return resultobj;
27832 fail:
27833 return NULL;
27834 }
27835
27836
27837 static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27838 PyObject *resultobj;
27839 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27840 int result;
27841 PyObject * obj0 = 0 ;
27842 char *kwnames[] = {
27843 (char *) "self", NULL
27844 };
27845
27846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail;
27847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27849 result = (int) ((arg1)->w);
27850
27851 resultobj = SWIG_FromInt((int)result);
27852 return resultobj;
27853 fail:
27854 return NULL;
27855 }
27856
27857
27858 static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27859 PyObject *resultobj;
27860 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27861 int arg2 ;
27862 PyObject * obj0 = 0 ;
27863 PyObject * obj1 = 0 ;
27864 char *kwnames[] = {
27865 (char *) "self",(char *) "h", NULL
27866 };
27867
27868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail;
27869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27871 arg2 = (int) SWIG_AsInt(obj1);
27872 if (PyErr_Occurred()) SWIG_fail;
27873 if (arg1) (arg1)->h = arg2;
27874
27875 Py_INCREF(Py_None); resultobj = Py_None;
27876 return resultobj;
27877 fail:
27878 return NULL;
27879 }
27880
27881
27882 static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27883 PyObject *resultobj;
27884 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27885 int result;
27886 PyObject * obj0 = 0 ;
27887 char *kwnames[] = {
27888 (char *) "self", NULL
27889 };
27890
27891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail;
27892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27894 result = (int) ((arg1)->h);
27895
27896 resultobj = SWIG_FromInt((int)result);
27897 return resultobj;
27898 fail:
27899 return NULL;
27900 }
27901
27902
27903 static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27904 PyObject *resultobj;
27905 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27906 int arg2 ;
27907 PyObject * obj0 = 0 ;
27908 PyObject * obj1 = 0 ;
27909 char *kwnames[] = {
27910 (char *) "self",(char *) "bpp", NULL
27911 };
27912
27913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail;
27914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27916 arg2 = (int) SWIG_AsInt(obj1);
27917 if (PyErr_Occurred()) SWIG_fail;
27918 if (arg1) (arg1)->bpp = arg2;
27919
27920 Py_INCREF(Py_None); resultobj = Py_None;
27921 return resultobj;
27922 fail:
27923 return NULL;
27924 }
27925
27926
27927 static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27928 PyObject *resultobj;
27929 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27930 int result;
27931 PyObject * obj0 = 0 ;
27932 char *kwnames[] = {
27933 (char *) "self", NULL
27934 };
27935
27936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail;
27937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27939 result = (int) ((arg1)->bpp);
27940
27941 resultobj = SWIG_FromInt((int)result);
27942 return resultobj;
27943 fail:
27944 return NULL;
27945 }
27946
27947
27948 static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27949 PyObject *resultobj;
27950 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27951 int arg2 ;
27952 PyObject * obj0 = 0 ;
27953 PyObject * obj1 = 0 ;
27954 char *kwnames[] = {
27955 (char *) "self",(char *) "refresh", NULL
27956 };
27957
27958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail;
27959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27961 arg2 = (int) SWIG_AsInt(obj1);
27962 if (PyErr_Occurred()) SWIG_fail;
27963 if (arg1) (arg1)->refresh = arg2;
27964
27965 Py_INCREF(Py_None); resultobj = Py_None;
27966 return resultobj;
27967 fail:
27968 return NULL;
27969 }
27970
27971
27972 static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27973 PyObject *resultobj;
27974 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27975 int result;
27976 PyObject * obj0 = 0 ;
27977 char *kwnames[] = {
27978 (char *) "self", NULL
27979 };
27980
27981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail;
27982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27984 result = (int) ((arg1)->refresh);
27985
27986 resultobj = SWIG_FromInt((int)result);
27987 return resultobj;
27988 fail:
27989 return NULL;
27990 }
27991
27992
27993 static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) {
27994 PyObject *obj;
27995 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27996 SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj);
27997 Py_INCREF(obj);
27998 return Py_BuildValue((char *)"");
27999 }
28000 static int _wrap_DefaultVideoMode_set(PyObject *_val) {
28001 PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only.");
28002 return 1;
28003 }
28004
28005
28006 static PyObject *_wrap_DefaultVideoMode_get() {
28007 PyObject *pyobj;
28008
28009 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0);
28010 return pyobj;
28011 }
28012
28013
28014 static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
28015 PyObject *resultobj;
28016 size_t arg1 = (size_t) 0 ;
28017 wxDisplay *result;
28018 PyObject * obj0 = 0 ;
28019 char *kwnames[] = {
28020 (char *) "index", NULL
28021 };
28022
28023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail;
28024 if (obj0) {
28025 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
28026 if (PyErr_Occurred()) SWIG_fail;
28027 }
28028 {
28029 PyThreadState* __tstate = wxPyBeginAllowThreads();
28030 result = (wxDisplay *)new wxDisplay(arg1);
28031
28032 wxPyEndAllowThreads(__tstate);
28033 if (PyErr_Occurred()) SWIG_fail;
28034 }
28035 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1);
28036 return resultobj;
28037 fail:
28038 return NULL;
28039 }
28040
28041
28042 static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
28043 PyObject *resultobj;
28044 wxDisplay *arg1 = (wxDisplay *) 0 ;
28045 PyObject * obj0 = 0 ;
28046 char *kwnames[] = {
28047 (char *) "self", NULL
28048 };
28049
28050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail;
28051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28053 {
28054 PyThreadState* __tstate = wxPyBeginAllowThreads();
28055 delete arg1;
28056
28057 wxPyEndAllowThreads(__tstate);
28058 if (PyErr_Occurred()) SWIG_fail;
28059 }
28060 Py_INCREF(Py_None); resultobj = Py_None;
28061 return resultobj;
28062 fail:
28063 return NULL;
28064 }
28065
28066
28067 static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
28068 PyObject *resultobj;
28069 size_t result;
28070 char *kwnames[] = {
28071 NULL
28072 };
28073
28074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail;
28075 {
28076 PyThreadState* __tstate = wxPyBeginAllowThreads();
28077 result = (size_t)wxDisplay::GetCount();
28078
28079 wxPyEndAllowThreads(__tstate);
28080 if (PyErr_Occurred()) SWIG_fail;
28081 }
28082 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
28083 return resultobj;
28084 fail:
28085 return NULL;
28086 }
28087
28088
28089 static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
28090 PyObject *resultobj;
28091 wxPoint *arg1 = 0 ;
28092 int result;
28093 wxPoint temp1 ;
28094 PyObject * obj0 = 0 ;
28095 char *kwnames[] = {
28096 (char *) "pt", NULL
28097 };
28098
28099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail;
28100 {
28101 arg1 = &temp1;
28102 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
28103 }
28104 {
28105 PyThreadState* __tstate = wxPyBeginAllowThreads();
28106 result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1);
28107
28108 wxPyEndAllowThreads(__tstate);
28109 if (PyErr_Occurred()) SWIG_fail;
28110 }
28111 resultobj = SWIG_FromInt((int)result);
28112 return resultobj;
28113 fail:
28114 return NULL;
28115 }
28116
28117
28118 static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28119 PyObject *resultobj;
28120 wxWindow *arg1 = (wxWindow *) 0 ;
28121 int result;
28122 PyObject * obj0 = 0 ;
28123 char *kwnames[] = {
28124 (char *) "window", NULL
28125 };
28126
28127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail;
28128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28130 {
28131 PyThreadState* __tstate = wxPyBeginAllowThreads();
28132 result = (int)wxDisplay::GetFromWindow(arg1);
28133
28134 wxPyEndAllowThreads(__tstate);
28135 if (PyErr_Occurred()) SWIG_fail;
28136 }
28137 resultobj = SWIG_FromInt((int)result);
28138 return resultobj;
28139 fail:
28140 return NULL;
28141 }
28142
28143
28144 static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
28145 PyObject *resultobj;
28146 wxDisplay *arg1 = (wxDisplay *) 0 ;
28147 bool result;
28148 PyObject * obj0 = 0 ;
28149 char *kwnames[] = {
28150 (char *) "self", NULL
28151 };
28152
28153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail;
28154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28156 {
28157 PyThreadState* __tstate = wxPyBeginAllowThreads();
28158 result = (bool)((wxDisplay const *)arg1)->IsOk();
28159
28160 wxPyEndAllowThreads(__tstate);
28161 if (PyErr_Occurred()) SWIG_fail;
28162 }
28163 {
28164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28165 }
28166 return resultobj;
28167 fail:
28168 return NULL;
28169 }
28170
28171
28172 static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) {
28173 PyObject *resultobj;
28174 wxDisplay *arg1 = (wxDisplay *) 0 ;
28175 wxRect result;
28176 PyObject * obj0 = 0 ;
28177 char *kwnames[] = {
28178 (char *) "self", NULL
28179 };
28180
28181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail;
28182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28184 {
28185 PyThreadState* __tstate = wxPyBeginAllowThreads();
28186 result = ((wxDisplay const *)arg1)->GetGeometry();
28187
28188 wxPyEndAllowThreads(__tstate);
28189 if (PyErr_Occurred()) SWIG_fail;
28190 }
28191 {
28192 wxRect * resultptr;
28193 resultptr = new wxRect((wxRect &) result);
28194 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
28195 }
28196 return resultobj;
28197 fail:
28198 return NULL;
28199 }
28200
28201
28202 static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
28203 PyObject *resultobj;
28204 wxDisplay *arg1 = (wxDisplay *) 0 ;
28205 wxString result;
28206 PyObject * obj0 = 0 ;
28207 char *kwnames[] = {
28208 (char *) "self", NULL
28209 };
28210
28211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail;
28212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28214 {
28215 PyThreadState* __tstate = wxPyBeginAllowThreads();
28216 result = ((wxDisplay const *)arg1)->GetName();
28217
28218 wxPyEndAllowThreads(__tstate);
28219 if (PyErr_Occurred()) SWIG_fail;
28220 }
28221 {
28222 #if wxUSE_UNICODE
28223 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28224 #else
28225 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28226 #endif
28227 }
28228 return resultobj;
28229 fail:
28230 return NULL;
28231 }
28232
28233
28234 static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) {
28235 PyObject *resultobj;
28236 wxDisplay *arg1 = (wxDisplay *) 0 ;
28237 bool result;
28238 PyObject * obj0 = 0 ;
28239 char *kwnames[] = {
28240 (char *) "self", NULL
28241 };
28242
28243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail;
28244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28246 {
28247 PyThreadState* __tstate = wxPyBeginAllowThreads();
28248 result = (bool)((wxDisplay const *)arg1)->IsPrimary();
28249
28250 wxPyEndAllowThreads(__tstate);
28251 if (PyErr_Occurred()) SWIG_fail;
28252 }
28253 {
28254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28255 }
28256 return resultobj;
28257 fail:
28258 return NULL;
28259 }
28260
28261
28262 static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) {
28263 PyObject *resultobj;
28264 wxDisplay *arg1 = (wxDisplay *) 0 ;
28265 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28266 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28267 PyObject *result;
28268 PyObject * obj0 = 0 ;
28269 PyObject * obj1 = 0 ;
28270 char *kwnames[] = {
28271 (char *) "self",(char *) "mode", NULL
28272 };
28273
28274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail;
28275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28277 if (obj1) {
28278 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28279 SWIG_POINTER_EXCEPTION | 0)) == -1)
28280 SWIG_fail;
28281 if (arg2 == NULL) {
28282 PyErr_SetString(PyExc_TypeError,"null reference");
28283 SWIG_fail;
28284 }
28285 }
28286 {
28287 PyThreadState* __tstate = wxPyBeginAllowThreads();
28288 result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2);
28289
28290 wxPyEndAllowThreads(__tstate);
28291 if (PyErr_Occurred()) SWIG_fail;
28292 }
28293 resultobj = result;
28294 return resultobj;
28295 fail:
28296 return NULL;
28297 }
28298
28299
28300 static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28301 PyObject *resultobj;
28302 wxDisplay *arg1 = (wxDisplay *) 0 ;
28303 wxVideoMode result;
28304 PyObject * obj0 = 0 ;
28305 char *kwnames[] = {
28306 (char *) "self", NULL
28307 };
28308
28309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail;
28310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28312 {
28313 PyThreadState* __tstate = wxPyBeginAllowThreads();
28314 result = ((wxDisplay const *)arg1)->GetCurrentMode();
28315
28316 wxPyEndAllowThreads(__tstate);
28317 if (PyErr_Occurred()) SWIG_fail;
28318 }
28319 {
28320 wxVideoMode * resultptr;
28321 resultptr = new wxVideoMode((wxVideoMode &) result);
28322 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1);
28323 }
28324 return resultobj;
28325 fail:
28326 return NULL;
28327 }
28328
28329
28330 static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28331 PyObject *resultobj;
28332 wxDisplay *arg1 = (wxDisplay *) 0 ;
28333 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28334 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28335 bool result;
28336 PyObject * obj0 = 0 ;
28337 PyObject * obj1 = 0 ;
28338 char *kwnames[] = {
28339 (char *) "self",(char *) "mode", NULL
28340 };
28341
28342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail;
28343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28345 if (obj1) {
28346 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28347 SWIG_POINTER_EXCEPTION | 0)) == -1)
28348 SWIG_fail;
28349 if (arg2 == NULL) {
28350 PyErr_SetString(PyExc_TypeError,"null reference");
28351 SWIG_fail;
28352 }
28353 }
28354 {
28355 PyThreadState* __tstate = wxPyBeginAllowThreads();
28356 result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2);
28357
28358 wxPyEndAllowThreads(__tstate);
28359 if (PyErr_Occurred()) SWIG_fail;
28360 }
28361 {
28362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28363 }
28364 return resultobj;
28365 fail:
28366 return NULL;
28367 }
28368
28369
28370 static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28371 PyObject *resultobj;
28372 wxDisplay *arg1 = (wxDisplay *) 0 ;
28373 PyObject * obj0 = 0 ;
28374 char *kwnames[] = {
28375 (char *) "self", NULL
28376 };
28377
28378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail;
28379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28381 {
28382 PyThreadState* __tstate = wxPyBeginAllowThreads();
28383 (arg1)->ResetMode();
28384
28385 wxPyEndAllowThreads(__tstate);
28386 if (PyErr_Occurred()) SWIG_fail;
28387 }
28388 Py_INCREF(Py_None); resultobj = Py_None;
28389 return resultobj;
28390 fail:
28391 return NULL;
28392 }
28393
28394
28395 static PyObject * Display_swigregister(PyObject *self, PyObject *args) {
28396 PyObject *obj;
28397 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28398 SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj);
28399 Py_INCREF(obj);
28400 return Py_BuildValue((char *)"");
28401 }
28402 static PyMethodDef SwigMethods[] = {
28403 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS },
28404 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS },
28405 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS },
28406 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS },
28407 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS },
28408 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS },
28409 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS },
28410 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS },
28411 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS },
28412 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
28413 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS },
28414 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
28415 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS },
28416 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS },
28417 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS },
28418 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS },
28419 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS },
28420 { (char *)"IsStockID", (PyCFunction) _wrap_IsStockID, METH_VARARGS | METH_KEYWORDS },
28421 { (char *)"IsStockLabel", (PyCFunction) _wrap_IsStockLabel, METH_VARARGS | METH_KEYWORDS },
28422 { (char *)"GetStockLabel", (PyCFunction) _wrap_GetStockLabel, METH_VARARGS | METH_KEYWORDS },
28423 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS },
28424 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS },
28425 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS },
28426 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS },
28427 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS },
28428 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS },
28429 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS },
28430 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS },
28431 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS },
28432 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS },
28433 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS },
28434 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS },
28435 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS },
28436 { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS },
28437 { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS },
28438 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS },
28439 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS },
28440 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS },
28441 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS },
28442 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS },
28443 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS },
28444 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS },
28445 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS },
28446 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS },
28447 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS },
28448 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS },
28449 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS },
28450 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS },
28451 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS },
28452 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS },
28453 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS },
28454 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS },
28455 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS },
28456 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS },
28457 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS },
28458 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS },
28459 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS },
28460 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS },
28461 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS },
28462 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS },
28463 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS },
28464 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28465 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28466 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28467 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28468 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS },
28469 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS },
28470 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS },
28471 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28472 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28473 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS },
28474 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS },
28475 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS },
28476 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS },
28477 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS },
28478 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28479 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28480 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS },
28481 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS },
28482 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS },
28483 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS },
28484 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS },
28485 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS },
28486 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS },
28487 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS },
28488 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS },
28489 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS },
28490 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS },
28491 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS },
28492 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS },
28493 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS },
28494 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
28495 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS },
28496 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
28497 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS },
28498 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS },
28499 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS },
28500 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
28501 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS },
28502 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS },
28503 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS },
28504 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS },
28505 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28506 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28507 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28508 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28509 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS },
28510 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28511 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28512 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS },
28513 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28514 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28515 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS },
28516 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS },
28517 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS },
28518 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS },
28519 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS },
28520 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS },
28521 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS },
28522 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS },
28523 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS },
28524 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS },
28525 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS },
28526 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS },
28527 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS },
28528 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS },
28529 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS },
28530 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS },
28531 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS },
28532 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS },
28533 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS },
28534 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS },
28535 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS },
28536 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28537 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28538 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28539 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS },
28540 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS },
28541 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS },
28542 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS },
28543 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS },
28544 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS },
28545 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS },
28546 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS },
28547 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS },
28548 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS },
28549 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28550 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS },
28551 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS },
28552 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS },
28553 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS },
28554 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS },
28555 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28556 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS },
28557 { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS },
28558 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS },
28559 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS },
28560 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS },
28561 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS },
28562 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS },
28563 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS },
28564 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS },
28565 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS },
28566 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS },
28567 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS },
28568 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS },
28569 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS },
28570 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS },
28571 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS },
28572 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS },
28573 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS },
28574 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS },
28575 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS },
28576 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS },
28577 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS },
28578 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28579 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28580 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS },
28581 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS },
28582 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS },
28583 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS },
28584 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28585 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS },
28586 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS },
28587 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS },
28588 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS },
28589 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS },
28590 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
28591 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS },
28592 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS },
28593 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS },
28594 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS },
28595 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
28596 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS },
28597 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS },
28598 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS },
28599 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS },
28600 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS },
28601 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS },
28602 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS },
28603 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS },
28604 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS },
28605 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS },
28606 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS },
28607 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS },
28608 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28609 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28610 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS },
28611 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS },
28612 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS },
28613 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS },
28614 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS },
28615 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28616 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28617 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS },
28618 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS },
28619 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS },
28620 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS },
28621 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS },
28622 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS },
28623 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS },
28624 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS },
28625 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS },
28626 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS },
28627 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS },
28628 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS },
28629 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS },
28630 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS },
28631 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS },
28632 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS },
28633 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS },
28634 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS },
28635 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS },
28636 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS },
28637 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28638 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS },
28639 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS },
28640 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS },
28641 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS },
28642 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS },
28643 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28644 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS },
28645 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS },
28646 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS },
28647 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS },
28648 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS },
28649 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS },
28650 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS },
28651 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS },
28652 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS },
28653 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS },
28654 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS },
28655 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS },
28656 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
28657 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS },
28658 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS },
28659 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS },
28660 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS },
28661 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS },
28662 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS },
28663 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS },
28664 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS },
28665 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS },
28666 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS },
28667 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS },
28668 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28669 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28670 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS },
28671 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS },
28672 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS },
28673 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS },
28674 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS },
28675 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28676 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28677 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS },
28678 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS },
28679 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS },
28680 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS },
28681 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS },
28682 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS },
28683 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS },
28684 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS },
28685 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS },
28686 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS },
28687 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS },
28688 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS },
28689 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS },
28690 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS },
28691 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS },
28692 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS },
28693 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS },
28694 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS },
28695 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS },
28696 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS },
28697 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS },
28698 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS },
28699 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS },
28700 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS },
28701 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS },
28702 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS },
28703 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS },
28704 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS },
28705 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS },
28706 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS },
28707 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS },
28708 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS },
28709 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS },
28710 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS },
28711 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS },
28712 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS },
28713 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS },
28714 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS },
28715 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS },
28716 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS },
28717 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS },
28718 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS },
28719 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS },
28720 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS },
28721 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
28722 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28723 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28724 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS },
28725 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS },
28726 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS },
28727 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS },
28728 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS },
28729 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
28730 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS },
28731 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS },
28732 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS },
28733 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS },
28734 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS },
28735 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS },
28736 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS },
28737 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS },
28738 { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS },
28739 { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS },
28740 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS },
28741 { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS },
28742 { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS },
28743 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS },
28744 { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS },
28745 { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS },
28746 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS },
28747 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS },
28748 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28749 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS },
28750 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28751 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS },
28752 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS },
28753 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS },
28754 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28755 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28756 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28757 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS },
28758 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS },
28759 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28760 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS },
28761 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS },
28762 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS },
28763 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS },
28764 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS },
28765 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS },
28766 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28767 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS },
28768 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28769 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS },
28770 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS },
28771 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS },
28772 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28773 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28774 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS },
28775 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS },
28776 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS },
28777 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS },
28778 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS },
28779 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS },
28780 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS },
28781 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28782 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS },
28783 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS },
28784 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS },
28785 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS },
28786 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS },
28787 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS },
28788 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS },
28789 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS },
28790 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS },
28791 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS },
28792 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28793 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS },
28794 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS },
28795 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28796 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS },
28797 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS },
28798 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS },
28799 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28800 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS },
28801 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
28802 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS },
28803 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS },
28804 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS },
28805 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS },
28806 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS },
28807 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28808 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS },
28809 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS },
28810 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS },
28811 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS },
28812 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS },
28813 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS },
28814 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS },
28815 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS },
28816 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS },
28817 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS },
28818 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS },
28819 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS },
28820 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS },
28821 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS },
28822 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS },
28823 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS },
28824 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS },
28825 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS },
28826 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS },
28827 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS },
28828 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS },
28829 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS },
28830 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS },
28831 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS },
28832 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS },
28833 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS },
28834 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28835 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS },
28836 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS },
28837 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS },
28838 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28839 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS },
28840 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS },
28841 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS },
28842 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS },
28843 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS },
28844 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
28845 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS },
28846 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS },
28847 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS },
28848 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS },
28849 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS },
28850 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS },
28851 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS },
28852 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28853 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28854 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS },
28855 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS },
28856 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28857 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS },
28858 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS },
28859 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS },
28860 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS },
28861 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS },
28862 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS },
28863 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS },
28864 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS },
28865 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS },
28866 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS },
28867 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS },
28868 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS },
28869 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS },
28870 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS },
28871 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS },
28872 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS },
28873 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS },
28874 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS },
28875 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS },
28876 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS },
28877 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS },
28878 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS },
28879 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS },
28880 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS },
28881 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS },
28882 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS },
28883 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS },
28884 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS },
28885 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS },
28886 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS },
28887 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS },
28888 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS },
28889 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS },
28890 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS },
28891 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS },
28892 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS },
28893 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS },
28894 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS },
28895 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28896 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28897 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28898 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28899 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28900 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28901 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS },
28902 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28903 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28904 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS },
28905 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS },
28906 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28907 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28908 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS },
28909 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS },
28910 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28911 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS },
28912 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28913 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS },
28914 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS },
28915 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS },
28916 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS },
28917 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS },
28918 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS },
28919 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS },
28920 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS },
28921 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS },
28922 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS },
28923 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS },
28924 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS },
28925 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS },
28926 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS },
28927 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS },
28928 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS },
28929 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS },
28930 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS },
28931 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS },
28932 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS },
28933 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS },
28934 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28935 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS },
28936 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS },
28937 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS },
28938 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS },
28939 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS },
28940 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS },
28941 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS },
28942 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS },
28943 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS },
28944 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS },
28945 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS },
28946 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS },
28947 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS },
28948 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS },
28949 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS },
28950 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS },
28951 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS },
28952 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS },
28953 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS },
28954 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS },
28955 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS },
28956 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS },
28957 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS },
28958 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS },
28959 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS },
28960 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS },
28961 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS },
28962 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS },
28963 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS },
28964 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS },
28965 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS },
28966 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS },
28967 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS },
28968 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS },
28969 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS },
28970 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS },
28971 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS },
28972 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS },
28973 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS },
28974 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS },
28975 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS },
28976 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28977 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS },
28978 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28979 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28980 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS },
28981 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28982 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28983 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28984 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS },
28985 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28986 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28987 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28988 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28989 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS },
28990 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28991 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28992 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28993 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS },
28994 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS },
28995 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS },
28996 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS },
28997 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS },
28998 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS },
28999 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS },
29000 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS },
29001 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS },
29002 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
29003 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS },
29004 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS },
29005 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
29006 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
29007 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS },
29008 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS },
29009 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS },
29010 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS },
29011 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS },
29012 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS },
29013 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS },
29014 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS },
29015 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS },
29016 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS },
29017 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
29018 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS },
29019 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS },
29020 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS },
29021 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS },
29022 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS },
29023 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS },
29024 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS },
29025 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS },
29026 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS },
29027 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS },
29028 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS },
29029 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
29030 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
29031 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS },
29032 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS },
29033 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
29034 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS },
29035 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
29036 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
29037 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS },
29038 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS },
29039 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS },
29040 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS },
29041 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS },
29042 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS },
29043 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
29044 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS },
29045 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS },
29046 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS },
29047 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS },
29048 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS },
29049 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS },
29050 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS },
29051 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS },
29052 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS },
29053 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS },
29054 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS },
29055 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS },
29056 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS },
29057 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS },
29058 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS },
29059 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS },
29060 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS },
29061 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS },
29062 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS },
29063 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS },
29064 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS },
29065 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS },
29066 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS },
29067 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS },
29068 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS },
29069 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS },
29070 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS },
29071 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS },
29072 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS },
29073 { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS },
29074 { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS },
29075 { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS },
29076 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS },
29077 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS },
29078 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
29079 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS },
29080 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS },
29081 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS },
29082 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS },
29083 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS },
29084 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS },
29085 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS },
29086 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS },
29087 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS },
29088 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS },
29089 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
29090 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS },
29091 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS },
29092 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS },
29093 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS },
29094 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS },
29095 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS },
29096 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
29097 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS },
29098 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS },
29099 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS },
29100 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS },
29101 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS },
29102 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS },
29103 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS },
29104 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS },
29105 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS },
29106 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS },
29107 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS },
29108 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS },
29109 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS },
29110 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS },
29111 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS },
29112 { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS },
29113 { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS },
29114 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS },
29115 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS },
29116 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS },
29117 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
29118 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS },
29119 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS },
29120 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS },
29121 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS },
29122 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS },
29123 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS },
29124 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS },
29125 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS },
29126 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
29127 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS },
29128 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS },
29129 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS },
29130 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
29131 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
29132 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
29133 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
29134 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS },
29135 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS },
29136 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS },
29137 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
29138 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
29139 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
29140 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
29141 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
29142 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
29143 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS },
29144 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS },
29145 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
29146 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
29147 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
29148 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
29149 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
29150 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
29151 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS },
29152 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS },
29153 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS },
29154 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS },
29155 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS },
29156 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS },
29157 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS },
29158 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS },
29159 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS },
29160 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS },
29161 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS },
29162 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS },
29163 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS },
29164 { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS },
29165 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS },
29166 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
29167 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
29168 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS },
29169 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS },
29170 { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS },
29171 { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS },
29172 { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS },
29173 { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS },
29174 { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS },
29175 { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS },
29176 { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS },
29177 { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS },
29178 { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS },
29179 { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS },
29180 { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS },
29181 { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS },
29182 { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS },
29183 { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS },
29184 { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS },
29185 { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS },
29186 { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS },
29187 { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS },
29188 { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS },
29189 { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS },
29190 { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS },
29191 { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS },
29192 { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS },
29193 { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS },
29194 { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS },
29195 { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS },
29196 { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS },
29197 { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS },
29198 { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS },
29199 { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS },
29200 { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS },
29201 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS },
29202 { NULL, NULL }
29203 };
29204
29205
29206 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
29207
29208 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
29209 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
29210 }
29211 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
29212 return (void *)((wxEvent *) ((wxMenuEvent *) x));
29213 }
29214 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
29215 return (void *)((wxEvent *) ((wxCloseEvent *) x));
29216 }
29217 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
29218 return (void *)((wxEvent *) ((wxMouseEvent *) x));
29219 }
29220 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
29221 return (void *)((wxEvent *) ((wxEraseEvent *) x));
29222 }
29223 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
29224 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
29225 }
29226 static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
29227 return (void *)((wxEvent *) ((wxTimerEvent *) x));
29228 }
29229 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
29230 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
29231 }
29232 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
29233 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
29234 }
29235 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
29236 return (void *)((wxEvent *) ((wxPyEvent *) x));
29237 }
29238 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
29239 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
29240 }
29241 static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
29242 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
29243 }
29244 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
29245 return (void *)((wxEvent *) ((wxIdleEvent *) x));
29246 }
29247 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
29248 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
29249 }
29250 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
29251 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
29252 }
29253 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
29254 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
29255 }
29256 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
29257 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
29258 }
29259 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
29260 return (void *)((wxEvent *) ((wxActivateEvent *) x));
29261 }
29262 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
29263 return (void *)((wxEvent *) ((wxSizeEvent *) x));
29264 }
29265 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
29266 return (void *)((wxEvent *) ((wxMoveEvent *) x));
29267 }
29268 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
29269 return (void *)((wxEvent *) ((wxPaintEvent *) x));
29270 }
29271 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
29272 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
29273 }
29274 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
29275 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
29276 }
29277 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
29278 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
29279 }
29280 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
29281 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
29282 }
29283 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
29284 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29285 }
29286 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
29287 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
29288 }
29289 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
29290 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
29291 }
29292 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
29293 return (void *)((wxEvent *) ((wxFocusEvent *) x));
29294 }
29295 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
29296 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
29297 }
29298 static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
29299 return (void *)((wxEvent *) ((wxProcessEvent *) x));
29300 }
29301 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
29302 return (void *)((wxEvent *) ((wxShowEvent *) x));
29303 }
29304 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
29305 return (void *)((wxEvent *) ((wxCommandEvent *) x));
29306 }
29307 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
29308 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
29309 }
29310 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
29311 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29312 }
29313 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
29314 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
29315 }
29316 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
29317 return (void *)((wxEvent *) ((wxKeyEvent *) x));
29318 }
29319 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
29320 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
29321 }
29322 static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
29323 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
29324 }
29325 static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
29326 return (void *)((wxConfigBase *) ((wxConfig *) x));
29327 }
29328 static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
29329 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29330 }
29331 static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
29332 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
29333 }
29334 static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
29335 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
29336 }
29337 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
29338 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29339 }
29340 static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
29341 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
29342 }
29343 static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
29344 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
29345 }
29346 static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
29347 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
29348 }
29349 static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
29350 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29351 }
29352 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
29353 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29354 }
29355 static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
29356 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
29357 }
29358 static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
29359 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
29360 }
29361 static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
29362 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
29363 }
29364 static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
29365 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29366 }
29367 static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
29368 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
29369 }
29370 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
29371 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29372 }
29373 static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29374 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
29375 }
29376 static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29377 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
29378 }
29379 static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29380 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29381 }
29382 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29383 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29384 }
29385 static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
29386 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
29387 }
29388 static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
29389 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
29390 }
29391 static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
29392 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29393 }
29394 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
29395 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
29396 }
29397 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
29398 return (void *)((wxEvtHandler *) ((wxWindow *) x));
29399 }
29400 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
29401 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29402 }
29403 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
29404 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
29405 }
29406 static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
29407 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
29408 }
29409 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
29410 return (void *)((wxEvtHandler *) ((wxValidator *) x));
29411 }
29412 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
29413 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
29414 }
29415 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
29416 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
29417 }
29418 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
29419 return (void *)((wxEvtHandler *) ((wxMenu *) x));
29420 }
29421 static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
29422 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
29423 }
29424 static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
29425 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
29426 }
29427 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
29428 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
29429 }
29430 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
29431 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
29432 }
29433 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
29434 return (void *)((wxObject *) ((wxSizerItem *) x));
29435 }
29436 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
29437 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
29438 }
29439 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
29440 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
29441 }
29442 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
29443 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
29444 }
29445 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
29446 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
29447 }
29448 static void *_p_wxSizerTo_p_wxObject(void *x) {
29449 return (void *)((wxObject *) ((wxSizer *) x));
29450 }
29451 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
29452 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
29453 }
29454 static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
29455 return (void *)((wxObject *) ((wxFileHistory *) x));
29456 }
29457 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
29458 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
29459 }
29460 static void *_p_wxEventTo_p_wxObject(void *x) {
29461 return (void *)((wxObject *) ((wxEvent *) x));
29462 }
29463 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
29464 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
29465 }
29466 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
29467 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
29468 }
29469 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
29470 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
29471 }
29472 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
29473 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
29474 }
29475 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
29476 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
29477 }
29478 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
29479 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
29480 }
29481 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
29482 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
29483 }
29484 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
29485 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29486 }
29487 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
29488 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
29489 }
29490 static void *_p_wxControlTo_p_wxObject(void *x) {
29491 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
29492 }
29493 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
29494 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
29495 }
29496 static void *_p_wxTimerEventTo_p_wxObject(void *x) {
29497 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
29498 }
29499 static void *_p_wxFSFileTo_p_wxObject(void *x) {
29500 return (void *)((wxObject *) ((wxFSFile *) x));
29501 }
29502 static void *_p_wxClipboardTo_p_wxObject(void *x) {
29503 return (void *)((wxObject *) ((wxClipboard *) x));
29504 }
29505 static void *_p_wxPySizerTo_p_wxObject(void *x) {
29506 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
29507 }
29508 static void *_p_wxPyEventTo_p_wxObject(void *x) {
29509 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
29510 }
29511 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
29512 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
29513 }
29514 static void *_p_wxShowEventTo_p_wxObject(void *x) {
29515 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
29516 }
29517 static void *_p_wxToolTipTo_p_wxObject(void *x) {
29518 return (void *)((wxObject *) ((wxToolTip *) x));
29519 }
29520 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
29521 return (void *)((wxObject *) ((wxMenuItem *) x));
29522 }
29523 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
29524 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
29525 }
29526 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
29527 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
29528 }
29529 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
29530 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
29531 }
29532 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
29533 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
29534 }
29535 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
29536 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
29537 }
29538 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
29539 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
29540 }
29541 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
29542 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
29543 }
29544 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
29545 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
29546 }
29547 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
29548 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
29549 }
29550 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
29551 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
29552 }
29553 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
29554 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
29555 }
29556 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
29557 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
29558 }
29559 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
29560 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
29561 }
29562 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
29563 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
29564 }
29565 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
29566 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
29567 }
29568 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
29569 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
29570 }
29571 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
29572 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
29573 }
29574 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
29575 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
29576 }
29577 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
29578 return (void *)((wxObject *) ((wxImageHandler *) x));
29579 }
29580 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
29581 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
29582 }
29583 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
29584 return (void *)((wxObject *) ((wxEvtHandler *) x));
29585 }
29586 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
29587 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
29588 }
29589 static void *_p_wxImageTo_p_wxObject(void *x) {
29590 return (void *)((wxObject *) ((wxImage *) x));
29591 }
29592 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
29593 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
29594 }
29595 static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
29596 return (void *)((wxObject *) ((wxSystemOptions *) x));
29597 }
29598 static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
29599 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
29600 }
29601 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
29602 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29603 }
29604 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
29605 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
29606 }
29607 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
29608 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
29609 }
29610 static void *_p_wxWindowTo_p_wxObject(void *x) {
29611 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
29612 }
29613 static void *_p_wxMenuTo_p_wxObject(void *x) {
29614 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
29615 }
29616 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
29617 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
29618 }
29619 static void *_p_wxPyProcessTo_p_wxObject(void *x) {
29620 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
29621 }
29622 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
29623 return (void *)((wxObject *) ((wxFileSystem *) x));
29624 }
29625 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
29626 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
29627 }
29628 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
29629 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
29630 }
29631 static void *_p_wxPyAppTo_p_wxObject(void *x) {
29632 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
29633 }
29634 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
29635 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
29636 }
29637 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
29638 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
29639 }
29640 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
29641 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
29642 }
29643 static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
29644 return (void *)((wxObject *) ((wxBusyInfo *) x));
29645 }
29646 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
29647 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
29648 }
29649 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
29650 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
29651 }
29652 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
29653 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
29654 }
29655 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
29656 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
29657 }
29658 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
29659 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
29660 }
29661 static void *_p_wxProcessEventTo_p_wxObject(void *x) {
29662 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
29663 }
29664 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
29665 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29666 }
29667 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
29668 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
29669 }
29670 static void *_p_wxValidatorTo_p_wxObject(void *x) {
29671 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
29672 }
29673 static void *_p_wxPyTimerTo_p_wxObject(void *x) {
29674 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
29675 }
29676 static void *_p_wxLogStderrTo_p_wxLog(void *x) {
29677 return (void *)((wxLog *) ((wxLogStderr *) x));
29678 }
29679 static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
29680 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
29681 }
29682 static void *_p_wxLogWindowTo_p_wxLog(void *x) {
29683 return (void *)((wxLog *) ((wxLogWindow *) x));
29684 }
29685 static void *_p_wxLogChainTo_p_wxLog(void *x) {
29686 return (void *)((wxLog *) ((wxLogChain *) x));
29687 }
29688 static void *_p_wxLogGuiTo_p_wxLog(void *x) {
29689 return (void *)((wxLog *) ((wxLogGui *) x));
29690 }
29691 static void *_p_wxPyLogTo_p_wxLog(void *x) {
29692 return (void *)((wxLog *) ((wxPyLog *) x));
29693 }
29694 static void *_p_wxControlTo_p_wxWindow(void *x) {
29695 return (void *)((wxWindow *) ((wxControl *) x));
29696 }
29697 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
29698 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
29699 }
29700 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
29701 return (void *)((wxWindow *) ((wxMenuBar *) x));
29702 }
29703 static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
29704 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
29705 }
29706 static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
29707 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
29708 }
29709 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}};
29710 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}};
29711 static swig_type_info _swigt__p_wxMetafile[] = {{"_p_wxMetafile", 0, "wxMetafile *", 0, 0, 0, 0},{"_p_wxMetafile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29712 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}};
29713 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}};
29714 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}};
29715 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}};
29716 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}};
29717 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}};
29718 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}};
29719 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}};
29720 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}};
29721 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}};
29722 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}};
29723 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}};
29724 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}};
29725 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}};
29726 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}};
29727 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}};
29728 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}};
29729 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}};
29730 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}};
29731 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}};
29732 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}};
29733 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}};
29734 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}};
29735 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}};
29736 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}};
29737 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}};
29738 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}};
29739 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}};
29740 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}};
29741 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}};
29742 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}};
29743 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}};
29744 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}};
29745 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}};
29746 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}};
29747 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}};
29748 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}};
29749 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}};
29750 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}};
29751 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}};
29752 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}};
29753 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}};
29754 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}};
29755 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}};
29756 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}};
29757 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}};
29758 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}};
29759 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}};
29760 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}};
29761 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}};
29762 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}};
29763 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}};
29764 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}};
29765 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}};
29766 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}};
29767 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}};
29768 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}};
29769 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}};
29770 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}};
29771 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}};
29772 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}};
29773 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}};
29774 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}};
29775 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}};
29776 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}};
29777 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}};
29778 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}};
29779 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}};
29780 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}};
29781 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}};
29782 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}};
29783 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}};
29784 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}};
29785 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}};
29786 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}};
29787 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}};
29788 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}};
29789 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}};
29790 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}};
29791 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}};
29792 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}};
29793 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}};
29794 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}};
29795
29796 static swig_type_info *swig_types_initial[] = {
29797 _swigt__p_wxLogChain,
29798 _swigt__p_wxMutexGuiLocker,
29799 _swigt__p_wxMetafile,
29800 _swigt__p_wxFileHistory,
29801 _swigt__p_wxLog,
29802 _swigt__p_wxDateTime__TimeZone,
29803 _swigt__p_wxMenu,
29804 _swigt__p_wxEvent,
29805 _swigt__p_wxConfigBase,
29806 _swigt__p_wxDisplay,
29807 _swigt__p_wxFileType,
29808 _swigt__p_wxLogGui,
29809 _swigt__p_wxFont,
29810 _swigt__p_wxDataFormat,
29811 _swigt__p_wxTimerEvent,
29812 _swigt__p_wxCaret,
29813 _swigt__p_int,
29814 _swigt__p_wxSize,
29815 _swigt__p_wxClipboard,
29816 _swigt__p_wxStopWatch,
29817 _swigt__p_wxDC,
29818 _swigt__p_wxClipboardLocker,
29819 _swigt__p_wxIcon,
29820 _swigt__p_wxLogStderr,
29821 _swigt__p_wxLogTextCtrl,
29822 _swigt__p_wxTextCtrl,
29823 _swigt__p_wxBusyCursor,
29824 _swigt__p_wxPyBitmapDataObject,
29825 _swigt__p_wxPyTextDataObject,
29826 _swigt__p_wxBitmapDataObject,
29827 _swigt__p_wxTextDataObject,
29828 _swigt__p_wxDataObject,
29829 _swigt__p_wxFileDataObject,
29830 _swigt__p_wxCustomDataObject,
29831 _swigt__p_wxURLDataObject,
29832 _swigt__p_wxMetafileDataObject,
29833 _swigt__p_wxSound,
29834 _swigt__p_wxTimerRunner,
29835 _swigt__p_wxLogWindow,
29836 _swigt__p_wxTimeSpan,
29837 _swigt__p_wxArrayString,
29838 _swigt__p_wxWindowDisabler,
29839 _swigt__p_wxToolTip,
29840 _swigt__p_wxDataObjectComposite,
29841 _swigt__p_wxFileConfig,
29842 _swigt__p_wxSystemSettings,
29843 _swigt__p_wxVideoMode,
29844 _swigt__p_wxPyDataObjectSimple,
29845 _swigt__p_wxDataObjectSimple,
29846 _swigt__p_wxEvtHandler,
29847 _swigt__p_wxRect,
29848 _swigt__p_char,
29849 _swigt__p_wxSingleInstanceChecker,
29850 _swigt__p_wxFileTypeInfo,
29851 _swigt__p_wxFrame,
29852 _swigt__p_wxTimer,
29853 _swigt__p_wxMimeTypesManager,
29854 _swigt__p_wxPyArtProvider,
29855 _swigt__p_wxPyTipProvider,
29856 _swigt__p_wxTipProvider,
29857 _swigt__p_wxJoystick,
29858 _swigt__p_wxSystemOptions,
29859 _swigt__p_wxPoint,
29860 _swigt__p_wxJoystickEvent,
29861 _swigt__p_wxCursor,
29862 _swigt__p_wxObject,
29863 _swigt__p_wxOutputStream,
29864 _swigt__p_wxDateTime,
29865 _swigt__p_wxPyDropSource,
29866 _swigt__p_wxWindow,
29867 _swigt__p_wxString,
29868 _swigt__p_wxPyProcess,
29869 _swigt__p_wxBitmap,
29870 _swigt__p_wxConfig,
29871 _swigt__p_wxChar,
29872 _swigt__p_wxBusyInfo,
29873 _swigt__p_wxPyDropTarget,
29874 _swigt__p_wxPyTextDropTarget,
29875 _swigt__p_wxPyFileDropTarget,
29876 _swigt__p_wxProcessEvent,
29877 _swigt__p_wxPyLog,
29878 _swigt__p_wxLogNull,
29879 _swigt__p_wxColour,
29880 _swigt__p_wxConfigPathChanger,
29881 _swigt__p_wxPyTimer,
29882 _swigt__p_wxDateSpan,
29883 0
29884 };
29885
29886
29887 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
29888
29889 static swig_const_info swig_const_table[] = {
29890 { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
29891 { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
29892 { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
29893 { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
29894 { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
29895 {0}};
29896
29897 #ifdef __cplusplus
29898 }
29899 #endif
29900
29901 #ifdef __cplusplus
29902 extern "C"
29903 #endif
29904 SWIGEXPORT(void) SWIG_init(void) {
29905 static PyObject *SWIG_globals = 0;
29906 static int typeinit = 0;
29907 PyObject *m, *d;
29908 int i;
29909 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
29910 m = Py_InitModule((char *) SWIG_name, SwigMethods);
29911 d = PyModule_GetDict(m);
29912
29913 if (!typeinit) {
29914 for (i = 0; swig_types_initial[i]; i++) {
29915 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
29916 }
29917 typeinit = 1;
29918 }
29919 SWIG_InstallConstants(d,swig_const_table);
29920
29921 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT));
29922 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT));
29923 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT));
29924 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT));
29925 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT));
29926 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE));
29927 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT));
29928 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT));
29929 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT));
29930 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR));
29931 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND));
29932 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP));
29933 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION));
29934 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION));
29935 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU));
29936 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW));
29937 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME));
29938 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT));
29939 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT));
29940 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT));
29941 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER));
29942 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER));
29943 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE));
29944 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT));
29945 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT));
29946 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE));
29947 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE));
29948 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW));
29949 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW));
29950 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT));
29951 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT));
29952 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT));
29953 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT));
29954 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT));
29955 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT));
29956 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT));
29957 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW));
29958 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT));
29959 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT));
29960 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK));
29961 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX));
29962 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT));
29963 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION));
29964 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION));
29965 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT));
29966 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR));
29967 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX));
29968 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS));
29969 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X));
29970 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y));
29971 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X));
29972 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y));
29973 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X));
29974 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y));
29975 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X));
29976 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y));
29977 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X));
29978 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y));
29979 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X));
29980 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y));
29981 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X));
29982 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X));
29983 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y));
29984 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X));
29985 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y));
29986 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X));
29987 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y));
29988 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X));
29989 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y));
29990 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X));
29991 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y));
29992 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X));
29993 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y));
29994 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y));
29995 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X));
29996 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X));
29997 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y));
29998 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y));
29999 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y));
30000 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y));
30001 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT));
30002 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT));
30003 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS));
30004 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS));
30005 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS));
30006 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME));
30007 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE));
30008 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY));
30009 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA));
30010 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL));
30011 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP));
30012 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
30013 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
30014 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
30015 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
30016 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF));
30017 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT));
30018 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS));
30019 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT));
30020 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
30021
30022 wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer");
30023
30024 PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError));
30025 PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error));
30026 PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning));
30027 PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message));
30028 PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status));
30029 PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info));
30030 PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug));
30031 PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace));
30032 PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress));
30033 PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User));
30034 PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max));
30035 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
30036 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
30037 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
30038 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
30039 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
30040 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001));
30041 PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002));
30042 PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004));
30043 PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008));
30044 PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100));
30045 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT));
30046 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT));
30047 PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK));
30048 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL));
30049 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED));
30050 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS));
30051 PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR));
30052 PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE));
30053 PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP));
30054 PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT));
30055 PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT));
30056 PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL));
30057 PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP));
30058 PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT));
30059 PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT));
30060 PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT));
30061 PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE));
30062 PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL));
30063 PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS));
30064 PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV));
30065 PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS));
30066 PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE));
30067 PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM));
30068 PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM));
30069 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
30070 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC));
30071 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC));
30072 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE));
30073 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER));
30074
30075 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
30076
30077 PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1));
30078 PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2));
30079 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY));
30080 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1));
30081 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2));
30082 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3));
30083 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4));
30084 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
30085 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
30086 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
30087 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
30088 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC));
30089 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC));
30090 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP));
30091 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD));
30092 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE));
30093 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE));
30094 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME));
30095 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL));
30096 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
30097 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
30098 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
30099 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
30100 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
30101 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
30102 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
30103 SWIG_addvarlink(SWIG_globals,(char*)"ART_BUTTON",_wrap_ART_BUTTON_get, _wrap_ART_BUTTON_set);
30104 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
30105 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
30106 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
30107 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
30108 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
30109 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
30110 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
30111 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
30112 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
30113 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
30114 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
30115 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
30116 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
30117 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
30118 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
30119 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
30120 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
30121 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
30122 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
30123 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
30124 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
30125 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
30126 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
30127 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
30128 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
30129 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
30130 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
30131 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
30132 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
30133 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
30134 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
30135 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
30136
30137 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
30138
30139 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE));
30140 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE));
30141 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH));
30142 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS));
30143 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown));
30144 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String));
30145 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean));
30146 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer));
30147 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float));
30148 SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set);
30149 SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set);
30150 PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local));
30151 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12));
30152 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11));
30153 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10));
30154 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9));
30155 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8));
30156 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7));
30157 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6));
30158 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5));
30159 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4));
30160 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3));
30161 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2));
30162 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1));
30163 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0));
30164 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1));
30165 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2));
30166 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3));
30167 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4));
30168 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5));
30169 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6));
30170 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7));
30171 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8));
30172 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9));
30173 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10));
30174 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11));
30175 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12));
30176 PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET));
30177 PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST));
30178 PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET));
30179 PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST));
30180 PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET));
30181 PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST));
30182 PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK));
30183 PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD));
30184 PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST));
30185 PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT));
30186 PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST));
30187 PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT));
30188 PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST));
30189 PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT));
30190 PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST));
30191 PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT));
30192 PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST));
30193 PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT));
30194 PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST));
30195 PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST));
30196 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT));
30197 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST));
30198 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST));
30199 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST));
30200 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST));
30201 PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC));
30202 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian));
30203 PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian));
30204 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown));
30205 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard));
30206 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska));
30207 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania));
30208 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria));
30209 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen));
30210 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg));
30211 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol));
30212 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia));
30213 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria));
30214 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium));
30215 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria));
30216 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1));
30217 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2));
30218 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3));
30219 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada));
30220 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China));
30221 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1));
30222 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2));
30223 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia));
30224 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark));
30225 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt));
30226 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia));
30227 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland));
30228 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France));
30229 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace));
30230 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine));
30231 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg));
30232 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany));
30233 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic));
30234 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia));
30235 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant));
30236 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain));
30237 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece));
30238 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary));
30239 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland));
30240 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy));
30241 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan));
30242 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1));
30243 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2));
30244 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3));
30245 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia));
30246 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania));
30247 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg));
30248 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands));
30249 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen));
30250 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland));
30251 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht));
30252 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland));
30253 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway));
30254 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland));
30255 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal));
30256 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania));
30257 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia));
30258 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland));
30259 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain));
30260 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden));
30261 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland));
30262 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic));
30263 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant));
30264 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey));
30265 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA));
30266 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales));
30267 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia));
30268 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown));
30269 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default));
30270 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start));
30271 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC));
30272 PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France));
30273 PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany));
30274 PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK));
30275 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End));
30276 PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia));
30277 PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA));
30278 PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan));
30279 PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb));
30280 PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar));
30281 PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr));
30282 PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May));
30283 PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun));
30284 PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul));
30285 PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug));
30286 PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep));
30287 PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct));
30288 PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov));
30289 PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec));
30290 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month));
30291 PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun));
30292 PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon));
30293 PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue));
30294 PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed));
30295 PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu));
30296 PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri));
30297 PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat));
30298 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay));
30299 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year));
30300 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full));
30301 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr));
30302 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First));
30303 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First));
30304 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First));
30305 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
30306 PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID));
30307 PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT));
30308 PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP));
30309 PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE));
30310 PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK));
30311 PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF));
30312 PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF));
30313 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT));
30314 PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB));
30315 PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE));
30316 PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA));
30317 PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF));
30318 PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE));
30319 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT));
30320 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE));
30321 PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME));
30322 PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE));
30323 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE));
30324 PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML));
30325 PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX));
30326 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
30327 PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get));
30328 PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set));
30329 PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both));
30330 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly));
30331 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove));
30332 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove));
30333 PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError));
30334 PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone));
30335 PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy));
30336 PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove));
30337 PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink));
30338 PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel));
30339
30340 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
30341 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
30342 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
30343 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
30344
30345 SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set);
30346 }
30347