2 * FILE : src/gtk/utils.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
43 extern void SWIG_MakePtr(char *, void *, char *);
44 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
45 extern char *SWIG_GetPtr(char *, void **, char *);
46 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
47 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
48 extern PyObject
*SWIG_newvarlink(void);
52 #define SWIG_init initutilsc
54 #define SWIG_name "utilsc"
57 #include <wx/config.h>
58 #include <wx/fileconf.h>
59 #include <wx/datetime.h>
61 static PyObject
* l_output_helper(PyObject
* target
, PyObject
* o
) {
65 } else if (target
== Py_None
) {
69 if (!PyList_Check(target
)) {
71 target
= PyList_New(0);
72 PyList_Append(target
, o2
);
75 PyList_Append(target
,o
);
81 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
87 } else if (target
== Py_None
) {
91 if (!PyTuple_Check(target
)) {
93 target
= PyTuple_New(1);
94 PyTuple_SetItem(target
, 0, o2
);
97 PyTuple_SetItem(o3
, 0, o
);
100 target
= PySequence_Concat(o2
, o3
);
107 #if PYTHON_API_VERSION >= 1009
108 static char* wxStringErrorMsg
= "String or Unicode type required";
110 static char* wxStringErrorMsg
= "String type required";
113 static wxString
wxPyEmptyStr("");
115 static PyObject
* __EnumerationHelper(bool flag
, wxString
& str
, long index
) {
116 PyObject
* ret
= PyTuple_New(3);
118 PyTuple_SET_ITEM(ret
, 0, PyInt_FromLong(flag
));
119 PyTuple_SET_ITEM(ret
, 1, PyString_FromString(str
));
120 PyTuple_SET_ITEM(ret
, 2, PyInt_FromLong(index
));
125 #define LOCAL *(new wxDateTime::TimeZone(wxDateTime::Local))
129 static PyObject
*_wrap_wxGetLocalTime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
130 PyObject
* _resultobj
;
132 char *_kwnames
[] = { NULL
};
135 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxGetLocalTime",_kwnames
))
138 wxPy_BEGIN_ALLOW_THREADS
;
139 _result
= (long )wxGetLocalTime();
141 wxPy_END_ALLOW_THREADS
;
142 if (PyErr_Occurred()) return NULL
;
143 } _resultobj
= Py_BuildValue("l",_result
);
147 static PyObject
*_wrap_wxGetUTCTime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
148 PyObject
* _resultobj
;
150 char *_kwnames
[] = { NULL
};
153 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxGetUTCTime",_kwnames
))
156 wxPy_BEGIN_ALLOW_THREADS
;
157 _result
= (long )wxGetUTCTime();
159 wxPy_END_ALLOW_THREADS
;
160 if (PyErr_Occurred()) return NULL
;
161 } _resultobj
= Py_BuildValue("l",_result
);
165 static PyObject
*_wrap_wxGetCurrentTime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
166 PyObject
* _resultobj
;
168 char *_kwnames
[] = { NULL
};
171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxGetCurrentTime",_kwnames
))
174 wxPy_BEGIN_ALLOW_THREADS
;
175 _result
= (long )wxGetCurrentTime();
177 wxPy_END_ALLOW_THREADS
;
178 if (PyErr_Occurred()) return NULL
;
179 } _resultobj
= Py_BuildValue("l",_result
);
183 static PyObject
*_wrap_wxGetLocalTimeMillis(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
184 PyObject
* _resultobj
;
185 wxLongLong
* _result
;
186 char *_kwnames
[] = { NULL
};
189 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxGetLocalTimeMillis",_kwnames
))
192 wxPy_BEGIN_ALLOW_THREADS
;
193 _result
= new wxLongLong (wxGetLocalTimeMillis());
195 wxPy_END_ALLOW_THREADS
;
196 if (PyErr_Occurred()) return NULL
;
198 PyObject
*hi
, *lo
, *shifter
, *shifted
;
199 hi
= PyLong_FromLong(_result
->GetHi());
200 lo
= PyLong_FromLong(_result
->GetLo());
201 shifter
= PyLong_FromLong(32);
202 shifted
= PyNumber_Lshift(hi
, shifter
);
203 _resultobj
= PyNumber_Or(shifted
, lo
);
212 #define delete_wxConfigBase(_swigobj) (delete _swigobj)
213 static PyObject
*_wrap_delete_wxConfigBase(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
214 PyObject
* _resultobj
;
215 wxConfigBase
* _arg0
;
216 PyObject
* _argo0
= 0;
217 char *_kwnames
[] = { "self", NULL
};
220 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxConfigBase",_kwnames
,&_argo0
))
223 if (_argo0
== Py_None
) { _arg0
= NULL
; }
224 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
225 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxConfigBase. Expected _wxConfigBase_p.");
230 wxPy_BEGIN_ALLOW_THREADS
;
231 delete_wxConfigBase(_arg0
);
233 wxPy_END_ALLOW_THREADS
;
234 if (PyErr_Occurred()) return NULL
;
235 } Py_INCREF(Py_None
);
236 _resultobj
= Py_None
;
240 static PyObject
*_wrap_wxConfigBase_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
241 PyObject
* _resultobj
;
242 wxConfigBase
* _result
;
243 wxConfigBase
* _arg0
;
244 PyObject
* _argo0
= 0;
245 char *_kwnames
[] = { "pConfig", NULL
};
249 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxConfigBase_Set",_kwnames
,&_argo0
))
252 if (_argo0
== Py_None
) { _arg0
= NULL
; }
253 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
254 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_Set. Expected _wxConfigBase_p.");
259 wxPy_BEGIN_ALLOW_THREADS
;
260 _result
= (wxConfigBase
*)wxConfigBase::Set(_arg0
);
262 wxPy_END_ALLOW_THREADS
;
263 if (PyErr_Occurred()) return NULL
;
265 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxConfigBase_p");
266 _resultobj
= Py_BuildValue("s",_ptemp
);
269 _resultobj
= Py_None
;
274 static PyObject
*_wrap_wxConfigBase_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
275 PyObject
* _resultobj
;
276 wxConfigBase
* _result
;
277 bool _arg0
= (bool ) TRUE
;
278 int tempbool0
= (int) TRUE
;
279 char *_kwnames
[] = { "createOnDemand", NULL
};
283 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|i:wxConfigBase_Get",_kwnames
,&tempbool0
))
285 _arg0
= (bool ) tempbool0
;
287 wxPy_BEGIN_ALLOW_THREADS
;
288 _result
= (wxConfigBase
*)wxConfigBase::Get(_arg0
);
290 wxPy_END_ALLOW_THREADS
;
291 if (PyErr_Occurred()) return NULL
;
293 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxConfigBase_p");
294 _resultobj
= Py_BuildValue("s",_ptemp
);
297 _resultobj
= Py_None
;
302 static PyObject
*_wrap_wxConfigBase_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
303 PyObject
* _resultobj
;
304 wxConfigBase
* _result
;
305 char *_kwnames
[] = { NULL
};
309 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxConfigBase_Create",_kwnames
))
312 wxPy_BEGIN_ALLOW_THREADS
;
313 _result
= (wxConfigBase
*)wxConfigBase::Create();
315 wxPy_END_ALLOW_THREADS
;
316 if (PyErr_Occurred()) return NULL
;
318 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxConfigBase_p");
319 _resultobj
= Py_BuildValue("s",_ptemp
);
322 _resultobj
= Py_None
;
327 static PyObject
*_wrap_wxConfigBase_DontCreateOnDemand(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
328 PyObject
* _resultobj
;
329 char *_kwnames
[] = { NULL
};
332 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxConfigBase_DontCreateOnDemand",_kwnames
))
335 wxPy_BEGIN_ALLOW_THREADS
;
336 wxConfigBase::DontCreateOnDemand();
338 wxPy_END_ALLOW_THREADS
;
339 if (PyErr_Occurred()) return NULL
;
340 } Py_INCREF(Py_None
);
341 _resultobj
= Py_None
;
345 #define wxConfigBase_DeleteAll(_swigobj) (_swigobj->DeleteAll())
346 static PyObject
*_wrap_wxConfigBase_DeleteAll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
347 PyObject
* _resultobj
;
349 wxConfigBase
* _arg0
;
350 PyObject
* _argo0
= 0;
351 char *_kwnames
[] = { "self", NULL
};
354 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxConfigBase_DeleteAll",_kwnames
,&_argo0
))
357 if (_argo0
== Py_None
) { _arg0
= NULL
; }
358 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
359 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_DeleteAll. Expected _wxConfigBase_p.");
364 wxPy_BEGIN_ALLOW_THREADS
;
365 _result
= (bool )wxConfigBase_DeleteAll(_arg0
);
367 wxPy_END_ALLOW_THREADS
;
368 if (PyErr_Occurred()) return NULL
;
369 } _resultobj
= Py_BuildValue("i",_result
);
373 #define wxConfigBase_DeleteEntry(_swigobj,_swigarg0,_swigarg1) (_swigobj->DeleteEntry(_swigarg0,_swigarg1))
374 static PyObject
*_wrap_wxConfigBase_DeleteEntry(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
375 PyObject
* _resultobj
;
377 wxConfigBase
* _arg0
;
379 bool _arg2
= (bool ) TRUE
;
380 PyObject
* _argo0
= 0;
381 PyObject
* _obj1
= 0;
382 int tempbool2
= (int) TRUE
;
383 char *_kwnames
[] = { "self","key","bDeleteGroupIfEmpty", NULL
};
386 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxConfigBase_DeleteEntry",_kwnames
,&_argo0
,&_obj1
,&tempbool2
))
389 if (_argo0
== Py_None
) { _arg0
= NULL
; }
390 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
391 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_DeleteEntry. Expected _wxConfigBase_p.");
396 #if PYTHON_API_VERSION >= 1009
397 char* tmpPtr
; int tmpSize
;
398 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
399 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
402 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
404 _arg1
= new wxString(tmpPtr
, tmpSize
);
406 if (!PyString_Check(_obj1
)) {
407 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
410 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
413 _arg2
= (bool ) tempbool2
;
415 wxPy_BEGIN_ALLOW_THREADS
;
416 _result
= (bool )wxConfigBase_DeleteEntry(_arg0
,*_arg1
,_arg2
);
418 wxPy_END_ALLOW_THREADS
;
419 if (PyErr_Occurred()) return NULL
;
420 } _resultobj
= Py_BuildValue("i",_result
);
428 #define wxConfigBase_DeleteGroup(_swigobj,_swigarg0) (_swigobj->DeleteGroup(_swigarg0))
429 static PyObject
*_wrap_wxConfigBase_DeleteGroup(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
430 PyObject
* _resultobj
;
432 wxConfigBase
* _arg0
;
434 PyObject
* _argo0
= 0;
435 PyObject
* _obj1
= 0;
436 char *_kwnames
[] = { "self","key", NULL
};
439 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxConfigBase_DeleteGroup",_kwnames
,&_argo0
,&_obj1
))
442 if (_argo0
== Py_None
) { _arg0
= NULL
; }
443 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
444 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_DeleteGroup. Expected _wxConfigBase_p.");
449 #if PYTHON_API_VERSION >= 1009
450 char* tmpPtr
; int tmpSize
;
451 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
452 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
455 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
457 _arg1
= new wxString(tmpPtr
, tmpSize
);
459 if (!PyString_Check(_obj1
)) {
460 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
463 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
467 wxPy_BEGIN_ALLOW_THREADS
;
468 _result
= (bool )wxConfigBase_DeleteGroup(_arg0
,*_arg1
);
470 wxPy_END_ALLOW_THREADS
;
471 if (PyErr_Occurred()) return NULL
;
472 } _resultobj
= Py_BuildValue("i",_result
);
480 #define wxConfigBase_Exists(_swigobj,_swigarg0) (_swigobj->Exists(_swigarg0))
481 static PyObject
*_wrap_wxConfigBase_Exists(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
482 PyObject
* _resultobj
;
484 wxConfigBase
* _arg0
;
486 PyObject
* _argo0
= 0;
487 PyObject
* _obj1
= 0;
488 char *_kwnames
[] = { "self","strName", NULL
};
491 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxConfigBase_Exists",_kwnames
,&_argo0
,&_obj1
))
494 if (_argo0
== Py_None
) { _arg0
= NULL
; }
495 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
496 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_Exists. Expected _wxConfigBase_p.");
501 #if PYTHON_API_VERSION >= 1009
502 char* tmpPtr
; int tmpSize
;
503 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
504 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
507 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
509 _arg1
= new wxString(tmpPtr
, tmpSize
);
511 if (!PyString_Check(_obj1
)) {
512 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
515 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
519 wxPy_BEGIN_ALLOW_THREADS
;
520 _result
= (bool )wxConfigBase_Exists(_arg0
,*_arg1
);
522 wxPy_END_ALLOW_THREADS
;
523 if (PyErr_Occurred()) return NULL
;
524 } _resultobj
= Py_BuildValue("i",_result
);
532 #define wxConfigBase_Flush(_swigobj,_swigarg0) (_swigobj->Flush(_swigarg0))
533 static PyObject
*_wrap_wxConfigBase_Flush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
534 PyObject
* _resultobj
;
536 wxConfigBase
* _arg0
;
537 bool _arg1
= (bool ) FALSE
;
538 PyObject
* _argo0
= 0;
539 int tempbool1
= (int) FALSE
;
540 char *_kwnames
[] = { "self","bCurrentOnly", NULL
};
543 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxConfigBase_Flush",_kwnames
,&_argo0
,&tempbool1
))
546 if (_argo0
== Py_None
) { _arg0
= NULL
; }
547 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
548 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_Flush. Expected _wxConfigBase_p.");
552 _arg1
= (bool ) tempbool1
;
554 wxPy_BEGIN_ALLOW_THREADS
;
555 _result
= (bool )wxConfigBase_Flush(_arg0
,_arg1
);
557 wxPy_END_ALLOW_THREADS
;
558 if (PyErr_Occurred()) return NULL
;
559 } _resultobj
= Py_BuildValue("i",_result
);
563 #define wxConfigBase_GetAppName(_swigobj) (_swigobj->GetAppName())
564 static PyObject
*_wrap_wxConfigBase_GetAppName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
565 PyObject
* _resultobj
;
567 wxConfigBase
* _arg0
;
568 PyObject
* _argo0
= 0;
569 char *_kwnames
[] = { "self", NULL
};
572 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxConfigBase_GetAppName",_kwnames
,&_argo0
))
575 if (_argo0
== Py_None
) { _arg0
= NULL
; }
576 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
577 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_GetAppName. Expected _wxConfigBase_p.");
582 wxPy_BEGIN_ALLOW_THREADS
;
583 _result
= new wxString (wxConfigBase_GetAppName(_arg0
));
585 wxPy_END_ALLOW_THREADS
;
586 if (PyErr_Occurred()) return NULL
;
588 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
596 static PyObject
* wxConfigBase_GetFirstGroup(wxConfigBase
*self
) {
601 cont
= self
->GetFirstGroup(value
, index
);
602 return __EnumerationHelper(cont
, value
, index
);
604 static PyObject
*_wrap_wxConfigBase_GetFirstGroup(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
605 PyObject
* _resultobj
;
607 wxConfigBase
* _arg0
;
608 PyObject
* _argo0
= 0;
609 char *_kwnames
[] = { "self", NULL
};
612 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxConfigBase_GetFirstGroup",_kwnames
,&_argo0
))
615 if (_argo0
== Py_None
) { _arg0
= NULL
; }
616 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
617 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_GetFirstGroup. Expected _wxConfigBase_p.");
622 wxPy_BEGIN_ALLOW_THREADS
;
623 _result
= (PyObject
*)wxConfigBase_GetFirstGroup(_arg0
);
625 wxPy_END_ALLOW_THREADS
;
626 if (PyErr_Occurred()) return NULL
;
628 _resultobj
= _result
;
633 static PyObject
* wxConfigBase_GetFirstEntry(wxConfigBase
*self
) {
638 cont
= self
->GetFirstEntry(value
, index
);
639 return __EnumerationHelper(cont
, value
, index
);
641 static PyObject
*_wrap_wxConfigBase_GetFirstEntry(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
642 PyObject
* _resultobj
;
644 wxConfigBase
* _arg0
;
645 PyObject
* _argo0
= 0;
646 char *_kwnames
[] = { "self", NULL
};
649 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxConfigBase_GetFirstEntry",_kwnames
,&_argo0
))
652 if (_argo0
== Py_None
) { _arg0
= NULL
; }
653 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
654 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_GetFirstEntry. Expected _wxConfigBase_p.");
659 wxPy_BEGIN_ALLOW_THREADS
;
660 _result
= (PyObject
*)wxConfigBase_GetFirstEntry(_arg0
);
662 wxPy_END_ALLOW_THREADS
;
663 if (PyErr_Occurred()) return NULL
;
665 _resultobj
= _result
;
670 static PyObject
* wxConfigBase_GetNextGroup(wxConfigBase
*self
,long index
) {
674 cont
= self
->GetNextGroup(value
, index
);
675 return __EnumerationHelper(cont
, value
, index
);
677 static PyObject
*_wrap_wxConfigBase_GetNextGroup(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
678 PyObject
* _resultobj
;
680 wxConfigBase
* _arg0
;
682 PyObject
* _argo0
= 0;
683 char *_kwnames
[] = { "self","index", NULL
};
686 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxConfigBase_GetNextGroup",_kwnames
,&_argo0
,&_arg1
))
689 if (_argo0
== Py_None
) { _arg0
= NULL
; }
690 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
691 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_GetNextGroup. Expected _wxConfigBase_p.");
696 wxPy_BEGIN_ALLOW_THREADS
;
697 _result
= (PyObject
*)wxConfigBase_GetNextGroup(_arg0
,_arg1
);
699 wxPy_END_ALLOW_THREADS
;
700 if (PyErr_Occurred()) return NULL
;
702 _resultobj
= _result
;
707 static PyObject
* wxConfigBase_GetNextEntry(wxConfigBase
*self
,long index
) {
711 cont
= self
->GetNextEntry(value
, index
);
712 return __EnumerationHelper(cont
, value
, index
);
714 static PyObject
*_wrap_wxConfigBase_GetNextEntry(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
715 PyObject
* _resultobj
;
717 wxConfigBase
* _arg0
;
719 PyObject
* _argo0
= 0;
720 char *_kwnames
[] = { "self","index", NULL
};
723 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxConfigBase_GetNextEntry",_kwnames
,&_argo0
,&_arg1
))
726 if (_argo0
== Py_None
) { _arg0
= NULL
; }
727 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
728 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_GetNextEntry. Expected _wxConfigBase_p.");
733 wxPy_BEGIN_ALLOW_THREADS
;
734 _result
= (PyObject
*)wxConfigBase_GetNextEntry(_arg0
,_arg1
);
736 wxPy_END_ALLOW_THREADS
;
737 if (PyErr_Occurred()) return NULL
;
739 _resultobj
= _result
;
744 #define wxConfigBase_GetNumberOfEntries(_swigobj,_swigarg0) (_swigobj->GetNumberOfEntries(_swigarg0))
745 static PyObject
*_wrap_wxConfigBase_GetNumberOfEntries(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
746 PyObject
* _resultobj
;
748 wxConfigBase
* _arg0
;
749 bool _arg1
= (bool ) FALSE
;
750 PyObject
* _argo0
= 0;
751 int tempbool1
= (int) FALSE
;
752 char *_kwnames
[] = { "self","bRecursive", NULL
};
755 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxConfigBase_GetNumberOfEntries",_kwnames
,&_argo0
,&tempbool1
))
758 if (_argo0
== Py_None
) { _arg0
= NULL
; }
759 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
760 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_GetNumberOfEntries. Expected _wxConfigBase_p.");
764 _arg1
= (bool ) tempbool1
;
766 wxPy_BEGIN_ALLOW_THREADS
;
767 _result
= (int )wxConfigBase_GetNumberOfEntries(_arg0
,_arg1
);
769 wxPy_END_ALLOW_THREADS
;
770 if (PyErr_Occurred()) return NULL
;
771 } _resultobj
= Py_BuildValue("i",_result
);
775 #define wxConfigBase_GetNumberOfGroups(_swigobj,_swigarg0) (_swigobj->GetNumberOfGroups(_swigarg0))
776 static PyObject
*_wrap_wxConfigBase_GetNumberOfGroups(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
777 PyObject
* _resultobj
;
779 wxConfigBase
* _arg0
;
780 bool _arg1
= (bool ) FALSE
;
781 PyObject
* _argo0
= 0;
782 int tempbool1
= (int) FALSE
;
783 char *_kwnames
[] = { "self","bRecursive", NULL
};
786 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxConfigBase_GetNumberOfGroups",_kwnames
,&_argo0
,&tempbool1
))
789 if (_argo0
== Py_None
) { _arg0
= NULL
; }
790 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
791 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_GetNumberOfGroups. Expected _wxConfigBase_p.");
795 _arg1
= (bool ) tempbool1
;
797 wxPy_BEGIN_ALLOW_THREADS
;
798 _result
= (int )wxConfigBase_GetNumberOfGroups(_arg0
,_arg1
);
800 wxPy_END_ALLOW_THREADS
;
801 if (PyErr_Occurred()) return NULL
;
802 } _resultobj
= Py_BuildValue("i",_result
);
806 #define wxConfigBase_GetPath(_swigobj) (_swigobj->GetPath())
807 static PyObject
*_wrap_wxConfigBase_GetPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
808 PyObject
* _resultobj
;
810 wxConfigBase
* _arg0
;
811 PyObject
* _argo0
= 0;
812 char *_kwnames
[] = { "self", NULL
};
815 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxConfigBase_GetPath",_kwnames
,&_argo0
))
818 if (_argo0
== Py_None
) { _arg0
= NULL
; }
819 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
820 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_GetPath. Expected _wxConfigBase_p.");
825 wxPy_BEGIN_ALLOW_THREADS
;
826 _result
= new wxString (wxConfigBase_GetPath(_arg0
));
828 wxPy_END_ALLOW_THREADS
;
829 if (PyErr_Occurred()) return NULL
;
831 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
839 #define wxConfigBase_GetVendorName(_swigobj) (_swigobj->GetVendorName())
840 static PyObject
*_wrap_wxConfigBase_GetVendorName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
841 PyObject
* _resultobj
;
843 wxConfigBase
* _arg0
;
844 PyObject
* _argo0
= 0;
845 char *_kwnames
[] = { "self", NULL
};
848 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxConfigBase_GetVendorName",_kwnames
,&_argo0
))
851 if (_argo0
== Py_None
) { _arg0
= NULL
; }
852 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
853 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_GetVendorName. Expected _wxConfigBase_p.");
858 wxPy_BEGIN_ALLOW_THREADS
;
859 _result
= new wxString (wxConfigBase_GetVendorName(_arg0
));
861 wxPy_END_ALLOW_THREADS
;
862 if (PyErr_Occurred()) return NULL
;
864 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
872 #define wxConfigBase_HasEntry(_swigobj,_swigarg0) (_swigobj->HasEntry(_swigarg0))
873 static PyObject
*_wrap_wxConfigBase_HasEntry(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
874 PyObject
* _resultobj
;
876 wxConfigBase
* _arg0
;
878 PyObject
* _argo0
= 0;
879 PyObject
* _obj1
= 0;
880 char *_kwnames
[] = { "self","strName", NULL
};
883 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxConfigBase_HasEntry",_kwnames
,&_argo0
,&_obj1
))
886 if (_argo0
== Py_None
) { _arg0
= NULL
; }
887 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
888 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_HasEntry. Expected _wxConfigBase_p.");
893 #if PYTHON_API_VERSION >= 1009
894 char* tmpPtr
; int tmpSize
;
895 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
896 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
899 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
901 _arg1
= new wxString(tmpPtr
, tmpSize
);
903 if (!PyString_Check(_obj1
)) {
904 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
907 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
911 wxPy_BEGIN_ALLOW_THREADS
;
912 _result
= (bool )wxConfigBase_HasEntry(_arg0
,*_arg1
);
914 wxPy_END_ALLOW_THREADS
;
915 if (PyErr_Occurred()) return NULL
;
916 } _resultobj
= Py_BuildValue("i",_result
);
924 #define wxConfigBase_HasGroup(_swigobj,_swigarg0) (_swigobj->HasGroup(_swigarg0))
925 static PyObject
*_wrap_wxConfigBase_HasGroup(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
926 PyObject
* _resultobj
;
928 wxConfigBase
* _arg0
;
930 PyObject
* _argo0
= 0;
931 PyObject
* _obj1
= 0;
932 char *_kwnames
[] = { "self","strName", NULL
};
935 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxConfigBase_HasGroup",_kwnames
,&_argo0
,&_obj1
))
938 if (_argo0
== Py_None
) { _arg0
= NULL
; }
939 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
940 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_HasGroup. Expected _wxConfigBase_p.");
945 #if PYTHON_API_VERSION >= 1009
946 char* tmpPtr
; int tmpSize
;
947 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
948 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
951 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
953 _arg1
= new wxString(tmpPtr
, tmpSize
);
955 if (!PyString_Check(_obj1
)) {
956 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
959 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
963 wxPy_BEGIN_ALLOW_THREADS
;
964 _result
= (bool )wxConfigBase_HasGroup(_arg0
,*_arg1
);
966 wxPy_END_ALLOW_THREADS
;
967 if (PyErr_Occurred()) return NULL
;
968 } _resultobj
= Py_BuildValue("i",_result
);
976 #define wxConfigBase_IsExpandingEnvVars(_swigobj) (_swigobj->IsExpandingEnvVars())
977 static PyObject
*_wrap_wxConfigBase_IsExpandingEnvVars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
978 PyObject
* _resultobj
;
980 wxConfigBase
* _arg0
;
981 PyObject
* _argo0
= 0;
982 char *_kwnames
[] = { "self", NULL
};
985 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxConfigBase_IsExpandingEnvVars",_kwnames
,&_argo0
))
988 if (_argo0
== Py_None
) { _arg0
= NULL
; }
989 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
990 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_IsExpandingEnvVars. Expected _wxConfigBase_p.");
995 wxPy_BEGIN_ALLOW_THREADS
;
996 _result
= (bool )wxConfigBase_IsExpandingEnvVars(_arg0
);
998 wxPy_END_ALLOW_THREADS
;
999 if (PyErr_Occurred()) return NULL
;
1000 } _resultobj
= Py_BuildValue("i",_result
);
1004 #define wxConfigBase_IsRecordingDefaults(_swigobj) (_swigobj->IsRecordingDefaults())
1005 static PyObject
*_wrap_wxConfigBase_IsRecordingDefaults(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1006 PyObject
* _resultobj
;
1008 wxConfigBase
* _arg0
;
1009 PyObject
* _argo0
= 0;
1010 char *_kwnames
[] = { "self", NULL
};
1013 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxConfigBase_IsRecordingDefaults",_kwnames
,&_argo0
))
1016 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1017 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
1018 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_IsRecordingDefaults. Expected _wxConfigBase_p.");
1023 wxPy_BEGIN_ALLOW_THREADS
;
1024 _result
= (bool )wxConfigBase_IsRecordingDefaults(_arg0
);
1026 wxPy_END_ALLOW_THREADS
;
1027 if (PyErr_Occurred()) return NULL
;
1028 } _resultobj
= Py_BuildValue("i",_result
);
1032 #define wxConfigBase_Read(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
1033 static PyObject
*_wrap_wxConfigBase_Read(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1034 PyObject
* _resultobj
;
1036 wxConfigBase
* _arg0
;
1038 wxString
* _arg2
= (wxString
*) &wxPyEmptyStr
;
1039 PyObject
* _argo0
= 0;
1040 PyObject
* _obj1
= 0;
1041 PyObject
* _obj2
= 0;
1042 char *_kwnames
[] = { "self","key","defaultVal", NULL
};
1045 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxConfigBase_Read",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1048 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1049 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
1050 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_Read. Expected _wxConfigBase_p.");
1055 #if PYTHON_API_VERSION >= 1009
1056 char* tmpPtr
; int tmpSize
;
1057 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1058 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1061 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1063 _arg1
= new wxString(tmpPtr
, tmpSize
);
1065 if (!PyString_Check(_obj1
)) {
1066 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1069 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1074 #if PYTHON_API_VERSION >= 1009
1075 char* tmpPtr
; int tmpSize
;
1076 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
1077 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1080 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
1082 _arg2
= new wxString(tmpPtr
, tmpSize
);
1084 if (!PyString_Check(_obj2
)) {
1085 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1088 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
1092 wxPy_BEGIN_ALLOW_THREADS
;
1093 _result
= new wxString (wxConfigBase_Read(_arg0
,*_arg1
,*_arg2
));
1095 wxPy_END_ALLOW_THREADS
;
1096 if (PyErr_Occurred()) return NULL
;
1098 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1114 #define wxConfigBase_ReadInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
1115 static PyObject
*_wrap_wxConfigBase_ReadInt(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1116 PyObject
* _resultobj
;
1118 wxConfigBase
* _arg0
;
1120 long _arg2
= (long ) 0;
1121 PyObject
* _argo0
= 0;
1122 PyObject
* _obj1
= 0;
1123 char *_kwnames
[] = { "self","key","defaultVal", NULL
};
1126 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|l:wxConfigBase_ReadInt",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1129 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1130 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
1131 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_ReadInt. Expected _wxConfigBase_p.");
1136 #if PYTHON_API_VERSION >= 1009
1137 char* tmpPtr
; int tmpSize
;
1138 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1139 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1142 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1144 _arg1
= new wxString(tmpPtr
, tmpSize
);
1146 if (!PyString_Check(_obj1
)) {
1147 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1150 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1154 wxPy_BEGIN_ALLOW_THREADS
;
1155 _result
= (long )wxConfigBase_ReadInt(_arg0
,*_arg1
,_arg2
);
1157 wxPy_END_ALLOW_THREADS
;
1158 if (PyErr_Occurred()) return NULL
;
1159 } _resultobj
= Py_BuildValue("l",_result
);
1167 #define wxConfigBase_ReadFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
1168 static PyObject
*_wrap_wxConfigBase_ReadFloat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1169 PyObject
* _resultobj
;
1171 wxConfigBase
* _arg0
;
1173 double _arg2
= (double ) 0.0;
1174 PyObject
* _argo0
= 0;
1175 PyObject
* _obj1
= 0;
1176 char *_kwnames
[] = { "self","key","defaultVal", NULL
};
1179 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|d:wxConfigBase_ReadFloat",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1182 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1183 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
1184 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_ReadFloat. Expected _wxConfigBase_p.");
1189 #if PYTHON_API_VERSION >= 1009
1190 char* tmpPtr
; int tmpSize
;
1191 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1192 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1195 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1197 _arg1
= new wxString(tmpPtr
, tmpSize
);
1199 if (!PyString_Check(_obj1
)) {
1200 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1203 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1207 wxPy_BEGIN_ALLOW_THREADS
;
1208 _result
= (double )wxConfigBase_ReadFloat(_arg0
,*_arg1
,_arg2
);
1210 wxPy_END_ALLOW_THREADS
;
1211 if (PyErr_Occurred()) return NULL
;
1212 } _resultobj
= Py_BuildValue("d",_result
);
1220 #define wxConfigBase_SetExpandEnvVars(_swigobj,_swigarg0) (_swigobj->SetExpandEnvVars(_swigarg0))
1221 static PyObject
*_wrap_wxConfigBase_SetExpandEnvVars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1222 PyObject
* _resultobj
;
1223 wxConfigBase
* _arg0
;
1224 bool _arg1
= (bool ) TRUE
;
1225 PyObject
* _argo0
= 0;
1226 int tempbool1
= (int) TRUE
;
1227 char *_kwnames
[] = { "self","bDoIt", NULL
};
1230 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxConfigBase_SetExpandEnvVars",_kwnames
,&_argo0
,&tempbool1
))
1233 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1234 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
1235 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_SetExpandEnvVars. Expected _wxConfigBase_p.");
1239 _arg1
= (bool ) tempbool1
;
1241 wxPy_BEGIN_ALLOW_THREADS
;
1242 wxConfigBase_SetExpandEnvVars(_arg0
,_arg1
);
1244 wxPy_END_ALLOW_THREADS
;
1245 if (PyErr_Occurred()) return NULL
;
1246 } Py_INCREF(Py_None
);
1247 _resultobj
= Py_None
;
1251 #define wxConfigBase_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0))
1252 static PyObject
*_wrap_wxConfigBase_SetPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1253 PyObject
* _resultobj
;
1254 wxConfigBase
* _arg0
;
1256 PyObject
* _argo0
= 0;
1257 PyObject
* _obj1
= 0;
1258 char *_kwnames
[] = { "self","strPath", NULL
};
1261 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxConfigBase_SetPath",_kwnames
,&_argo0
,&_obj1
))
1264 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1265 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
1266 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_SetPath. Expected _wxConfigBase_p.");
1271 #if PYTHON_API_VERSION >= 1009
1272 char* tmpPtr
; int tmpSize
;
1273 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1274 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1277 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1279 _arg1
= new wxString(tmpPtr
, tmpSize
);
1281 if (!PyString_Check(_obj1
)) {
1282 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1285 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1289 wxPy_BEGIN_ALLOW_THREADS
;
1290 wxConfigBase_SetPath(_arg0
,*_arg1
);
1292 wxPy_END_ALLOW_THREADS
;
1293 if (PyErr_Occurred()) return NULL
;
1294 } Py_INCREF(Py_None
);
1295 _resultobj
= Py_None
;
1303 #define wxConfigBase_SetRecordDefaults(_swigobj,_swigarg0) (_swigobj->SetRecordDefaults(_swigarg0))
1304 static PyObject
*_wrap_wxConfigBase_SetRecordDefaults(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1305 PyObject
* _resultobj
;
1306 wxConfigBase
* _arg0
;
1307 bool _arg1
= (bool ) TRUE
;
1308 PyObject
* _argo0
= 0;
1309 int tempbool1
= (int) TRUE
;
1310 char *_kwnames
[] = { "self","bDoIt", NULL
};
1313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxConfigBase_SetRecordDefaults",_kwnames
,&_argo0
,&tempbool1
))
1316 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1317 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
1318 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_SetRecordDefaults. Expected _wxConfigBase_p.");
1322 _arg1
= (bool ) tempbool1
;
1324 wxPy_BEGIN_ALLOW_THREADS
;
1325 wxConfigBase_SetRecordDefaults(_arg0
,_arg1
);
1327 wxPy_END_ALLOW_THREADS
;
1328 if (PyErr_Occurred()) return NULL
;
1329 } Py_INCREF(Py_None
);
1330 _resultobj
= Py_None
;
1334 #define wxConfigBase_SetAppName(_swigobj,_swigarg0) (_swigobj->SetAppName(_swigarg0))
1335 static PyObject
*_wrap_wxConfigBase_SetAppName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1336 PyObject
* _resultobj
;
1337 wxConfigBase
* _arg0
;
1339 PyObject
* _argo0
= 0;
1340 PyObject
* _obj1
= 0;
1341 char *_kwnames
[] = { "self","appName", NULL
};
1344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxConfigBase_SetAppName",_kwnames
,&_argo0
,&_obj1
))
1347 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1348 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
1349 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_SetAppName. Expected _wxConfigBase_p.");
1354 #if PYTHON_API_VERSION >= 1009
1355 char* tmpPtr
; int tmpSize
;
1356 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1357 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1360 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1362 _arg1
= new wxString(tmpPtr
, tmpSize
);
1364 if (!PyString_Check(_obj1
)) {
1365 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1368 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1372 wxPy_BEGIN_ALLOW_THREADS
;
1373 wxConfigBase_SetAppName(_arg0
,*_arg1
);
1375 wxPy_END_ALLOW_THREADS
;
1376 if (PyErr_Occurred()) return NULL
;
1377 } Py_INCREF(Py_None
);
1378 _resultobj
= Py_None
;
1386 #define wxConfigBase_SetVendorName(_swigobj,_swigarg0) (_swigobj->SetVendorName(_swigarg0))
1387 static PyObject
*_wrap_wxConfigBase_SetVendorName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1388 PyObject
* _resultobj
;
1389 wxConfigBase
* _arg0
;
1391 PyObject
* _argo0
= 0;
1392 PyObject
* _obj1
= 0;
1393 char *_kwnames
[] = { "self","vendorName", NULL
};
1396 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxConfigBase_SetVendorName",_kwnames
,&_argo0
,&_obj1
))
1399 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1400 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
1401 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_SetVendorName. Expected _wxConfigBase_p.");
1406 #if PYTHON_API_VERSION >= 1009
1407 char* tmpPtr
; int tmpSize
;
1408 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1409 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1412 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1414 _arg1
= new wxString(tmpPtr
, tmpSize
);
1416 if (!PyString_Check(_obj1
)) {
1417 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1420 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1424 wxPy_BEGIN_ALLOW_THREADS
;
1425 wxConfigBase_SetVendorName(_arg0
,*_arg1
);
1427 wxPy_END_ALLOW_THREADS
;
1428 if (PyErr_Occurred()) return NULL
;
1429 } Py_INCREF(Py_None
);
1430 _resultobj
= Py_None
;
1438 #define wxConfigBase_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
1439 static PyObject
*_wrap_wxConfigBase_SetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1440 PyObject
* _resultobj
;
1441 wxConfigBase
* _arg0
;
1443 PyObject
* _argo0
= 0;
1444 char *_kwnames
[] = { "self","style", NULL
};
1447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxConfigBase_SetStyle",_kwnames
,&_argo0
,&_arg1
))
1450 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1451 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
1452 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_SetStyle. Expected _wxConfigBase_p.");
1457 wxPy_BEGIN_ALLOW_THREADS
;
1458 wxConfigBase_SetStyle(_arg0
,_arg1
);
1460 wxPy_END_ALLOW_THREADS
;
1461 if (PyErr_Occurred()) return NULL
;
1462 } Py_INCREF(Py_None
);
1463 _resultobj
= Py_None
;
1467 #define wxConfigBase_GetStyle(_swigobj) (_swigobj->GetStyle())
1468 static PyObject
*_wrap_wxConfigBase_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1469 PyObject
* _resultobj
;
1471 wxConfigBase
* _arg0
;
1472 PyObject
* _argo0
= 0;
1473 char *_kwnames
[] = { "self", NULL
};
1476 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxConfigBase_GetStyle",_kwnames
,&_argo0
))
1479 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1480 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
1481 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_GetStyle. Expected _wxConfigBase_p.");
1486 wxPy_BEGIN_ALLOW_THREADS
;
1487 _result
= (long )wxConfigBase_GetStyle(_arg0
);
1489 wxPy_END_ALLOW_THREADS
;
1490 if (PyErr_Occurred()) return NULL
;
1491 } _resultobj
= Py_BuildValue("l",_result
);
1495 #define wxConfigBase_Write(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1496 static PyObject
*_wrap_wxConfigBase_Write(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1497 PyObject
* _resultobj
;
1499 wxConfigBase
* _arg0
;
1502 PyObject
* _argo0
= 0;
1503 PyObject
* _obj1
= 0;
1504 PyObject
* _obj2
= 0;
1505 char *_kwnames
[] = { "self","key","value", NULL
};
1508 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxConfigBase_Write",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1511 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1512 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
1513 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_Write. Expected _wxConfigBase_p.");
1518 #if PYTHON_API_VERSION >= 1009
1519 char* tmpPtr
; int tmpSize
;
1520 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1521 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1524 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1526 _arg1
= new wxString(tmpPtr
, tmpSize
);
1528 if (!PyString_Check(_obj1
)) {
1529 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1532 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1536 #if PYTHON_API_VERSION >= 1009
1537 char* tmpPtr
; int tmpSize
;
1538 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
1539 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1542 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
1544 _arg2
= new wxString(tmpPtr
, tmpSize
);
1546 if (!PyString_Check(_obj2
)) {
1547 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1550 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
1554 wxPy_BEGIN_ALLOW_THREADS
;
1555 _result
= (bool )wxConfigBase_Write(_arg0
,*_arg1
,*_arg2
);
1557 wxPy_END_ALLOW_THREADS
;
1558 if (PyErr_Occurred()) return NULL
;
1559 } _resultobj
= Py_BuildValue("i",_result
);
1571 #define wxConfigBase_WriteInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1572 static PyObject
*_wrap_wxConfigBase_WriteInt(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1573 PyObject
* _resultobj
;
1575 wxConfigBase
* _arg0
;
1578 PyObject
* _argo0
= 0;
1579 PyObject
* _obj1
= 0;
1580 char *_kwnames
[] = { "self","key","value", NULL
};
1583 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:wxConfigBase_WriteInt",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1586 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1587 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
1588 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_WriteInt. Expected _wxConfigBase_p.");
1593 #if PYTHON_API_VERSION >= 1009
1594 char* tmpPtr
; int tmpSize
;
1595 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1596 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1599 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1601 _arg1
= new wxString(tmpPtr
, tmpSize
);
1603 if (!PyString_Check(_obj1
)) {
1604 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1607 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1611 wxPy_BEGIN_ALLOW_THREADS
;
1612 _result
= (bool )wxConfigBase_WriteInt(_arg0
,*_arg1
,_arg2
);
1614 wxPy_END_ALLOW_THREADS
;
1615 if (PyErr_Occurred()) return NULL
;
1616 } _resultobj
= Py_BuildValue("i",_result
);
1624 #define wxConfigBase_WriteFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1625 static PyObject
*_wrap_wxConfigBase_WriteFloat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1626 PyObject
* _resultobj
;
1628 wxConfigBase
* _arg0
;
1631 PyObject
* _argo0
= 0;
1632 PyObject
* _obj1
= 0;
1633 char *_kwnames
[] = { "self","key","value", NULL
};
1636 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOd:wxConfigBase_WriteFloat",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1639 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1640 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
1641 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_WriteFloat. Expected _wxConfigBase_p.");
1646 #if PYTHON_API_VERSION >= 1009
1647 char* tmpPtr
; int tmpSize
;
1648 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1649 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1652 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1654 _arg1
= new wxString(tmpPtr
, tmpSize
);
1656 if (!PyString_Check(_obj1
)) {
1657 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1660 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1664 wxPy_BEGIN_ALLOW_THREADS
;
1665 _result
= (bool )wxConfigBase_WriteFloat(_arg0
,*_arg1
,_arg2
);
1667 wxPy_END_ALLOW_THREADS
;
1668 if (PyErr_Occurred()) return NULL
;
1669 } _resultobj
= Py_BuildValue("i",_result
);
1677 #define wxConfigBase_GetEntryType(_swigobj,_swigarg0) (_swigobj->GetEntryType(_swigarg0))
1678 static PyObject
*_wrap_wxConfigBase_GetEntryType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1679 PyObject
* _resultobj
;
1680 wxConfigBase::EntryType _result
;
1681 wxConfigBase
* _arg0
;
1683 PyObject
* _argo0
= 0;
1684 PyObject
* _obj1
= 0;
1685 char *_kwnames
[] = { "self","name", NULL
};
1688 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxConfigBase_GetEntryType",_kwnames
,&_argo0
,&_obj1
))
1691 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1692 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
1693 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_GetEntryType. Expected _wxConfigBase_p.");
1698 #if PYTHON_API_VERSION >= 1009
1699 char* tmpPtr
; int tmpSize
;
1700 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1701 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1704 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1706 _arg1
= new wxString(tmpPtr
, tmpSize
);
1708 if (!PyString_Check(_obj1
)) {
1709 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1712 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1716 wxPy_BEGIN_ALLOW_THREADS
;
1717 _result
= (wxConfigBase::EntryType
)wxConfigBase_GetEntryType(_arg0
,*_arg1
);
1719 wxPy_END_ALLOW_THREADS
;
1720 if (PyErr_Occurred()) return NULL
;
1721 } _resultobj
= Py_BuildValue("i",_result
);
1729 #define wxConfigBase_RenameEntry(_swigobj,_swigarg0,_swigarg1) (_swigobj->RenameEntry(_swigarg0,_swigarg1))
1730 static PyObject
*_wrap_wxConfigBase_RenameEntry(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1731 PyObject
* _resultobj
;
1733 wxConfigBase
* _arg0
;
1736 PyObject
* _argo0
= 0;
1737 PyObject
* _obj1
= 0;
1738 PyObject
* _obj2
= 0;
1739 char *_kwnames
[] = { "self","oldName","newName", NULL
};
1742 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxConfigBase_RenameEntry",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1745 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1746 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
1747 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_RenameEntry. Expected _wxConfigBase_p.");
1752 #if PYTHON_API_VERSION >= 1009
1753 char* tmpPtr
; int tmpSize
;
1754 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1755 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1758 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1760 _arg1
= new wxString(tmpPtr
, tmpSize
);
1762 if (!PyString_Check(_obj1
)) {
1763 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1766 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1770 #if PYTHON_API_VERSION >= 1009
1771 char* tmpPtr
; int tmpSize
;
1772 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
1773 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1776 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
1778 _arg2
= new wxString(tmpPtr
, tmpSize
);
1780 if (!PyString_Check(_obj2
)) {
1781 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1784 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
1788 wxPy_BEGIN_ALLOW_THREADS
;
1789 _result
= (bool )wxConfigBase_RenameEntry(_arg0
,*_arg1
,*_arg2
);
1791 wxPy_END_ALLOW_THREADS
;
1792 if (PyErr_Occurred()) return NULL
;
1793 } _resultobj
= Py_BuildValue("i",_result
);
1805 #define wxConfigBase_RenameGroup(_swigobj,_swigarg0,_swigarg1) (_swigobj->RenameGroup(_swigarg0,_swigarg1))
1806 static PyObject
*_wrap_wxConfigBase_RenameGroup(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1807 PyObject
* _resultobj
;
1809 wxConfigBase
* _arg0
;
1812 PyObject
* _argo0
= 0;
1813 PyObject
* _obj1
= 0;
1814 PyObject
* _obj2
= 0;
1815 char *_kwnames
[] = { "self","oldName","newName", NULL
};
1818 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxConfigBase_RenameGroup",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1821 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1822 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
1823 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_RenameGroup. Expected _wxConfigBase_p.");
1828 #if PYTHON_API_VERSION >= 1009
1829 char* tmpPtr
; int tmpSize
;
1830 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1831 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1834 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1836 _arg1
= new wxString(tmpPtr
, tmpSize
);
1838 if (!PyString_Check(_obj1
)) {
1839 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1842 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1846 #if PYTHON_API_VERSION >= 1009
1847 char* tmpPtr
; int tmpSize
;
1848 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
1849 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1852 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
1854 _arg2
= new wxString(tmpPtr
, tmpSize
);
1856 if (!PyString_Check(_obj2
)) {
1857 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1860 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
1864 wxPy_BEGIN_ALLOW_THREADS
;
1865 _result
= (bool )wxConfigBase_RenameGroup(_arg0
,*_arg1
,*_arg2
);
1867 wxPy_END_ALLOW_THREADS
;
1868 if (PyErr_Occurred()) return NULL
;
1869 } _resultobj
= Py_BuildValue("i",_result
);
1881 #define wxConfigBase_ExpandEnvVars(_swigobj,_swigarg0) (_swigobj->ExpandEnvVars(_swigarg0))
1882 static PyObject
*_wrap_wxConfigBase_ExpandEnvVars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1883 PyObject
* _resultobj
;
1885 wxConfigBase
* _arg0
;
1887 PyObject
* _argo0
= 0;
1888 PyObject
* _obj1
= 0;
1889 char *_kwnames
[] = { "self","str", NULL
};
1892 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxConfigBase_ExpandEnvVars",_kwnames
,&_argo0
,&_obj1
))
1895 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1896 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfigBase_p")) {
1897 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfigBase_ExpandEnvVars. Expected _wxConfigBase_p.");
1902 #if PYTHON_API_VERSION >= 1009
1903 char* tmpPtr
; int tmpSize
;
1904 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1905 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1908 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1910 _arg1
= new wxString(tmpPtr
, tmpSize
);
1912 if (!PyString_Check(_obj1
)) {
1913 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1916 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1920 wxPy_BEGIN_ALLOW_THREADS
;
1921 _result
= new wxString (wxConfigBase_ExpandEnvVars(_arg0
,*_arg1
));
1923 wxPy_END_ALLOW_THREADS
;
1924 if (PyErr_Occurred()) return NULL
;
1926 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1938 static void *SwigwxConfigTowxConfigBase(void *ptr
) {
1941 src
= (wxConfig
*) ptr
;
1942 dest
= (wxConfigBase
*) src
;
1943 return (void *) dest
;
1946 #define new_wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
1947 static PyObject
*_wrap_new_wxConfig(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1948 PyObject
* _resultobj
;
1950 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
1951 wxString
* _arg1
= (wxString
*) &wxPyEmptyStr
;
1952 wxString
* _arg2
= (wxString
*) &wxPyEmptyStr
;
1953 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
1954 long _arg4
= (long ) 0;
1955 PyObject
* _obj0
= 0;
1956 PyObject
* _obj1
= 0;
1957 PyObject
* _obj2
= 0;
1958 PyObject
* _obj3
= 0;
1959 char *_kwnames
[] = { "appName","vendorName","localFilename","globalFilename","style", NULL
};
1963 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OOOOl:new_wxConfig",_kwnames
,&_obj0
,&_obj1
,&_obj2
,&_obj3
,&_arg4
))
1967 #if PYTHON_API_VERSION >= 1009
1968 char* tmpPtr
; int tmpSize
;
1969 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1970 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1973 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1975 _arg0
= new wxString(tmpPtr
, tmpSize
);
1977 if (!PyString_Check(_obj0
)) {
1978 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1981 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1986 #if PYTHON_API_VERSION >= 1009
1987 char* tmpPtr
; int tmpSize
;
1988 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1989 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1992 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1994 _arg1
= new wxString(tmpPtr
, tmpSize
);
1996 if (!PyString_Check(_obj1
)) {
1997 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2000 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2005 #if PYTHON_API_VERSION >= 1009
2006 char* tmpPtr
; int tmpSize
;
2007 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
2008 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2011 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
2013 _arg2
= new wxString(tmpPtr
, tmpSize
);
2015 if (!PyString_Check(_obj2
)) {
2016 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2019 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
2024 #if PYTHON_API_VERSION >= 1009
2025 char* tmpPtr
; int tmpSize
;
2026 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
2027 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2030 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
2032 _arg3
= new wxString(tmpPtr
, tmpSize
);
2034 if (!PyString_Check(_obj3
)) {
2035 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2038 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
2042 wxPy_BEGIN_ALLOW_THREADS
;
2043 _result
= (wxConfig
*)new_wxConfig(*_arg0
,*_arg1
,*_arg2
,*_arg3
,_arg4
);
2045 wxPy_END_ALLOW_THREADS
;
2046 if (PyErr_Occurred()) return NULL
;
2048 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxConfig_p");
2049 _resultobj
= Py_BuildValue("s",_ptemp
);
2052 _resultobj
= Py_None
;
2073 #define delete_wxConfig(_swigobj) (delete _swigobj)
2074 static PyObject
*_wrap_delete_wxConfig(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2075 PyObject
* _resultobj
;
2077 PyObject
* _argo0
= 0;
2078 char *_kwnames
[] = { "self", NULL
};
2081 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxConfig",_kwnames
,&_argo0
))
2084 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2085 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxConfig_p")) {
2086 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxConfig. Expected _wxConfig_p.");
2091 wxPy_BEGIN_ALLOW_THREADS
;
2092 delete_wxConfig(_arg0
);
2094 wxPy_END_ALLOW_THREADS
;
2095 if (PyErr_Occurred()) return NULL
;
2096 } Py_INCREF(Py_None
);
2097 _resultobj
= Py_None
;
2101 static void *SwigwxFileConfigTowxConfigBase(void *ptr
) {
2104 src
= (wxFileConfig
*) ptr
;
2105 dest
= (wxConfigBase
*) src
;
2106 return (void *) dest
;
2109 #define new_wxFileConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxFileConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
2110 static PyObject
*_wrap_new_wxFileConfig(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2111 PyObject
* _resultobj
;
2112 wxFileConfig
* _result
;
2113 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
2114 wxString
* _arg1
= (wxString
*) &wxPyEmptyStr
;
2115 wxString
* _arg2
= (wxString
*) &wxPyEmptyStr
;
2116 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
2117 long _arg4
= (long ) 0;
2118 PyObject
* _obj0
= 0;
2119 PyObject
* _obj1
= 0;
2120 PyObject
* _obj2
= 0;
2121 PyObject
* _obj3
= 0;
2122 char *_kwnames
[] = { "appName","vendorName","localFilename","globalFilename","style", NULL
};
2126 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OOOOl:new_wxFileConfig",_kwnames
,&_obj0
,&_obj1
,&_obj2
,&_obj3
,&_arg4
))
2130 #if PYTHON_API_VERSION >= 1009
2131 char* tmpPtr
; int tmpSize
;
2132 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2133 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2136 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2138 _arg0
= new wxString(tmpPtr
, tmpSize
);
2140 if (!PyString_Check(_obj0
)) {
2141 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2144 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2149 #if PYTHON_API_VERSION >= 1009
2150 char* tmpPtr
; int tmpSize
;
2151 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2152 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2155 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2157 _arg1
= new wxString(tmpPtr
, tmpSize
);
2159 if (!PyString_Check(_obj1
)) {
2160 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2163 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2168 #if PYTHON_API_VERSION >= 1009
2169 char* tmpPtr
; int tmpSize
;
2170 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
2171 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2174 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
2176 _arg2
= new wxString(tmpPtr
, tmpSize
);
2178 if (!PyString_Check(_obj2
)) {
2179 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2182 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
2187 #if PYTHON_API_VERSION >= 1009
2188 char* tmpPtr
; int tmpSize
;
2189 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
2190 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2193 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
2195 _arg3
= new wxString(tmpPtr
, tmpSize
);
2197 if (!PyString_Check(_obj3
)) {
2198 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2201 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
2205 wxPy_BEGIN_ALLOW_THREADS
;
2206 _result
= (wxFileConfig
*)new_wxFileConfig(*_arg0
,*_arg1
,*_arg2
,*_arg3
,_arg4
);
2208 wxPy_END_ALLOW_THREADS
;
2209 if (PyErr_Occurred()) return NULL
;
2211 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFileConfig_p");
2212 _resultobj
= Py_BuildValue("s",_ptemp
);
2215 _resultobj
= Py_None
;
2236 #define delete_wxFileConfig(_swigobj) (delete _swigobj)
2237 static PyObject
*_wrap_delete_wxFileConfig(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2238 PyObject
* _resultobj
;
2239 wxFileConfig
* _arg0
;
2240 PyObject
* _argo0
= 0;
2241 char *_kwnames
[] = { "self", NULL
};
2244 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxFileConfig",_kwnames
,&_argo0
))
2247 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2248 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileConfig_p")) {
2249 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxFileConfig. Expected _wxFileConfig_p.");
2254 wxPy_BEGIN_ALLOW_THREADS
;
2255 delete_wxFileConfig(_arg0
);
2257 wxPy_END_ALLOW_THREADS
;
2258 if (PyErr_Occurred()) return NULL
;
2259 } Py_INCREF(Py_None
);
2260 _resultobj
= Py_None
;
2264 static PyObject
*_wrap_wxDateTime_SetCountry(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2265 PyObject
* _resultobj
;
2266 wxDateTime::Country _arg0
;
2267 char *_kwnames
[] = { "country", NULL
};
2270 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxDateTime_SetCountry",_kwnames
,&_arg0
))
2273 wxPy_BEGIN_ALLOW_THREADS
;
2274 wxDateTime::SetCountry(_arg0
);
2276 wxPy_END_ALLOW_THREADS
;
2277 if (PyErr_Occurred()) return NULL
;
2278 } Py_INCREF(Py_None
);
2279 _resultobj
= Py_None
;
2283 static PyObject
*_wrap_wxDateTime_GetCountry(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2284 PyObject
* _resultobj
;
2285 wxDateTime::Country _result
;
2286 char *_kwnames
[] = { NULL
};
2289 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxDateTime_GetCountry",_kwnames
))
2292 wxPy_BEGIN_ALLOW_THREADS
;
2293 _result
= (wxDateTime::Country
)wxDateTime::GetCountry();
2295 wxPy_END_ALLOW_THREADS
;
2296 if (PyErr_Occurred()) return NULL
;
2297 } _resultobj
= Py_BuildValue("i",_result
);
2301 static PyObject
*_wrap_wxDateTime_IsWestEuropeanCountry(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2302 PyObject
* _resultobj
;
2304 wxDateTime::Country _arg0
= (wxDateTime::Country
) wxDateTime::Country_Default
;
2305 char *_kwnames
[] = { "country", NULL
};
2308 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|i:wxDateTime_IsWestEuropeanCountry",_kwnames
,&_arg0
))
2311 wxPy_BEGIN_ALLOW_THREADS
;
2312 _result
= (bool )wxDateTime::IsWestEuropeanCountry(_arg0
);
2314 wxPy_END_ALLOW_THREADS
;
2315 if (PyErr_Occurred()) return NULL
;
2316 } _resultobj
= Py_BuildValue("i",_result
);
2320 static PyObject
*_wrap_wxDateTime_GetCurrentYear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2321 PyObject
* _resultobj
;
2323 wxDateTime::Calendar _arg0
= (wxDateTime::Calendar
) wxDateTime::Gregorian
;
2324 char *_kwnames
[] = { "cal", NULL
};
2327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|i:wxDateTime_GetCurrentYear",_kwnames
,&_arg0
))
2330 wxPy_BEGIN_ALLOW_THREADS
;
2331 _result
= (int )wxDateTime::GetCurrentYear(_arg0
);
2333 wxPy_END_ALLOW_THREADS
;
2334 if (PyErr_Occurred()) return NULL
;
2335 } _resultobj
= Py_BuildValue("i",_result
);
2339 static PyObject
*_wrap_wxDateTime_ConvertYearToBC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2340 PyObject
* _resultobj
;
2343 char *_kwnames
[] = { "year", NULL
};
2346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxDateTime_ConvertYearToBC",_kwnames
,&_arg0
))
2349 wxPy_BEGIN_ALLOW_THREADS
;
2350 _result
= (int )wxDateTime::ConvertYearToBC(_arg0
);
2352 wxPy_END_ALLOW_THREADS
;
2353 if (PyErr_Occurred()) return NULL
;
2354 } _resultobj
= Py_BuildValue("i",_result
);
2358 static PyObject
*_wrap_wxDateTime_GetCurrentMonth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2359 PyObject
* _resultobj
;
2360 wxDateTime::Month _result
;
2361 wxDateTime::Calendar _arg0
= (wxDateTime::Calendar
) wxDateTime::Gregorian
;
2362 char *_kwnames
[] = { "cal", NULL
};
2365 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|i:wxDateTime_GetCurrentMonth",_kwnames
,&_arg0
))
2368 wxPy_BEGIN_ALLOW_THREADS
;
2369 _result
= (wxDateTime::Month
)wxDateTime::GetCurrentMonth(_arg0
);
2371 wxPy_END_ALLOW_THREADS
;
2372 if (PyErr_Occurred()) return NULL
;
2373 } _resultobj
= Py_BuildValue("i",_result
);
2377 static PyObject
*_wrap_wxDateTime_IsLeapYear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2378 PyObject
* _resultobj
;
2380 int _arg0
= (int ) wxDateTime::Inv_Year
;
2381 wxDateTime::Calendar _arg1
= (wxDateTime::Calendar
) wxDateTime::Gregorian
;
2382 char *_kwnames
[] = { "year","cal", NULL
};
2385 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|ii:wxDateTime_IsLeapYear",_kwnames
,&_arg0
,&_arg1
))
2388 wxPy_BEGIN_ALLOW_THREADS
;
2389 _result
= (bool )wxDateTime::IsLeapYear(_arg0
,_arg1
);
2391 wxPy_END_ALLOW_THREADS
;
2392 if (PyErr_Occurred()) return NULL
;
2393 } _resultobj
= Py_BuildValue("i",_result
);
2397 static PyObject
*_wrap_wxDateTime_GetCentury(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2398 PyObject
* _resultobj
;
2400 int _arg0
= (int ) wxDateTime::Inv_Year
;
2401 char *_kwnames
[] = { "year", NULL
};
2404 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|i:wxDateTime_GetCentury",_kwnames
,&_arg0
))
2407 wxPy_BEGIN_ALLOW_THREADS
;
2408 _result
= (int )wxDateTime::GetCentury(_arg0
);
2410 wxPy_END_ALLOW_THREADS
;
2411 if (PyErr_Occurred()) return NULL
;
2412 } _resultobj
= Py_BuildValue("i",_result
);
2416 static PyObject
*_wrap_wxDateTime_GetNumberOfDaysinYear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2417 PyObject
* _resultobj
;
2418 wxDateTime::wxDateTime_t _result
;
2420 wxDateTime::Calendar _arg1
= (wxDateTime::Calendar
) wxDateTime::Gregorian
;
2421 char *_kwnames
[] = { "year","cal", NULL
};
2424 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i|i:wxDateTime_GetNumberOfDaysinYear",_kwnames
,&_arg0
,&_arg1
))
2427 wxPy_BEGIN_ALLOW_THREADS
;
2428 _result
= (wxDateTime::wxDateTime_t
)wxDateTime::GetNumberOfDays(_arg0
,_arg1
);
2430 wxPy_END_ALLOW_THREADS
;
2431 if (PyErr_Occurred()) return NULL
;
2432 } _resultobj
= Py_BuildValue("h",_result
);
2436 static PyObject
*_wrap_wxDateTime_GetNumberOfDaysInMonth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2437 PyObject
* _resultobj
;
2438 wxDateTime::wxDateTime_t _result
;
2439 wxDateTime::Month _arg0
;
2440 int _arg1
= (int ) wxDateTime::Inv_Year
;
2441 wxDateTime::Calendar _arg2
= (wxDateTime::Calendar
) wxDateTime::Gregorian
;
2442 char *_kwnames
[] = { "month","year","cal", NULL
};
2445 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i|ii:wxDateTime_GetNumberOfDaysInMonth",_kwnames
,&_arg0
,&_arg1
,&_arg2
))
2448 wxPy_BEGIN_ALLOW_THREADS
;
2449 _result
= (wxDateTime::wxDateTime_t
)wxDateTime::GetNumberOfDays(_arg0
,_arg1
,_arg2
);
2451 wxPy_END_ALLOW_THREADS
;
2452 if (PyErr_Occurred()) return NULL
;
2453 } _resultobj
= Py_BuildValue("h",_result
);
2457 static PyObject
*_wrap_wxDateTime_GetMonthName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2458 PyObject
* _resultobj
;
2460 wxDateTime::Month _arg0
;
2461 wxDateTime::NameFlags _arg1
= (wxDateTime::NameFlags
) wxDateTime::Name_Full
;
2462 char *_kwnames
[] = { "month","flags", NULL
};
2465 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i|i:wxDateTime_GetMonthName",_kwnames
,&_arg0
,&_arg1
))
2468 wxPy_BEGIN_ALLOW_THREADS
;
2469 _result
= new wxString (wxDateTime::GetMonthName(_arg0
,_arg1
));
2471 wxPy_END_ALLOW_THREADS
;
2472 if (PyErr_Occurred()) return NULL
;
2474 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2482 static PyObject
*_wrap_wxDateTime_GetWeekDayName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2483 PyObject
* _resultobj
;
2485 wxDateTime::WeekDay _arg0
;
2486 wxDateTime::NameFlags _arg1
= (wxDateTime::NameFlags
) wxDateTime::Name_Full
;
2487 char *_kwnames
[] = { "weekday","flags", NULL
};
2490 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i|i:wxDateTime_GetWeekDayName",_kwnames
,&_arg0
,&_arg1
))
2493 wxPy_BEGIN_ALLOW_THREADS
;
2494 _result
= new wxString (wxDateTime::GetWeekDayName(_arg0
,_arg1
));
2496 wxPy_END_ALLOW_THREADS
;
2497 if (PyErr_Occurred()) return NULL
;
2499 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2507 static PyObject
*_wrap_wxDateTime_GetAmPmStrings(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2508 PyObject
* _resultobj
;
2511 PyObject
* _obj0
= 0;
2512 PyObject
* _obj1
= 0;
2513 char *_kwnames
[] = { "OUTPUT","OUTPUT", NULL
};
2516 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDateTime_GetAmPmStrings",_kwnames
,&_obj0
,&_obj1
))
2519 #if PYTHON_API_VERSION >= 1009
2520 char* tmpPtr
; int tmpSize
;
2521 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
2522 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2525 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
2527 _arg0
= new wxString(tmpPtr
, tmpSize
);
2529 if (!PyString_Check(_obj0
)) {
2530 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2533 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
2537 #if PYTHON_API_VERSION >= 1009
2538 char* tmpPtr
; int tmpSize
;
2539 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2540 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2543 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2545 _arg1
= new wxString(tmpPtr
, tmpSize
);
2547 if (!PyString_Check(_obj1
)) {
2548 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2551 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2555 wxPy_BEGIN_ALLOW_THREADS
;
2556 wxDateTime::GetAmPmStrings(_arg0
,_arg1
);
2558 wxPy_END_ALLOW_THREADS
;
2559 if (PyErr_Occurred()) return NULL
;
2560 } Py_INCREF(Py_None
);
2561 _resultobj
= Py_None
;
2573 static PyObject
*_wrap_wxDateTime_IsDSTApplicable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2574 PyObject
* _resultobj
;
2576 int _arg0
= (int ) wxDateTime::Inv_Year
;
2577 wxDateTime::Country _arg1
= (wxDateTime::Country
) wxDateTime::Country_Default
;
2578 char *_kwnames
[] = { "year","country", NULL
};
2581 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|ii:wxDateTime_IsDSTApplicable",_kwnames
,&_arg0
,&_arg1
))
2584 wxPy_BEGIN_ALLOW_THREADS
;
2585 _result
= (bool )wxDateTime::IsDSTApplicable(_arg0
,_arg1
);
2587 wxPy_END_ALLOW_THREADS
;
2588 if (PyErr_Occurred()) return NULL
;
2589 } _resultobj
= Py_BuildValue("i",_result
);
2593 static PyObject
*_wrap_wxDateTime_GetBeginDST(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2594 PyObject
* _resultobj
;
2595 wxDateTime
* _result
;
2596 int _arg0
= (int ) wxDateTime::Inv_Year
;
2597 wxDateTime::Country _arg1
= (wxDateTime::Country
) wxDateTime::Country_Default
;
2598 char *_kwnames
[] = { "year","country", NULL
};
2602 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|ii:wxDateTime_GetBeginDST",_kwnames
,&_arg0
,&_arg1
))
2605 wxPy_BEGIN_ALLOW_THREADS
;
2606 _result
= new wxDateTime (wxDateTime::GetBeginDST(_arg0
,_arg1
));
2608 wxPy_END_ALLOW_THREADS
;
2609 if (PyErr_Occurred()) return NULL
;
2610 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateTime_p");
2611 _resultobj
= Py_BuildValue("s",_ptemp
);
2615 static PyObject
*_wrap_wxDateTime_GetEndDST(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2616 PyObject
* _resultobj
;
2617 wxDateTime
* _result
;
2618 int _arg0
= (int ) wxDateTime::Inv_Year
;
2619 wxDateTime::Country _arg1
= (wxDateTime::Country
) wxDateTime::Country_Default
;
2620 char *_kwnames
[] = { "year","country", NULL
};
2624 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|ii:wxDateTime_GetEndDST",_kwnames
,&_arg0
,&_arg1
))
2627 wxPy_BEGIN_ALLOW_THREADS
;
2628 _result
= new wxDateTime (wxDateTime::GetEndDST(_arg0
,_arg1
));
2630 wxPy_END_ALLOW_THREADS
;
2631 if (PyErr_Occurred()) return NULL
;
2632 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateTime_p");
2633 _resultobj
= Py_BuildValue("s",_ptemp
);
2637 static PyObject
*_wrap_wxDateTime_Now(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2638 PyObject
* _resultobj
;
2639 wxDateTime
* _result
;
2640 char *_kwnames
[] = { NULL
};
2644 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxDateTime_Now",_kwnames
))
2647 wxPy_BEGIN_ALLOW_THREADS
;
2648 _result
= new wxDateTime (wxDateTime::Now());
2650 wxPy_END_ALLOW_THREADS
;
2651 if (PyErr_Occurred()) return NULL
;
2652 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateTime_p");
2653 _resultobj
= Py_BuildValue("s",_ptemp
);
2657 static PyObject
*_wrap_wxDateTime_Today(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2658 PyObject
* _resultobj
;
2659 wxDateTime
* _result
;
2660 char *_kwnames
[] = { NULL
};
2664 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxDateTime_Today",_kwnames
))
2667 wxPy_BEGIN_ALLOW_THREADS
;
2668 _result
= new wxDateTime (wxDateTime::Today());
2670 wxPy_END_ALLOW_THREADS
;
2671 if (PyErr_Occurred()) return NULL
;
2672 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateTime_p");
2673 _resultobj
= Py_BuildValue("s",_ptemp
);
2677 #define new_wxDateTime() (new wxDateTime())
2678 static PyObject
*_wrap_new_wxDateTime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2679 PyObject
* _resultobj
;
2680 wxDateTime
* _result
;
2681 char *_kwnames
[] = { NULL
};
2685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxDateTime",_kwnames
))
2688 wxPy_BEGIN_ALLOW_THREADS
;
2689 _result
= (wxDateTime
*)new_wxDateTime();
2691 wxPy_END_ALLOW_THREADS
;
2692 if (PyErr_Occurred()) return NULL
;
2694 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
2695 _resultobj
= Py_BuildValue("s",_ptemp
);
2698 _resultobj
= Py_None
;
2703 #define new_wxDateTimeFromTimeT(_swigarg0) (new wxDateTime(_swigarg0))
2704 static PyObject
*_wrap_new_wxDateTimeFromTimeT(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2705 PyObject
* _resultobj
;
2706 wxDateTime
* _result
;
2708 char *_kwnames
[] = { "timet", NULL
};
2712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:new_wxDateTimeFromTimeT",_kwnames
,&_arg0
))
2715 wxPy_BEGIN_ALLOW_THREADS
;
2716 _result
= (wxDateTime
*)new_wxDateTimeFromTimeT(_arg0
);
2718 wxPy_END_ALLOW_THREADS
;
2719 if (PyErr_Occurred()) return NULL
;
2721 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
2722 _resultobj
= Py_BuildValue("s",_ptemp
);
2725 _resultobj
= Py_None
;
2730 #define new_wxDateTimeFromJDN(_swigarg0) (new wxDateTime(_swigarg0))
2731 static PyObject
*_wrap_new_wxDateTimeFromJDN(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2732 PyObject
* _resultobj
;
2733 wxDateTime
* _result
;
2735 char *_kwnames
[] = { "jdn", NULL
};
2739 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"d:new_wxDateTimeFromJDN",_kwnames
,&_arg0
))
2742 wxPy_BEGIN_ALLOW_THREADS
;
2743 _result
= (wxDateTime
*)new_wxDateTimeFromJDN(_arg0
);
2745 wxPy_END_ALLOW_THREADS
;
2746 if (PyErr_Occurred()) return NULL
;
2748 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
2749 _resultobj
= Py_BuildValue("s",_ptemp
);
2752 _resultobj
= Py_None
;
2757 #define new_wxDateTimeFromHMS(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxDateTime(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2758 static PyObject
*_wrap_new_wxDateTimeFromHMS(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2759 PyObject
* _resultobj
;
2760 wxDateTime
* _result
;
2761 wxDateTime::wxDateTime_t _arg0
;
2762 wxDateTime::wxDateTime_t _arg1
= (wxDateTime::wxDateTime_t
) 0;
2763 wxDateTime::wxDateTime_t _arg2
= (wxDateTime::wxDateTime_t
) 0;
2764 wxDateTime::wxDateTime_t _arg3
= (wxDateTime::wxDateTime_t
) 0;
2765 char *_kwnames
[] = { "hour","minute","second","millisec", NULL
};
2769 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"h|hhh:new_wxDateTimeFromHMS",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
2772 wxPy_BEGIN_ALLOW_THREADS
;
2773 _result
= (wxDateTime
*)new_wxDateTimeFromHMS(_arg0
,_arg1
,_arg2
,_arg3
);
2775 wxPy_END_ALLOW_THREADS
;
2776 if (PyErr_Occurred()) return NULL
;
2778 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
2779 _resultobj
= Py_BuildValue("s",_ptemp
);
2782 _resultobj
= Py_None
;
2787 #define new_wxDateTimeFromDMY(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDateTime(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
2788 static PyObject
*_wrap_new_wxDateTimeFromDMY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2789 PyObject
* _resultobj
;
2790 wxDateTime
* _result
;
2791 wxDateTime::wxDateTime_t _arg0
;
2792 wxDateTime::Month _arg1
= (wxDateTime::Month
) wxDateTime::Inv_Month
;
2793 int _arg2
= (int ) wxDateTime::Inv_Year
;
2794 wxDateTime::wxDateTime_t _arg3
= (wxDateTime::wxDateTime_t
) 0;
2795 wxDateTime::wxDateTime_t _arg4
= (wxDateTime::wxDateTime_t
) 0;
2796 wxDateTime::wxDateTime_t _arg5
= (wxDateTime::wxDateTime_t
) 0;
2797 wxDateTime::wxDateTime_t _arg6
= (wxDateTime::wxDateTime_t
) 0;
2798 char *_kwnames
[] = { "day","month","year","hour","minute","second","millisec", NULL
};
2802 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"h|iihhhh:new_wxDateTimeFromDMY",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
2805 wxPy_BEGIN_ALLOW_THREADS
;
2806 _result
= (wxDateTime
*)new_wxDateTimeFromDMY(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
2808 wxPy_END_ALLOW_THREADS
;
2809 if (PyErr_Occurred()) return NULL
;
2811 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
2812 _resultobj
= Py_BuildValue("s",_ptemp
);
2815 _resultobj
= Py_None
;
2820 #define delete_wxDateTime(_swigobj) (delete _swigobj)
2821 static PyObject
*_wrap_delete_wxDateTime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2822 PyObject
* _resultobj
;
2824 PyObject
* _argo0
= 0;
2825 char *_kwnames
[] = { "self", NULL
};
2828 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDateTime",_kwnames
,&_argo0
))
2831 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2832 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
2833 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDateTime. Expected _wxDateTime_p.");
2838 wxPy_BEGIN_ALLOW_THREADS
;
2839 delete_wxDateTime(_arg0
);
2841 wxPy_END_ALLOW_THREADS
;
2842 if (PyErr_Occurred()) return NULL
;
2843 } Py_INCREF(Py_None
);
2844 _resultobj
= Py_None
;
2848 #define wxDateTime_SetToCurrent(_swigobj) (_swigobj->SetToCurrent())
2849 static PyObject
*_wrap_wxDateTime_SetToCurrent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2850 PyObject
* _resultobj
;
2851 wxDateTime
* _result
;
2853 PyObject
* _argo0
= 0;
2854 char *_kwnames
[] = { "self", NULL
};
2858 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDateTime_SetToCurrent",_kwnames
,&_argo0
))
2861 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2862 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
2863 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_SetToCurrent. Expected _wxDateTime_p.");
2868 wxPy_BEGIN_ALLOW_THREADS
;
2869 wxDateTime
& _result_ref
= wxDateTime_SetToCurrent(_arg0
);
2870 _result
= (wxDateTime
*) &_result_ref
;
2872 wxPy_END_ALLOW_THREADS
;
2873 if (PyErr_Occurred()) return NULL
;
2875 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
2876 _resultobj
= Py_BuildValue("s",_ptemp
);
2879 _resultobj
= Py_None
;
2884 #define wxDateTime_SetTimeT(_swigobj,_swigarg0) (_swigobj->Set(_swigarg0))
2885 static PyObject
*_wrap_wxDateTime_SetTimeT(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2886 PyObject
* _resultobj
;
2887 wxDateTime
* _result
;
2890 PyObject
* _argo0
= 0;
2891 char *_kwnames
[] = { "self","timet", NULL
};
2895 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDateTime_SetTimeT",_kwnames
,&_argo0
,&_arg1
))
2898 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2899 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
2900 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_SetTimeT. Expected _wxDateTime_p.");
2905 wxPy_BEGIN_ALLOW_THREADS
;
2906 wxDateTime
& _result_ref
= wxDateTime_SetTimeT(_arg0
,_arg1
);
2907 _result
= (wxDateTime
*) &_result_ref
;
2909 wxPy_END_ALLOW_THREADS
;
2910 if (PyErr_Occurred()) return NULL
;
2912 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
2913 _resultobj
= Py_BuildValue("s",_ptemp
);
2916 _resultobj
= Py_None
;
2921 #define wxDateTime_SetJDN(_swigobj,_swigarg0) (_swigobj->Set(_swigarg0))
2922 static PyObject
*_wrap_wxDateTime_SetJDN(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2923 PyObject
* _resultobj
;
2924 wxDateTime
* _result
;
2927 PyObject
* _argo0
= 0;
2928 char *_kwnames
[] = { "self","jdn", NULL
};
2932 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Od:wxDateTime_SetJDN",_kwnames
,&_argo0
,&_arg1
))
2935 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2936 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
2937 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_SetJDN. Expected _wxDateTime_p.");
2942 wxPy_BEGIN_ALLOW_THREADS
;
2943 wxDateTime
& _result_ref
= wxDateTime_SetJDN(_arg0
,_arg1
);
2944 _result
= (wxDateTime
*) &_result_ref
;
2946 wxPy_END_ALLOW_THREADS
;
2947 if (PyErr_Occurred()) return NULL
;
2949 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
2950 _resultobj
= Py_BuildValue("s",_ptemp
);
2953 _resultobj
= Py_None
;
2958 #define wxDateTime_SetHMS(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2959 static PyObject
*_wrap_wxDateTime_SetHMS(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2960 PyObject
* _resultobj
;
2961 wxDateTime
* _result
;
2963 wxDateTime::wxDateTime_t _arg1
;
2964 wxDateTime::wxDateTime_t _arg2
= (wxDateTime::wxDateTime_t
) 0;
2965 wxDateTime::wxDateTime_t _arg3
= (wxDateTime::wxDateTime_t
) 0;
2966 wxDateTime::wxDateTime_t _arg4
= (wxDateTime::wxDateTime_t
) 0;
2967 PyObject
* _argo0
= 0;
2968 char *_kwnames
[] = { "self","hour","minute","second","millisec", NULL
};
2972 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oh|hhh:wxDateTime_SetHMS",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
2975 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2976 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
2977 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_SetHMS. Expected _wxDateTime_p.");
2982 wxPy_BEGIN_ALLOW_THREADS
;
2983 wxDateTime
& _result_ref
= wxDateTime_SetHMS(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
2984 _result
= (wxDateTime
*) &_result_ref
;
2986 wxPy_END_ALLOW_THREADS
;
2987 if (PyErr_Occurred()) return NULL
;
2989 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
2990 _resultobj
= Py_BuildValue("s",_ptemp
);
2993 _resultobj
= Py_None
;
2998 #define wxDateTime_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
2999 static PyObject
*_wrap_wxDateTime_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3000 PyObject
* _resultobj
;
3001 wxDateTime
* _result
;
3003 wxDateTime::wxDateTime_t _arg1
;
3004 wxDateTime::Month _arg2
= (wxDateTime::Month
) wxDateTime::Inv_Month
;
3005 int _arg3
= (int ) wxDateTime::Inv_Year
;
3006 wxDateTime::wxDateTime_t _arg4
= (wxDateTime::wxDateTime_t
) 0;
3007 wxDateTime::wxDateTime_t _arg5
= (wxDateTime::wxDateTime_t
) 0;
3008 wxDateTime::wxDateTime_t _arg6
= (wxDateTime::wxDateTime_t
) 0;
3009 wxDateTime::wxDateTime_t _arg7
= (wxDateTime::wxDateTime_t
) 0;
3010 PyObject
* _argo0
= 0;
3011 char *_kwnames
[] = { "self","day","month","year","hour","minute","second","millisec", NULL
};
3015 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oh|iihhhh:wxDateTime_Set",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
,&_arg7
))
3018 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3019 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3020 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_Set. Expected _wxDateTime_p.");
3025 wxPy_BEGIN_ALLOW_THREADS
;
3026 wxDateTime
& _result_ref
= wxDateTime_Set(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
3027 _result
= (wxDateTime
*) &_result_ref
;
3029 wxPy_END_ALLOW_THREADS
;
3030 if (PyErr_Occurred()) return NULL
;
3032 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
3033 _resultobj
= Py_BuildValue("s",_ptemp
);
3036 _resultobj
= Py_None
;
3041 #define wxDateTime_ResetTime(_swigobj) (_swigobj->ResetTime())
3042 static PyObject
*_wrap_wxDateTime_ResetTime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3043 PyObject
* _resultobj
;
3044 wxDateTime
* _result
;
3046 PyObject
* _argo0
= 0;
3047 char *_kwnames
[] = { "self", NULL
};
3051 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDateTime_ResetTime",_kwnames
,&_argo0
))
3054 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3055 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3056 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_ResetTime. Expected _wxDateTime_p.");
3061 wxPy_BEGIN_ALLOW_THREADS
;
3062 wxDateTime
& _result_ref
= wxDateTime_ResetTime(_arg0
);
3063 _result
= (wxDateTime
*) &_result_ref
;
3065 wxPy_END_ALLOW_THREADS
;
3066 if (PyErr_Occurred()) return NULL
;
3068 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
3069 _resultobj
= Py_BuildValue("s",_ptemp
);
3072 _resultobj
= Py_None
;
3077 #define wxDateTime_SetYear(_swigobj,_swigarg0) (_swigobj->SetYear(_swigarg0))
3078 static PyObject
*_wrap_wxDateTime_SetYear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3079 PyObject
* _resultobj
;
3080 wxDateTime
* _result
;
3083 PyObject
* _argo0
= 0;
3084 char *_kwnames
[] = { "self","year", NULL
};
3088 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDateTime_SetYear",_kwnames
,&_argo0
,&_arg1
))
3091 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3092 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3093 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_SetYear. Expected _wxDateTime_p.");
3098 wxPy_BEGIN_ALLOW_THREADS
;
3099 wxDateTime
& _result_ref
= wxDateTime_SetYear(_arg0
,_arg1
);
3100 _result
= (wxDateTime
*) &_result_ref
;
3102 wxPy_END_ALLOW_THREADS
;
3103 if (PyErr_Occurred()) return NULL
;
3105 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
3106 _resultobj
= Py_BuildValue("s",_ptemp
);
3109 _resultobj
= Py_None
;
3114 #define wxDateTime_SetMonth(_swigobj,_swigarg0) (_swigobj->SetMonth(_swigarg0))
3115 static PyObject
*_wrap_wxDateTime_SetMonth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3116 PyObject
* _resultobj
;
3117 wxDateTime
* _result
;
3119 wxDateTime::Month _arg1
;
3120 PyObject
* _argo0
= 0;
3121 char *_kwnames
[] = { "self","month", NULL
};
3125 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDateTime_SetMonth",_kwnames
,&_argo0
,&_arg1
))
3128 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3129 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3130 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_SetMonth. Expected _wxDateTime_p.");
3135 wxPy_BEGIN_ALLOW_THREADS
;
3136 wxDateTime
& _result_ref
= wxDateTime_SetMonth(_arg0
,_arg1
);
3137 _result
= (wxDateTime
*) &_result_ref
;
3139 wxPy_END_ALLOW_THREADS
;
3140 if (PyErr_Occurred()) return NULL
;
3142 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
3143 _resultobj
= Py_BuildValue("s",_ptemp
);
3146 _resultobj
= Py_None
;
3151 #define wxDateTime_SetDay(_swigobj,_swigarg0) (_swigobj->SetDay(_swigarg0))
3152 static PyObject
*_wrap_wxDateTime_SetDay(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3153 PyObject
* _resultobj
;
3154 wxDateTime
* _result
;
3156 wxDateTime::wxDateTime_t _arg1
;
3157 PyObject
* _argo0
= 0;
3158 char *_kwnames
[] = { "self","day", NULL
};
3162 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oh:wxDateTime_SetDay",_kwnames
,&_argo0
,&_arg1
))
3165 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3166 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3167 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_SetDay. Expected _wxDateTime_p.");
3172 wxPy_BEGIN_ALLOW_THREADS
;
3173 wxDateTime
& _result_ref
= wxDateTime_SetDay(_arg0
,_arg1
);
3174 _result
= (wxDateTime
*) &_result_ref
;
3176 wxPy_END_ALLOW_THREADS
;
3177 if (PyErr_Occurred()) return NULL
;
3179 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
3180 _resultobj
= Py_BuildValue("s",_ptemp
);
3183 _resultobj
= Py_None
;
3188 #define wxDateTime_SetHour(_swigobj,_swigarg0) (_swigobj->SetHour(_swigarg0))
3189 static PyObject
*_wrap_wxDateTime_SetHour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3190 PyObject
* _resultobj
;
3191 wxDateTime
* _result
;
3193 wxDateTime::wxDateTime_t _arg1
;
3194 PyObject
* _argo0
= 0;
3195 char *_kwnames
[] = { "self","hour", NULL
};
3199 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oh:wxDateTime_SetHour",_kwnames
,&_argo0
,&_arg1
))
3202 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3203 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3204 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_SetHour. Expected _wxDateTime_p.");
3209 wxPy_BEGIN_ALLOW_THREADS
;
3210 wxDateTime
& _result_ref
= wxDateTime_SetHour(_arg0
,_arg1
);
3211 _result
= (wxDateTime
*) &_result_ref
;
3213 wxPy_END_ALLOW_THREADS
;
3214 if (PyErr_Occurred()) return NULL
;
3216 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
3217 _resultobj
= Py_BuildValue("s",_ptemp
);
3220 _resultobj
= Py_None
;
3225 #define wxDateTime_SetMinute(_swigobj,_swigarg0) (_swigobj->SetMinute(_swigarg0))
3226 static PyObject
*_wrap_wxDateTime_SetMinute(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3227 PyObject
* _resultobj
;
3228 wxDateTime
* _result
;
3230 wxDateTime::wxDateTime_t _arg1
;
3231 PyObject
* _argo0
= 0;
3232 char *_kwnames
[] = { "self","minute", NULL
};
3236 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oh:wxDateTime_SetMinute",_kwnames
,&_argo0
,&_arg1
))
3239 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3240 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3241 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_SetMinute. Expected _wxDateTime_p.");
3246 wxPy_BEGIN_ALLOW_THREADS
;
3247 wxDateTime
& _result_ref
= wxDateTime_SetMinute(_arg0
,_arg1
);
3248 _result
= (wxDateTime
*) &_result_ref
;
3250 wxPy_END_ALLOW_THREADS
;
3251 if (PyErr_Occurred()) return NULL
;
3253 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
3254 _resultobj
= Py_BuildValue("s",_ptemp
);
3257 _resultobj
= Py_None
;
3262 #define wxDateTime_SetSecond(_swigobj,_swigarg0) (_swigobj->SetSecond(_swigarg0))
3263 static PyObject
*_wrap_wxDateTime_SetSecond(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3264 PyObject
* _resultobj
;
3265 wxDateTime
* _result
;
3267 wxDateTime::wxDateTime_t _arg1
;
3268 PyObject
* _argo0
= 0;
3269 char *_kwnames
[] = { "self","second", NULL
};
3273 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oh:wxDateTime_SetSecond",_kwnames
,&_argo0
,&_arg1
))
3276 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3277 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3278 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_SetSecond. Expected _wxDateTime_p.");
3283 wxPy_BEGIN_ALLOW_THREADS
;
3284 wxDateTime
& _result_ref
= wxDateTime_SetSecond(_arg0
,_arg1
);
3285 _result
= (wxDateTime
*) &_result_ref
;
3287 wxPy_END_ALLOW_THREADS
;
3288 if (PyErr_Occurred()) return NULL
;
3290 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
3291 _resultobj
= Py_BuildValue("s",_ptemp
);
3294 _resultobj
= Py_None
;
3299 #define wxDateTime_SetMillisecond(_swigobj,_swigarg0) (_swigobj->SetMillisecond(_swigarg0))
3300 static PyObject
*_wrap_wxDateTime_SetMillisecond(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3301 PyObject
* _resultobj
;
3302 wxDateTime
* _result
;
3304 wxDateTime::wxDateTime_t _arg1
;
3305 PyObject
* _argo0
= 0;
3306 char *_kwnames
[] = { "self","millisecond", NULL
};
3310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oh:wxDateTime_SetMillisecond",_kwnames
,&_argo0
,&_arg1
))
3313 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3314 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3315 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_SetMillisecond. Expected _wxDateTime_p.");
3320 wxPy_BEGIN_ALLOW_THREADS
;
3321 wxDateTime
& _result_ref
= wxDateTime_SetMillisecond(_arg0
,_arg1
);
3322 _result
= (wxDateTime
*) &_result_ref
;
3324 wxPy_END_ALLOW_THREADS
;
3325 if (PyErr_Occurred()) return NULL
;
3327 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
3328 _resultobj
= Py_BuildValue("s",_ptemp
);
3331 _resultobj
= Py_None
;
3336 #define wxDateTime_SetToWeekDayInSameWeek(_swigobj,_swigarg0) (_swigobj->SetToWeekDayInSameWeek(_swigarg0))
3337 static PyObject
*_wrap_wxDateTime_SetToWeekDayInSameWeek(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3338 PyObject
* _resultobj
;
3339 wxDateTime
* _result
;
3341 wxDateTime::WeekDay _arg1
;
3342 PyObject
* _argo0
= 0;
3343 char *_kwnames
[] = { "self","weekday", NULL
};
3347 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDateTime_SetToWeekDayInSameWeek",_kwnames
,&_argo0
,&_arg1
))
3350 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3351 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3352 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_SetToWeekDayInSameWeek. Expected _wxDateTime_p.");
3357 wxPy_BEGIN_ALLOW_THREADS
;
3358 wxDateTime
& _result_ref
= wxDateTime_SetToWeekDayInSameWeek(_arg0
,_arg1
);
3359 _result
= (wxDateTime
*) &_result_ref
;
3361 wxPy_END_ALLOW_THREADS
;
3362 if (PyErr_Occurred()) return NULL
;
3364 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
3365 _resultobj
= Py_BuildValue("s",_ptemp
);
3368 _resultobj
= Py_None
;
3373 #define wxDateTime_GetWeekDayInSameWeek(_swigobj,_swigarg0) (_swigobj->GetWeekDayInSameWeek(_swigarg0))
3374 static PyObject
*_wrap_wxDateTime_GetWeekDayInSameWeek(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3375 PyObject
* _resultobj
;
3376 wxDateTime
* _result
;
3378 wxDateTime::WeekDay _arg1
;
3379 PyObject
* _argo0
= 0;
3380 char *_kwnames
[] = { "self","weekday", NULL
};
3384 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDateTime_GetWeekDayInSameWeek",_kwnames
,&_argo0
,&_arg1
))
3387 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3388 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3389 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_GetWeekDayInSameWeek. Expected _wxDateTime_p.");
3394 wxPy_BEGIN_ALLOW_THREADS
;
3395 _result
= new wxDateTime (wxDateTime_GetWeekDayInSameWeek(_arg0
,_arg1
));
3397 wxPy_END_ALLOW_THREADS
;
3398 if (PyErr_Occurred()) return NULL
;
3399 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateTime_p");
3400 _resultobj
= Py_BuildValue("s",_ptemp
);
3404 #define wxDateTime_SetToNextWeekDay(_swigobj,_swigarg0) (_swigobj->SetToNextWeekDay(_swigarg0))
3405 static PyObject
*_wrap_wxDateTime_SetToNextWeekDay(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3406 PyObject
* _resultobj
;
3407 wxDateTime
* _result
;
3409 wxDateTime::WeekDay _arg1
;
3410 PyObject
* _argo0
= 0;
3411 char *_kwnames
[] = { "self","weekday", NULL
};
3415 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDateTime_SetToNextWeekDay",_kwnames
,&_argo0
,&_arg1
))
3418 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3419 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3420 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_SetToNextWeekDay. Expected _wxDateTime_p.");
3425 wxPy_BEGIN_ALLOW_THREADS
;
3426 wxDateTime
& _result_ref
= wxDateTime_SetToNextWeekDay(_arg0
,_arg1
);
3427 _result
= (wxDateTime
*) &_result_ref
;
3429 wxPy_END_ALLOW_THREADS
;
3430 if (PyErr_Occurred()) return NULL
;
3432 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
3433 _resultobj
= Py_BuildValue("s",_ptemp
);
3436 _resultobj
= Py_None
;
3441 #define wxDateTime_GetNextWeekDay(_swigobj,_swigarg0) (_swigobj->GetNextWeekDay(_swigarg0))
3442 static PyObject
*_wrap_wxDateTime_GetNextWeekDay(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3443 PyObject
* _resultobj
;
3444 wxDateTime
* _result
;
3446 wxDateTime::WeekDay _arg1
;
3447 PyObject
* _argo0
= 0;
3448 char *_kwnames
[] = { "self","weekday", NULL
};
3452 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDateTime_GetNextWeekDay",_kwnames
,&_argo0
,&_arg1
))
3455 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3456 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3457 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_GetNextWeekDay. Expected _wxDateTime_p.");
3462 wxPy_BEGIN_ALLOW_THREADS
;
3463 _result
= new wxDateTime (wxDateTime_GetNextWeekDay(_arg0
,_arg1
));
3465 wxPy_END_ALLOW_THREADS
;
3466 if (PyErr_Occurred()) return NULL
;
3467 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateTime_p");
3468 _resultobj
= Py_BuildValue("s",_ptemp
);
3472 #define wxDateTime_SetToPrevWeekDay(_swigobj,_swigarg0) (_swigobj->SetToPrevWeekDay(_swigarg0))
3473 static PyObject
*_wrap_wxDateTime_SetToPrevWeekDay(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3474 PyObject
* _resultobj
;
3475 wxDateTime
* _result
;
3477 wxDateTime::WeekDay _arg1
;
3478 PyObject
* _argo0
= 0;
3479 char *_kwnames
[] = { "self","weekday", NULL
};
3483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDateTime_SetToPrevWeekDay",_kwnames
,&_argo0
,&_arg1
))
3486 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3487 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_SetToPrevWeekDay. Expected _wxDateTime_p.");
3493 wxPy_BEGIN_ALLOW_THREADS
;
3494 wxDateTime
& _result_ref
= wxDateTime_SetToPrevWeekDay(_arg0
,_arg1
);
3495 _result
= (wxDateTime
*) &_result_ref
;
3497 wxPy_END_ALLOW_THREADS
;
3498 if (PyErr_Occurred()) return NULL
;
3500 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
3501 _resultobj
= Py_BuildValue("s",_ptemp
);
3504 _resultobj
= Py_None
;
3509 #define wxDateTime_GetPrevWeekDay(_swigobj,_swigarg0) (_swigobj->GetPrevWeekDay(_swigarg0))
3510 static PyObject
*_wrap_wxDateTime_GetPrevWeekDay(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3511 PyObject
* _resultobj
;
3512 wxDateTime
* _result
;
3514 wxDateTime::WeekDay _arg1
;
3515 PyObject
* _argo0
= 0;
3516 char *_kwnames
[] = { "self","weekday", NULL
};
3520 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDateTime_GetPrevWeekDay",_kwnames
,&_argo0
,&_arg1
))
3523 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3524 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3525 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_GetPrevWeekDay. Expected _wxDateTime_p.");
3530 wxPy_BEGIN_ALLOW_THREADS
;
3531 _result
= new wxDateTime (wxDateTime_GetPrevWeekDay(_arg0
,_arg1
));
3533 wxPy_END_ALLOW_THREADS
;
3534 if (PyErr_Occurred()) return NULL
;
3535 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateTime_p");
3536 _resultobj
= Py_BuildValue("s",_ptemp
);
3540 #define wxDateTime_SetToWeekDay(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetToWeekDay(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
3541 static PyObject
*_wrap_wxDateTime_SetToWeekDay(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3542 PyObject
* _resultobj
;
3545 wxDateTime::WeekDay _arg1
;
3546 int _arg2
= (int ) 1;
3547 wxDateTime::Month _arg3
= (wxDateTime::Month
) wxDateTime::Inv_Month
;
3548 int _arg4
= (int ) wxDateTime::Inv_Year
;
3549 PyObject
* _argo0
= 0;
3550 char *_kwnames
[] = { "self","weekday","n","month","year", NULL
};
3553 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|iii:wxDateTime_SetToWeekDay",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
3556 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3557 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3558 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_SetToWeekDay. Expected _wxDateTime_p.");
3563 wxPy_BEGIN_ALLOW_THREADS
;
3564 _result
= (bool )wxDateTime_SetToWeekDay(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
3566 wxPy_END_ALLOW_THREADS
;
3567 if (PyErr_Occurred()) return NULL
;
3568 } _resultobj
= Py_BuildValue("i",_result
);
3572 #define wxDateTime_SetToLastWeekDay(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetToLastWeekDay(_swigarg0,_swigarg1,_swigarg2))
3573 static PyObject
*_wrap_wxDateTime_SetToLastWeekDay(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3574 PyObject
* _resultobj
;
3577 wxDateTime::WeekDay _arg1
;
3578 wxDateTime::Month _arg2
= (wxDateTime::Month
) wxDateTime::Inv_Month
;
3579 int _arg3
= (int ) wxDateTime::Inv_Year
;
3580 PyObject
* _argo0
= 0;
3581 char *_kwnames
[] = { "self","weekday","month","year", NULL
};
3584 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|ii:wxDateTime_SetToLastWeekDay",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3587 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3588 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3589 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_SetToLastWeekDay. Expected _wxDateTime_p.");
3594 wxPy_BEGIN_ALLOW_THREADS
;
3595 _result
= (bool )wxDateTime_SetToLastWeekDay(_arg0
,_arg1
,_arg2
,_arg3
);
3597 wxPy_END_ALLOW_THREADS
;
3598 if (PyErr_Occurred()) return NULL
;
3599 } _resultobj
= Py_BuildValue("i",_result
);
3603 #define wxDateTime_GetLastWeekDay(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetLastWeekDay(_swigarg0,_swigarg1,_swigarg2))
3604 static PyObject
*_wrap_wxDateTime_GetLastWeekDay(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3605 PyObject
* _resultobj
;
3606 wxDateTime
* _result
;
3608 wxDateTime::WeekDay _arg1
;
3609 wxDateTime::Month _arg2
= (wxDateTime::Month
) wxDateTime::Inv_Month
;
3610 int _arg3
= (int ) wxDateTime::Inv_Year
;
3611 PyObject
* _argo0
= 0;
3612 char *_kwnames
[] = { "self","weekday","month","year", NULL
};
3616 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|ii:wxDateTime_GetLastWeekDay",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3619 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3620 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3621 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_GetLastWeekDay. Expected _wxDateTime_p.");
3626 wxPy_BEGIN_ALLOW_THREADS
;
3627 _result
= new wxDateTime (wxDateTime_GetLastWeekDay(_arg0
,_arg1
,_arg2
,_arg3
));
3629 wxPy_END_ALLOW_THREADS
;
3630 if (PyErr_Occurred()) return NULL
;
3631 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateTime_p");
3632 _resultobj
= Py_BuildValue("s",_ptemp
);
3636 #define wxDateTime_SetToTheWeek(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToTheWeek(_swigarg0,_swigarg1))
3637 static PyObject
*_wrap_wxDateTime_SetToTheWeek(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3638 PyObject
* _resultobj
;
3641 wxDateTime::wxDateTime_t _arg1
;
3642 wxDateTime::WeekDay _arg2
= (wxDateTime::WeekDay
) wxDateTime::Mon
;
3643 PyObject
* _argo0
= 0;
3644 char *_kwnames
[] = { "self","numWeek","weekday", NULL
};
3647 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oh|i:wxDateTime_SetToTheWeek",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3650 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3651 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3652 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_SetToTheWeek. Expected _wxDateTime_p.");
3657 wxPy_BEGIN_ALLOW_THREADS
;
3658 _result
= (bool )wxDateTime_SetToTheWeek(_arg0
,_arg1
,_arg2
);
3660 wxPy_END_ALLOW_THREADS
;
3661 if (PyErr_Occurred()) return NULL
;
3662 } _resultobj
= Py_BuildValue("i",_result
);
3666 #define wxDateTime_GetWeek(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetWeek(_swigarg0,_swigarg1))
3667 static PyObject
*_wrap_wxDateTime_GetWeek(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3668 PyObject
* _resultobj
;
3669 wxDateTime
* _result
;
3671 wxDateTime::wxDateTime_t _arg1
;
3672 wxDateTime::WeekDay _arg2
= (wxDateTime::WeekDay
) wxDateTime::Mon
;
3673 PyObject
* _argo0
= 0;
3674 char *_kwnames
[] = { "self","numWeek","weekday", NULL
};
3678 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oh|i:wxDateTime_GetWeek",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3681 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3682 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3683 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_GetWeek. Expected _wxDateTime_p.");
3688 wxPy_BEGIN_ALLOW_THREADS
;
3689 _result
= new wxDateTime (wxDateTime_GetWeek(_arg0
,_arg1
,_arg2
));
3691 wxPy_END_ALLOW_THREADS
;
3692 if (PyErr_Occurred()) return NULL
;
3693 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateTime_p");
3694 _resultobj
= Py_BuildValue("s",_ptemp
);
3698 #define wxDateTime_SetToLastMonthDay(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToLastMonthDay(_swigarg0,_swigarg1))
3699 static PyObject
*_wrap_wxDateTime_SetToLastMonthDay(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3700 PyObject
* _resultobj
;
3701 wxDateTime
* _result
;
3703 wxDateTime::Month _arg1
= (wxDateTime::Month
) wxDateTime::Inv_Month
;
3704 int _arg2
= (int ) wxDateTime::Inv_Year
;
3705 PyObject
* _argo0
= 0;
3706 char *_kwnames
[] = { "self","month","year", NULL
};
3710 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:wxDateTime_SetToLastMonthDay",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3713 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3714 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_SetToLastMonthDay. Expected _wxDateTime_p.");
3720 wxPy_BEGIN_ALLOW_THREADS
;
3721 wxDateTime
& _result_ref
= wxDateTime_SetToLastMonthDay(_arg0
,_arg1
,_arg2
);
3722 _result
= (wxDateTime
*) &_result_ref
;
3724 wxPy_END_ALLOW_THREADS
;
3725 if (PyErr_Occurred()) return NULL
;
3727 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
3728 _resultobj
= Py_BuildValue("s",_ptemp
);
3731 _resultobj
= Py_None
;
3736 #define wxDateTime_GetLastMonthDay(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLastMonthDay(_swigarg0,_swigarg1))
3737 static PyObject
*_wrap_wxDateTime_GetLastMonthDay(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3738 PyObject
* _resultobj
;
3739 wxDateTime
* _result
;
3741 wxDateTime::Month _arg1
= (wxDateTime::Month
) wxDateTime::Inv_Month
;
3742 int _arg2
= (int ) wxDateTime::Inv_Year
;
3743 PyObject
* _argo0
= 0;
3744 char *_kwnames
[] = { "self","month","year", NULL
};
3748 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ii:wxDateTime_GetLastMonthDay",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3751 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3752 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3753 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_GetLastMonthDay. Expected _wxDateTime_p.");
3758 wxPy_BEGIN_ALLOW_THREADS
;
3759 _result
= new wxDateTime (wxDateTime_GetLastMonthDay(_arg0
,_arg1
,_arg2
));
3761 wxPy_END_ALLOW_THREADS
;
3762 if (PyErr_Occurred()) return NULL
;
3763 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateTime_p");
3764 _resultobj
= Py_BuildValue("s",_ptemp
);
3768 #define wxDateTime_SetToYearDay(_swigobj,_swigarg0) (_swigobj->SetToYearDay(_swigarg0))
3769 static PyObject
*_wrap_wxDateTime_SetToYearDay(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3770 PyObject
* _resultobj
;
3771 wxDateTime
* _result
;
3773 wxDateTime::wxDateTime_t _arg1
;
3774 PyObject
* _argo0
= 0;
3775 char *_kwnames
[] = { "self","yday", NULL
};
3779 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oh:wxDateTime_SetToYearDay",_kwnames
,&_argo0
,&_arg1
))
3782 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3783 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3784 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_SetToYearDay. Expected _wxDateTime_p.");
3789 wxPy_BEGIN_ALLOW_THREADS
;
3790 wxDateTime
& _result_ref
= wxDateTime_SetToYearDay(_arg0
,_arg1
);
3791 _result
= (wxDateTime
*) &_result_ref
;
3793 wxPy_END_ALLOW_THREADS
;
3794 if (PyErr_Occurred()) return NULL
;
3796 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
3797 _resultobj
= Py_BuildValue("s",_ptemp
);
3800 _resultobj
= Py_None
;
3805 #define wxDateTime_GetYearDay(_swigobj,_swigarg0) (_swigobj->GetYearDay(_swigarg0))
3806 static PyObject
*_wrap_wxDateTime_GetYearDay(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3807 PyObject
* _resultobj
;
3808 wxDateTime
* _result
;
3810 wxDateTime::wxDateTime_t _arg1
;
3811 PyObject
* _argo0
= 0;
3812 char *_kwnames
[] = { "self","yday", NULL
};
3816 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oh:wxDateTime_GetYearDay",_kwnames
,&_argo0
,&_arg1
))
3819 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3820 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3821 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_GetYearDay. Expected _wxDateTime_p.");
3826 wxPy_BEGIN_ALLOW_THREADS
;
3827 _result
= new wxDateTime (wxDateTime_GetYearDay(_arg0
,_arg1
));
3829 wxPy_END_ALLOW_THREADS
;
3830 if (PyErr_Occurred()) return NULL
;
3831 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateTime_p");
3832 _resultobj
= Py_BuildValue("s",_ptemp
);
3836 #define wxDateTime_GetJulianDayNumber(_swigobj) (_swigobj->GetJulianDayNumber())
3837 static PyObject
*_wrap_wxDateTime_GetJulianDayNumber(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3838 PyObject
* _resultobj
;
3841 PyObject
* _argo0
= 0;
3842 char *_kwnames
[] = { "self", NULL
};
3845 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDateTime_GetJulianDayNumber",_kwnames
,&_argo0
))
3848 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3849 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3850 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_GetJulianDayNumber. Expected _wxDateTime_p.");
3855 wxPy_BEGIN_ALLOW_THREADS
;
3856 _result
= (double )wxDateTime_GetJulianDayNumber(_arg0
);
3858 wxPy_END_ALLOW_THREADS
;
3859 if (PyErr_Occurred()) return NULL
;
3860 } _resultobj
= Py_BuildValue("d",_result
);
3864 #define wxDateTime_GetJDN(_swigobj) (_swigobj->GetJDN())
3865 static PyObject
*_wrap_wxDateTime_GetJDN(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3866 PyObject
* _resultobj
;
3869 PyObject
* _argo0
= 0;
3870 char *_kwnames
[] = { "self", NULL
};
3873 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDateTime_GetJDN",_kwnames
,&_argo0
))
3876 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3877 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3878 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_GetJDN. Expected _wxDateTime_p.");
3883 wxPy_BEGIN_ALLOW_THREADS
;
3884 _result
= (double )wxDateTime_GetJDN(_arg0
);
3886 wxPy_END_ALLOW_THREADS
;
3887 if (PyErr_Occurred()) return NULL
;
3888 } _resultobj
= Py_BuildValue("d",_result
);
3892 #define wxDateTime_GetModifiedJulianDayNumber(_swigobj) (_swigobj->GetModifiedJulianDayNumber())
3893 static PyObject
*_wrap_wxDateTime_GetModifiedJulianDayNumber(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3894 PyObject
* _resultobj
;
3897 PyObject
* _argo0
= 0;
3898 char *_kwnames
[] = { "self", NULL
};
3901 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDateTime_GetModifiedJulianDayNumber",_kwnames
,&_argo0
))
3904 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3905 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3906 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_GetModifiedJulianDayNumber. Expected _wxDateTime_p.");
3911 wxPy_BEGIN_ALLOW_THREADS
;
3912 _result
= (double )wxDateTime_GetModifiedJulianDayNumber(_arg0
);
3914 wxPy_END_ALLOW_THREADS
;
3915 if (PyErr_Occurred()) return NULL
;
3916 } _resultobj
= Py_BuildValue("d",_result
);
3920 #define wxDateTime_GetMJD(_swigobj) (_swigobj->GetMJD())
3921 static PyObject
*_wrap_wxDateTime_GetMJD(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3922 PyObject
* _resultobj
;
3925 PyObject
* _argo0
= 0;
3926 char *_kwnames
[] = { "self", NULL
};
3929 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDateTime_GetMJD",_kwnames
,&_argo0
))
3932 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3933 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3934 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_GetMJD. Expected _wxDateTime_p.");
3939 wxPy_BEGIN_ALLOW_THREADS
;
3940 _result
= (double )wxDateTime_GetMJD(_arg0
);
3942 wxPy_END_ALLOW_THREADS
;
3943 if (PyErr_Occurred()) return NULL
;
3944 } _resultobj
= Py_BuildValue("d",_result
);
3948 #define wxDateTime_GetRataDie(_swigobj) (_swigobj->GetRataDie())
3949 static PyObject
*_wrap_wxDateTime_GetRataDie(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3950 PyObject
* _resultobj
;
3953 PyObject
* _argo0
= 0;
3954 char *_kwnames
[] = { "self", NULL
};
3957 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDateTime_GetRataDie",_kwnames
,&_argo0
))
3960 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3961 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3962 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_GetRataDie. Expected _wxDateTime_p.");
3967 wxPy_BEGIN_ALLOW_THREADS
;
3968 _result
= (double )wxDateTime_GetRataDie(_arg0
);
3970 wxPy_END_ALLOW_THREADS
;
3971 if (PyErr_Occurred()) return NULL
;
3972 } _resultobj
= Py_BuildValue("d",_result
);
3976 #define wxDateTime_ToTimezone(_swigobj,_swigarg0,_swigarg1) (_swigobj->ToTimezone(_swigarg0,_swigarg1))
3977 static PyObject
*_wrap_wxDateTime_ToTimezone(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3978 PyObject
* _resultobj
;
3979 wxDateTime
* _result
;
3981 wxDateTime::TimeZone
* _arg1
;
3982 bool _arg2
= (bool ) FALSE
;
3983 PyObject
* _argo0
= 0;
3984 PyObject
* _obj1
= 0;
3985 int tempbool2
= (int) FALSE
;
3986 char *_kwnames
[] = { "self","tz","noDST", NULL
};
3990 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDateTime_ToTimezone",_kwnames
,&_argo0
,&_obj1
,&tempbool2
))
3993 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3994 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
3995 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_ToTimezone. Expected _wxDateTime_p.");
4000 _arg1
= new wxDateTime::TimeZone((wxDateTime::TZ
)PyInt_AsLong(_obj1
));
4002 _arg2
= (bool ) tempbool2
;
4004 wxPy_BEGIN_ALLOW_THREADS
;
4005 _result
= new wxDateTime (wxDateTime_ToTimezone(_arg0
,*_arg1
,_arg2
));
4007 wxPy_END_ALLOW_THREADS
;
4008 if (PyErr_Occurred()) return NULL
;
4009 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateTime_p");
4010 _resultobj
= Py_BuildValue("s",_ptemp
);
4012 if (_arg1
) delete _arg1
;
4017 #define wxDateTime_MakeTimezone(_swigobj,_swigarg0,_swigarg1) (_swigobj->MakeTimezone(_swigarg0,_swigarg1))
4018 static PyObject
*_wrap_wxDateTime_MakeTimezone(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4019 PyObject
* _resultobj
;
4020 wxDateTime
* _result
;
4022 wxDateTime::TimeZone
* _arg1
;
4023 bool _arg2
= (bool ) FALSE
;
4024 PyObject
* _argo0
= 0;
4025 PyObject
* _obj1
= 0;
4026 int tempbool2
= (int) FALSE
;
4027 char *_kwnames
[] = { "self","tz","noDST", NULL
};
4031 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDateTime_MakeTimezone",_kwnames
,&_argo0
,&_obj1
,&tempbool2
))
4034 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4035 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
4036 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_MakeTimezone. Expected _wxDateTime_p.");
4041 _arg1
= new wxDateTime::TimeZone((wxDateTime::TZ
)PyInt_AsLong(_obj1
));
4043 _arg2
= (bool ) tempbool2
;
4045 wxPy_BEGIN_ALLOW_THREADS
;
4046 wxDateTime
& _result_ref
= wxDateTime_MakeTimezone(_arg0
,*_arg1
,_arg2
);
4047 _result
= (wxDateTime
*) &_result_ref
;
4049 wxPy_END_ALLOW_THREADS
;
4050 if (PyErr_Occurred()) return NULL
;
4052 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
4053 _resultobj
= Py_BuildValue("s",_ptemp
);
4056 _resultobj
= Py_None
;
4059 if (_arg1
) delete _arg1
;
4064 #define wxDateTime_ToGMT(_swigobj,_swigarg0) (_swigobj->ToGMT(_swigarg0))
4065 static PyObject
*_wrap_wxDateTime_ToGMT(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4066 PyObject
* _resultobj
;
4067 wxDateTime
* _result
;
4069 bool _arg1
= (bool ) FALSE
;
4070 PyObject
* _argo0
= 0;
4071 int tempbool1
= (int) FALSE
;
4072 char *_kwnames
[] = { "self","noDST", NULL
};
4076 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDateTime_ToGMT",_kwnames
,&_argo0
,&tempbool1
))
4079 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4080 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
4081 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_ToGMT. Expected _wxDateTime_p.");
4085 _arg1
= (bool ) tempbool1
;
4087 wxPy_BEGIN_ALLOW_THREADS
;
4088 _result
= new wxDateTime (wxDateTime_ToGMT(_arg0
,_arg1
));
4090 wxPy_END_ALLOW_THREADS
;
4091 if (PyErr_Occurred()) return NULL
;
4092 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateTime_p");
4093 _resultobj
= Py_BuildValue("s",_ptemp
);
4097 #define wxDateTime_MakeGMT(_swigobj,_swigarg0) (_swigobj->MakeGMT(_swigarg0))
4098 static PyObject
*_wrap_wxDateTime_MakeGMT(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4099 PyObject
* _resultobj
;
4100 wxDateTime
* _result
;
4102 bool _arg1
= (bool ) FALSE
;
4103 PyObject
* _argo0
= 0;
4104 int tempbool1
= (int) FALSE
;
4105 char *_kwnames
[] = { "self","noDST", NULL
};
4109 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDateTime_MakeGMT",_kwnames
,&_argo0
,&tempbool1
))
4112 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4113 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
4114 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_MakeGMT. Expected _wxDateTime_p.");
4118 _arg1
= (bool ) tempbool1
;
4120 wxPy_BEGIN_ALLOW_THREADS
;
4121 wxDateTime
& _result_ref
= wxDateTime_MakeGMT(_arg0
,_arg1
);
4122 _result
= (wxDateTime
*) &_result_ref
;
4124 wxPy_END_ALLOW_THREADS
;
4125 if (PyErr_Occurred()) return NULL
;
4127 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
4128 _resultobj
= Py_BuildValue("s",_ptemp
);
4131 _resultobj
= Py_None
;
4136 #define wxDateTime_IsDST(_swigobj,_swigarg0) (_swigobj->IsDST(_swigarg0))
4137 static PyObject
*_wrap_wxDateTime_IsDST(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4138 PyObject
* _resultobj
;
4141 wxDateTime::Country _arg1
= (wxDateTime::Country
) wxDateTime::Country_Default
;
4142 PyObject
* _argo0
= 0;
4143 char *_kwnames
[] = { "self","country", NULL
};
4146 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDateTime_IsDST",_kwnames
,&_argo0
,&_arg1
))
4149 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4150 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
4151 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_IsDST. Expected _wxDateTime_p.");
4156 wxPy_BEGIN_ALLOW_THREADS
;
4157 _result
= (int )wxDateTime_IsDST(_arg0
,_arg1
);
4159 wxPy_END_ALLOW_THREADS
;
4160 if (PyErr_Occurred()) return NULL
;
4161 } _resultobj
= Py_BuildValue("i",_result
);
4165 #define wxDateTime_IsValid(_swigobj) (_swigobj->IsValid())
4166 static PyObject
*_wrap_wxDateTime_IsValid(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4167 PyObject
* _resultobj
;
4170 PyObject
* _argo0
= 0;
4171 char *_kwnames
[] = { "self", NULL
};
4174 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDateTime_IsValid",_kwnames
,&_argo0
))
4177 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4178 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
4179 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_IsValid. Expected _wxDateTime_p.");
4184 wxPy_BEGIN_ALLOW_THREADS
;
4185 _result
= (bool )wxDateTime_IsValid(_arg0
);
4187 wxPy_END_ALLOW_THREADS
;
4188 if (PyErr_Occurred()) return NULL
;
4189 } _resultobj
= Py_BuildValue("i",_result
);
4193 #define wxDateTime_GetTicks(_swigobj) (_swigobj->GetTicks())
4194 static PyObject
*_wrap_wxDateTime_GetTicks(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4195 PyObject
* _resultobj
;
4198 PyObject
* _argo0
= 0;
4199 char *_kwnames
[] = { "self", NULL
};
4202 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDateTime_GetTicks",_kwnames
,&_argo0
))
4205 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4206 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
4207 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_GetTicks. Expected _wxDateTime_p.");
4212 wxPy_BEGIN_ALLOW_THREADS
;
4213 _result
= (time_t )wxDateTime_GetTicks(_arg0
);
4215 wxPy_END_ALLOW_THREADS
;
4216 if (PyErr_Occurred()) return NULL
;
4217 } _resultobj
= Py_BuildValue("i",_result
);
4221 #define wxDateTime_GetYear(_swigobj,_swigarg0) (_swigobj->GetYear(_swigarg0))
4222 static PyObject
*_wrap_wxDateTime_GetYear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4223 PyObject
* _resultobj
;
4226 wxDateTime::TimeZone
* _arg1
= (wxDateTime::TimeZone
*) &LOCAL
;
4227 PyObject
* _argo0
= 0;
4228 PyObject
* _obj1
= 0;
4229 char *_kwnames
[] = { "self","tz", NULL
};
4232 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxDateTime_GetYear",_kwnames
,&_argo0
,&_obj1
))
4235 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4236 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
4237 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_GetYear. Expected _wxDateTime_p.");
4243 _arg1
= new wxDateTime::TimeZone((wxDateTime::TZ
)PyInt_AsLong(_obj1
));
4246 wxPy_BEGIN_ALLOW_THREADS
;
4247 _result
= (int )wxDateTime_GetYear(_arg0
,*_arg1
);
4249 wxPy_END_ALLOW_THREADS
;
4250 if (PyErr_Occurred()) return NULL
;
4251 } _resultobj
= Py_BuildValue("i",_result
);
4253 if (_arg1
) delete _arg1
;
4258 #define wxDateTime_GetMonth(_swigobj,_swigarg0) (_swigobj->GetMonth(_swigarg0))
4259 static PyObject
*_wrap_wxDateTime_GetMonth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4260 PyObject
* _resultobj
;
4261 wxDateTime::Month _result
;
4263 wxDateTime::TimeZone
* _arg1
= (wxDateTime::TimeZone
*) &LOCAL
;
4264 PyObject
* _argo0
= 0;
4265 PyObject
* _obj1
= 0;
4266 char *_kwnames
[] = { "self","tz", NULL
};
4269 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxDateTime_GetMonth",_kwnames
,&_argo0
,&_obj1
))
4272 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4273 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
4274 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_GetMonth. Expected _wxDateTime_p.");
4280 _arg1
= new wxDateTime::TimeZone((wxDateTime::TZ
)PyInt_AsLong(_obj1
));
4283 wxPy_BEGIN_ALLOW_THREADS
;
4284 _result
= (wxDateTime::Month
)wxDateTime_GetMonth(_arg0
,*_arg1
);
4286 wxPy_END_ALLOW_THREADS
;
4287 if (PyErr_Occurred()) return NULL
;
4288 } _resultobj
= Py_BuildValue("i",_result
);
4290 if (_arg1
) delete _arg1
;
4295 #define wxDateTime_GetDay(_swigobj,_swigarg0) (_swigobj->GetDay(_swigarg0))
4296 static PyObject
*_wrap_wxDateTime_GetDay(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4297 PyObject
* _resultobj
;
4298 wxDateTime::wxDateTime_t _result
;
4300 wxDateTime::TimeZone
* _arg1
= (wxDateTime::TimeZone
*) &LOCAL
;
4301 PyObject
* _argo0
= 0;
4302 PyObject
* _obj1
= 0;
4303 char *_kwnames
[] = { "self","tz", NULL
};
4306 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxDateTime_GetDay",_kwnames
,&_argo0
,&_obj1
))
4309 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4310 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
4311 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_GetDay. Expected _wxDateTime_p.");
4317 _arg1
= new wxDateTime::TimeZone((wxDateTime::TZ
)PyInt_AsLong(_obj1
));
4320 wxPy_BEGIN_ALLOW_THREADS
;
4321 _result
= (wxDateTime::wxDateTime_t
)wxDateTime_GetDay(_arg0
,*_arg1
);
4323 wxPy_END_ALLOW_THREADS
;
4324 if (PyErr_Occurred()) return NULL
;
4325 } _resultobj
= Py_BuildValue("h",_result
);
4327 if (_arg1
) delete _arg1
;
4332 #define wxDateTime_GetWeekDay(_swigobj,_swigarg0) (_swigobj->GetWeekDay(_swigarg0))
4333 static PyObject
*_wrap_wxDateTime_GetWeekDay(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4334 PyObject
* _resultobj
;
4335 wxDateTime::WeekDay _result
;
4337 wxDateTime::TimeZone
* _arg1
= (wxDateTime::TimeZone
*) &LOCAL
;
4338 PyObject
* _argo0
= 0;
4339 PyObject
* _obj1
= 0;
4340 char *_kwnames
[] = { "self","tz", NULL
};
4343 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxDateTime_GetWeekDay",_kwnames
,&_argo0
,&_obj1
))
4346 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4347 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
4348 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_GetWeekDay. Expected _wxDateTime_p.");
4354 _arg1
= new wxDateTime::TimeZone((wxDateTime::TZ
)PyInt_AsLong(_obj1
));
4357 wxPy_BEGIN_ALLOW_THREADS
;
4358 _result
= (wxDateTime::WeekDay
)wxDateTime_GetWeekDay(_arg0
,*_arg1
);
4360 wxPy_END_ALLOW_THREADS
;
4361 if (PyErr_Occurred()) return NULL
;
4362 } _resultobj
= Py_BuildValue("i",_result
);
4364 if (_arg1
) delete _arg1
;
4369 #define wxDateTime_GetHour(_swigobj,_swigarg0) (_swigobj->GetHour(_swigarg0))
4370 static PyObject
*_wrap_wxDateTime_GetHour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4371 PyObject
* _resultobj
;
4372 wxDateTime::wxDateTime_t _result
;
4374 wxDateTime::TimeZone
* _arg1
= (wxDateTime::TimeZone
*) &LOCAL
;
4375 PyObject
* _argo0
= 0;
4376 PyObject
* _obj1
= 0;
4377 char *_kwnames
[] = { "self","tz", NULL
};
4380 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxDateTime_GetHour",_kwnames
,&_argo0
,&_obj1
))
4383 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4384 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
4385 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_GetHour. Expected _wxDateTime_p.");
4391 _arg1
= new wxDateTime::TimeZone((wxDateTime::TZ
)PyInt_AsLong(_obj1
));
4394 wxPy_BEGIN_ALLOW_THREADS
;
4395 _result
= (wxDateTime::wxDateTime_t
)wxDateTime_GetHour(_arg0
,*_arg1
);
4397 wxPy_END_ALLOW_THREADS
;
4398 if (PyErr_Occurred()) return NULL
;
4399 } _resultobj
= Py_BuildValue("h",_result
);
4401 if (_arg1
) delete _arg1
;
4406 #define wxDateTime_GetMinute(_swigobj,_swigarg0) (_swigobj->GetMinute(_swigarg0))
4407 static PyObject
*_wrap_wxDateTime_GetMinute(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4408 PyObject
* _resultobj
;
4409 wxDateTime::wxDateTime_t _result
;
4411 wxDateTime::TimeZone
* _arg1
= (wxDateTime::TimeZone
*) &LOCAL
;
4412 PyObject
* _argo0
= 0;
4413 PyObject
* _obj1
= 0;
4414 char *_kwnames
[] = { "self","tz", NULL
};
4417 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxDateTime_GetMinute",_kwnames
,&_argo0
,&_obj1
))
4420 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4421 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
4422 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_GetMinute. Expected _wxDateTime_p.");
4428 _arg1
= new wxDateTime::TimeZone((wxDateTime::TZ
)PyInt_AsLong(_obj1
));
4431 wxPy_BEGIN_ALLOW_THREADS
;
4432 _result
= (wxDateTime::wxDateTime_t
)wxDateTime_GetMinute(_arg0
,*_arg1
);
4434 wxPy_END_ALLOW_THREADS
;
4435 if (PyErr_Occurred()) return NULL
;
4436 } _resultobj
= Py_BuildValue("h",_result
);
4438 if (_arg1
) delete _arg1
;
4443 #define wxDateTime_GetSecond(_swigobj,_swigarg0) (_swigobj->GetSecond(_swigarg0))
4444 static PyObject
*_wrap_wxDateTime_GetSecond(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4445 PyObject
* _resultobj
;
4446 wxDateTime::wxDateTime_t _result
;
4448 wxDateTime::TimeZone
* _arg1
= (wxDateTime::TimeZone
*) &LOCAL
;
4449 PyObject
* _argo0
= 0;
4450 PyObject
* _obj1
= 0;
4451 char *_kwnames
[] = { "self","tz", NULL
};
4454 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxDateTime_GetSecond",_kwnames
,&_argo0
,&_obj1
))
4457 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4458 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
4459 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_GetSecond. Expected _wxDateTime_p.");
4465 _arg1
= new wxDateTime::TimeZone((wxDateTime::TZ
)PyInt_AsLong(_obj1
));
4468 wxPy_BEGIN_ALLOW_THREADS
;
4469 _result
= (wxDateTime::wxDateTime_t
)wxDateTime_GetSecond(_arg0
,*_arg1
);
4471 wxPy_END_ALLOW_THREADS
;
4472 if (PyErr_Occurred()) return NULL
;
4473 } _resultobj
= Py_BuildValue("h",_result
);
4475 if (_arg1
) delete _arg1
;
4480 #define wxDateTime_GetMillisecond(_swigobj,_swigarg0) (_swigobj->GetMillisecond(_swigarg0))
4481 static PyObject
*_wrap_wxDateTime_GetMillisecond(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4482 PyObject
* _resultobj
;
4483 wxDateTime::wxDateTime_t _result
;
4485 wxDateTime::TimeZone
* _arg1
= (wxDateTime::TimeZone
*) &LOCAL
;
4486 PyObject
* _argo0
= 0;
4487 PyObject
* _obj1
= 0;
4488 char *_kwnames
[] = { "self","tz", NULL
};
4491 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxDateTime_GetMillisecond",_kwnames
,&_argo0
,&_obj1
))
4494 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4495 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
4496 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_GetMillisecond. Expected _wxDateTime_p.");
4502 _arg1
= new wxDateTime::TimeZone((wxDateTime::TZ
)PyInt_AsLong(_obj1
));
4505 wxPy_BEGIN_ALLOW_THREADS
;
4506 _result
= (wxDateTime::wxDateTime_t
)wxDateTime_GetMillisecond(_arg0
,*_arg1
);
4508 wxPy_END_ALLOW_THREADS
;
4509 if (PyErr_Occurred()) return NULL
;
4510 } _resultobj
= Py_BuildValue("h",_result
);
4512 if (_arg1
) delete _arg1
;
4517 #define wxDateTime_GetDayOfYear(_swigobj,_swigarg0) (_swigobj->GetDayOfYear(_swigarg0))
4518 static PyObject
*_wrap_wxDateTime_GetDayOfYear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4519 PyObject
* _resultobj
;
4520 wxDateTime::wxDateTime_t _result
;
4522 wxDateTime::TimeZone
* _arg1
= (wxDateTime::TimeZone
*) &LOCAL
;
4523 PyObject
* _argo0
= 0;
4524 PyObject
* _obj1
= 0;
4525 char *_kwnames
[] = { "self","tz", NULL
};
4528 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxDateTime_GetDayOfYear",_kwnames
,&_argo0
,&_obj1
))
4531 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4532 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
4533 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_GetDayOfYear. Expected _wxDateTime_p.");
4539 _arg1
= new wxDateTime::TimeZone((wxDateTime::TZ
)PyInt_AsLong(_obj1
));
4542 wxPy_BEGIN_ALLOW_THREADS
;
4543 _result
= (wxDateTime::wxDateTime_t
)wxDateTime_GetDayOfYear(_arg0
,*_arg1
);
4545 wxPy_END_ALLOW_THREADS
;
4546 if (PyErr_Occurred()) return NULL
;
4547 } _resultobj
= Py_BuildValue("h",_result
);
4549 if (_arg1
) delete _arg1
;
4554 #define wxDateTime_GetWeekOfYear(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetWeekOfYear(_swigarg0,_swigarg1))
4555 static PyObject
*_wrap_wxDateTime_GetWeekOfYear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4556 PyObject
* _resultobj
;
4557 wxDateTime::wxDateTime_t _result
;
4559 wxDateTime::WeekFlags _arg1
= (wxDateTime::WeekFlags
) wxDateTime::Monday_First
;
4560 wxDateTime::TimeZone
* _arg2
= (wxDateTime::TimeZone
*) &LOCAL
;
4561 PyObject
* _argo0
= 0;
4562 PyObject
* _obj2
= 0;
4563 char *_kwnames
[] = { "self","flags","tz", NULL
};
4566 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iO:wxDateTime_GetWeekOfYear",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
4569 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4570 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
4571 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_GetWeekOfYear. Expected _wxDateTime_p.");
4577 _arg2
= new wxDateTime::TimeZone((wxDateTime::TZ
)PyInt_AsLong(_obj2
));
4580 wxPy_BEGIN_ALLOW_THREADS
;
4581 _result
= (wxDateTime::wxDateTime_t
)wxDateTime_GetWeekOfYear(_arg0
,_arg1
,*_arg2
);
4583 wxPy_END_ALLOW_THREADS
;
4584 if (PyErr_Occurred()) return NULL
;
4585 } _resultobj
= Py_BuildValue("h",_result
);
4587 if (_arg2
) delete _arg2
;
4592 #define wxDateTime_GetWeekOfMonth(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetWeekOfMonth(_swigarg0,_swigarg1))
4593 static PyObject
*_wrap_wxDateTime_GetWeekOfMonth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4594 PyObject
* _resultobj
;
4595 wxDateTime::wxDateTime_t _result
;
4597 wxDateTime::WeekFlags _arg1
= (wxDateTime::WeekFlags
) wxDateTime::Monday_First
;
4598 wxDateTime::TimeZone
* _arg2
= (wxDateTime::TimeZone
*) &LOCAL
;
4599 PyObject
* _argo0
= 0;
4600 PyObject
* _obj2
= 0;
4601 char *_kwnames
[] = { "self","flags","tz", NULL
};
4604 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iO:wxDateTime_GetWeekOfMonth",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
4607 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4608 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
4609 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_GetWeekOfMonth. Expected _wxDateTime_p.");
4615 _arg2
= new wxDateTime::TimeZone((wxDateTime::TZ
)PyInt_AsLong(_obj2
));
4618 wxPy_BEGIN_ALLOW_THREADS
;
4619 _result
= (wxDateTime::wxDateTime_t
)wxDateTime_GetWeekOfMonth(_arg0
,_arg1
,*_arg2
);
4621 wxPy_END_ALLOW_THREADS
;
4622 if (PyErr_Occurred()) return NULL
;
4623 } _resultobj
= Py_BuildValue("h",_result
);
4625 if (_arg2
) delete _arg2
;
4630 #define wxDateTime_IsWorkDay(_swigobj,_swigarg0) (_swigobj->IsWorkDay(_swigarg0))
4631 static PyObject
*_wrap_wxDateTime_IsWorkDay(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4632 PyObject
* _resultobj
;
4635 wxDateTime::Country _arg1
= (wxDateTime::Country
) wxDateTime::Country_Default
;
4636 PyObject
* _argo0
= 0;
4637 char *_kwnames
[] = { "self","country", NULL
};
4640 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDateTime_IsWorkDay",_kwnames
,&_argo0
,&_arg1
))
4643 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4644 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
4645 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_IsWorkDay. Expected _wxDateTime_p.");
4650 wxPy_BEGIN_ALLOW_THREADS
;
4651 _result
= (bool )wxDateTime_IsWorkDay(_arg0
,_arg1
);
4653 wxPy_END_ALLOW_THREADS
;
4654 if (PyErr_Occurred()) return NULL
;
4655 } _resultobj
= Py_BuildValue("i",_result
);
4659 #define wxDateTime_IsEqualTo(_swigobj,_swigarg0) (_swigobj->IsEqualTo(_swigarg0))
4660 static PyObject
*_wrap_wxDateTime_IsEqualTo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4661 PyObject
* _resultobj
;
4665 PyObject
* _argo0
= 0;
4666 PyObject
* _argo1
= 0;
4667 char *_kwnames
[] = { "self","datetime", NULL
};
4670 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDateTime_IsEqualTo",_kwnames
,&_argo0
,&_argo1
))
4673 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4674 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
4675 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_IsEqualTo. Expected _wxDateTime_p.");
4680 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4681 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDateTime_p")) {
4682 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDateTime_IsEqualTo. Expected _wxDateTime_p.");
4687 wxPy_BEGIN_ALLOW_THREADS
;
4688 _result
= (bool )wxDateTime_IsEqualTo(_arg0
,*_arg1
);
4690 wxPy_END_ALLOW_THREADS
;
4691 if (PyErr_Occurred()) return NULL
;
4692 } _resultobj
= Py_BuildValue("i",_result
);
4696 #define wxDateTime_IsEarlierThan(_swigobj,_swigarg0) (_swigobj->IsEarlierThan(_swigarg0))
4697 static PyObject
*_wrap_wxDateTime_IsEarlierThan(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4698 PyObject
* _resultobj
;
4702 PyObject
* _argo0
= 0;
4703 PyObject
* _argo1
= 0;
4704 char *_kwnames
[] = { "self","datetime", NULL
};
4707 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDateTime_IsEarlierThan",_kwnames
,&_argo0
,&_argo1
))
4710 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4711 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
4712 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_IsEarlierThan. Expected _wxDateTime_p.");
4717 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4718 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDateTime_p")) {
4719 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDateTime_IsEarlierThan. Expected _wxDateTime_p.");
4724 wxPy_BEGIN_ALLOW_THREADS
;
4725 _result
= (bool )wxDateTime_IsEarlierThan(_arg0
,*_arg1
);
4727 wxPy_END_ALLOW_THREADS
;
4728 if (PyErr_Occurred()) return NULL
;
4729 } _resultobj
= Py_BuildValue("i",_result
);
4733 #define wxDateTime_IsLaterThan(_swigobj,_swigarg0) (_swigobj->IsLaterThan(_swigarg0))
4734 static PyObject
*_wrap_wxDateTime_IsLaterThan(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4735 PyObject
* _resultobj
;
4739 PyObject
* _argo0
= 0;
4740 PyObject
* _argo1
= 0;
4741 char *_kwnames
[] = { "self","datetime", NULL
};
4744 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDateTime_IsLaterThan",_kwnames
,&_argo0
,&_argo1
))
4747 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4748 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
4749 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_IsLaterThan. Expected _wxDateTime_p.");
4754 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4755 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDateTime_p")) {
4756 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDateTime_IsLaterThan. Expected _wxDateTime_p.");
4761 wxPy_BEGIN_ALLOW_THREADS
;
4762 _result
= (bool )wxDateTime_IsLaterThan(_arg0
,*_arg1
);
4764 wxPy_END_ALLOW_THREADS
;
4765 if (PyErr_Occurred()) return NULL
;
4766 } _resultobj
= Py_BuildValue("i",_result
);
4770 #define wxDateTime_IsStrictlyBetween(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsStrictlyBetween(_swigarg0,_swigarg1))
4771 static PyObject
*_wrap_wxDateTime_IsStrictlyBetween(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4772 PyObject
* _resultobj
;
4777 PyObject
* _argo0
= 0;
4778 PyObject
* _argo1
= 0;
4779 PyObject
* _argo2
= 0;
4780 char *_kwnames
[] = { "self","t1","t2", NULL
};
4783 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDateTime_IsStrictlyBetween",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
4786 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4787 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
4788 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_IsStrictlyBetween. Expected _wxDateTime_p.");
4793 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4794 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDateTime_p")) {
4795 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDateTime_IsStrictlyBetween. Expected _wxDateTime_p.");
4800 if (_argo2
== Py_None
) { _arg2
= NULL
; }
4801 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDateTime_p")) {
4802 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDateTime_IsStrictlyBetween. Expected _wxDateTime_p.");
4807 wxPy_BEGIN_ALLOW_THREADS
;
4808 _result
= (bool )wxDateTime_IsStrictlyBetween(_arg0
,*_arg1
,*_arg2
);
4810 wxPy_END_ALLOW_THREADS
;
4811 if (PyErr_Occurred()) return NULL
;
4812 } _resultobj
= Py_BuildValue("i",_result
);
4816 #define wxDateTime_IsBetween(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsBetween(_swigarg0,_swigarg1))
4817 static PyObject
*_wrap_wxDateTime_IsBetween(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4818 PyObject
* _resultobj
;
4823 PyObject
* _argo0
= 0;
4824 PyObject
* _argo1
= 0;
4825 PyObject
* _argo2
= 0;
4826 char *_kwnames
[] = { "self","t1","t2", NULL
};
4829 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDateTime_IsBetween",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
4832 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4833 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
4834 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_IsBetween. Expected _wxDateTime_p.");
4839 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4840 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDateTime_p")) {
4841 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDateTime_IsBetween. Expected _wxDateTime_p.");
4846 if (_argo2
== Py_None
) { _arg2
= NULL
; }
4847 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxDateTime_p")) {
4848 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDateTime_IsBetween. Expected _wxDateTime_p.");
4853 wxPy_BEGIN_ALLOW_THREADS
;
4854 _result
= (bool )wxDateTime_IsBetween(_arg0
,*_arg1
,*_arg2
);
4856 wxPy_END_ALLOW_THREADS
;
4857 if (PyErr_Occurred()) return NULL
;
4858 } _resultobj
= Py_BuildValue("i",_result
);
4862 #define wxDateTime_IsSameDate(_swigobj,_swigarg0) (_swigobj->IsSameDate(_swigarg0))
4863 static PyObject
*_wrap_wxDateTime_IsSameDate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4864 PyObject
* _resultobj
;
4868 PyObject
* _argo0
= 0;
4869 PyObject
* _argo1
= 0;
4870 char *_kwnames
[] = { "self","dt", NULL
};
4873 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDateTime_IsSameDate",_kwnames
,&_argo0
,&_argo1
))
4876 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4877 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
4878 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_IsSameDate. Expected _wxDateTime_p.");
4883 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4884 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDateTime_p")) {
4885 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDateTime_IsSameDate. Expected _wxDateTime_p.");
4890 wxPy_BEGIN_ALLOW_THREADS
;
4891 _result
= (bool )wxDateTime_IsSameDate(_arg0
,*_arg1
);
4893 wxPy_END_ALLOW_THREADS
;
4894 if (PyErr_Occurred()) return NULL
;
4895 } _resultobj
= Py_BuildValue("i",_result
);
4899 #define wxDateTime_IsSameTime(_swigobj,_swigarg0) (_swigobj->IsSameTime(_swigarg0))
4900 static PyObject
*_wrap_wxDateTime_IsSameTime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4901 PyObject
* _resultobj
;
4905 PyObject
* _argo0
= 0;
4906 PyObject
* _argo1
= 0;
4907 char *_kwnames
[] = { "self","dt", NULL
};
4910 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDateTime_IsSameTime",_kwnames
,&_argo0
,&_argo1
))
4913 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4914 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
4915 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_IsSameTime. Expected _wxDateTime_p.");
4920 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4921 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDateTime_p")) {
4922 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDateTime_IsSameTime. Expected _wxDateTime_p.");
4927 wxPy_BEGIN_ALLOW_THREADS
;
4928 _result
= (bool )wxDateTime_IsSameTime(_arg0
,*_arg1
);
4930 wxPy_END_ALLOW_THREADS
;
4931 if (PyErr_Occurred()) return NULL
;
4932 } _resultobj
= Py_BuildValue("i",_result
);
4936 #define wxDateTime_IsEqualUpTo(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEqualUpTo(_swigarg0,_swigarg1))
4937 static PyObject
*_wrap_wxDateTime_IsEqualUpTo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4938 PyObject
* _resultobj
;
4943 PyObject
* _argo0
= 0;
4944 PyObject
* _argo1
= 0;
4945 PyObject
* _argo2
= 0;
4946 char *_kwnames
[] = { "self","dt","ts", NULL
};
4949 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDateTime_IsEqualUpTo",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
4952 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4953 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
4954 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_IsEqualUpTo. Expected _wxDateTime_p.");
4959 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4960 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDateTime_p")) {
4961 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDateTime_IsEqualUpTo. Expected _wxDateTime_p.");
4966 if (_argo2
== Py_None
) { _arg2
= NULL
; }
4967 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxTimeSpan_p")) {
4968 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDateTime_IsEqualUpTo. Expected _wxTimeSpan_p.");
4973 wxPy_BEGIN_ALLOW_THREADS
;
4974 _result
= (bool )wxDateTime_IsEqualUpTo(_arg0
,*_arg1
,*_arg2
);
4976 wxPy_END_ALLOW_THREADS
;
4977 if (PyErr_Occurred()) return NULL
;
4978 } _resultobj
= Py_BuildValue("i",_result
);
4982 #define wxDateTime_AddTS(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
4983 static PyObject
*_wrap_wxDateTime_AddTS(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4984 PyObject
* _resultobj
;
4985 wxDateTime
* _result
;
4988 PyObject
* _argo0
= 0;
4989 PyObject
* _argo1
= 0;
4990 char *_kwnames
[] = { "self","diff", NULL
};
4994 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDateTime_AddTS",_kwnames
,&_argo0
,&_argo1
))
4997 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4998 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
4999 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_AddTS. Expected _wxDateTime_p.");
5004 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5005 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxTimeSpan_p")) {
5006 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDateTime_AddTS. Expected _wxTimeSpan_p.");
5011 wxPy_BEGIN_ALLOW_THREADS
;
5012 wxDateTime
& _result_ref
= wxDateTime_AddTS(_arg0
,*_arg1
);
5013 _result
= (wxDateTime
*) &_result_ref
;
5015 wxPy_END_ALLOW_THREADS
;
5016 if (PyErr_Occurred()) return NULL
;
5018 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
5019 _resultobj
= Py_BuildValue("s",_ptemp
);
5022 _resultobj
= Py_None
;
5027 #define wxDateTime_AddDS(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
5028 static PyObject
*_wrap_wxDateTime_AddDS(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5029 PyObject
* _resultobj
;
5030 wxDateTime
* _result
;
5033 PyObject
* _argo0
= 0;
5034 PyObject
* _argo1
= 0;
5035 char *_kwnames
[] = { "self","diff", NULL
};
5039 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDateTime_AddDS",_kwnames
,&_argo0
,&_argo1
))
5042 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5043 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
5044 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_AddDS. Expected _wxDateTime_p.");
5049 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5050 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDateSpan_p")) {
5051 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDateTime_AddDS. Expected _wxDateSpan_p.");
5056 wxPy_BEGIN_ALLOW_THREADS
;
5057 wxDateTime
& _result_ref
= wxDateTime_AddDS(_arg0
,*_arg1
);
5058 _result
= (wxDateTime
*) &_result_ref
;
5060 wxPy_END_ALLOW_THREADS
;
5061 if (PyErr_Occurred()) return NULL
;
5063 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
5064 _resultobj
= Py_BuildValue("s",_ptemp
);
5067 _resultobj
= Py_None
;
5072 #define wxDateTime_SubtractTS(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
5073 static PyObject
*_wrap_wxDateTime_SubtractTS(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5074 PyObject
* _resultobj
;
5075 wxDateTime
* _result
;
5078 PyObject
* _argo0
= 0;
5079 PyObject
* _argo1
= 0;
5080 char *_kwnames
[] = { "self","diff", NULL
};
5084 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDateTime_SubtractTS",_kwnames
,&_argo0
,&_argo1
))
5087 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5088 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
5089 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_SubtractTS. Expected _wxDateTime_p.");
5094 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5095 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxTimeSpan_p")) {
5096 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDateTime_SubtractTS. Expected _wxTimeSpan_p.");
5101 wxPy_BEGIN_ALLOW_THREADS
;
5102 wxDateTime
& _result_ref
= wxDateTime_SubtractTS(_arg0
,*_arg1
);
5103 _result
= (wxDateTime
*) &_result_ref
;
5105 wxPy_END_ALLOW_THREADS
;
5106 if (PyErr_Occurred()) return NULL
;
5108 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
5109 _resultobj
= Py_BuildValue("s",_ptemp
);
5112 _resultobj
= Py_None
;
5117 #define wxDateTime_SubtractDS(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
5118 static PyObject
*_wrap_wxDateTime_SubtractDS(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5119 PyObject
* _resultobj
;
5120 wxDateTime
* _result
;
5123 PyObject
* _argo0
= 0;
5124 PyObject
* _argo1
= 0;
5125 char *_kwnames
[] = { "self","diff", NULL
};
5129 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDateTime_SubtractDS",_kwnames
,&_argo0
,&_argo1
))
5132 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5133 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
5134 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_SubtractDS. Expected _wxDateTime_p.");
5139 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5140 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDateSpan_p")) {
5141 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDateTime_SubtractDS. Expected _wxDateSpan_p.");
5146 wxPy_BEGIN_ALLOW_THREADS
;
5147 wxDateTime
& _result_ref
= wxDateTime_SubtractDS(_arg0
,*_arg1
);
5148 _result
= (wxDateTime
*) &_result_ref
;
5150 wxPy_END_ALLOW_THREADS
;
5151 if (PyErr_Occurred()) return NULL
;
5153 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateTime_p");
5154 _resultobj
= Py_BuildValue("s",_ptemp
);
5157 _resultobj
= Py_None
;
5162 #define wxDateTime_Subtract(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
5163 static PyObject
*_wrap_wxDateTime_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5164 PyObject
* _resultobj
;
5165 wxTimeSpan
* _result
;
5168 PyObject
* _argo0
= 0;
5169 PyObject
* _argo1
= 0;
5170 char *_kwnames
[] = { "self","dt", NULL
};
5174 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDateTime_Subtract",_kwnames
,&_argo0
,&_argo1
))
5177 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5178 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
5179 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_Subtract. Expected _wxDateTime_p.");
5184 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5185 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDateTime_p")) {
5186 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDateTime_Subtract. Expected _wxDateTime_p.");
5191 wxPy_BEGIN_ALLOW_THREADS
;
5192 _result
= new wxTimeSpan (wxDateTime_Subtract(_arg0
,*_arg1
));
5194 wxPy_END_ALLOW_THREADS
;
5195 if (PyErr_Occurred()) return NULL
;
5196 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxTimeSpan_p");
5197 _resultobj
= Py_BuildValue("s",_ptemp
);
5201 static wxDateTime
wxDateTime___add__TS(wxDateTime
*self
,const wxTimeSpan
& other
) { return *self
+ other
; }
5202 static PyObject
*_wrap_wxDateTime___add__TS(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5203 PyObject
* _resultobj
;
5204 wxDateTime
* _result
;
5207 PyObject
* _argo0
= 0;
5208 PyObject
* _argo1
= 0;
5209 char *_kwnames
[] = { "self","other", NULL
};
5213 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDateTime___add__TS",_kwnames
,&_argo0
,&_argo1
))
5216 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5217 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
5218 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime___add__TS. Expected _wxDateTime_p.");
5223 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5224 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxTimeSpan_p")) {
5225 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDateTime___add__TS. Expected _wxTimeSpan_p.");
5230 wxPy_BEGIN_ALLOW_THREADS
;
5231 _result
= new wxDateTime (wxDateTime___add__TS(_arg0
,*_arg1
));
5233 wxPy_END_ALLOW_THREADS
;
5234 if (PyErr_Occurred()) return NULL
;
5235 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateTime_p");
5236 _resultobj
= Py_BuildValue("s",_ptemp
);
5240 static wxDateTime
wxDateTime___add__DS(wxDateTime
*self
,const wxDateSpan
& other
) { return *self
+ other
; }
5241 static PyObject
*_wrap_wxDateTime___add__DS(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5242 PyObject
* _resultobj
;
5243 wxDateTime
* _result
;
5246 PyObject
* _argo0
= 0;
5247 PyObject
* _argo1
= 0;
5248 char *_kwnames
[] = { "self","other", NULL
};
5252 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDateTime___add__DS",_kwnames
,&_argo0
,&_argo1
))
5255 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5256 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
5257 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime___add__DS. Expected _wxDateTime_p.");
5262 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5263 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDateSpan_p")) {
5264 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDateTime___add__DS. Expected _wxDateSpan_p.");
5269 wxPy_BEGIN_ALLOW_THREADS
;
5270 _result
= new wxDateTime (wxDateTime___add__DS(_arg0
,*_arg1
));
5272 wxPy_END_ALLOW_THREADS
;
5273 if (PyErr_Occurred()) return NULL
;
5274 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateTime_p");
5275 _resultobj
= Py_BuildValue("s",_ptemp
);
5279 static wxTimeSpan
wxDateTime___sub__DT(wxDateTime
*self
,const wxDateTime
& other
) { return *self
- other
; }
5280 static PyObject
*_wrap_wxDateTime___sub__DT(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5281 PyObject
* _resultobj
;
5282 wxTimeSpan
* _result
;
5285 PyObject
* _argo0
= 0;
5286 PyObject
* _argo1
= 0;
5287 char *_kwnames
[] = { "self","other", NULL
};
5291 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDateTime___sub__DT",_kwnames
,&_argo0
,&_argo1
))
5294 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5295 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
5296 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime___sub__DT. Expected _wxDateTime_p.");
5301 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5302 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDateTime_p")) {
5303 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDateTime___sub__DT. Expected _wxDateTime_p.");
5308 wxPy_BEGIN_ALLOW_THREADS
;
5309 _result
= new wxTimeSpan (wxDateTime___sub__DT(_arg0
,*_arg1
));
5311 wxPy_END_ALLOW_THREADS
;
5312 if (PyErr_Occurred()) return NULL
;
5313 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxTimeSpan_p");
5314 _resultobj
= Py_BuildValue("s",_ptemp
);
5318 static wxDateTime
wxDateTime___sub__TS(wxDateTime
*self
,const wxTimeSpan
& other
) { return *self
- other
; }
5319 static PyObject
*_wrap_wxDateTime___sub__TS(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5320 PyObject
* _resultobj
;
5321 wxDateTime
* _result
;
5324 PyObject
* _argo0
= 0;
5325 PyObject
* _argo1
= 0;
5326 char *_kwnames
[] = { "self","other", NULL
};
5330 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDateTime___sub__TS",_kwnames
,&_argo0
,&_argo1
))
5333 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5334 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
5335 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime___sub__TS. Expected _wxDateTime_p.");
5340 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5341 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxTimeSpan_p")) {
5342 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDateTime___sub__TS. Expected _wxTimeSpan_p.");
5347 wxPy_BEGIN_ALLOW_THREADS
;
5348 _result
= new wxDateTime (wxDateTime___sub__TS(_arg0
,*_arg1
));
5350 wxPy_END_ALLOW_THREADS
;
5351 if (PyErr_Occurred()) return NULL
;
5352 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateTime_p");
5353 _resultobj
= Py_BuildValue("s",_ptemp
);
5357 static wxDateTime
wxDateTime___sub__DS(wxDateTime
*self
,const wxDateSpan
& other
) { return *self
- other
; }
5358 static PyObject
*_wrap_wxDateTime___sub__DS(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5359 PyObject
* _resultobj
;
5360 wxDateTime
* _result
;
5363 PyObject
* _argo0
= 0;
5364 PyObject
* _argo1
= 0;
5365 char *_kwnames
[] = { "self","other", NULL
};
5369 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDateTime___sub__DS",_kwnames
,&_argo0
,&_argo1
))
5372 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5373 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
5374 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime___sub__DS. Expected _wxDateTime_p.");
5379 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5380 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDateSpan_p")) {
5381 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDateTime___sub__DS. Expected _wxDateSpan_p.");
5386 wxPy_BEGIN_ALLOW_THREADS
;
5387 _result
= new wxDateTime (wxDateTime___sub__DS(_arg0
,*_arg1
));
5389 wxPy_END_ALLOW_THREADS
;
5390 if (PyErr_Occurred()) return NULL
;
5391 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateTime_p");
5392 _resultobj
= Py_BuildValue("s",_ptemp
);
5396 static int wxDateTime___cmp__(wxDateTime
*self
,const wxDateTime
& other
) {
5397 if (*self
< other
) return -1;
5398 if (*self
== other
) return 0;
5401 static PyObject
*_wrap_wxDateTime___cmp__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5402 PyObject
* _resultobj
;
5406 PyObject
* _argo0
= 0;
5407 PyObject
* _argo1
= 0;
5408 char *_kwnames
[] = { "self","other", NULL
};
5411 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDateTime___cmp__",_kwnames
,&_argo0
,&_argo1
))
5414 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5415 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
5416 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime___cmp__. Expected _wxDateTime_p.");
5421 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5422 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDateTime_p")) {
5423 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDateTime___cmp__. Expected _wxDateTime_p.");
5428 wxPy_BEGIN_ALLOW_THREADS
;
5429 _result
= (int )wxDateTime___cmp__(_arg0
,*_arg1
);
5431 wxPy_END_ALLOW_THREADS
;
5432 if (PyErr_Occurred()) return NULL
;
5433 } _resultobj
= Py_BuildValue("i",_result
);
5437 #define wxDateTime_ParseRfc822Date(_swigobj,_swigarg0) (_swigobj->ParseRfc822Date(_swigarg0))
5438 static PyObject
*_wrap_wxDateTime_ParseRfc822Date(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5439 PyObject
* _resultobj
;
5443 PyObject
* _argo0
= 0;
5444 char *_kwnames
[] = { "self","date", NULL
};
5447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Os:wxDateTime_ParseRfc822Date",_kwnames
,&_argo0
,&_arg1
))
5450 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5451 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
5452 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_ParseRfc822Date. Expected _wxDateTime_p.");
5457 wxPy_BEGIN_ALLOW_THREADS
;
5458 _result
= (char *)wxDateTime_ParseRfc822Date(_arg0
,_arg1
);
5460 wxPy_END_ALLOW_THREADS
;
5461 if (PyErr_Occurred()) return NULL
;
5462 } _resultobj
= Py_BuildValue("s", _result
);
5466 #define wxDateTime_ParseFormat(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ParseFormat(_swigarg0,_swigarg1,_swigarg2))
5467 static PyObject
*_wrap_wxDateTime_ParseFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5468 PyObject
* _resultobj
;
5472 char * _arg2
= (char *) "%c";
5473 wxDateTime
* _arg3
= (wxDateTime
*) &wxDefaultDateTime
;
5474 PyObject
* _argo0
= 0;
5475 PyObject
* _argo3
= 0;
5476 char *_kwnames
[] = { "self","date","format","dateDef", NULL
};
5479 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Os|sO:wxDateTime_ParseFormat",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_argo3
))
5482 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5483 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
5484 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_ParseFormat. Expected _wxDateTime_p.");
5489 if (_argo3
== Py_None
) { _arg3
= NULL
; }
5490 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxDateTime_p")) {
5491 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxDateTime_ParseFormat. Expected _wxDateTime_p.");
5496 wxPy_BEGIN_ALLOW_THREADS
;
5497 _result
= (char *)wxDateTime_ParseFormat(_arg0
,_arg1
,_arg2
,*_arg3
);
5499 wxPy_END_ALLOW_THREADS
;
5500 if (PyErr_Occurred()) return NULL
;
5501 } _resultobj
= Py_BuildValue("s", _result
);
5505 #define wxDateTime_ParseDateTime(_swigobj,_swigarg0) (_swigobj->ParseDateTime(_swigarg0))
5506 static PyObject
*_wrap_wxDateTime_ParseDateTime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5507 PyObject
* _resultobj
;
5511 PyObject
* _argo0
= 0;
5512 char *_kwnames
[] = { "self","datetime", NULL
};
5515 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Os:wxDateTime_ParseDateTime",_kwnames
,&_argo0
,&_arg1
))
5518 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5519 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
5520 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_ParseDateTime. Expected _wxDateTime_p.");
5525 wxPy_BEGIN_ALLOW_THREADS
;
5526 _result
= (char *)wxDateTime_ParseDateTime(_arg0
,_arg1
);
5528 wxPy_END_ALLOW_THREADS
;
5529 if (PyErr_Occurred()) return NULL
;
5530 } _resultobj
= Py_BuildValue("s", _result
);
5534 #define wxDateTime_ParseDate(_swigobj,_swigarg0) (_swigobj->ParseDate(_swigarg0))
5535 static PyObject
*_wrap_wxDateTime_ParseDate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5536 PyObject
* _resultobj
;
5540 PyObject
* _argo0
= 0;
5541 char *_kwnames
[] = { "self","date", NULL
};
5544 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Os:wxDateTime_ParseDate",_kwnames
,&_argo0
,&_arg1
))
5547 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5548 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
5549 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_ParseDate. Expected _wxDateTime_p.");
5554 wxPy_BEGIN_ALLOW_THREADS
;
5555 _result
= (char *)wxDateTime_ParseDate(_arg0
,_arg1
);
5557 wxPy_END_ALLOW_THREADS
;
5558 if (PyErr_Occurred()) return NULL
;
5559 } _resultobj
= Py_BuildValue("s", _result
);
5563 #define wxDateTime_ParseTime(_swigobj,_swigarg0) (_swigobj->ParseTime(_swigarg0))
5564 static PyObject
*_wrap_wxDateTime_ParseTime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5565 PyObject
* _resultobj
;
5569 PyObject
* _argo0
= 0;
5570 char *_kwnames
[] = { "self","time", NULL
};
5573 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Os:wxDateTime_ParseTime",_kwnames
,&_argo0
,&_arg1
))
5576 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5577 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
5578 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_ParseTime. Expected _wxDateTime_p.");
5583 wxPy_BEGIN_ALLOW_THREADS
;
5584 _result
= (char *)wxDateTime_ParseTime(_arg0
,_arg1
);
5586 wxPy_END_ALLOW_THREADS
;
5587 if (PyErr_Occurred()) return NULL
;
5588 } _resultobj
= Py_BuildValue("s", _result
);
5592 #define wxDateTime_Format(_swigobj,_swigarg0,_swigarg1) (_swigobj->Format(_swigarg0,_swigarg1))
5593 static PyObject
*_wrap_wxDateTime_Format(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5594 PyObject
* _resultobj
;
5597 char * _arg1
= (char *) "%c";
5598 wxDateTime::TimeZone
* _arg2
= (wxDateTime::TimeZone
*) &LOCAL
;
5599 PyObject
* _argo0
= 0;
5600 PyObject
* _obj2
= 0;
5601 char *_kwnames
[] = { "self","format","tz", NULL
};
5604 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|sO:wxDateTime_Format",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
5607 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5608 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
5609 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_Format. Expected _wxDateTime_p.");
5615 _arg2
= new wxDateTime::TimeZone((wxDateTime::TZ
)PyInt_AsLong(_obj2
));
5618 wxPy_BEGIN_ALLOW_THREADS
;
5619 _result
= new wxString (wxDateTime_Format(_arg0
,_arg1
,*_arg2
));
5621 wxPy_END_ALLOW_THREADS
;
5622 if (PyErr_Occurred()) return NULL
;
5624 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5627 if (_arg2
) delete _arg2
;
5635 #define wxDateTime_FormatDate(_swigobj) (_swigobj->FormatDate())
5636 static PyObject
*_wrap_wxDateTime_FormatDate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5637 PyObject
* _resultobj
;
5640 PyObject
* _argo0
= 0;
5641 char *_kwnames
[] = { "self", NULL
};
5644 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDateTime_FormatDate",_kwnames
,&_argo0
))
5647 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5648 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
5649 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_FormatDate. Expected _wxDateTime_p.");
5654 wxPy_BEGIN_ALLOW_THREADS
;
5655 _result
= new wxString (wxDateTime_FormatDate(_arg0
));
5657 wxPy_END_ALLOW_THREADS
;
5658 if (PyErr_Occurred()) return NULL
;
5660 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5668 #define wxDateTime_FormatTime(_swigobj) (_swigobj->FormatTime())
5669 static PyObject
*_wrap_wxDateTime_FormatTime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5670 PyObject
* _resultobj
;
5673 PyObject
* _argo0
= 0;
5674 char *_kwnames
[] = { "self", NULL
};
5677 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDateTime_FormatTime",_kwnames
,&_argo0
))
5680 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5681 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
5682 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_FormatTime. Expected _wxDateTime_p.");
5687 wxPy_BEGIN_ALLOW_THREADS
;
5688 _result
= new wxString (wxDateTime_FormatTime(_arg0
));
5690 wxPy_END_ALLOW_THREADS
;
5691 if (PyErr_Occurred()) return NULL
;
5693 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5701 #define wxDateTime_FormatISODate(_swigobj) (_swigobj->FormatISODate())
5702 static PyObject
*_wrap_wxDateTime_FormatISODate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5703 PyObject
* _resultobj
;
5706 PyObject
* _argo0
= 0;
5707 char *_kwnames
[] = { "self", NULL
};
5710 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDateTime_FormatISODate",_kwnames
,&_argo0
))
5713 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5714 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
5715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_FormatISODate. Expected _wxDateTime_p.");
5720 wxPy_BEGIN_ALLOW_THREADS
;
5721 _result
= new wxString (wxDateTime_FormatISODate(_arg0
));
5723 wxPy_END_ALLOW_THREADS
;
5724 if (PyErr_Occurred()) return NULL
;
5726 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5734 #define wxDateTime_FormatISOTime(_swigobj) (_swigobj->FormatISOTime())
5735 static PyObject
*_wrap_wxDateTime_FormatISOTime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5736 PyObject
* _resultobj
;
5739 PyObject
* _argo0
= 0;
5740 char *_kwnames
[] = { "self", NULL
};
5743 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDateTime_FormatISOTime",_kwnames
,&_argo0
))
5746 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5747 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateTime_p")) {
5748 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateTime_FormatISOTime. Expected _wxDateTime_p.");
5753 wxPy_BEGIN_ALLOW_THREADS
;
5754 _result
= new wxString (wxDateTime_FormatISOTime(_arg0
));
5756 wxPy_END_ALLOW_THREADS
;
5757 if (PyErr_Occurred()) return NULL
;
5759 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5767 static PyObject
*_wrap_wxTimeSpan_Seconds(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5768 PyObject
* _resultobj
;
5769 wxTimeSpan
* _result
;
5771 char *_kwnames
[] = { "sec", NULL
};
5775 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"l:wxTimeSpan_Seconds",_kwnames
,&_arg0
))
5778 wxPy_BEGIN_ALLOW_THREADS
;
5779 _result
= new wxTimeSpan (wxTimeSpan::Seconds(_arg0
));
5781 wxPy_END_ALLOW_THREADS
;
5782 if (PyErr_Occurred()) return NULL
;
5783 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxTimeSpan_p");
5784 _resultobj
= Py_BuildValue("s",_ptemp
);
5788 static PyObject
*_wrap_wxTimeSpan_Second(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5789 PyObject
* _resultobj
;
5790 wxTimeSpan
* _result
;
5791 char *_kwnames
[] = { NULL
};
5795 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxTimeSpan_Second",_kwnames
))
5798 wxPy_BEGIN_ALLOW_THREADS
;
5799 _result
= new wxTimeSpan (wxTimeSpan::Second());
5801 wxPy_END_ALLOW_THREADS
;
5802 if (PyErr_Occurred()) return NULL
;
5803 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxTimeSpan_p");
5804 _resultobj
= Py_BuildValue("s",_ptemp
);
5808 static PyObject
*_wrap_wxTimeSpan_Minutes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5809 PyObject
* _resultobj
;
5810 wxTimeSpan
* _result
;
5812 char *_kwnames
[] = { "min", NULL
};
5816 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"l:wxTimeSpan_Minutes",_kwnames
,&_arg0
))
5819 wxPy_BEGIN_ALLOW_THREADS
;
5820 _result
= new wxTimeSpan (wxTimeSpan::Minutes(_arg0
));
5822 wxPy_END_ALLOW_THREADS
;
5823 if (PyErr_Occurred()) return NULL
;
5824 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxTimeSpan_p");
5825 _resultobj
= Py_BuildValue("s",_ptemp
);
5829 static PyObject
*_wrap_wxTimeSpan_Minute(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5830 PyObject
* _resultobj
;
5831 wxTimeSpan
* _result
;
5832 char *_kwnames
[] = { NULL
};
5836 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxTimeSpan_Minute",_kwnames
))
5839 wxPy_BEGIN_ALLOW_THREADS
;
5840 _result
= new wxTimeSpan (wxTimeSpan::Minute());
5842 wxPy_END_ALLOW_THREADS
;
5843 if (PyErr_Occurred()) return NULL
;
5844 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxTimeSpan_p");
5845 _resultobj
= Py_BuildValue("s",_ptemp
);
5849 static PyObject
*_wrap_wxTimeSpan_Hours(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5850 PyObject
* _resultobj
;
5851 wxTimeSpan
* _result
;
5853 char *_kwnames
[] = { "hours", NULL
};
5857 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"l:wxTimeSpan_Hours",_kwnames
,&_arg0
))
5860 wxPy_BEGIN_ALLOW_THREADS
;
5861 _result
= new wxTimeSpan (wxTimeSpan::Hours(_arg0
));
5863 wxPy_END_ALLOW_THREADS
;
5864 if (PyErr_Occurred()) return NULL
;
5865 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxTimeSpan_p");
5866 _resultobj
= Py_BuildValue("s",_ptemp
);
5870 static PyObject
*_wrap_wxTimeSpan_Hour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5871 PyObject
* _resultobj
;
5872 wxTimeSpan
* _result
;
5873 char *_kwnames
[] = { NULL
};
5877 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxTimeSpan_Hour",_kwnames
))
5880 wxPy_BEGIN_ALLOW_THREADS
;
5881 _result
= new wxTimeSpan (wxTimeSpan::Hour());
5883 wxPy_END_ALLOW_THREADS
;
5884 if (PyErr_Occurred()) return NULL
;
5885 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxTimeSpan_p");
5886 _resultobj
= Py_BuildValue("s",_ptemp
);
5890 static PyObject
*_wrap_wxTimeSpan_Days(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5891 PyObject
* _resultobj
;
5892 wxTimeSpan
* _result
;
5894 char *_kwnames
[] = { "days", NULL
};
5898 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"l:wxTimeSpan_Days",_kwnames
,&_arg0
))
5901 wxPy_BEGIN_ALLOW_THREADS
;
5902 _result
= new wxTimeSpan (wxTimeSpan::Days(_arg0
));
5904 wxPy_END_ALLOW_THREADS
;
5905 if (PyErr_Occurred()) return NULL
;
5906 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxTimeSpan_p");
5907 _resultobj
= Py_BuildValue("s",_ptemp
);
5911 static PyObject
*_wrap_wxTimeSpan_Day(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5912 PyObject
* _resultobj
;
5913 wxTimeSpan
* _result
;
5914 char *_kwnames
[] = { NULL
};
5918 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxTimeSpan_Day",_kwnames
))
5921 wxPy_BEGIN_ALLOW_THREADS
;
5922 _result
= new wxTimeSpan (wxTimeSpan::Day());
5924 wxPy_END_ALLOW_THREADS
;
5925 if (PyErr_Occurred()) return NULL
;
5926 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxTimeSpan_p");
5927 _resultobj
= Py_BuildValue("s",_ptemp
);
5931 static PyObject
*_wrap_wxTimeSpan_Weeks(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5932 PyObject
* _resultobj
;
5933 wxTimeSpan
* _result
;
5935 char *_kwnames
[] = { "days", NULL
};
5939 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"l:wxTimeSpan_Weeks",_kwnames
,&_arg0
))
5942 wxPy_BEGIN_ALLOW_THREADS
;
5943 _result
= new wxTimeSpan (wxTimeSpan::Weeks(_arg0
));
5945 wxPy_END_ALLOW_THREADS
;
5946 if (PyErr_Occurred()) return NULL
;
5947 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxTimeSpan_p");
5948 _resultobj
= Py_BuildValue("s",_ptemp
);
5952 static PyObject
*_wrap_wxTimeSpan_Week(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5953 PyObject
* _resultobj
;
5954 wxTimeSpan
* _result
;
5955 char *_kwnames
[] = { NULL
};
5959 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxTimeSpan_Week",_kwnames
))
5962 wxPy_BEGIN_ALLOW_THREADS
;
5963 _result
= new wxTimeSpan (wxTimeSpan::Week());
5965 wxPy_END_ALLOW_THREADS
;
5966 if (PyErr_Occurred()) return NULL
;
5967 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxTimeSpan_p");
5968 _resultobj
= Py_BuildValue("s",_ptemp
);
5972 #define new_wxTimeSpan(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxTimeSpan(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5973 static PyObject
*_wrap_new_wxTimeSpan(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5974 PyObject
* _resultobj
;
5975 wxTimeSpan
* _result
;
5976 long _arg0
= (long ) 0;
5977 long _arg1
= (long ) 0;
5978 long _arg2
= (long ) 0;
5979 long _arg3
= (long ) 0;
5980 char *_kwnames
[] = { "hours","minutes","seconds","milliseconds", NULL
};
5984 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|llll:new_wxTimeSpan",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
5987 wxPy_BEGIN_ALLOW_THREADS
;
5988 _result
= (wxTimeSpan
*)new_wxTimeSpan(_arg0
,_arg1
,_arg2
,_arg3
);
5990 wxPy_END_ALLOW_THREADS
;
5991 if (PyErr_Occurred()) return NULL
;
5993 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTimeSpan_p");
5994 _resultobj
= Py_BuildValue("s",_ptemp
);
5997 _resultobj
= Py_None
;
6002 #define delete_wxTimeSpan(_swigobj) (delete _swigobj)
6003 static PyObject
*_wrap_delete_wxTimeSpan(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6004 PyObject
* _resultobj
;
6006 PyObject
* _argo0
= 0;
6007 char *_kwnames
[] = { "self", NULL
};
6010 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxTimeSpan",_kwnames
,&_argo0
))
6013 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6014 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTimeSpan_p")) {
6015 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxTimeSpan. Expected _wxTimeSpan_p.");
6020 wxPy_BEGIN_ALLOW_THREADS
;
6021 delete_wxTimeSpan(_arg0
);
6023 wxPy_END_ALLOW_THREADS
;
6024 if (PyErr_Occurred()) return NULL
;
6025 } Py_INCREF(Py_None
);
6026 _resultobj
= Py_None
;
6030 #define wxTimeSpan_Add(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
6031 static PyObject
*_wrap_wxTimeSpan_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6032 PyObject
* _resultobj
;
6033 wxTimeSpan
* _result
;
6036 PyObject
* _argo0
= 0;
6037 PyObject
* _argo1
= 0;
6038 char *_kwnames
[] = { "self","diff", NULL
};
6042 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxTimeSpan_Add",_kwnames
,&_argo0
,&_argo1
))
6045 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6046 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTimeSpan_p")) {
6047 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTimeSpan_Add. Expected _wxTimeSpan_p.");
6052 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6053 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxTimeSpan_p")) {
6054 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxTimeSpan_Add. Expected _wxTimeSpan_p.");
6059 wxPy_BEGIN_ALLOW_THREADS
;
6060 wxTimeSpan
& _result_ref
= wxTimeSpan_Add(_arg0
,*_arg1
);
6061 _result
= (wxTimeSpan
*) &_result_ref
;
6063 wxPy_END_ALLOW_THREADS
;
6064 if (PyErr_Occurred()) return NULL
;
6066 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTimeSpan_p");
6067 _resultobj
= Py_BuildValue("s",_ptemp
);
6070 _resultobj
= Py_None
;
6075 #define wxTimeSpan_Subtract(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
6076 static PyObject
*_wrap_wxTimeSpan_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6077 PyObject
* _resultobj
;
6078 wxTimeSpan
* _result
;
6081 PyObject
* _argo0
= 0;
6082 PyObject
* _argo1
= 0;
6083 char *_kwnames
[] = { "self","diff", NULL
};
6087 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxTimeSpan_Subtract",_kwnames
,&_argo0
,&_argo1
))
6090 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6091 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTimeSpan_p")) {
6092 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTimeSpan_Subtract. Expected _wxTimeSpan_p.");
6097 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6098 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxTimeSpan_p")) {
6099 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxTimeSpan_Subtract. Expected _wxTimeSpan_p.");
6104 wxPy_BEGIN_ALLOW_THREADS
;
6105 wxTimeSpan
& _result_ref
= wxTimeSpan_Subtract(_arg0
,*_arg1
);
6106 _result
= (wxTimeSpan
*) &_result_ref
;
6108 wxPy_END_ALLOW_THREADS
;
6109 if (PyErr_Occurred()) return NULL
;
6111 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTimeSpan_p");
6112 _resultobj
= Py_BuildValue("s",_ptemp
);
6115 _resultobj
= Py_None
;
6120 #define wxTimeSpan_Multiply(_swigobj,_swigarg0) (_swigobj->Multiply(_swigarg0))
6121 static PyObject
*_wrap_wxTimeSpan_Multiply(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6122 PyObject
* _resultobj
;
6123 wxTimeSpan
* _result
;
6126 PyObject
* _argo0
= 0;
6127 char *_kwnames
[] = { "self","n", NULL
};
6131 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxTimeSpan_Multiply",_kwnames
,&_argo0
,&_arg1
))
6134 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6135 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTimeSpan_p")) {
6136 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTimeSpan_Multiply. Expected _wxTimeSpan_p.");
6141 wxPy_BEGIN_ALLOW_THREADS
;
6142 wxTimeSpan
& _result_ref
= wxTimeSpan_Multiply(_arg0
,_arg1
);
6143 _result
= (wxTimeSpan
*) &_result_ref
;
6145 wxPy_END_ALLOW_THREADS
;
6146 if (PyErr_Occurred()) return NULL
;
6148 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTimeSpan_p");
6149 _resultobj
= Py_BuildValue("s",_ptemp
);
6152 _resultobj
= Py_None
;
6157 #define wxTimeSpan_Neg(_swigobj) (_swigobj->Neg())
6158 static PyObject
*_wrap_wxTimeSpan_Neg(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6159 PyObject
* _resultobj
;
6160 wxTimeSpan
* _result
;
6162 PyObject
* _argo0
= 0;
6163 char *_kwnames
[] = { "self", NULL
};
6167 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTimeSpan_Neg",_kwnames
,&_argo0
))
6170 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6171 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTimeSpan_p")) {
6172 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTimeSpan_Neg. Expected _wxTimeSpan_p.");
6177 wxPy_BEGIN_ALLOW_THREADS
;
6178 wxTimeSpan
& _result_ref
= wxTimeSpan_Neg(_arg0
);
6179 _result
= (wxTimeSpan
*) &_result_ref
;
6181 wxPy_END_ALLOW_THREADS
;
6182 if (PyErr_Occurred()) return NULL
;
6184 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTimeSpan_p");
6185 _resultobj
= Py_BuildValue("s",_ptemp
);
6188 _resultobj
= Py_None
;
6193 #define wxTimeSpan_Abs(_swigobj) (_swigobj->Abs())
6194 static PyObject
*_wrap_wxTimeSpan_Abs(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6195 PyObject
* _resultobj
;
6196 wxTimeSpan
* _result
;
6198 PyObject
* _argo0
= 0;
6199 char *_kwnames
[] = { "self", NULL
};
6203 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTimeSpan_Abs",_kwnames
,&_argo0
))
6206 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6207 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTimeSpan_p")) {
6208 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTimeSpan_Abs. Expected _wxTimeSpan_p.");
6213 wxPy_BEGIN_ALLOW_THREADS
;
6214 _result
= new wxTimeSpan (wxTimeSpan_Abs(_arg0
));
6216 wxPy_END_ALLOW_THREADS
;
6217 if (PyErr_Occurred()) return NULL
;
6218 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxTimeSpan_p");
6219 _resultobj
= Py_BuildValue("s",_ptemp
);
6223 static wxTimeSpan
wxTimeSpan___add__(wxTimeSpan
*self
,const wxTimeSpan
& other
) { return *self
+ other
; }
6224 static PyObject
*_wrap_wxTimeSpan___add__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6225 PyObject
* _resultobj
;
6226 wxTimeSpan
* _result
;
6229 PyObject
* _argo0
= 0;
6230 PyObject
* _argo1
= 0;
6231 char *_kwnames
[] = { "self","other", NULL
};
6235 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxTimeSpan___add__",_kwnames
,&_argo0
,&_argo1
))
6238 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6239 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTimeSpan_p")) {
6240 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTimeSpan___add__. Expected _wxTimeSpan_p.");
6245 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6246 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxTimeSpan_p")) {
6247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxTimeSpan___add__. Expected _wxTimeSpan_p.");
6252 wxPy_BEGIN_ALLOW_THREADS
;
6253 _result
= new wxTimeSpan (wxTimeSpan___add__(_arg0
,*_arg1
));
6255 wxPy_END_ALLOW_THREADS
;
6256 if (PyErr_Occurred()) return NULL
;
6257 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxTimeSpan_p");
6258 _resultobj
= Py_BuildValue("s",_ptemp
);
6262 static wxTimeSpan
wxTimeSpan___sub__(wxTimeSpan
*self
,const wxTimeSpan
& other
) { return *self
- other
; }
6263 static PyObject
*_wrap_wxTimeSpan___sub__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6264 PyObject
* _resultobj
;
6265 wxTimeSpan
* _result
;
6268 PyObject
* _argo0
= 0;
6269 PyObject
* _argo1
= 0;
6270 char *_kwnames
[] = { "self","other", NULL
};
6274 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxTimeSpan___sub__",_kwnames
,&_argo0
,&_argo1
))
6277 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6278 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTimeSpan_p")) {
6279 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTimeSpan___sub__. Expected _wxTimeSpan_p.");
6284 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6285 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxTimeSpan_p")) {
6286 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxTimeSpan___sub__. Expected _wxTimeSpan_p.");
6291 wxPy_BEGIN_ALLOW_THREADS
;
6292 _result
= new wxTimeSpan (wxTimeSpan___sub__(_arg0
,*_arg1
));
6294 wxPy_END_ALLOW_THREADS
;
6295 if (PyErr_Occurred()) return NULL
;
6296 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxTimeSpan_p");
6297 _resultobj
= Py_BuildValue("s",_ptemp
);
6301 static wxTimeSpan
wxTimeSpan___mul__(wxTimeSpan
*self
,int n
) { return *self
* n
; }
6302 static PyObject
*_wrap_wxTimeSpan___mul__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6303 PyObject
* _resultobj
;
6304 wxTimeSpan
* _result
;
6307 PyObject
* _argo0
= 0;
6308 char *_kwnames
[] = { "self","n", NULL
};
6312 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxTimeSpan___mul__",_kwnames
,&_argo0
,&_arg1
))
6315 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6316 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTimeSpan_p")) {
6317 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTimeSpan___mul__. Expected _wxTimeSpan_p.");
6322 wxPy_BEGIN_ALLOW_THREADS
;
6323 _result
= new wxTimeSpan (wxTimeSpan___mul__(_arg0
,_arg1
));
6325 wxPy_END_ALLOW_THREADS
;
6326 if (PyErr_Occurred()) return NULL
;
6327 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxTimeSpan_p");
6328 _resultobj
= Py_BuildValue("s",_ptemp
);
6332 static wxTimeSpan
wxTimeSpan___rmul__(wxTimeSpan
*self
,int n
) { return n
* *self
; }
6333 static PyObject
*_wrap_wxTimeSpan___rmul__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6334 PyObject
* _resultobj
;
6335 wxTimeSpan
* _result
;
6338 PyObject
* _argo0
= 0;
6339 char *_kwnames
[] = { "self","n", NULL
};
6343 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxTimeSpan___rmul__",_kwnames
,&_argo0
,&_arg1
))
6346 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6347 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTimeSpan_p")) {
6348 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTimeSpan___rmul__. Expected _wxTimeSpan_p.");
6353 wxPy_BEGIN_ALLOW_THREADS
;
6354 _result
= new wxTimeSpan (wxTimeSpan___rmul__(_arg0
,_arg1
));
6356 wxPy_END_ALLOW_THREADS
;
6357 if (PyErr_Occurred()) return NULL
;
6358 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxTimeSpan_p");
6359 _resultobj
= Py_BuildValue("s",_ptemp
);
6363 static wxTimeSpan
wxTimeSpan___neg__(wxTimeSpan
*self
) { return self
->Negate(); }
6364 static PyObject
*_wrap_wxTimeSpan___neg__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6365 PyObject
* _resultobj
;
6366 wxTimeSpan
* _result
;
6368 PyObject
* _argo0
= 0;
6369 char *_kwnames
[] = { "self", NULL
};
6373 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTimeSpan___neg__",_kwnames
,&_argo0
))
6376 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6377 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTimeSpan_p")) {
6378 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTimeSpan___neg__. Expected _wxTimeSpan_p.");
6383 wxPy_BEGIN_ALLOW_THREADS
;
6384 _result
= new wxTimeSpan (wxTimeSpan___neg__(_arg0
));
6386 wxPy_END_ALLOW_THREADS
;
6387 if (PyErr_Occurred()) return NULL
;
6388 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxTimeSpan_p");
6389 _resultobj
= Py_BuildValue("s",_ptemp
);
6393 static int wxTimeSpan___cmp__(wxTimeSpan
*self
,const wxTimeSpan
& other
) {
6394 if (*self
< other
) return -1;
6395 if (*self
== other
) return 0;
6398 static PyObject
*_wrap_wxTimeSpan___cmp__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6399 PyObject
* _resultobj
;
6403 PyObject
* _argo0
= 0;
6404 PyObject
* _argo1
= 0;
6405 char *_kwnames
[] = { "self","other", NULL
};
6408 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxTimeSpan___cmp__",_kwnames
,&_argo0
,&_argo1
))
6411 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6412 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTimeSpan_p")) {
6413 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTimeSpan___cmp__. Expected _wxTimeSpan_p.");
6418 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6419 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxTimeSpan_p")) {
6420 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxTimeSpan___cmp__. Expected _wxTimeSpan_p.");
6425 wxPy_BEGIN_ALLOW_THREADS
;
6426 _result
= (int )wxTimeSpan___cmp__(_arg0
,*_arg1
);
6428 wxPy_END_ALLOW_THREADS
;
6429 if (PyErr_Occurred()) return NULL
;
6430 } _resultobj
= Py_BuildValue("i",_result
);
6434 #define wxTimeSpan_IsNull(_swigobj) (_swigobj->IsNull())
6435 static PyObject
*_wrap_wxTimeSpan_IsNull(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6436 PyObject
* _resultobj
;
6439 PyObject
* _argo0
= 0;
6440 char *_kwnames
[] = { "self", NULL
};
6443 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTimeSpan_IsNull",_kwnames
,&_argo0
))
6446 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6447 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTimeSpan_p")) {
6448 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTimeSpan_IsNull. Expected _wxTimeSpan_p.");
6453 wxPy_BEGIN_ALLOW_THREADS
;
6454 _result
= (bool )wxTimeSpan_IsNull(_arg0
);
6456 wxPy_END_ALLOW_THREADS
;
6457 if (PyErr_Occurred()) return NULL
;
6458 } _resultobj
= Py_BuildValue("i",_result
);
6462 #define wxTimeSpan_IsPositive(_swigobj) (_swigobj->IsPositive())
6463 static PyObject
*_wrap_wxTimeSpan_IsPositive(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6464 PyObject
* _resultobj
;
6467 PyObject
* _argo0
= 0;
6468 char *_kwnames
[] = { "self", NULL
};
6471 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTimeSpan_IsPositive",_kwnames
,&_argo0
))
6474 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6475 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTimeSpan_p")) {
6476 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTimeSpan_IsPositive. Expected _wxTimeSpan_p.");
6481 wxPy_BEGIN_ALLOW_THREADS
;
6482 _result
= (bool )wxTimeSpan_IsPositive(_arg0
);
6484 wxPy_END_ALLOW_THREADS
;
6485 if (PyErr_Occurred()) return NULL
;
6486 } _resultobj
= Py_BuildValue("i",_result
);
6490 #define wxTimeSpan_IsNegative(_swigobj) (_swigobj->IsNegative())
6491 static PyObject
*_wrap_wxTimeSpan_IsNegative(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6492 PyObject
* _resultobj
;
6495 PyObject
* _argo0
= 0;
6496 char *_kwnames
[] = { "self", NULL
};
6499 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTimeSpan_IsNegative",_kwnames
,&_argo0
))
6502 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6503 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTimeSpan_p")) {
6504 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTimeSpan_IsNegative. Expected _wxTimeSpan_p.");
6509 wxPy_BEGIN_ALLOW_THREADS
;
6510 _result
= (bool )wxTimeSpan_IsNegative(_arg0
);
6512 wxPy_END_ALLOW_THREADS
;
6513 if (PyErr_Occurred()) return NULL
;
6514 } _resultobj
= Py_BuildValue("i",_result
);
6518 #define wxTimeSpan_IsEqualTo(_swigobj,_swigarg0) (_swigobj->IsEqualTo(_swigarg0))
6519 static PyObject
*_wrap_wxTimeSpan_IsEqualTo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6520 PyObject
* _resultobj
;
6524 PyObject
* _argo0
= 0;
6525 PyObject
* _argo1
= 0;
6526 char *_kwnames
[] = { "self","ts", NULL
};
6529 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxTimeSpan_IsEqualTo",_kwnames
,&_argo0
,&_argo1
))
6532 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6533 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTimeSpan_p")) {
6534 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTimeSpan_IsEqualTo. Expected _wxTimeSpan_p.");
6539 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6540 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxTimeSpan_p")) {
6541 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxTimeSpan_IsEqualTo. Expected _wxTimeSpan_p.");
6546 wxPy_BEGIN_ALLOW_THREADS
;
6547 _result
= (bool )wxTimeSpan_IsEqualTo(_arg0
,*_arg1
);
6549 wxPy_END_ALLOW_THREADS
;
6550 if (PyErr_Occurred()) return NULL
;
6551 } _resultobj
= Py_BuildValue("i",_result
);
6555 #define wxTimeSpan_IsLongerThan(_swigobj,_swigarg0) (_swigobj->IsLongerThan(_swigarg0))
6556 static PyObject
*_wrap_wxTimeSpan_IsLongerThan(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6557 PyObject
* _resultobj
;
6561 PyObject
* _argo0
= 0;
6562 PyObject
* _argo1
= 0;
6563 char *_kwnames
[] = { "self","ts", NULL
};
6566 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxTimeSpan_IsLongerThan",_kwnames
,&_argo0
,&_argo1
))
6569 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6570 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTimeSpan_p")) {
6571 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTimeSpan_IsLongerThan. Expected _wxTimeSpan_p.");
6576 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6577 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxTimeSpan_p")) {
6578 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxTimeSpan_IsLongerThan. Expected _wxTimeSpan_p.");
6583 wxPy_BEGIN_ALLOW_THREADS
;
6584 _result
= (bool )wxTimeSpan_IsLongerThan(_arg0
,*_arg1
);
6586 wxPy_END_ALLOW_THREADS
;
6587 if (PyErr_Occurred()) return NULL
;
6588 } _resultobj
= Py_BuildValue("i",_result
);
6592 #define wxTimeSpan_IsShorterThan(_swigobj,_swigarg0) (_swigobj->IsShorterThan(_swigarg0))
6593 static PyObject
*_wrap_wxTimeSpan_IsShorterThan(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6594 PyObject
* _resultobj
;
6598 PyObject
* _argo0
= 0;
6599 PyObject
* _argo1
= 0;
6600 char *_kwnames
[] = { "self","t", NULL
};
6603 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxTimeSpan_IsShorterThan",_kwnames
,&_argo0
,&_argo1
))
6606 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6607 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTimeSpan_p")) {
6608 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTimeSpan_IsShorterThan. Expected _wxTimeSpan_p.");
6613 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6614 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxTimeSpan_p")) {
6615 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxTimeSpan_IsShorterThan. Expected _wxTimeSpan_p.");
6620 wxPy_BEGIN_ALLOW_THREADS
;
6621 _result
= (bool )wxTimeSpan_IsShorterThan(_arg0
,*_arg1
);
6623 wxPy_END_ALLOW_THREADS
;
6624 if (PyErr_Occurred()) return NULL
;
6625 } _resultobj
= Py_BuildValue("i",_result
);
6629 #define wxTimeSpan_GetWeeks(_swigobj) (_swigobj->GetWeeks())
6630 static PyObject
*_wrap_wxTimeSpan_GetWeeks(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6631 PyObject
* _resultobj
;
6634 PyObject
* _argo0
= 0;
6635 char *_kwnames
[] = { "self", NULL
};
6638 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTimeSpan_GetWeeks",_kwnames
,&_argo0
))
6641 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6642 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTimeSpan_p")) {
6643 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTimeSpan_GetWeeks. Expected _wxTimeSpan_p.");
6648 wxPy_BEGIN_ALLOW_THREADS
;
6649 _result
= (int )wxTimeSpan_GetWeeks(_arg0
);
6651 wxPy_END_ALLOW_THREADS
;
6652 if (PyErr_Occurred()) return NULL
;
6653 } _resultobj
= Py_BuildValue("i",_result
);
6657 #define wxTimeSpan_GetDays(_swigobj) (_swigobj->GetDays())
6658 static PyObject
*_wrap_wxTimeSpan_GetDays(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6659 PyObject
* _resultobj
;
6662 PyObject
* _argo0
= 0;
6663 char *_kwnames
[] = { "self", NULL
};
6666 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTimeSpan_GetDays",_kwnames
,&_argo0
))
6669 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6670 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTimeSpan_p")) {
6671 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTimeSpan_GetDays. Expected _wxTimeSpan_p.");
6676 wxPy_BEGIN_ALLOW_THREADS
;
6677 _result
= (int )wxTimeSpan_GetDays(_arg0
);
6679 wxPy_END_ALLOW_THREADS
;
6680 if (PyErr_Occurred()) return NULL
;
6681 } _resultobj
= Py_BuildValue("i",_result
);
6685 #define wxTimeSpan_GetHours(_swigobj) (_swigobj->GetHours())
6686 static PyObject
*_wrap_wxTimeSpan_GetHours(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6687 PyObject
* _resultobj
;
6690 PyObject
* _argo0
= 0;
6691 char *_kwnames
[] = { "self", NULL
};
6694 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTimeSpan_GetHours",_kwnames
,&_argo0
))
6697 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6698 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTimeSpan_p")) {
6699 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTimeSpan_GetHours. Expected _wxTimeSpan_p.");
6704 wxPy_BEGIN_ALLOW_THREADS
;
6705 _result
= (int )wxTimeSpan_GetHours(_arg0
);
6707 wxPy_END_ALLOW_THREADS
;
6708 if (PyErr_Occurred()) return NULL
;
6709 } _resultobj
= Py_BuildValue("i",_result
);
6713 #define wxTimeSpan_GetMinutes(_swigobj) (_swigobj->GetMinutes())
6714 static PyObject
*_wrap_wxTimeSpan_GetMinutes(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6715 PyObject
* _resultobj
;
6718 PyObject
* _argo0
= 0;
6719 char *_kwnames
[] = { "self", NULL
};
6722 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTimeSpan_GetMinutes",_kwnames
,&_argo0
))
6725 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6726 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTimeSpan_p")) {
6727 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTimeSpan_GetMinutes. Expected _wxTimeSpan_p.");
6732 wxPy_BEGIN_ALLOW_THREADS
;
6733 _result
= (int )wxTimeSpan_GetMinutes(_arg0
);
6735 wxPy_END_ALLOW_THREADS
;
6736 if (PyErr_Occurred()) return NULL
;
6737 } _resultobj
= Py_BuildValue("i",_result
);
6741 #define wxTimeSpan_GetSeconds(_swigobj) (_swigobj->GetSeconds())
6742 static PyObject
*_wrap_wxTimeSpan_GetSeconds(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6743 PyObject
* _resultobj
;
6744 wxLongLong
* _result
;
6746 PyObject
* _argo0
= 0;
6747 char *_kwnames
[] = { "self", NULL
};
6750 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTimeSpan_GetSeconds",_kwnames
,&_argo0
))
6753 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6754 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTimeSpan_p")) {
6755 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTimeSpan_GetSeconds. Expected _wxTimeSpan_p.");
6760 wxPy_BEGIN_ALLOW_THREADS
;
6761 _result
= new wxLongLong (wxTimeSpan_GetSeconds(_arg0
));
6763 wxPy_END_ALLOW_THREADS
;
6764 if (PyErr_Occurred()) return NULL
;
6766 PyObject
*hi
, *lo
, *shifter
, *shifted
;
6767 hi
= PyLong_FromLong(_result
->GetHi());
6768 lo
= PyLong_FromLong(_result
->GetLo());
6769 shifter
= PyLong_FromLong(32);
6770 shifted
= PyNumber_Lshift(hi
, shifter
);
6771 _resultobj
= PyNumber_Or(shifted
, lo
);
6780 #define wxTimeSpan_GetMilliseconds(_swigobj) (_swigobj->GetMilliseconds())
6781 static PyObject
*_wrap_wxTimeSpan_GetMilliseconds(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6782 PyObject
* _resultobj
;
6783 wxLongLong
* _result
;
6785 PyObject
* _argo0
= 0;
6786 char *_kwnames
[] = { "self", NULL
};
6789 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTimeSpan_GetMilliseconds",_kwnames
,&_argo0
))
6792 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6793 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTimeSpan_p")) {
6794 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTimeSpan_GetMilliseconds. Expected _wxTimeSpan_p.");
6799 wxPy_BEGIN_ALLOW_THREADS
;
6800 _result
= new wxLongLong (wxTimeSpan_GetMilliseconds(_arg0
));
6802 wxPy_END_ALLOW_THREADS
;
6803 if (PyErr_Occurred()) return NULL
;
6805 PyObject
*hi
, *lo
, *shifter
, *shifted
;
6806 hi
= PyLong_FromLong(_result
->GetHi());
6807 lo
= PyLong_FromLong(_result
->GetLo());
6808 shifter
= PyLong_FromLong(32);
6809 shifted
= PyNumber_Lshift(hi
, shifter
);
6810 _resultobj
= PyNumber_Or(shifted
, lo
);
6819 #define wxTimeSpan_Format(_swigobj,_swigarg0) (_swigobj->Format(_swigarg0))
6820 static PyObject
*_wrap_wxTimeSpan_Format(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6821 PyObject
* _resultobj
;
6824 char * _arg1
= (char *) "%c";
6825 PyObject
* _argo0
= 0;
6826 char *_kwnames
[] = { "self","format", NULL
};
6829 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|s:wxTimeSpan_Format",_kwnames
,&_argo0
,&_arg1
))
6832 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6833 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTimeSpan_p")) {
6834 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTimeSpan_Format. Expected _wxTimeSpan_p.");
6839 wxPy_BEGIN_ALLOW_THREADS
;
6840 _result
= new wxString (wxTimeSpan_Format(_arg0
,_arg1
));
6842 wxPy_END_ALLOW_THREADS
;
6843 if (PyErr_Occurred()) return NULL
;
6845 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
6853 #define new_wxDateSpan(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxDateSpan(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6854 static PyObject
*_wrap_new_wxDateSpan(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6855 PyObject
* _resultobj
;
6856 wxDateSpan
* _result
;
6857 int _arg0
= (int ) 0;
6858 int _arg1
= (int ) 0;
6859 int _arg2
= (int ) 0;
6860 int _arg3
= (int ) 0;
6861 char *_kwnames
[] = { "years","months","weeks","days", NULL
};
6865 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|iiii:new_wxDateSpan",_kwnames
,&_arg0
,&_arg1
,&_arg2
,&_arg3
))
6868 wxPy_BEGIN_ALLOW_THREADS
;
6869 _result
= (wxDateSpan
*)new_wxDateSpan(_arg0
,_arg1
,_arg2
,_arg3
);
6871 wxPy_END_ALLOW_THREADS
;
6872 if (PyErr_Occurred()) return NULL
;
6874 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateSpan_p");
6875 _resultobj
= Py_BuildValue("s",_ptemp
);
6878 _resultobj
= Py_None
;
6883 #define delete_wxDateSpan(_swigobj) (delete _swigobj)
6884 static PyObject
*_wrap_delete_wxDateSpan(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6885 PyObject
* _resultobj
;
6887 PyObject
* _argo0
= 0;
6888 char *_kwnames
[] = { "self", NULL
};
6891 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDateSpan",_kwnames
,&_argo0
))
6894 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6895 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateSpan_p")) {
6896 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDateSpan. Expected _wxDateSpan_p.");
6901 wxPy_BEGIN_ALLOW_THREADS
;
6902 delete_wxDateSpan(_arg0
);
6904 wxPy_END_ALLOW_THREADS
;
6905 if (PyErr_Occurred()) return NULL
;
6906 } Py_INCREF(Py_None
);
6907 _resultobj
= Py_None
;
6911 static PyObject
*_wrap_wxDateSpan_Days(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6912 PyObject
* _resultobj
;
6913 wxDateSpan
* _result
;
6915 char *_kwnames
[] = { "days", NULL
};
6919 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxDateSpan_Days",_kwnames
,&_arg0
))
6922 wxPy_BEGIN_ALLOW_THREADS
;
6923 _result
= new wxDateSpan (wxDateSpan::Days(_arg0
));
6925 wxPy_END_ALLOW_THREADS
;
6926 if (PyErr_Occurred()) return NULL
;
6927 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateSpan_p");
6928 _resultobj
= Py_BuildValue("s",_ptemp
);
6932 static PyObject
*_wrap_wxDateSpan_Day(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6933 PyObject
* _resultobj
;
6934 wxDateSpan
* _result
;
6935 char *_kwnames
[] = { NULL
};
6939 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxDateSpan_Day",_kwnames
))
6942 wxPy_BEGIN_ALLOW_THREADS
;
6943 _result
= new wxDateSpan (wxDateSpan::Day());
6945 wxPy_END_ALLOW_THREADS
;
6946 if (PyErr_Occurred()) return NULL
;
6947 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateSpan_p");
6948 _resultobj
= Py_BuildValue("s",_ptemp
);
6952 static PyObject
*_wrap_wxDateSpan_Weeks(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6953 PyObject
* _resultobj
;
6954 wxDateSpan
* _result
;
6956 char *_kwnames
[] = { "weeks", NULL
};
6960 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxDateSpan_Weeks",_kwnames
,&_arg0
))
6963 wxPy_BEGIN_ALLOW_THREADS
;
6964 _result
= new wxDateSpan (wxDateSpan::Weeks(_arg0
));
6966 wxPy_END_ALLOW_THREADS
;
6967 if (PyErr_Occurred()) return NULL
;
6968 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateSpan_p");
6969 _resultobj
= Py_BuildValue("s",_ptemp
);
6973 static PyObject
*_wrap_wxDateSpan_Week(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6974 PyObject
* _resultobj
;
6975 wxDateSpan
* _result
;
6976 char *_kwnames
[] = { NULL
};
6980 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxDateSpan_Week",_kwnames
))
6983 wxPy_BEGIN_ALLOW_THREADS
;
6984 _result
= new wxDateSpan (wxDateSpan::Week());
6986 wxPy_END_ALLOW_THREADS
;
6987 if (PyErr_Occurred()) return NULL
;
6988 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateSpan_p");
6989 _resultobj
= Py_BuildValue("s",_ptemp
);
6993 static PyObject
*_wrap_wxDateSpan_Months(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6994 PyObject
* _resultobj
;
6995 wxDateSpan
* _result
;
6997 char *_kwnames
[] = { "mon", NULL
};
7001 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxDateSpan_Months",_kwnames
,&_arg0
))
7004 wxPy_BEGIN_ALLOW_THREADS
;
7005 _result
= new wxDateSpan (wxDateSpan::Months(_arg0
));
7007 wxPy_END_ALLOW_THREADS
;
7008 if (PyErr_Occurred()) return NULL
;
7009 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateSpan_p");
7010 _resultobj
= Py_BuildValue("s",_ptemp
);
7014 static PyObject
*_wrap_wxDateSpan_Month(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7015 PyObject
* _resultobj
;
7016 wxDateSpan
* _result
;
7017 char *_kwnames
[] = { NULL
};
7021 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxDateSpan_Month",_kwnames
))
7024 wxPy_BEGIN_ALLOW_THREADS
;
7025 _result
= new wxDateSpan (wxDateSpan::Month());
7027 wxPy_END_ALLOW_THREADS
;
7028 if (PyErr_Occurred()) return NULL
;
7029 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateSpan_p");
7030 _resultobj
= Py_BuildValue("s",_ptemp
);
7034 static PyObject
*_wrap_wxDateSpan_Years(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7035 PyObject
* _resultobj
;
7036 wxDateSpan
* _result
;
7038 char *_kwnames
[] = { "years", NULL
};
7042 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxDateSpan_Years",_kwnames
,&_arg0
))
7045 wxPy_BEGIN_ALLOW_THREADS
;
7046 _result
= new wxDateSpan (wxDateSpan::Years(_arg0
));
7048 wxPy_END_ALLOW_THREADS
;
7049 if (PyErr_Occurred()) return NULL
;
7050 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateSpan_p");
7051 _resultobj
= Py_BuildValue("s",_ptemp
);
7055 static PyObject
*_wrap_wxDateSpan_Year(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7056 PyObject
* _resultobj
;
7057 wxDateSpan
* _result
;
7058 char *_kwnames
[] = { NULL
};
7062 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxDateSpan_Year",_kwnames
))
7065 wxPy_BEGIN_ALLOW_THREADS
;
7066 _result
= new wxDateSpan (wxDateSpan::Year());
7068 wxPy_END_ALLOW_THREADS
;
7069 if (PyErr_Occurred()) return NULL
;
7070 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateSpan_p");
7071 _resultobj
= Py_BuildValue("s",_ptemp
);
7075 #define wxDateSpan_SetYears(_swigobj,_swigarg0) (_swigobj->SetYears(_swigarg0))
7076 static PyObject
*_wrap_wxDateSpan_SetYears(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7077 PyObject
* _resultobj
;
7078 wxDateSpan
* _result
;
7081 PyObject
* _argo0
= 0;
7082 char *_kwnames
[] = { "self","n", NULL
};
7086 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDateSpan_SetYears",_kwnames
,&_argo0
,&_arg1
))
7089 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7090 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateSpan_p")) {
7091 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateSpan_SetYears. Expected _wxDateSpan_p.");
7096 wxPy_BEGIN_ALLOW_THREADS
;
7097 wxDateSpan
& _result_ref
= wxDateSpan_SetYears(_arg0
,_arg1
);
7098 _result
= (wxDateSpan
*) &_result_ref
;
7100 wxPy_END_ALLOW_THREADS
;
7101 if (PyErr_Occurred()) return NULL
;
7103 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateSpan_p");
7104 _resultobj
= Py_BuildValue("s",_ptemp
);
7107 _resultobj
= Py_None
;
7112 #define wxDateSpan_SetMonths(_swigobj,_swigarg0) (_swigobj->SetMonths(_swigarg0))
7113 static PyObject
*_wrap_wxDateSpan_SetMonths(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7114 PyObject
* _resultobj
;
7115 wxDateSpan
* _result
;
7118 PyObject
* _argo0
= 0;
7119 char *_kwnames
[] = { "self","n", NULL
};
7123 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDateSpan_SetMonths",_kwnames
,&_argo0
,&_arg1
))
7126 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7127 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateSpan_p")) {
7128 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateSpan_SetMonths. Expected _wxDateSpan_p.");
7133 wxPy_BEGIN_ALLOW_THREADS
;
7134 wxDateSpan
& _result_ref
= wxDateSpan_SetMonths(_arg0
,_arg1
);
7135 _result
= (wxDateSpan
*) &_result_ref
;
7137 wxPy_END_ALLOW_THREADS
;
7138 if (PyErr_Occurred()) return NULL
;
7140 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateSpan_p");
7141 _resultobj
= Py_BuildValue("s",_ptemp
);
7144 _resultobj
= Py_None
;
7149 #define wxDateSpan_SetWeeks(_swigobj,_swigarg0) (_swigobj->SetWeeks(_swigarg0))
7150 static PyObject
*_wrap_wxDateSpan_SetWeeks(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7151 PyObject
* _resultobj
;
7152 wxDateSpan
* _result
;
7155 PyObject
* _argo0
= 0;
7156 char *_kwnames
[] = { "self","n", NULL
};
7160 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDateSpan_SetWeeks",_kwnames
,&_argo0
,&_arg1
))
7163 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7164 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateSpan_p")) {
7165 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateSpan_SetWeeks. Expected _wxDateSpan_p.");
7170 wxPy_BEGIN_ALLOW_THREADS
;
7171 wxDateSpan
& _result_ref
= wxDateSpan_SetWeeks(_arg0
,_arg1
);
7172 _result
= (wxDateSpan
*) &_result_ref
;
7174 wxPy_END_ALLOW_THREADS
;
7175 if (PyErr_Occurred()) return NULL
;
7177 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateSpan_p");
7178 _resultobj
= Py_BuildValue("s",_ptemp
);
7181 _resultobj
= Py_None
;
7186 #define wxDateSpan_SetDays(_swigobj,_swigarg0) (_swigobj->SetDays(_swigarg0))
7187 static PyObject
*_wrap_wxDateSpan_SetDays(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7188 PyObject
* _resultobj
;
7189 wxDateSpan
* _result
;
7192 PyObject
* _argo0
= 0;
7193 char *_kwnames
[] = { "self","n", NULL
};
7197 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDateSpan_SetDays",_kwnames
,&_argo0
,&_arg1
))
7200 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7201 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateSpan_p")) {
7202 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateSpan_SetDays. Expected _wxDateSpan_p.");
7207 wxPy_BEGIN_ALLOW_THREADS
;
7208 wxDateSpan
& _result_ref
= wxDateSpan_SetDays(_arg0
,_arg1
);
7209 _result
= (wxDateSpan
*) &_result_ref
;
7211 wxPy_END_ALLOW_THREADS
;
7212 if (PyErr_Occurred()) return NULL
;
7214 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateSpan_p");
7215 _resultobj
= Py_BuildValue("s",_ptemp
);
7218 _resultobj
= Py_None
;
7223 #define wxDateSpan_GetYears(_swigobj) (_swigobj->GetYears())
7224 static PyObject
*_wrap_wxDateSpan_GetYears(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7225 PyObject
* _resultobj
;
7228 PyObject
* _argo0
= 0;
7229 char *_kwnames
[] = { "self", NULL
};
7232 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDateSpan_GetYears",_kwnames
,&_argo0
))
7235 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7236 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateSpan_p")) {
7237 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateSpan_GetYears. Expected _wxDateSpan_p.");
7242 wxPy_BEGIN_ALLOW_THREADS
;
7243 _result
= (int )wxDateSpan_GetYears(_arg0
);
7245 wxPy_END_ALLOW_THREADS
;
7246 if (PyErr_Occurred()) return NULL
;
7247 } _resultobj
= Py_BuildValue("i",_result
);
7251 #define wxDateSpan_GetMonths(_swigobj) (_swigobj->GetMonths())
7252 static PyObject
*_wrap_wxDateSpan_GetMonths(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7253 PyObject
* _resultobj
;
7256 PyObject
* _argo0
= 0;
7257 char *_kwnames
[] = { "self", NULL
};
7260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDateSpan_GetMonths",_kwnames
,&_argo0
))
7263 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7264 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateSpan_p")) {
7265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateSpan_GetMonths. Expected _wxDateSpan_p.");
7270 wxPy_BEGIN_ALLOW_THREADS
;
7271 _result
= (int )wxDateSpan_GetMonths(_arg0
);
7273 wxPy_END_ALLOW_THREADS
;
7274 if (PyErr_Occurred()) return NULL
;
7275 } _resultobj
= Py_BuildValue("i",_result
);
7279 #define wxDateSpan_GetWeeks(_swigobj) (_swigobj->GetWeeks())
7280 static PyObject
*_wrap_wxDateSpan_GetWeeks(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7281 PyObject
* _resultobj
;
7284 PyObject
* _argo0
= 0;
7285 char *_kwnames
[] = { "self", NULL
};
7288 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDateSpan_GetWeeks",_kwnames
,&_argo0
))
7291 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7292 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateSpan_p")) {
7293 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateSpan_GetWeeks. Expected _wxDateSpan_p.");
7298 wxPy_BEGIN_ALLOW_THREADS
;
7299 _result
= (int )wxDateSpan_GetWeeks(_arg0
);
7301 wxPy_END_ALLOW_THREADS
;
7302 if (PyErr_Occurred()) return NULL
;
7303 } _resultobj
= Py_BuildValue("i",_result
);
7307 #define wxDateSpan_GetDays(_swigobj) (_swigobj->GetDays())
7308 static PyObject
*_wrap_wxDateSpan_GetDays(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7309 PyObject
* _resultobj
;
7312 PyObject
* _argo0
= 0;
7313 char *_kwnames
[] = { "self", NULL
};
7316 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDateSpan_GetDays",_kwnames
,&_argo0
))
7319 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7320 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateSpan_p")) {
7321 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateSpan_GetDays. Expected _wxDateSpan_p.");
7326 wxPy_BEGIN_ALLOW_THREADS
;
7327 _result
= (int )wxDateSpan_GetDays(_arg0
);
7329 wxPy_END_ALLOW_THREADS
;
7330 if (PyErr_Occurred()) return NULL
;
7331 } _resultobj
= Py_BuildValue("i",_result
);
7335 #define wxDateSpan_GetTotalDays(_swigobj) (_swigobj->GetTotalDays())
7336 static PyObject
*_wrap_wxDateSpan_GetTotalDays(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7337 PyObject
* _resultobj
;
7340 PyObject
* _argo0
= 0;
7341 char *_kwnames
[] = { "self", NULL
};
7344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDateSpan_GetTotalDays",_kwnames
,&_argo0
))
7347 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7348 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateSpan_p")) {
7349 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateSpan_GetTotalDays. Expected _wxDateSpan_p.");
7354 wxPy_BEGIN_ALLOW_THREADS
;
7355 _result
= (int )wxDateSpan_GetTotalDays(_arg0
);
7357 wxPy_END_ALLOW_THREADS
;
7358 if (PyErr_Occurred()) return NULL
;
7359 } _resultobj
= Py_BuildValue("i",_result
);
7363 #define wxDateSpan_Add(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
7364 static PyObject
*_wrap_wxDateSpan_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7365 PyObject
* _resultobj
;
7366 wxDateSpan
* _result
;
7369 PyObject
* _argo0
= 0;
7370 PyObject
* _argo1
= 0;
7371 char *_kwnames
[] = { "self","other", NULL
};
7375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDateSpan_Add",_kwnames
,&_argo0
,&_argo1
))
7378 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7379 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateSpan_p")) {
7380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateSpan_Add. Expected _wxDateSpan_p.");
7385 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7386 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDateSpan_p")) {
7387 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDateSpan_Add. Expected _wxDateSpan_p.");
7392 wxPy_BEGIN_ALLOW_THREADS
;
7393 wxDateSpan
& _result_ref
= wxDateSpan_Add(_arg0
,*_arg1
);
7394 _result
= (wxDateSpan
*) &_result_ref
;
7396 wxPy_END_ALLOW_THREADS
;
7397 if (PyErr_Occurred()) return NULL
;
7399 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateSpan_p");
7400 _resultobj
= Py_BuildValue("s",_ptemp
);
7403 _resultobj
= Py_None
;
7408 #define wxDateSpan_Subtract(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
7409 static PyObject
*_wrap_wxDateSpan_Subtract(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7410 PyObject
* _resultobj
;
7411 wxDateSpan
* _result
;
7414 PyObject
* _argo0
= 0;
7415 PyObject
* _argo1
= 0;
7416 char *_kwnames
[] = { "self","other", NULL
};
7420 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDateSpan_Subtract",_kwnames
,&_argo0
,&_argo1
))
7423 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7424 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateSpan_p")) {
7425 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateSpan_Subtract. Expected _wxDateSpan_p.");
7430 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7431 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDateSpan_p")) {
7432 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDateSpan_Subtract. Expected _wxDateSpan_p.");
7437 wxPy_BEGIN_ALLOW_THREADS
;
7438 wxDateSpan
& _result_ref
= wxDateSpan_Subtract(_arg0
,*_arg1
);
7439 _result
= (wxDateSpan
*) &_result_ref
;
7441 wxPy_END_ALLOW_THREADS
;
7442 if (PyErr_Occurred()) return NULL
;
7444 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateSpan_p");
7445 _resultobj
= Py_BuildValue("s",_ptemp
);
7448 _resultobj
= Py_None
;
7453 #define wxDateSpan_Neg(_swigobj) (_swigobj->Neg())
7454 static PyObject
*_wrap_wxDateSpan_Neg(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7455 PyObject
* _resultobj
;
7456 wxDateSpan
* _result
;
7458 PyObject
* _argo0
= 0;
7459 char *_kwnames
[] = { "self", NULL
};
7463 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDateSpan_Neg",_kwnames
,&_argo0
))
7466 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7467 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateSpan_p")) {
7468 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateSpan_Neg. Expected _wxDateSpan_p.");
7473 wxPy_BEGIN_ALLOW_THREADS
;
7474 wxDateSpan
& _result_ref
= wxDateSpan_Neg(_arg0
);
7475 _result
= (wxDateSpan
*) &_result_ref
;
7477 wxPy_END_ALLOW_THREADS
;
7478 if (PyErr_Occurred()) return NULL
;
7480 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateSpan_p");
7481 _resultobj
= Py_BuildValue("s",_ptemp
);
7484 _resultobj
= Py_None
;
7489 #define wxDateSpan_Multiply(_swigobj,_swigarg0) (_swigobj->Multiply(_swigarg0))
7490 static PyObject
*_wrap_wxDateSpan_Multiply(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7491 PyObject
* _resultobj
;
7492 wxDateSpan
* _result
;
7495 PyObject
* _argo0
= 0;
7496 char *_kwnames
[] = { "self","factor", NULL
};
7500 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDateSpan_Multiply",_kwnames
,&_argo0
,&_arg1
))
7503 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7504 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateSpan_p")) {
7505 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateSpan_Multiply. Expected _wxDateSpan_p.");
7510 wxPy_BEGIN_ALLOW_THREADS
;
7511 wxDateSpan
& _result_ref
= wxDateSpan_Multiply(_arg0
,_arg1
);
7512 _result
= (wxDateSpan
*) &_result_ref
;
7514 wxPy_END_ALLOW_THREADS
;
7515 if (PyErr_Occurred()) return NULL
;
7517 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDateSpan_p");
7518 _resultobj
= Py_BuildValue("s",_ptemp
);
7521 _resultobj
= Py_None
;
7526 static wxDateSpan
wxDateSpan___add__(wxDateSpan
*self
,const wxDateSpan
& other
) { return *self
+ other
; }
7527 static PyObject
*_wrap_wxDateSpan___add__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7528 PyObject
* _resultobj
;
7529 wxDateSpan
* _result
;
7532 PyObject
* _argo0
= 0;
7533 PyObject
* _argo1
= 0;
7534 char *_kwnames
[] = { "self","other", NULL
};
7538 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDateSpan___add__",_kwnames
,&_argo0
,&_argo1
))
7541 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7542 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateSpan_p")) {
7543 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateSpan___add__. Expected _wxDateSpan_p.");
7548 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7549 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDateSpan_p")) {
7550 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDateSpan___add__. Expected _wxDateSpan_p.");
7555 wxPy_BEGIN_ALLOW_THREADS
;
7556 _result
= new wxDateSpan (wxDateSpan___add__(_arg0
,*_arg1
));
7558 wxPy_END_ALLOW_THREADS
;
7559 if (PyErr_Occurred()) return NULL
;
7560 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateSpan_p");
7561 _resultobj
= Py_BuildValue("s",_ptemp
);
7565 static wxDateSpan
wxDateSpan___sub__(wxDateSpan
*self
,const wxDateSpan
& other
) { return *self
- other
; }
7566 static PyObject
*_wrap_wxDateSpan___sub__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7567 PyObject
* _resultobj
;
7568 wxDateSpan
* _result
;
7571 PyObject
* _argo0
= 0;
7572 PyObject
* _argo1
= 0;
7573 char *_kwnames
[] = { "self","other", NULL
};
7577 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDateSpan___sub__",_kwnames
,&_argo0
,&_argo1
))
7580 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7581 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateSpan_p")) {
7582 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateSpan___sub__. Expected _wxDateSpan_p.");
7587 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7588 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDateSpan_p")) {
7589 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDateSpan___sub__. Expected _wxDateSpan_p.");
7594 wxPy_BEGIN_ALLOW_THREADS
;
7595 _result
= new wxDateSpan (wxDateSpan___sub__(_arg0
,*_arg1
));
7597 wxPy_END_ALLOW_THREADS
;
7598 if (PyErr_Occurred()) return NULL
;
7599 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateSpan_p");
7600 _resultobj
= Py_BuildValue("s",_ptemp
);
7604 static wxDateSpan
wxDateSpan___mul__(wxDateSpan
*self
,int n
) { return *self
* n
; }
7605 static PyObject
*_wrap_wxDateSpan___mul__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7606 PyObject
* _resultobj
;
7607 wxDateSpan
* _result
;
7610 PyObject
* _argo0
= 0;
7611 char *_kwnames
[] = { "self","n", NULL
};
7615 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDateSpan___mul__",_kwnames
,&_argo0
,&_arg1
))
7618 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7619 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateSpan_p")) {
7620 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateSpan___mul__. Expected _wxDateSpan_p.");
7625 wxPy_BEGIN_ALLOW_THREADS
;
7626 _result
= new wxDateSpan (wxDateSpan___mul__(_arg0
,_arg1
));
7628 wxPy_END_ALLOW_THREADS
;
7629 if (PyErr_Occurred()) return NULL
;
7630 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateSpan_p");
7631 _resultobj
= Py_BuildValue("s",_ptemp
);
7635 static wxDateSpan
wxDateSpan___rmul__(wxDateSpan
*self
,int n
) { return n
* *self
; }
7636 static PyObject
*_wrap_wxDateSpan___rmul__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7637 PyObject
* _resultobj
;
7638 wxDateSpan
* _result
;
7641 PyObject
* _argo0
= 0;
7642 char *_kwnames
[] = { "self","n", NULL
};
7646 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDateSpan___rmul__",_kwnames
,&_argo0
,&_arg1
))
7649 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7650 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateSpan_p")) {
7651 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateSpan___rmul__. Expected _wxDateSpan_p.");
7656 wxPy_BEGIN_ALLOW_THREADS
;
7657 _result
= new wxDateSpan (wxDateSpan___rmul__(_arg0
,_arg1
));
7659 wxPy_END_ALLOW_THREADS
;
7660 if (PyErr_Occurred()) return NULL
;
7661 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateSpan_p");
7662 _resultobj
= Py_BuildValue("s",_ptemp
);
7666 static wxDateSpan
wxDateSpan___neg__(wxDateSpan
*self
) { return self
->Negate(); }
7667 static PyObject
*_wrap_wxDateSpan___neg__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7668 PyObject
* _resultobj
;
7669 wxDateSpan
* _result
;
7671 PyObject
* _argo0
= 0;
7672 char *_kwnames
[] = { "self", NULL
};
7676 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDateSpan___neg__",_kwnames
,&_argo0
))
7679 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7680 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDateSpan_p")) {
7681 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDateSpan___neg__. Expected _wxDateSpan_p.");
7686 wxPy_BEGIN_ALLOW_THREADS
;
7687 _result
= new wxDateSpan (wxDateSpan___neg__(_arg0
));
7689 wxPy_END_ALLOW_THREADS
;
7690 if (PyErr_Occurred()) return NULL
;
7691 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateSpan_p");
7692 _resultobj
= Py_BuildValue("s",_ptemp
);
7696 static PyMethodDef utilscMethods
[] = {
7697 { "wxDateSpan___neg__", (PyCFunction
) _wrap_wxDateSpan___neg__
, METH_VARARGS
| METH_KEYWORDS
},
7698 { "wxDateSpan___rmul__", (PyCFunction
) _wrap_wxDateSpan___rmul__
, METH_VARARGS
| METH_KEYWORDS
},
7699 { "wxDateSpan___mul__", (PyCFunction
) _wrap_wxDateSpan___mul__
, METH_VARARGS
| METH_KEYWORDS
},
7700 { "wxDateSpan___sub__", (PyCFunction
) _wrap_wxDateSpan___sub__
, METH_VARARGS
| METH_KEYWORDS
},
7701 { "wxDateSpan___add__", (PyCFunction
) _wrap_wxDateSpan___add__
, METH_VARARGS
| METH_KEYWORDS
},
7702 { "wxDateSpan_Multiply", (PyCFunction
) _wrap_wxDateSpan_Multiply
, METH_VARARGS
| METH_KEYWORDS
},
7703 { "wxDateSpan_Neg", (PyCFunction
) _wrap_wxDateSpan_Neg
, METH_VARARGS
| METH_KEYWORDS
},
7704 { "wxDateSpan_Subtract", (PyCFunction
) _wrap_wxDateSpan_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
7705 { "wxDateSpan_Add", (PyCFunction
) _wrap_wxDateSpan_Add
, METH_VARARGS
| METH_KEYWORDS
},
7706 { "wxDateSpan_GetTotalDays", (PyCFunction
) _wrap_wxDateSpan_GetTotalDays
, METH_VARARGS
| METH_KEYWORDS
},
7707 { "wxDateSpan_GetDays", (PyCFunction
) _wrap_wxDateSpan_GetDays
, METH_VARARGS
| METH_KEYWORDS
},
7708 { "wxDateSpan_GetWeeks", (PyCFunction
) _wrap_wxDateSpan_GetWeeks
, METH_VARARGS
| METH_KEYWORDS
},
7709 { "wxDateSpan_GetMonths", (PyCFunction
) _wrap_wxDateSpan_GetMonths
, METH_VARARGS
| METH_KEYWORDS
},
7710 { "wxDateSpan_GetYears", (PyCFunction
) _wrap_wxDateSpan_GetYears
, METH_VARARGS
| METH_KEYWORDS
},
7711 { "wxDateSpan_SetDays", (PyCFunction
) _wrap_wxDateSpan_SetDays
, METH_VARARGS
| METH_KEYWORDS
},
7712 { "wxDateSpan_SetWeeks", (PyCFunction
) _wrap_wxDateSpan_SetWeeks
, METH_VARARGS
| METH_KEYWORDS
},
7713 { "wxDateSpan_SetMonths", (PyCFunction
) _wrap_wxDateSpan_SetMonths
, METH_VARARGS
| METH_KEYWORDS
},
7714 { "wxDateSpan_SetYears", (PyCFunction
) _wrap_wxDateSpan_SetYears
, METH_VARARGS
| METH_KEYWORDS
},
7715 { "wxDateSpan_Year", (PyCFunction
) _wrap_wxDateSpan_Year
, METH_VARARGS
| METH_KEYWORDS
},
7716 { "wxDateSpan_Years", (PyCFunction
) _wrap_wxDateSpan_Years
, METH_VARARGS
| METH_KEYWORDS
},
7717 { "wxDateSpan_Month", (PyCFunction
) _wrap_wxDateSpan_Month
, METH_VARARGS
| METH_KEYWORDS
},
7718 { "wxDateSpan_Months", (PyCFunction
) _wrap_wxDateSpan_Months
, METH_VARARGS
| METH_KEYWORDS
},
7719 { "wxDateSpan_Week", (PyCFunction
) _wrap_wxDateSpan_Week
, METH_VARARGS
| METH_KEYWORDS
},
7720 { "wxDateSpan_Weeks", (PyCFunction
) _wrap_wxDateSpan_Weeks
, METH_VARARGS
| METH_KEYWORDS
},
7721 { "wxDateSpan_Day", (PyCFunction
) _wrap_wxDateSpan_Day
, METH_VARARGS
| METH_KEYWORDS
},
7722 { "wxDateSpan_Days", (PyCFunction
) _wrap_wxDateSpan_Days
, METH_VARARGS
| METH_KEYWORDS
},
7723 { "delete_wxDateSpan", (PyCFunction
) _wrap_delete_wxDateSpan
, METH_VARARGS
| METH_KEYWORDS
},
7724 { "new_wxDateSpan", (PyCFunction
) _wrap_new_wxDateSpan
, METH_VARARGS
| METH_KEYWORDS
},
7725 { "wxTimeSpan_Format", (PyCFunction
) _wrap_wxTimeSpan_Format
, METH_VARARGS
| METH_KEYWORDS
},
7726 { "wxTimeSpan_GetMilliseconds", (PyCFunction
) _wrap_wxTimeSpan_GetMilliseconds
, METH_VARARGS
| METH_KEYWORDS
},
7727 { "wxTimeSpan_GetSeconds", (PyCFunction
) _wrap_wxTimeSpan_GetSeconds
, METH_VARARGS
| METH_KEYWORDS
},
7728 { "wxTimeSpan_GetMinutes", (PyCFunction
) _wrap_wxTimeSpan_GetMinutes
, METH_VARARGS
| METH_KEYWORDS
},
7729 { "wxTimeSpan_GetHours", (PyCFunction
) _wrap_wxTimeSpan_GetHours
, METH_VARARGS
| METH_KEYWORDS
},
7730 { "wxTimeSpan_GetDays", (PyCFunction
) _wrap_wxTimeSpan_GetDays
, METH_VARARGS
| METH_KEYWORDS
},
7731 { "wxTimeSpan_GetWeeks", (PyCFunction
) _wrap_wxTimeSpan_GetWeeks
, METH_VARARGS
| METH_KEYWORDS
},
7732 { "wxTimeSpan_IsShorterThan", (PyCFunction
) _wrap_wxTimeSpan_IsShorterThan
, METH_VARARGS
| METH_KEYWORDS
},
7733 { "wxTimeSpan_IsLongerThan", (PyCFunction
) _wrap_wxTimeSpan_IsLongerThan
, METH_VARARGS
| METH_KEYWORDS
},
7734 { "wxTimeSpan_IsEqualTo", (PyCFunction
) _wrap_wxTimeSpan_IsEqualTo
, METH_VARARGS
| METH_KEYWORDS
},
7735 { "wxTimeSpan_IsNegative", (PyCFunction
) _wrap_wxTimeSpan_IsNegative
, METH_VARARGS
| METH_KEYWORDS
},
7736 { "wxTimeSpan_IsPositive", (PyCFunction
) _wrap_wxTimeSpan_IsPositive
, METH_VARARGS
| METH_KEYWORDS
},
7737 { "wxTimeSpan_IsNull", (PyCFunction
) _wrap_wxTimeSpan_IsNull
, METH_VARARGS
| METH_KEYWORDS
},
7738 { "wxTimeSpan___cmp__", (PyCFunction
) _wrap_wxTimeSpan___cmp__
, METH_VARARGS
| METH_KEYWORDS
},
7739 { "wxTimeSpan___neg__", (PyCFunction
) _wrap_wxTimeSpan___neg__
, METH_VARARGS
| METH_KEYWORDS
},
7740 { "wxTimeSpan___rmul__", (PyCFunction
) _wrap_wxTimeSpan___rmul__
, METH_VARARGS
| METH_KEYWORDS
},
7741 { "wxTimeSpan___mul__", (PyCFunction
) _wrap_wxTimeSpan___mul__
, METH_VARARGS
| METH_KEYWORDS
},
7742 { "wxTimeSpan___sub__", (PyCFunction
) _wrap_wxTimeSpan___sub__
, METH_VARARGS
| METH_KEYWORDS
},
7743 { "wxTimeSpan___add__", (PyCFunction
) _wrap_wxTimeSpan___add__
, METH_VARARGS
| METH_KEYWORDS
},
7744 { "wxTimeSpan_Abs", (PyCFunction
) _wrap_wxTimeSpan_Abs
, METH_VARARGS
| METH_KEYWORDS
},
7745 { "wxTimeSpan_Neg", (PyCFunction
) _wrap_wxTimeSpan_Neg
, METH_VARARGS
| METH_KEYWORDS
},
7746 { "wxTimeSpan_Multiply", (PyCFunction
) _wrap_wxTimeSpan_Multiply
, METH_VARARGS
| METH_KEYWORDS
},
7747 { "wxTimeSpan_Subtract", (PyCFunction
) _wrap_wxTimeSpan_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
7748 { "wxTimeSpan_Add", (PyCFunction
) _wrap_wxTimeSpan_Add
, METH_VARARGS
| METH_KEYWORDS
},
7749 { "delete_wxTimeSpan", (PyCFunction
) _wrap_delete_wxTimeSpan
, METH_VARARGS
| METH_KEYWORDS
},
7750 { "new_wxTimeSpan", (PyCFunction
) _wrap_new_wxTimeSpan
, METH_VARARGS
| METH_KEYWORDS
},
7751 { "wxTimeSpan_Week", (PyCFunction
) _wrap_wxTimeSpan_Week
, METH_VARARGS
| METH_KEYWORDS
},
7752 { "wxTimeSpan_Weeks", (PyCFunction
) _wrap_wxTimeSpan_Weeks
, METH_VARARGS
| METH_KEYWORDS
},
7753 { "wxTimeSpan_Day", (PyCFunction
) _wrap_wxTimeSpan_Day
, METH_VARARGS
| METH_KEYWORDS
},
7754 { "wxTimeSpan_Days", (PyCFunction
) _wrap_wxTimeSpan_Days
, METH_VARARGS
| METH_KEYWORDS
},
7755 { "wxTimeSpan_Hour", (PyCFunction
) _wrap_wxTimeSpan_Hour
, METH_VARARGS
| METH_KEYWORDS
},
7756 { "wxTimeSpan_Hours", (PyCFunction
) _wrap_wxTimeSpan_Hours
, METH_VARARGS
| METH_KEYWORDS
},
7757 { "wxTimeSpan_Minute", (PyCFunction
) _wrap_wxTimeSpan_Minute
, METH_VARARGS
| METH_KEYWORDS
},
7758 { "wxTimeSpan_Minutes", (PyCFunction
) _wrap_wxTimeSpan_Minutes
, METH_VARARGS
| METH_KEYWORDS
},
7759 { "wxTimeSpan_Second", (PyCFunction
) _wrap_wxTimeSpan_Second
, METH_VARARGS
| METH_KEYWORDS
},
7760 { "wxTimeSpan_Seconds", (PyCFunction
) _wrap_wxTimeSpan_Seconds
, METH_VARARGS
| METH_KEYWORDS
},
7761 { "wxDateTime_FormatISOTime", (PyCFunction
) _wrap_wxDateTime_FormatISOTime
, METH_VARARGS
| METH_KEYWORDS
},
7762 { "wxDateTime_FormatISODate", (PyCFunction
) _wrap_wxDateTime_FormatISODate
, METH_VARARGS
| METH_KEYWORDS
},
7763 { "wxDateTime_FormatTime", (PyCFunction
) _wrap_wxDateTime_FormatTime
, METH_VARARGS
| METH_KEYWORDS
},
7764 { "wxDateTime_FormatDate", (PyCFunction
) _wrap_wxDateTime_FormatDate
, METH_VARARGS
| METH_KEYWORDS
},
7765 { "wxDateTime_Format", (PyCFunction
) _wrap_wxDateTime_Format
, METH_VARARGS
| METH_KEYWORDS
},
7766 { "wxDateTime_ParseTime", (PyCFunction
) _wrap_wxDateTime_ParseTime
, METH_VARARGS
| METH_KEYWORDS
},
7767 { "wxDateTime_ParseDate", (PyCFunction
) _wrap_wxDateTime_ParseDate
, METH_VARARGS
| METH_KEYWORDS
},
7768 { "wxDateTime_ParseDateTime", (PyCFunction
) _wrap_wxDateTime_ParseDateTime
, METH_VARARGS
| METH_KEYWORDS
},
7769 { "wxDateTime_ParseFormat", (PyCFunction
) _wrap_wxDateTime_ParseFormat
, METH_VARARGS
| METH_KEYWORDS
},
7770 { "wxDateTime_ParseRfc822Date", (PyCFunction
) _wrap_wxDateTime_ParseRfc822Date
, METH_VARARGS
| METH_KEYWORDS
},
7771 { "wxDateTime___cmp__", (PyCFunction
) _wrap_wxDateTime___cmp__
, METH_VARARGS
| METH_KEYWORDS
},
7772 { "wxDateTime___sub__DS", (PyCFunction
) _wrap_wxDateTime___sub__DS
, METH_VARARGS
| METH_KEYWORDS
},
7773 { "wxDateTime___sub__TS", (PyCFunction
) _wrap_wxDateTime___sub__TS
, METH_VARARGS
| METH_KEYWORDS
},
7774 { "wxDateTime___sub__DT", (PyCFunction
) _wrap_wxDateTime___sub__DT
, METH_VARARGS
| METH_KEYWORDS
},
7775 { "wxDateTime___add__DS", (PyCFunction
) _wrap_wxDateTime___add__DS
, METH_VARARGS
| METH_KEYWORDS
},
7776 { "wxDateTime___add__TS", (PyCFunction
) _wrap_wxDateTime___add__TS
, METH_VARARGS
| METH_KEYWORDS
},
7777 { "wxDateTime_Subtract", (PyCFunction
) _wrap_wxDateTime_Subtract
, METH_VARARGS
| METH_KEYWORDS
},
7778 { "wxDateTime_SubtractDS", (PyCFunction
) _wrap_wxDateTime_SubtractDS
, METH_VARARGS
| METH_KEYWORDS
},
7779 { "wxDateTime_SubtractTS", (PyCFunction
) _wrap_wxDateTime_SubtractTS
, METH_VARARGS
| METH_KEYWORDS
},
7780 { "wxDateTime_AddDS", (PyCFunction
) _wrap_wxDateTime_AddDS
, METH_VARARGS
| METH_KEYWORDS
},
7781 { "wxDateTime_AddTS", (PyCFunction
) _wrap_wxDateTime_AddTS
, METH_VARARGS
| METH_KEYWORDS
},
7782 { "wxDateTime_IsEqualUpTo", (PyCFunction
) _wrap_wxDateTime_IsEqualUpTo
, METH_VARARGS
| METH_KEYWORDS
},
7783 { "wxDateTime_IsSameTime", (PyCFunction
) _wrap_wxDateTime_IsSameTime
, METH_VARARGS
| METH_KEYWORDS
},
7784 { "wxDateTime_IsSameDate", (PyCFunction
) _wrap_wxDateTime_IsSameDate
, METH_VARARGS
| METH_KEYWORDS
},
7785 { "wxDateTime_IsBetween", (PyCFunction
) _wrap_wxDateTime_IsBetween
, METH_VARARGS
| METH_KEYWORDS
},
7786 { "wxDateTime_IsStrictlyBetween", (PyCFunction
) _wrap_wxDateTime_IsStrictlyBetween
, METH_VARARGS
| METH_KEYWORDS
},
7787 { "wxDateTime_IsLaterThan", (PyCFunction
) _wrap_wxDateTime_IsLaterThan
, METH_VARARGS
| METH_KEYWORDS
},
7788 { "wxDateTime_IsEarlierThan", (PyCFunction
) _wrap_wxDateTime_IsEarlierThan
, METH_VARARGS
| METH_KEYWORDS
},
7789 { "wxDateTime_IsEqualTo", (PyCFunction
) _wrap_wxDateTime_IsEqualTo
, METH_VARARGS
| METH_KEYWORDS
},
7790 { "wxDateTime_IsWorkDay", (PyCFunction
) _wrap_wxDateTime_IsWorkDay
, METH_VARARGS
| METH_KEYWORDS
},
7791 { "wxDateTime_GetWeekOfMonth", (PyCFunction
) _wrap_wxDateTime_GetWeekOfMonth
, METH_VARARGS
| METH_KEYWORDS
},
7792 { "wxDateTime_GetWeekOfYear", (PyCFunction
) _wrap_wxDateTime_GetWeekOfYear
, METH_VARARGS
| METH_KEYWORDS
},
7793 { "wxDateTime_GetDayOfYear", (PyCFunction
) _wrap_wxDateTime_GetDayOfYear
, METH_VARARGS
| METH_KEYWORDS
},
7794 { "wxDateTime_GetMillisecond", (PyCFunction
) _wrap_wxDateTime_GetMillisecond
, METH_VARARGS
| METH_KEYWORDS
},
7795 { "wxDateTime_GetSecond", (PyCFunction
) _wrap_wxDateTime_GetSecond
, METH_VARARGS
| METH_KEYWORDS
},
7796 { "wxDateTime_GetMinute", (PyCFunction
) _wrap_wxDateTime_GetMinute
, METH_VARARGS
| METH_KEYWORDS
},
7797 { "wxDateTime_GetHour", (PyCFunction
) _wrap_wxDateTime_GetHour
, METH_VARARGS
| METH_KEYWORDS
},
7798 { "wxDateTime_GetWeekDay", (PyCFunction
) _wrap_wxDateTime_GetWeekDay
, METH_VARARGS
| METH_KEYWORDS
},
7799 { "wxDateTime_GetDay", (PyCFunction
) _wrap_wxDateTime_GetDay
, METH_VARARGS
| METH_KEYWORDS
},
7800 { "wxDateTime_GetMonth", (PyCFunction
) _wrap_wxDateTime_GetMonth
, METH_VARARGS
| METH_KEYWORDS
},
7801 { "wxDateTime_GetYear", (PyCFunction
) _wrap_wxDateTime_GetYear
, METH_VARARGS
| METH_KEYWORDS
},
7802 { "wxDateTime_GetTicks", (PyCFunction
) _wrap_wxDateTime_GetTicks
, METH_VARARGS
| METH_KEYWORDS
},
7803 { "wxDateTime_IsValid", (PyCFunction
) _wrap_wxDateTime_IsValid
, METH_VARARGS
| METH_KEYWORDS
},
7804 { "wxDateTime_IsDST", (PyCFunction
) _wrap_wxDateTime_IsDST
, METH_VARARGS
| METH_KEYWORDS
},
7805 { "wxDateTime_MakeGMT", (PyCFunction
) _wrap_wxDateTime_MakeGMT
, METH_VARARGS
| METH_KEYWORDS
},
7806 { "wxDateTime_ToGMT", (PyCFunction
) _wrap_wxDateTime_ToGMT
, METH_VARARGS
| METH_KEYWORDS
},
7807 { "wxDateTime_MakeTimezone", (PyCFunction
) _wrap_wxDateTime_MakeTimezone
, METH_VARARGS
| METH_KEYWORDS
},
7808 { "wxDateTime_ToTimezone", (PyCFunction
) _wrap_wxDateTime_ToTimezone
, METH_VARARGS
| METH_KEYWORDS
},
7809 { "wxDateTime_GetRataDie", (PyCFunction
) _wrap_wxDateTime_GetRataDie
, METH_VARARGS
| METH_KEYWORDS
},
7810 { "wxDateTime_GetMJD", (PyCFunction
) _wrap_wxDateTime_GetMJD
, METH_VARARGS
| METH_KEYWORDS
},
7811 { "wxDateTime_GetModifiedJulianDayNumber", (PyCFunction
) _wrap_wxDateTime_GetModifiedJulianDayNumber
, METH_VARARGS
| METH_KEYWORDS
},
7812 { "wxDateTime_GetJDN", (PyCFunction
) _wrap_wxDateTime_GetJDN
, METH_VARARGS
| METH_KEYWORDS
},
7813 { "wxDateTime_GetJulianDayNumber", (PyCFunction
) _wrap_wxDateTime_GetJulianDayNumber
, METH_VARARGS
| METH_KEYWORDS
},
7814 { "wxDateTime_GetYearDay", (PyCFunction
) _wrap_wxDateTime_GetYearDay
, METH_VARARGS
| METH_KEYWORDS
},
7815 { "wxDateTime_SetToYearDay", (PyCFunction
) _wrap_wxDateTime_SetToYearDay
, METH_VARARGS
| METH_KEYWORDS
},
7816 { "wxDateTime_GetLastMonthDay", (PyCFunction
) _wrap_wxDateTime_GetLastMonthDay
, METH_VARARGS
| METH_KEYWORDS
},
7817 { "wxDateTime_SetToLastMonthDay", (PyCFunction
) _wrap_wxDateTime_SetToLastMonthDay
, METH_VARARGS
| METH_KEYWORDS
},
7818 { "wxDateTime_GetWeek", (PyCFunction
) _wrap_wxDateTime_GetWeek
, METH_VARARGS
| METH_KEYWORDS
},
7819 { "wxDateTime_SetToTheWeek", (PyCFunction
) _wrap_wxDateTime_SetToTheWeek
, METH_VARARGS
| METH_KEYWORDS
},
7820 { "wxDateTime_GetLastWeekDay", (PyCFunction
) _wrap_wxDateTime_GetLastWeekDay
, METH_VARARGS
| METH_KEYWORDS
},
7821 { "wxDateTime_SetToLastWeekDay", (PyCFunction
) _wrap_wxDateTime_SetToLastWeekDay
, METH_VARARGS
| METH_KEYWORDS
},
7822 { "wxDateTime_SetToWeekDay", (PyCFunction
) _wrap_wxDateTime_SetToWeekDay
, METH_VARARGS
| METH_KEYWORDS
},
7823 { "wxDateTime_GetPrevWeekDay", (PyCFunction
) _wrap_wxDateTime_GetPrevWeekDay
, METH_VARARGS
| METH_KEYWORDS
},
7824 { "wxDateTime_SetToPrevWeekDay", (PyCFunction
) _wrap_wxDateTime_SetToPrevWeekDay
, METH_VARARGS
| METH_KEYWORDS
},
7825 { "wxDateTime_GetNextWeekDay", (PyCFunction
) _wrap_wxDateTime_GetNextWeekDay
, METH_VARARGS
| METH_KEYWORDS
},
7826 { "wxDateTime_SetToNextWeekDay", (PyCFunction
) _wrap_wxDateTime_SetToNextWeekDay
, METH_VARARGS
| METH_KEYWORDS
},
7827 { "wxDateTime_GetWeekDayInSameWeek", (PyCFunction
) _wrap_wxDateTime_GetWeekDayInSameWeek
, METH_VARARGS
| METH_KEYWORDS
},
7828 { "wxDateTime_SetToWeekDayInSameWeek", (PyCFunction
) _wrap_wxDateTime_SetToWeekDayInSameWeek
, METH_VARARGS
| METH_KEYWORDS
},
7829 { "wxDateTime_SetMillisecond", (PyCFunction
) _wrap_wxDateTime_SetMillisecond
, METH_VARARGS
| METH_KEYWORDS
},
7830 { "wxDateTime_SetSecond", (PyCFunction
) _wrap_wxDateTime_SetSecond
, METH_VARARGS
| METH_KEYWORDS
},
7831 { "wxDateTime_SetMinute", (PyCFunction
) _wrap_wxDateTime_SetMinute
, METH_VARARGS
| METH_KEYWORDS
},
7832 { "wxDateTime_SetHour", (PyCFunction
) _wrap_wxDateTime_SetHour
, METH_VARARGS
| METH_KEYWORDS
},
7833 { "wxDateTime_SetDay", (PyCFunction
) _wrap_wxDateTime_SetDay
, METH_VARARGS
| METH_KEYWORDS
},
7834 { "wxDateTime_SetMonth", (PyCFunction
) _wrap_wxDateTime_SetMonth
, METH_VARARGS
| METH_KEYWORDS
},
7835 { "wxDateTime_SetYear", (PyCFunction
) _wrap_wxDateTime_SetYear
, METH_VARARGS
| METH_KEYWORDS
},
7836 { "wxDateTime_ResetTime", (PyCFunction
) _wrap_wxDateTime_ResetTime
, METH_VARARGS
| METH_KEYWORDS
},
7837 { "wxDateTime_Set", (PyCFunction
) _wrap_wxDateTime_Set
, METH_VARARGS
| METH_KEYWORDS
},
7838 { "wxDateTime_SetHMS", (PyCFunction
) _wrap_wxDateTime_SetHMS
, METH_VARARGS
| METH_KEYWORDS
},
7839 { "wxDateTime_SetJDN", (PyCFunction
) _wrap_wxDateTime_SetJDN
, METH_VARARGS
| METH_KEYWORDS
},
7840 { "wxDateTime_SetTimeT", (PyCFunction
) _wrap_wxDateTime_SetTimeT
, METH_VARARGS
| METH_KEYWORDS
},
7841 { "wxDateTime_SetToCurrent", (PyCFunction
) _wrap_wxDateTime_SetToCurrent
, METH_VARARGS
| METH_KEYWORDS
},
7842 { "delete_wxDateTime", (PyCFunction
) _wrap_delete_wxDateTime
, METH_VARARGS
| METH_KEYWORDS
},
7843 { "new_wxDateTimeFromDMY", (PyCFunction
) _wrap_new_wxDateTimeFromDMY
, METH_VARARGS
| METH_KEYWORDS
},
7844 { "new_wxDateTimeFromHMS", (PyCFunction
) _wrap_new_wxDateTimeFromHMS
, METH_VARARGS
| METH_KEYWORDS
},
7845 { "new_wxDateTimeFromJDN", (PyCFunction
) _wrap_new_wxDateTimeFromJDN
, METH_VARARGS
| METH_KEYWORDS
},
7846 { "new_wxDateTimeFromTimeT", (PyCFunction
) _wrap_new_wxDateTimeFromTimeT
, METH_VARARGS
| METH_KEYWORDS
},
7847 { "new_wxDateTime", (PyCFunction
) _wrap_new_wxDateTime
, METH_VARARGS
| METH_KEYWORDS
},
7848 { "wxDateTime_Today", (PyCFunction
) _wrap_wxDateTime_Today
, METH_VARARGS
| METH_KEYWORDS
},
7849 { "wxDateTime_Now", (PyCFunction
) _wrap_wxDateTime_Now
, METH_VARARGS
| METH_KEYWORDS
},
7850 { "wxDateTime_GetEndDST", (PyCFunction
) _wrap_wxDateTime_GetEndDST
, METH_VARARGS
| METH_KEYWORDS
},
7851 { "wxDateTime_GetBeginDST", (PyCFunction
) _wrap_wxDateTime_GetBeginDST
, METH_VARARGS
| METH_KEYWORDS
},
7852 { "wxDateTime_IsDSTApplicable", (PyCFunction
) _wrap_wxDateTime_IsDSTApplicable
, METH_VARARGS
| METH_KEYWORDS
},
7853 { "wxDateTime_GetAmPmStrings", (PyCFunction
) _wrap_wxDateTime_GetAmPmStrings
, METH_VARARGS
| METH_KEYWORDS
},
7854 { "wxDateTime_GetWeekDayName", (PyCFunction
) _wrap_wxDateTime_GetWeekDayName
, METH_VARARGS
| METH_KEYWORDS
},
7855 { "wxDateTime_GetMonthName", (PyCFunction
) _wrap_wxDateTime_GetMonthName
, METH_VARARGS
| METH_KEYWORDS
},
7856 { "wxDateTime_GetNumberOfDaysInMonth", (PyCFunction
) _wrap_wxDateTime_GetNumberOfDaysInMonth
, METH_VARARGS
| METH_KEYWORDS
},
7857 { "wxDateTime_GetNumberOfDaysinYear", (PyCFunction
) _wrap_wxDateTime_GetNumberOfDaysinYear
, METH_VARARGS
| METH_KEYWORDS
},
7858 { "wxDateTime_GetCentury", (PyCFunction
) _wrap_wxDateTime_GetCentury
, METH_VARARGS
| METH_KEYWORDS
},
7859 { "wxDateTime_IsLeapYear", (PyCFunction
) _wrap_wxDateTime_IsLeapYear
, METH_VARARGS
| METH_KEYWORDS
},
7860 { "wxDateTime_GetCurrentMonth", (PyCFunction
) _wrap_wxDateTime_GetCurrentMonth
, METH_VARARGS
| METH_KEYWORDS
},
7861 { "wxDateTime_ConvertYearToBC", (PyCFunction
) _wrap_wxDateTime_ConvertYearToBC
, METH_VARARGS
| METH_KEYWORDS
},
7862 { "wxDateTime_GetCurrentYear", (PyCFunction
) _wrap_wxDateTime_GetCurrentYear
, METH_VARARGS
| METH_KEYWORDS
},
7863 { "wxDateTime_IsWestEuropeanCountry", (PyCFunction
) _wrap_wxDateTime_IsWestEuropeanCountry
, METH_VARARGS
| METH_KEYWORDS
},
7864 { "wxDateTime_GetCountry", (PyCFunction
) _wrap_wxDateTime_GetCountry
, METH_VARARGS
| METH_KEYWORDS
},
7865 { "wxDateTime_SetCountry", (PyCFunction
) _wrap_wxDateTime_SetCountry
, METH_VARARGS
| METH_KEYWORDS
},
7866 { "delete_wxFileConfig", (PyCFunction
) _wrap_delete_wxFileConfig
, METH_VARARGS
| METH_KEYWORDS
},
7867 { "new_wxFileConfig", (PyCFunction
) _wrap_new_wxFileConfig
, METH_VARARGS
| METH_KEYWORDS
},
7868 { "delete_wxConfig", (PyCFunction
) _wrap_delete_wxConfig
, METH_VARARGS
| METH_KEYWORDS
},
7869 { "new_wxConfig", (PyCFunction
) _wrap_new_wxConfig
, METH_VARARGS
| METH_KEYWORDS
},
7870 { "wxConfigBase_ExpandEnvVars", (PyCFunction
) _wrap_wxConfigBase_ExpandEnvVars
, METH_VARARGS
| METH_KEYWORDS
},
7871 { "wxConfigBase_RenameGroup", (PyCFunction
) _wrap_wxConfigBase_RenameGroup
, METH_VARARGS
| METH_KEYWORDS
},
7872 { "wxConfigBase_RenameEntry", (PyCFunction
) _wrap_wxConfigBase_RenameEntry
, METH_VARARGS
| METH_KEYWORDS
},
7873 { "wxConfigBase_GetEntryType", (PyCFunction
) _wrap_wxConfigBase_GetEntryType
, METH_VARARGS
| METH_KEYWORDS
},
7874 { "wxConfigBase_WriteFloat", (PyCFunction
) _wrap_wxConfigBase_WriteFloat
, METH_VARARGS
| METH_KEYWORDS
},
7875 { "wxConfigBase_WriteInt", (PyCFunction
) _wrap_wxConfigBase_WriteInt
, METH_VARARGS
| METH_KEYWORDS
},
7876 { "wxConfigBase_Write", (PyCFunction
) _wrap_wxConfigBase_Write
, METH_VARARGS
| METH_KEYWORDS
},
7877 { "wxConfigBase_GetStyle", (PyCFunction
) _wrap_wxConfigBase_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
7878 { "wxConfigBase_SetStyle", (PyCFunction
) _wrap_wxConfigBase_SetStyle
, METH_VARARGS
| METH_KEYWORDS
},
7879 { "wxConfigBase_SetVendorName", (PyCFunction
) _wrap_wxConfigBase_SetVendorName
, METH_VARARGS
| METH_KEYWORDS
},
7880 { "wxConfigBase_SetAppName", (PyCFunction
) _wrap_wxConfigBase_SetAppName
, METH_VARARGS
| METH_KEYWORDS
},
7881 { "wxConfigBase_SetRecordDefaults", (PyCFunction
) _wrap_wxConfigBase_SetRecordDefaults
, METH_VARARGS
| METH_KEYWORDS
},
7882 { "wxConfigBase_SetPath", (PyCFunction
) _wrap_wxConfigBase_SetPath
, METH_VARARGS
| METH_KEYWORDS
},
7883 { "wxConfigBase_SetExpandEnvVars", (PyCFunction
) _wrap_wxConfigBase_SetExpandEnvVars
, METH_VARARGS
| METH_KEYWORDS
},
7884 { "wxConfigBase_ReadFloat", (PyCFunction
) _wrap_wxConfigBase_ReadFloat
, METH_VARARGS
| METH_KEYWORDS
},
7885 { "wxConfigBase_ReadInt", (PyCFunction
) _wrap_wxConfigBase_ReadInt
, METH_VARARGS
| METH_KEYWORDS
},
7886 { "wxConfigBase_Read", (PyCFunction
) _wrap_wxConfigBase_Read
, METH_VARARGS
| METH_KEYWORDS
},
7887 { "wxConfigBase_IsRecordingDefaults", (PyCFunction
) _wrap_wxConfigBase_IsRecordingDefaults
, METH_VARARGS
| METH_KEYWORDS
},
7888 { "wxConfigBase_IsExpandingEnvVars", (PyCFunction
) _wrap_wxConfigBase_IsExpandingEnvVars
, METH_VARARGS
| METH_KEYWORDS
},
7889 { "wxConfigBase_HasGroup", (PyCFunction
) _wrap_wxConfigBase_HasGroup
, METH_VARARGS
| METH_KEYWORDS
},
7890 { "wxConfigBase_HasEntry", (PyCFunction
) _wrap_wxConfigBase_HasEntry
, METH_VARARGS
| METH_KEYWORDS
},
7891 { "wxConfigBase_GetVendorName", (PyCFunction
) _wrap_wxConfigBase_GetVendorName
, METH_VARARGS
| METH_KEYWORDS
},
7892 { "wxConfigBase_GetPath", (PyCFunction
) _wrap_wxConfigBase_GetPath
, METH_VARARGS
| METH_KEYWORDS
},
7893 { "wxConfigBase_GetNumberOfGroups", (PyCFunction
) _wrap_wxConfigBase_GetNumberOfGroups
, METH_VARARGS
| METH_KEYWORDS
},
7894 { "wxConfigBase_GetNumberOfEntries", (PyCFunction
) _wrap_wxConfigBase_GetNumberOfEntries
, METH_VARARGS
| METH_KEYWORDS
},
7895 { "wxConfigBase_GetNextEntry", (PyCFunction
) _wrap_wxConfigBase_GetNextEntry
, METH_VARARGS
| METH_KEYWORDS
},
7896 { "wxConfigBase_GetNextGroup", (PyCFunction
) _wrap_wxConfigBase_GetNextGroup
, METH_VARARGS
| METH_KEYWORDS
},
7897 { "wxConfigBase_GetFirstEntry", (PyCFunction
) _wrap_wxConfigBase_GetFirstEntry
, METH_VARARGS
| METH_KEYWORDS
},
7898 { "wxConfigBase_GetFirstGroup", (PyCFunction
) _wrap_wxConfigBase_GetFirstGroup
, METH_VARARGS
| METH_KEYWORDS
},
7899 { "wxConfigBase_GetAppName", (PyCFunction
) _wrap_wxConfigBase_GetAppName
, METH_VARARGS
| METH_KEYWORDS
},
7900 { "wxConfigBase_Flush", (PyCFunction
) _wrap_wxConfigBase_Flush
, METH_VARARGS
| METH_KEYWORDS
},
7901 { "wxConfigBase_Exists", (PyCFunction
) _wrap_wxConfigBase_Exists
, METH_VARARGS
| METH_KEYWORDS
},
7902 { "wxConfigBase_DeleteGroup", (PyCFunction
) _wrap_wxConfigBase_DeleteGroup
, METH_VARARGS
| METH_KEYWORDS
},
7903 { "wxConfigBase_DeleteEntry", (PyCFunction
) _wrap_wxConfigBase_DeleteEntry
, METH_VARARGS
| METH_KEYWORDS
},
7904 { "wxConfigBase_DeleteAll", (PyCFunction
) _wrap_wxConfigBase_DeleteAll
, METH_VARARGS
| METH_KEYWORDS
},
7905 { "wxConfigBase_DontCreateOnDemand", (PyCFunction
) _wrap_wxConfigBase_DontCreateOnDemand
, METH_VARARGS
| METH_KEYWORDS
},
7906 { "wxConfigBase_Create", (PyCFunction
) _wrap_wxConfigBase_Create
, METH_VARARGS
| METH_KEYWORDS
},
7907 { "wxConfigBase_Get", (PyCFunction
) _wrap_wxConfigBase_Get
, METH_VARARGS
| METH_KEYWORDS
},
7908 { "wxConfigBase_Set", (PyCFunction
) _wrap_wxConfigBase_Set
, METH_VARARGS
| METH_KEYWORDS
},
7909 { "delete_wxConfigBase", (PyCFunction
) _wrap_delete_wxConfigBase
, METH_VARARGS
| METH_KEYWORDS
},
7910 { "wxGetLocalTimeMillis", (PyCFunction
) _wrap_wxGetLocalTimeMillis
, METH_VARARGS
| METH_KEYWORDS
},
7911 { "wxGetCurrentTime", (PyCFunction
) _wrap_wxGetCurrentTime
, METH_VARARGS
| METH_KEYWORDS
},
7912 { "wxGetUTCTime", (PyCFunction
) _wrap_wxGetUTCTime
, METH_VARARGS
| METH_KEYWORDS
},
7913 { "wxGetLocalTime", (PyCFunction
) _wrap_wxGetLocalTime
, METH_VARARGS
| METH_KEYWORDS
},
7920 * This table is used by the pointer type-checker
7922 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
7923 { "_signed_long","_long",0},
7924 { "_wxPrintQuality","_wxCoord",0},
7925 { "_wxPrintQuality","_int",0},
7926 { "_wxPrintQuality","_signed_int",0},
7927 { "_wxPrintQuality","_unsigned_int",0},
7928 { "_wxPrintQuality","_wxWindowID",0},
7929 { "_wxPrintQuality","_uint",0},
7930 { "_wxPrintQuality","_EBool",0},
7931 { "_wxPrintQuality","_size_t",0},
7932 { "_wxPrintQuality","_time_t",0},
7933 { "_byte","_unsigned_char",0},
7934 { "_long","_unsigned_long",0},
7935 { "_long","_signed_long",0},
7936 { "_size_t","_wxCoord",0},
7937 { "_size_t","_wxPrintQuality",0},
7938 { "_size_t","_time_t",0},
7939 { "_size_t","_unsigned_int",0},
7940 { "_size_t","_int",0},
7941 { "_size_t","_wxWindowID",0},
7942 { "_size_t","_uint",0},
7943 { "_uint","_wxCoord",0},
7944 { "_uint","_wxPrintQuality",0},
7945 { "_uint","_time_t",0},
7946 { "_uint","_size_t",0},
7947 { "_uint","_unsigned_int",0},
7948 { "_uint","_int",0},
7949 { "_uint","_wxWindowID",0},
7950 { "_wxChar","_char",0},
7951 { "_char","_wxChar",0},
7952 { "_EBool","_wxCoord",0},
7953 { "_EBool","_wxPrintQuality",0},
7954 { "_EBool","_signed_int",0},
7955 { "_EBool","_int",0},
7956 { "_EBool","_wxWindowID",0},
7957 { "_unsigned_long","_long",0},
7958 { "_signed_int","_wxCoord",0},
7959 { "_signed_int","_wxPrintQuality",0},
7960 { "_signed_int","_EBool",0},
7961 { "_signed_int","_wxWindowID",0},
7962 { "_signed_int","_int",0},
7963 { "_WXTYPE","_wxDateTime_t",0},
7964 { "_WXTYPE","_short",0},
7965 { "_WXTYPE","_signed_short",0},
7966 { "_WXTYPE","_unsigned_short",0},
7967 { "_unsigned_short","_wxDateTime_t",0},
7968 { "_unsigned_short","_WXTYPE",0},
7969 { "_unsigned_short","_short",0},
7970 { "_signed_short","_WXTYPE",0},
7971 { "_signed_short","_short",0},
7972 { "_unsigned_char","_byte",0},
7973 { "_unsigned_int","_wxCoord",0},
7974 { "_unsigned_int","_wxPrintQuality",0},
7975 { "_unsigned_int","_time_t",0},
7976 { "_unsigned_int","_size_t",0},
7977 { "_unsigned_int","_uint",0},
7978 { "_unsigned_int","_wxWindowID",0},
7979 { "_unsigned_int","_int",0},
7980 { "_wxConfigBase","_class_wxFileConfig",SwigwxFileConfigTowxConfigBase
},
7981 { "_wxConfigBase","_wxFileConfig",SwigwxFileConfigTowxConfigBase
},
7982 { "_wxConfigBase","_class_wxConfig",SwigwxConfigTowxConfigBase
},
7983 { "_wxConfigBase","_wxConfig",SwigwxConfigTowxConfigBase
},
7984 { "_short","_wxDateTime_t",0},
7985 { "_short","_WXTYPE",0},
7986 { "_short","_unsigned_short",0},
7987 { "_short","_signed_short",0},
7988 { "_wxWindowID","_wxCoord",0},
7989 { "_wxWindowID","_wxPrintQuality",0},
7990 { "_wxWindowID","_time_t",0},
7991 { "_wxWindowID","_size_t",0},
7992 { "_wxWindowID","_EBool",0},
7993 { "_wxWindowID","_uint",0},
7994 { "_wxWindowID","_int",0},
7995 { "_wxWindowID","_signed_int",0},
7996 { "_wxWindowID","_unsigned_int",0},
7997 { "_int","_wxCoord",0},
7998 { "_int","_wxPrintQuality",0},
7999 { "_int","_time_t",0},
8000 { "_int","_size_t",0},
8001 { "_int","_EBool",0},
8002 { "_int","_uint",0},
8003 { "_int","_wxWindowID",0},
8004 { "_int","_unsigned_int",0},
8005 { "_int","_signed_int",0},
8006 { "_wxDateTime_t","_unsigned_short",0},
8007 { "_wxDateTime_t","_short",0},
8008 { "_wxDateTime_t","_WXTYPE",0},
8009 { "_time_t","_wxCoord",0},
8010 { "_time_t","_wxPrintQuality",0},
8011 { "_time_t","_unsigned_int",0},
8012 { "_time_t","_int",0},
8013 { "_time_t","_wxWindowID",0},
8014 { "_time_t","_uint",0},
8015 { "_time_t","_size_t",0},
8016 { "_class_wxConfigBase","_class_wxFileConfig",SwigwxFileConfigTowxConfigBase
},
8017 { "_class_wxConfigBase","_wxFileConfig",SwigwxFileConfigTowxConfigBase
},
8018 { "_class_wxConfigBase","_class_wxConfig",SwigwxConfigTowxConfigBase
},
8019 { "_class_wxConfigBase","_wxConfig",SwigwxConfigTowxConfigBase
},
8020 { "_wxCoord","_int",0},
8021 { "_wxCoord","_signed_int",0},
8022 { "_wxCoord","_unsigned_int",0},
8023 { "_wxCoord","_wxWindowID",0},
8024 { "_wxCoord","_uint",0},
8025 { "_wxCoord","_EBool",0},
8026 { "_wxCoord","_size_t",0},
8027 { "_wxCoord","_time_t",0},
8028 { "_wxCoord","_wxPrintQuality",0},
8031 static PyObject
*SWIG_globals
;
8035 SWIGEXPORT(void) initutilsc() {
8037 SWIG_globals
= SWIG_newvarlink();
8038 m
= Py_InitModule("utilsc", utilscMethods
);
8039 d
= PyModule_GetDict(m
);
8040 PyDict_SetItemString(d
,"wxCONFIG_USE_LOCAL_FILE", PyInt_FromLong((long) wxCONFIG_USE_LOCAL_FILE
));
8041 PyDict_SetItemString(d
,"wxCONFIG_USE_GLOBAL_FILE", PyInt_FromLong((long) wxCONFIG_USE_GLOBAL_FILE
));
8042 PyDict_SetItemString(d
,"wxCONFIG_USE_RELATIVE_PATH", PyInt_FromLong((long) wxCONFIG_USE_RELATIVE_PATH
));
8044 wxClassInfo::CleanUpClasses();
8045 wxClassInfo::InitializeClasses();
8046 PyDict_SetItemString(d
,"wxConfigBase_Type_Unknown", PyInt_FromLong((long) wxConfigBase::Type_Unknown
));
8047 PyDict_SetItemString(d
,"wxConfigBase_Type_String", PyInt_FromLong((long) wxConfigBase::Type_String
));
8048 PyDict_SetItemString(d
,"wxConfigBase_Type_Boolean", PyInt_FromLong((long) wxConfigBase::Type_Boolean
));
8049 PyDict_SetItemString(d
,"wxConfigBase_Type_Integer", PyInt_FromLong((long) wxConfigBase::Type_Integer
));
8050 PyDict_SetItemString(d
,"wxConfigBase_Type_Float", PyInt_FromLong((long) wxConfigBase::Type_Float
));
8051 PyDict_SetItemString(d
,"wxDateTime_Local", PyInt_FromLong((long) wxDateTime::Local
));
8052 PyDict_SetItemString(d
,"wxDateTime_GMT_12", PyInt_FromLong((long) wxDateTime::GMT_12
));
8053 PyDict_SetItemString(d
,"wxDateTime_GMT_11", PyInt_FromLong((long) wxDateTime::GMT_11
));
8054 PyDict_SetItemString(d
,"wxDateTime_GMT_10", PyInt_FromLong((long) wxDateTime::GMT_10
));
8055 PyDict_SetItemString(d
,"wxDateTime_GMT_9", PyInt_FromLong((long) wxDateTime::GMT_9
));
8056 PyDict_SetItemString(d
,"wxDateTime_GMT_8", PyInt_FromLong((long) wxDateTime::GMT_8
));
8057 PyDict_SetItemString(d
,"wxDateTime_GMT_7", PyInt_FromLong((long) wxDateTime::GMT_7
));
8058 PyDict_SetItemString(d
,"wxDateTime_GMT_6", PyInt_FromLong((long) wxDateTime::GMT_6
));
8059 PyDict_SetItemString(d
,"wxDateTime_GMT_5", PyInt_FromLong((long) wxDateTime::GMT_5
));
8060 PyDict_SetItemString(d
,"wxDateTime_GMT_4", PyInt_FromLong((long) wxDateTime::GMT_4
));
8061 PyDict_SetItemString(d
,"wxDateTime_GMT_3", PyInt_FromLong((long) wxDateTime::GMT_3
));
8062 PyDict_SetItemString(d
,"wxDateTime_GMT_2", PyInt_FromLong((long) wxDateTime::GMT_2
));
8063 PyDict_SetItemString(d
,"wxDateTime_GMT_1", PyInt_FromLong((long) wxDateTime::GMT_1
));
8064 PyDict_SetItemString(d
,"wxDateTime_GMT0", PyInt_FromLong((long) wxDateTime::GMT0
));
8065 PyDict_SetItemString(d
,"wxDateTime_GMT1", PyInt_FromLong((long) wxDateTime::GMT1
));
8066 PyDict_SetItemString(d
,"wxDateTime_GMT2", PyInt_FromLong((long) wxDateTime::GMT2
));
8067 PyDict_SetItemString(d
,"wxDateTime_GMT3", PyInt_FromLong((long) wxDateTime::GMT3
));
8068 PyDict_SetItemString(d
,"wxDateTime_GMT4", PyInt_FromLong((long) wxDateTime::GMT4
));
8069 PyDict_SetItemString(d
,"wxDateTime_GMT5", PyInt_FromLong((long) wxDateTime::GMT5
));
8070 PyDict_SetItemString(d
,"wxDateTime_GMT6", PyInt_FromLong((long) wxDateTime::GMT6
));
8071 PyDict_SetItemString(d
,"wxDateTime_GMT7", PyInt_FromLong((long) wxDateTime::GMT7
));
8072 PyDict_SetItemString(d
,"wxDateTime_GMT8", PyInt_FromLong((long) wxDateTime::GMT8
));
8073 PyDict_SetItemString(d
,"wxDateTime_GMT9", PyInt_FromLong((long) wxDateTime::GMT9
));
8074 PyDict_SetItemString(d
,"wxDateTime_GMT10", PyInt_FromLong((long) wxDateTime::GMT10
));
8075 PyDict_SetItemString(d
,"wxDateTime_GMT11", PyInt_FromLong((long) wxDateTime::GMT11
));
8076 PyDict_SetItemString(d
,"wxDateTime_GMT12", PyInt_FromLong((long) wxDateTime::GMT12
));
8077 PyDict_SetItemString(d
,"wxDateTime_WET", PyInt_FromLong((long) wxDateTime::WET
));
8078 PyDict_SetItemString(d
,"wxDateTime_WEST", PyInt_FromLong((long) wxDateTime::WEST
));
8079 PyDict_SetItemString(d
,"wxDateTime_CET", PyInt_FromLong((long) wxDateTime::CET
));
8080 PyDict_SetItemString(d
,"wxDateTime_CEST", PyInt_FromLong((long) wxDateTime::CEST
));
8081 PyDict_SetItemString(d
,"wxDateTime_EET", PyInt_FromLong((long) wxDateTime::EET
));
8082 PyDict_SetItemString(d
,"wxDateTime_EEST", PyInt_FromLong((long) wxDateTime::EEST
));
8083 PyDict_SetItemString(d
,"wxDateTime_MSK", PyInt_FromLong((long) wxDateTime::MSK
));
8084 PyDict_SetItemString(d
,"wxDateTime_MSD", PyInt_FromLong((long) wxDateTime::MSD
));
8085 PyDict_SetItemString(d
,"wxDateTime_AST", PyInt_FromLong((long) wxDateTime::AST
));
8086 PyDict_SetItemString(d
,"wxDateTime_ADT", PyInt_FromLong((long) wxDateTime::ADT
));
8087 PyDict_SetItemString(d
,"wxDateTime_EST", PyInt_FromLong((long) wxDateTime::EST
));
8088 PyDict_SetItemString(d
,"wxDateTime_EDT", PyInt_FromLong((long) wxDateTime::EDT
));
8089 PyDict_SetItemString(d
,"wxDateTime_CST", PyInt_FromLong((long) wxDateTime::CST
));
8090 PyDict_SetItemString(d
,"wxDateTime_CDT", PyInt_FromLong((long) wxDateTime::CDT
));
8091 PyDict_SetItemString(d
,"wxDateTime_MST", PyInt_FromLong((long) wxDateTime::MST
));
8092 PyDict_SetItemString(d
,"wxDateTime_MDT", PyInt_FromLong((long) wxDateTime::MDT
));
8093 PyDict_SetItemString(d
,"wxDateTime_PST", PyInt_FromLong((long) wxDateTime::PST
));
8094 PyDict_SetItemString(d
,"wxDateTime_PDT", PyInt_FromLong((long) wxDateTime::PDT
));
8095 PyDict_SetItemString(d
,"wxDateTime_HST", PyInt_FromLong((long) wxDateTime::HST
));
8096 PyDict_SetItemString(d
,"wxDateTime_AKST", PyInt_FromLong((long) wxDateTime::AKST
));
8097 PyDict_SetItemString(d
,"wxDateTime_AKDT", PyInt_FromLong((long) wxDateTime::AKDT
));
8098 PyDict_SetItemString(d
,"wxDateTime_A_WST", PyInt_FromLong((long) wxDateTime::A_WST
));
8099 PyDict_SetItemString(d
,"wxDateTime_A_CST", PyInt_FromLong((long) wxDateTime::A_CST
));
8100 PyDict_SetItemString(d
,"wxDateTime_A_EST", PyInt_FromLong((long) wxDateTime::A_EST
));
8101 PyDict_SetItemString(d
,"wxDateTime_A_ESST", PyInt_FromLong((long) wxDateTime::A_ESST
));
8102 PyDict_SetItemString(d
,"wxDateTime_UTC", PyInt_FromLong((long) wxDateTime::UTC
));
8103 PyDict_SetItemString(d
,"wxDateTime_Gregorian", PyInt_FromLong((long) wxDateTime::Gregorian
));
8104 PyDict_SetItemString(d
,"wxDateTime_Julian", PyInt_FromLong((long) wxDateTime::Julian
));
8105 PyDict_SetItemString(d
,"wxDateTime_Country_Unknown", PyInt_FromLong((long) wxDateTime::Country_Unknown
));
8106 PyDict_SetItemString(d
,"wxDateTime_Country_Default", PyInt_FromLong((long) wxDateTime::Country_Default
));
8107 PyDict_SetItemString(d
,"wxDateTime_Country_WesternEurope_Start", PyInt_FromLong((long) wxDateTime::Country_WesternEurope_Start
));
8108 PyDict_SetItemString(d
,"wxDateTime_Country_EEC", PyInt_FromLong((long) wxDateTime::Country_EEC
));
8109 PyDict_SetItemString(d
,"wxDateTime_France", PyInt_FromLong((long) wxDateTime::France
));
8110 PyDict_SetItemString(d
,"wxDateTime_Germany", PyInt_FromLong((long) wxDateTime::Germany
));
8111 PyDict_SetItemString(d
,"wxDateTime_UK", PyInt_FromLong((long) wxDateTime::UK
));
8112 PyDict_SetItemString(d
,"wxDateTime_Country_WesternEurope_End", PyInt_FromLong((long) wxDateTime::Country_WesternEurope_End
));
8113 PyDict_SetItemString(d
,"wxDateTime_Russia", PyInt_FromLong((long) wxDateTime::Russia
));
8114 PyDict_SetItemString(d
,"wxDateTime_USA", PyInt_FromLong((long) wxDateTime::USA
));
8115 PyDict_SetItemString(d
,"wxDateTime_Jan", PyInt_FromLong((long) wxDateTime::Jan
));
8116 PyDict_SetItemString(d
,"wxDateTime_Feb", PyInt_FromLong((long) wxDateTime::Feb
));
8117 PyDict_SetItemString(d
,"wxDateTime_Mar", PyInt_FromLong((long) wxDateTime::Mar
));
8118 PyDict_SetItemString(d
,"wxDateTime_Apr", PyInt_FromLong((long) wxDateTime::Apr
));
8119 PyDict_SetItemString(d
,"wxDateTime_May", PyInt_FromLong((long) wxDateTime::May
));
8120 PyDict_SetItemString(d
,"wxDateTime_Jun", PyInt_FromLong((long) wxDateTime::Jun
));
8121 PyDict_SetItemString(d
,"wxDateTime_Jul", PyInt_FromLong((long) wxDateTime::Jul
));
8122 PyDict_SetItemString(d
,"wxDateTime_Aug", PyInt_FromLong((long) wxDateTime::Aug
));
8123 PyDict_SetItemString(d
,"wxDateTime_Sep", PyInt_FromLong((long) wxDateTime::Sep
));
8124 PyDict_SetItemString(d
,"wxDateTime_Oct", PyInt_FromLong((long) wxDateTime::Oct
));
8125 PyDict_SetItemString(d
,"wxDateTime_Nov", PyInt_FromLong((long) wxDateTime::Nov
));
8126 PyDict_SetItemString(d
,"wxDateTime_Dec", PyInt_FromLong((long) wxDateTime::Dec
));
8127 PyDict_SetItemString(d
,"wxDateTime_Inv_Month", PyInt_FromLong((long) wxDateTime::Inv_Month
));
8128 PyDict_SetItemString(d
,"wxDateTime_Sun", PyInt_FromLong((long) wxDateTime::Sun
));
8129 PyDict_SetItemString(d
,"wxDateTime_Mon", PyInt_FromLong((long) wxDateTime::Mon
));
8130 PyDict_SetItemString(d
,"wxDateTime_Tue", PyInt_FromLong((long) wxDateTime::Tue
));
8131 PyDict_SetItemString(d
,"wxDateTime_Wed", PyInt_FromLong((long) wxDateTime::Wed
));
8132 PyDict_SetItemString(d
,"wxDateTime_Thu", PyInt_FromLong((long) wxDateTime::Thu
));
8133 PyDict_SetItemString(d
,"wxDateTime_Fri", PyInt_FromLong((long) wxDateTime::Fri
));
8134 PyDict_SetItemString(d
,"wxDateTime_Sat", PyInt_FromLong((long) wxDateTime::Sat
));
8135 PyDict_SetItemString(d
,"wxDateTime_Inv_WeekDay", PyInt_FromLong((long) wxDateTime::Inv_WeekDay
));
8136 PyDict_SetItemString(d
,"wxDateTime_Inv_Year", PyInt_FromLong((long) wxDateTime::Inv_Year
));
8137 PyDict_SetItemString(d
,"wxDateTime_Name_Full", PyInt_FromLong((long) wxDateTime::Name_Full
));
8138 PyDict_SetItemString(d
,"wxDateTime_Name_Abbr", PyInt_FromLong((long) wxDateTime::Name_Abbr
));
8139 PyDict_SetItemString(d
,"wxDateTime_Default_First", PyInt_FromLong((long) wxDateTime::Default_First
));
8140 PyDict_SetItemString(d
,"wxDateTime_Monday_First", PyInt_FromLong((long) wxDateTime::Monday_First
));
8141 PyDict_SetItemString(d
,"wxDateTime_Sunday_First", PyInt_FromLong((long) wxDateTime::Sunday_First
));
8144 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
8145 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);