]>
Commit | Line | Data |
---|---|---|
f6bcfd97 | 1 | /* |
c368d904 | 2 | * FILE : src/gtk/utils.cpp |
f6bcfd97 BP |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 6 | * Version 1.1 (Build 883) |
f6bcfd97 BP |
7 | * |
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. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
27 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
1c09ae54 | 30 | # define SWIGEXPORT(a) a _export |
f6bcfd97 | 31 | # else |
1c09ae54 | 32 | # define SWIGEXPORT(a) a |
f6bcfd97 BP |
33 | # endif |
34 | # endif | |
35 | #else | |
1c09ae54 | 36 | # define SWIGEXPORT(a) a |
f6bcfd97 BP |
37 | #endif |
38 | ||
1c09ae54 RD |
39 | #include "Python.h" |
40 | ||
f6bcfd97 BP |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
1c09ae54 | 44 | |
f6bcfd97 BP |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
54 | #define SWIG_init initutilsc | |
55 | ||
56 | #define SWIG_name "utilsc" | |
57 | ||
b68dc582 | 58 | #include "export.h" |
f6bcfd97 BP |
59 | #include <wx/config.h> |
60 | #include <wx/fileconf.h> | |
61 | #include <wx/datetime.h> | |
62 | ||
63 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
64 | PyObject* o2; | |
1c09ae54 | 65 | if (!target) { |
f6bcfd97 | 66 | target = o; |
1c09ae54 | 67 | } else if (target == Py_None) { |
f6bcfd97 BP |
68 | Py_DECREF(Py_None); |
69 | target = o; | |
1c09ae54 | 70 | } else { |
f6bcfd97 BP |
71 | if (!PyList_Check(target)) { |
72 | o2 = target; | |
73 | target = PyList_New(0); | |
74 | PyList_Append(target, o2); | |
75 | Py_XDECREF(o2); | |
76 | } | |
77 | PyList_Append(target,o); | |
78 | Py_XDECREF(o); | |
79 | } | |
80 | return target; | |
81 | } | |
82 | ||
83 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
84 | PyObject* o2; | |
85 | PyObject* o3; | |
86 | ||
1c09ae54 | 87 | if (!target) { |
f6bcfd97 | 88 | target = o; |
1c09ae54 | 89 | } else if (target == Py_None) { |
f6bcfd97 BP |
90 | Py_DECREF(Py_None); |
91 | target = o; | |
1c09ae54 | 92 | } else { |
f6bcfd97 BP |
93 | if (!PyTuple_Check(target)) { |
94 | o2 = target; | |
95 | target = PyTuple_New(1); | |
96 | PyTuple_SetItem(target, 0, o2); | |
97 | } | |
1c09ae54 RD |
98 | o3 = PyTuple_New(1); |
99 | PyTuple_SetItem(o3, 0, o); | |
f6bcfd97 BP |
100 | |
101 | o2 = target; | |
1c09ae54 RD |
102 | target = PySequence_Concat(o2, o3); |
103 | Py_DECREF(o2); | |
f6bcfd97 BP |
104 | Py_DECREF(o3); |
105 | } | |
106 | return target; | |
107 | } | |
108 | ||
109 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
110 | ||
b68dc582 RD |
111 | static wxString wxPyEmptyStr(""); |
112 | ||
f6bcfd97 BP |
113 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { |
114 | PyObject* ret = PyTuple_New(3); | |
115 | if (ret) { | |
116 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
117 | PyTuple_SET_ITEM(ret, 1, PyString_FromString(str)); | |
118 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
119 | } | |
120 | return ret; | |
121 | } | |
122 | ||
123 | #define LOCAL *(new wxDateTime::TimeZone(wxDateTime::Local)) | |
124 | #ifdef __cplusplus | |
125 | extern "C" { | |
126 | #endif | |
127 | static PyObject *_wrap_wxGetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
128 | PyObject * _resultobj; | |
129 | long _result; | |
130 | char *_kwnames[] = { NULL }; | |
131 | ||
132 | self = self; | |
133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetLocalTime",_kwnames)) | |
134 | return NULL; | |
135 | { | |
136 | wxPy_BEGIN_ALLOW_THREADS; | |
137 | _result = (long )wxGetLocalTime(); | |
138 | ||
139 | wxPy_END_ALLOW_THREADS; | |
140 | } _resultobj = Py_BuildValue("l",_result); | |
141 | return _resultobj; | |
142 | } | |
143 | ||
144 | static PyObject *_wrap_wxGetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
145 | PyObject * _resultobj; | |
146 | long _result; | |
147 | char *_kwnames[] = { NULL }; | |
148 | ||
149 | self = self; | |
150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetUTCTime",_kwnames)) | |
151 | return NULL; | |
152 | { | |
153 | wxPy_BEGIN_ALLOW_THREADS; | |
154 | _result = (long )wxGetUTCTime(); | |
155 | ||
156 | wxPy_END_ALLOW_THREADS; | |
157 | } _resultobj = Py_BuildValue("l",_result); | |
158 | return _resultobj; | |
159 | } | |
160 | ||
161 | static PyObject *_wrap_wxGetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
162 | PyObject * _resultobj; | |
163 | long _result; | |
164 | char *_kwnames[] = { NULL }; | |
165 | ||
166 | self = self; | |
167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetCurrentTime",_kwnames)) | |
168 | return NULL; | |
169 | { | |
170 | wxPy_BEGIN_ALLOW_THREADS; | |
171 | _result = (long )wxGetCurrentTime(); | |
172 | ||
173 | wxPy_END_ALLOW_THREADS; | |
174 | } _resultobj = Py_BuildValue("l",_result); | |
175 | return _resultobj; | |
176 | } | |
177 | ||
178 | static PyObject *_wrap_wxGetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) { | |
179 | PyObject * _resultobj; | |
180 | wxLongLong * _result; | |
181 | char *_kwnames[] = { NULL }; | |
182 | ||
183 | self = self; | |
184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetLocalTimeMillis",_kwnames)) | |
185 | return NULL; | |
186 | { | |
187 | wxPy_BEGIN_ALLOW_THREADS; | |
188 | _result = new wxLongLong (wxGetLocalTimeMillis()); | |
189 | ||
190 | wxPy_END_ALLOW_THREADS; | |
191 | }{ | |
192 | PyObject *hi, *lo, *shifter, *shifted; | |
193 | hi = PyLong_FromLong(_result->GetHi()); | |
194 | lo = PyLong_FromLong(_result->GetLo()); | |
195 | shifter = PyLong_FromLong(32); | |
196 | shifted = PyNumber_Lshift(hi, shifter); | |
197 | _resultobj = PyNumber_Or(shifted, lo); | |
198 | Py_DECREF(hi); | |
199 | Py_DECREF(lo); | |
200 | Py_DECREF(shifter); | |
201 | Py_DECREF(shifted); | |
202 | } | |
203 | return _resultobj; | |
204 | } | |
205 | ||
206 | #define delete_wxConfigBase(_swigobj) (delete _swigobj) | |
207 | static PyObject *_wrap_delete_wxConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
208 | PyObject * _resultobj; | |
209 | wxConfigBase * _arg0; | |
210 | PyObject * _argo0 = 0; | |
211 | char *_kwnames[] = { "self", NULL }; | |
212 | ||
213 | self = self; | |
214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxConfigBase",_kwnames,&_argo0)) | |
215 | return NULL; | |
216 | if (_argo0) { | |
217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxConfigBase. Expected _wxConfigBase_p."); | |
220 | return NULL; | |
221 | } | |
222 | } | |
223 | { | |
224 | wxPy_BEGIN_ALLOW_THREADS; | |
225 | delete_wxConfigBase(_arg0); | |
226 | ||
227 | wxPy_END_ALLOW_THREADS; | |
228 | } Py_INCREF(Py_None); | |
229 | _resultobj = Py_None; | |
230 | return _resultobj; | |
231 | } | |
232 | ||
233 | static PyObject *_wrap_wxConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
234 | PyObject * _resultobj; | |
235 | wxConfigBase * _result; | |
236 | wxConfigBase * _arg0; | |
237 | PyObject * _argo0 = 0; | |
238 | char *_kwnames[] = { "pConfig", NULL }; | |
239 | char _ptemp[128]; | |
240 | ||
241 | self = self; | |
242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfigBase_Set",_kwnames,&_argo0)) | |
243 | return NULL; | |
244 | if (_argo0) { | |
245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_Set. Expected _wxConfigBase_p."); | |
248 | return NULL; | |
249 | } | |
250 | } | |
251 | { | |
252 | wxPy_BEGIN_ALLOW_THREADS; | |
253 | _result = (wxConfigBase *)wxConfigBase::Set(_arg0); | |
254 | ||
255 | wxPy_END_ALLOW_THREADS; | |
256 | } if (_result) { | |
257 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxConfigBase_p"); | |
258 | _resultobj = Py_BuildValue("s",_ptemp); | |
259 | } else { | |
260 | Py_INCREF(Py_None); | |
261 | _resultobj = Py_None; | |
262 | } | |
263 | return _resultobj; | |
264 | } | |
265 | ||
266 | static PyObject *_wrap_wxConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
267 | PyObject * _resultobj; | |
268 | wxConfigBase * _result; | |
269 | bool _arg0 = (bool ) TRUE; | |
270 | int tempbool0 = (int) TRUE; | |
271 | char *_kwnames[] = { "createOnDemand", NULL }; | |
272 | char _ptemp[128]; | |
273 | ||
274 | self = self; | |
275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxConfigBase_Get",_kwnames,&tempbool0)) | |
276 | return NULL; | |
277 | _arg0 = (bool ) tempbool0; | |
278 | { | |
279 | wxPy_BEGIN_ALLOW_THREADS; | |
280 | _result = (wxConfigBase *)wxConfigBase::Get(_arg0); | |
281 | ||
282 | wxPy_END_ALLOW_THREADS; | |
283 | } if (_result) { | |
284 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxConfigBase_p"); | |
285 | _resultobj = Py_BuildValue("s",_ptemp); | |
286 | } else { | |
287 | Py_INCREF(Py_None); | |
288 | _resultobj = Py_None; | |
289 | } | |
290 | return _resultobj; | |
291 | } | |
292 | ||
293 | static PyObject *_wrap_wxConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
294 | PyObject * _resultobj; | |
295 | wxConfigBase * _result; | |
296 | char *_kwnames[] = { NULL }; | |
297 | char _ptemp[128]; | |
298 | ||
299 | self = self; | |
300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxConfigBase_Create",_kwnames)) | |
301 | return NULL; | |
302 | { | |
303 | wxPy_BEGIN_ALLOW_THREADS; | |
304 | _result = (wxConfigBase *)wxConfigBase::Create(); | |
305 | ||
306 | wxPy_END_ALLOW_THREADS; | |
307 | } if (_result) { | |
308 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxConfigBase_p"); | |
309 | _resultobj = Py_BuildValue("s",_ptemp); | |
310 | } else { | |
311 | Py_INCREF(Py_None); | |
312 | _resultobj = Py_None; | |
313 | } | |
314 | return _resultobj; | |
315 | } | |
316 | ||
317 | static PyObject *_wrap_wxConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
318 | PyObject * _resultobj; | |
319 | char *_kwnames[] = { NULL }; | |
320 | ||
321 | self = self; | |
322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxConfigBase_DontCreateOnDemand",_kwnames)) | |
323 | return NULL; | |
324 | { | |
325 | wxPy_BEGIN_ALLOW_THREADS; | |
326 | wxConfigBase::DontCreateOnDemand(); | |
327 | ||
328 | wxPy_END_ALLOW_THREADS; | |
329 | } Py_INCREF(Py_None); | |
330 | _resultobj = Py_None; | |
331 | return _resultobj; | |
332 | } | |
333 | ||
334 | #define wxConfigBase_DeleteAll(_swigobj) (_swigobj->DeleteAll()) | |
335 | static PyObject *_wrap_wxConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
336 | PyObject * _resultobj; | |
337 | bool _result; | |
338 | wxConfigBase * _arg0; | |
339 | PyObject * _argo0 = 0; | |
340 | char *_kwnames[] = { "self", NULL }; | |
341 | ||
342 | self = self; | |
343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfigBase_DeleteAll",_kwnames,&_argo0)) | |
344 | return NULL; | |
345 | if (_argo0) { | |
346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_DeleteAll. Expected _wxConfigBase_p."); | |
349 | return NULL; | |
350 | } | |
351 | } | |
352 | { | |
353 | wxPy_BEGIN_ALLOW_THREADS; | |
354 | _result = (bool )wxConfigBase_DeleteAll(_arg0); | |
355 | ||
356 | wxPy_END_ALLOW_THREADS; | |
357 | } _resultobj = Py_BuildValue("i",_result); | |
358 | return _resultobj; | |
359 | } | |
360 | ||
361 | #define wxConfigBase_DeleteEntry(_swigobj,_swigarg0,_swigarg1) (_swigobj->DeleteEntry(_swigarg0,_swigarg1)) | |
362 | static PyObject *_wrap_wxConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
363 | PyObject * _resultobj; | |
364 | bool _result; | |
365 | wxConfigBase * _arg0; | |
366 | wxString * _arg1; | |
367 | bool _arg2 = (bool ) TRUE; | |
368 | PyObject * _argo0 = 0; | |
369 | PyObject * _obj1 = 0; | |
370 | int tempbool2 = (int) TRUE; | |
371 | char *_kwnames[] = { "self","key","bDeleteGroupIfEmpty", NULL }; | |
372 | ||
373 | self = self; | |
374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxConfigBase_DeleteEntry",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
375 | return NULL; | |
376 | if (_argo0) { | |
377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_DeleteEntry. Expected _wxConfigBase_p."); | |
380 | return NULL; | |
381 | } | |
382 | } | |
383 | { | |
2cd2fac8 RD |
384 | #if PYTHON_API_VERSION >= 1009 |
385 | char* tmpPtr; int tmpSize; | |
386 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
387 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
388 | return NULL; | |
389 | } | |
390 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
391 | return NULL; | |
392 | _arg1 = new wxString(tmpPtr, tmpSize); | |
393 | #else | |
f6bcfd97 BP |
394 | if (!PyString_Check(_obj1)) { |
395 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
396 | return NULL; | |
397 | } | |
2cd2fac8 RD |
398 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
399 | #endif | |
f6bcfd97 BP |
400 | } |
401 | _arg2 = (bool ) tempbool2; | |
402 | { | |
403 | wxPy_BEGIN_ALLOW_THREADS; | |
404 | _result = (bool )wxConfigBase_DeleteEntry(_arg0,*_arg1,_arg2); | |
405 | ||
406 | wxPy_END_ALLOW_THREADS; | |
407 | } _resultobj = Py_BuildValue("i",_result); | |
408 | { | |
409 | if (_obj1) | |
410 | delete _arg1; | |
411 | } | |
412 | return _resultobj; | |
413 | } | |
414 | ||
415 | #define wxConfigBase_DeleteGroup(_swigobj,_swigarg0) (_swigobj->DeleteGroup(_swigarg0)) | |
416 | static PyObject *_wrap_wxConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
417 | PyObject * _resultobj; | |
418 | bool _result; | |
419 | wxConfigBase * _arg0; | |
420 | wxString * _arg1; | |
421 | PyObject * _argo0 = 0; | |
422 | PyObject * _obj1 = 0; | |
423 | char *_kwnames[] = { "self","key", NULL }; | |
424 | ||
425 | self = self; | |
426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxConfigBase_DeleteGroup",_kwnames,&_argo0,&_obj1)) | |
427 | return NULL; | |
428 | if (_argo0) { | |
429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_DeleteGroup. Expected _wxConfigBase_p."); | |
432 | return NULL; | |
433 | } | |
434 | } | |
435 | { | |
2cd2fac8 RD |
436 | #if PYTHON_API_VERSION >= 1009 |
437 | char* tmpPtr; int tmpSize; | |
438 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
439 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
440 | return NULL; | |
441 | } | |
442 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
443 | return NULL; | |
444 | _arg1 = new wxString(tmpPtr, tmpSize); | |
445 | #else | |
f6bcfd97 BP |
446 | if (!PyString_Check(_obj1)) { |
447 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
448 | return NULL; | |
449 | } | |
2cd2fac8 RD |
450 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
451 | #endif | |
f6bcfd97 BP |
452 | } |
453 | { | |
454 | wxPy_BEGIN_ALLOW_THREADS; | |
455 | _result = (bool )wxConfigBase_DeleteGroup(_arg0,*_arg1); | |
456 | ||
457 | wxPy_END_ALLOW_THREADS; | |
458 | } _resultobj = Py_BuildValue("i",_result); | |
459 | { | |
460 | if (_obj1) | |
461 | delete _arg1; | |
462 | } | |
463 | return _resultobj; | |
464 | } | |
465 | ||
466 | #define wxConfigBase_Exists(_swigobj,_swigarg0) (_swigobj->Exists(_swigarg0)) | |
467 | static PyObject *_wrap_wxConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
468 | PyObject * _resultobj; | |
469 | bool _result; | |
470 | wxConfigBase * _arg0; | |
471 | wxString * _arg1; | |
472 | PyObject * _argo0 = 0; | |
473 | PyObject * _obj1 = 0; | |
474 | char *_kwnames[] = { "self","strName", NULL }; | |
475 | ||
476 | self = self; | |
477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxConfigBase_Exists",_kwnames,&_argo0,&_obj1)) | |
478 | return NULL; | |
479 | if (_argo0) { | |
480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_Exists. Expected _wxConfigBase_p."); | |
483 | return NULL; | |
484 | } | |
485 | } | |
486 | { | |
2cd2fac8 RD |
487 | #if PYTHON_API_VERSION >= 1009 |
488 | char* tmpPtr; int tmpSize; | |
489 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
490 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
491 | return NULL; | |
492 | } | |
493 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
494 | return NULL; | |
495 | _arg1 = new wxString(tmpPtr, tmpSize); | |
496 | #else | |
f6bcfd97 BP |
497 | if (!PyString_Check(_obj1)) { |
498 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
499 | return NULL; | |
500 | } | |
2cd2fac8 RD |
501 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
502 | #endif | |
f6bcfd97 BP |
503 | } |
504 | { | |
505 | wxPy_BEGIN_ALLOW_THREADS; | |
506 | _result = (bool )wxConfigBase_Exists(_arg0,*_arg1); | |
507 | ||
508 | wxPy_END_ALLOW_THREADS; | |
509 | } _resultobj = Py_BuildValue("i",_result); | |
510 | { | |
511 | if (_obj1) | |
512 | delete _arg1; | |
513 | } | |
514 | return _resultobj; | |
515 | } | |
516 | ||
517 | #define wxConfigBase_Flush(_swigobj,_swigarg0) (_swigobj->Flush(_swigarg0)) | |
518 | static PyObject *_wrap_wxConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
519 | PyObject * _resultobj; | |
520 | bool _result; | |
521 | wxConfigBase * _arg0; | |
522 | bool _arg1 = (bool ) FALSE; | |
523 | PyObject * _argo0 = 0; | |
524 | int tempbool1 = (int) FALSE; | |
525 | char *_kwnames[] = { "self","bCurrentOnly", NULL }; | |
526 | ||
527 | self = self; | |
528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxConfigBase_Flush",_kwnames,&_argo0,&tempbool1)) | |
529 | return NULL; | |
530 | if (_argo0) { | |
531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_Flush. Expected _wxConfigBase_p."); | |
534 | return NULL; | |
535 | } | |
536 | } | |
537 | _arg1 = (bool ) tempbool1; | |
538 | { | |
539 | wxPy_BEGIN_ALLOW_THREADS; | |
540 | _result = (bool )wxConfigBase_Flush(_arg0,_arg1); | |
541 | ||
542 | wxPy_END_ALLOW_THREADS; | |
543 | } _resultobj = Py_BuildValue("i",_result); | |
544 | return _resultobj; | |
545 | } | |
546 | ||
547 | #define wxConfigBase_GetAppName(_swigobj) (_swigobj->GetAppName()) | |
548 | static PyObject *_wrap_wxConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
549 | PyObject * _resultobj; | |
550 | wxString * _result; | |
551 | wxConfigBase * _arg0; | |
552 | PyObject * _argo0 = 0; | |
553 | char *_kwnames[] = { "self", NULL }; | |
554 | ||
555 | self = self; | |
556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfigBase_GetAppName",_kwnames,&_argo0)) | |
557 | return NULL; | |
558 | if (_argo0) { | |
559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_GetAppName. Expected _wxConfigBase_p."); | |
562 | return NULL; | |
563 | } | |
564 | } | |
565 | { | |
566 | wxPy_BEGIN_ALLOW_THREADS; | |
567 | _result = new wxString (wxConfigBase_GetAppName(_arg0)); | |
568 | ||
569 | wxPy_END_ALLOW_THREADS; | |
570 | }{ | |
571 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
572 | } | |
573 | { | |
574 | delete _result; | |
575 | } | |
576 | return _resultobj; | |
577 | } | |
578 | ||
579 | static PyObject * wxConfigBase_GetFirstGroup(wxConfigBase *self) { | |
580 | bool cont; | |
581 | long index = 0; | |
582 | wxString value; | |
583 | ||
584 | cont = self->GetFirstGroup(value, index); | |
585 | return __EnumerationHelper(cont, value, index); | |
586 | } | |
587 | static PyObject *_wrap_wxConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
588 | PyObject * _resultobj; | |
589 | PyObject * _result; | |
590 | wxConfigBase * _arg0; | |
591 | PyObject * _argo0 = 0; | |
592 | char *_kwnames[] = { "self", NULL }; | |
593 | ||
594 | self = self; | |
595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfigBase_GetFirstGroup",_kwnames,&_argo0)) | |
596 | return NULL; | |
597 | if (_argo0) { | |
598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_GetFirstGroup. Expected _wxConfigBase_p."); | |
601 | return NULL; | |
602 | } | |
603 | } | |
604 | { | |
605 | wxPy_BEGIN_ALLOW_THREADS; | |
606 | _result = (PyObject *)wxConfigBase_GetFirstGroup(_arg0); | |
607 | ||
608 | wxPy_END_ALLOW_THREADS; | |
609 | }{ | |
610 | _resultobj = _result; | |
611 | } | |
612 | return _resultobj; | |
613 | } | |
614 | ||
615 | static PyObject * wxConfigBase_GetFirstEntry(wxConfigBase *self) { | |
616 | bool cont; | |
617 | long index = 0; | |
618 | wxString value; | |
619 | ||
620 | cont = self->GetFirstEntry(value, index); | |
621 | return __EnumerationHelper(cont, value, index); | |
622 | } | |
623 | static PyObject *_wrap_wxConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
624 | PyObject * _resultobj; | |
625 | PyObject * _result; | |
626 | wxConfigBase * _arg0; | |
627 | PyObject * _argo0 = 0; | |
628 | char *_kwnames[] = { "self", NULL }; | |
629 | ||
630 | self = self; | |
631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfigBase_GetFirstEntry",_kwnames,&_argo0)) | |
632 | return NULL; | |
633 | if (_argo0) { | |
634 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
635 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_GetFirstEntry. Expected _wxConfigBase_p."); | |
637 | return NULL; | |
638 | } | |
639 | } | |
640 | { | |
641 | wxPy_BEGIN_ALLOW_THREADS; | |
642 | _result = (PyObject *)wxConfigBase_GetFirstEntry(_arg0); | |
643 | ||
644 | wxPy_END_ALLOW_THREADS; | |
645 | }{ | |
646 | _resultobj = _result; | |
647 | } | |
648 | return _resultobj; | |
649 | } | |
650 | ||
651 | static PyObject * wxConfigBase_GetNextGroup(wxConfigBase *self,long index) { | |
652 | bool cont; | |
653 | wxString value; | |
654 | ||
655 | cont = self->GetNextGroup(value, index); | |
656 | return __EnumerationHelper(cont, value, index); | |
657 | } | |
658 | static PyObject *_wrap_wxConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
659 | PyObject * _resultobj; | |
660 | PyObject * _result; | |
661 | wxConfigBase * _arg0; | |
662 | long _arg1; | |
663 | PyObject * _argo0 = 0; | |
664 | char *_kwnames[] = { "self","index", NULL }; | |
665 | ||
666 | self = self; | |
667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxConfigBase_GetNextGroup",_kwnames,&_argo0,&_arg1)) | |
668 | return NULL; | |
669 | if (_argo0) { | |
670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_GetNextGroup. Expected _wxConfigBase_p."); | |
673 | return NULL; | |
674 | } | |
675 | } | |
676 | { | |
677 | wxPy_BEGIN_ALLOW_THREADS; | |
678 | _result = (PyObject *)wxConfigBase_GetNextGroup(_arg0,_arg1); | |
679 | ||
680 | wxPy_END_ALLOW_THREADS; | |
681 | }{ | |
682 | _resultobj = _result; | |
683 | } | |
684 | return _resultobj; | |
685 | } | |
686 | ||
687 | static PyObject * wxConfigBase_GetNextEntry(wxConfigBase *self,long index) { | |
688 | bool cont; | |
689 | wxString value; | |
690 | ||
691 | cont = self->GetNextEntry(value, index); | |
692 | return __EnumerationHelper(cont, value, index); | |
693 | } | |
694 | static PyObject *_wrap_wxConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
695 | PyObject * _resultobj; | |
696 | PyObject * _result; | |
697 | wxConfigBase * _arg0; | |
698 | long _arg1; | |
699 | PyObject * _argo0 = 0; | |
700 | char *_kwnames[] = { "self","index", NULL }; | |
701 | ||
702 | self = self; | |
703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxConfigBase_GetNextEntry",_kwnames,&_argo0,&_arg1)) | |
704 | return NULL; | |
705 | if (_argo0) { | |
706 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
707 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_GetNextEntry. Expected _wxConfigBase_p."); | |
709 | return NULL; | |
710 | } | |
711 | } | |
712 | { | |
713 | wxPy_BEGIN_ALLOW_THREADS; | |
714 | _result = (PyObject *)wxConfigBase_GetNextEntry(_arg0,_arg1); | |
715 | ||
716 | wxPy_END_ALLOW_THREADS; | |
717 | }{ | |
718 | _resultobj = _result; | |
719 | } | |
720 | return _resultobj; | |
721 | } | |
722 | ||
723 | #define wxConfigBase_GetNumberOfEntries(_swigobj,_swigarg0) (_swigobj->GetNumberOfEntries(_swigarg0)) | |
724 | static PyObject *_wrap_wxConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) { | |
725 | PyObject * _resultobj; | |
726 | int _result; | |
727 | wxConfigBase * _arg0; | |
728 | bool _arg1 = (bool ) FALSE; | |
729 | PyObject * _argo0 = 0; | |
730 | int tempbool1 = (int) FALSE; | |
731 | char *_kwnames[] = { "self","bRecursive", NULL }; | |
732 | ||
733 | self = self; | |
734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxConfigBase_GetNumberOfEntries",_kwnames,&_argo0,&tempbool1)) | |
735 | return NULL; | |
736 | if (_argo0) { | |
737 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
738 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_GetNumberOfEntries. Expected _wxConfigBase_p."); | |
740 | return NULL; | |
741 | } | |
742 | } | |
743 | _arg1 = (bool ) tempbool1; | |
744 | { | |
745 | wxPy_BEGIN_ALLOW_THREADS; | |
746 | _result = (int )wxConfigBase_GetNumberOfEntries(_arg0,_arg1); | |
747 | ||
748 | wxPy_END_ALLOW_THREADS; | |
749 | } _resultobj = Py_BuildValue("i",_result); | |
750 | return _resultobj; | |
751 | } | |
752 | ||
753 | #define wxConfigBase_GetNumberOfGroups(_swigobj,_swigarg0) (_swigobj->GetNumberOfGroups(_swigarg0)) | |
754 | static PyObject *_wrap_wxConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) { | |
755 | PyObject * _resultobj; | |
756 | int _result; | |
757 | wxConfigBase * _arg0; | |
758 | bool _arg1 = (bool ) FALSE; | |
759 | PyObject * _argo0 = 0; | |
760 | int tempbool1 = (int) FALSE; | |
761 | char *_kwnames[] = { "self","bRecursive", NULL }; | |
762 | ||
763 | self = self; | |
764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxConfigBase_GetNumberOfGroups",_kwnames,&_argo0,&tempbool1)) | |
765 | return NULL; | |
766 | if (_argo0) { | |
767 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
768 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_GetNumberOfGroups. Expected _wxConfigBase_p."); | |
770 | return NULL; | |
771 | } | |
772 | } | |
773 | _arg1 = (bool ) tempbool1; | |
774 | { | |
775 | wxPy_BEGIN_ALLOW_THREADS; | |
776 | _result = (int )wxConfigBase_GetNumberOfGroups(_arg0,_arg1); | |
777 | ||
778 | wxPy_END_ALLOW_THREADS; | |
779 | } _resultobj = Py_BuildValue("i",_result); | |
780 | return _resultobj; | |
781 | } | |
782 | ||
783 | #define wxConfigBase_GetPath(_swigobj) (_swigobj->GetPath()) | |
784 | static PyObject *_wrap_wxConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
785 | PyObject * _resultobj; | |
786 | wxString * _result; | |
787 | wxConfigBase * _arg0; | |
788 | PyObject * _argo0 = 0; | |
789 | char *_kwnames[] = { "self", NULL }; | |
790 | ||
791 | self = self; | |
792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfigBase_GetPath",_kwnames,&_argo0)) | |
793 | return NULL; | |
794 | if (_argo0) { | |
795 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
796 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_GetPath. Expected _wxConfigBase_p."); | |
798 | return NULL; | |
799 | } | |
800 | } | |
801 | { | |
802 | wxPy_BEGIN_ALLOW_THREADS; | |
803 | _result = new wxString (wxConfigBase_GetPath(_arg0)); | |
804 | ||
805 | wxPy_END_ALLOW_THREADS; | |
806 | }{ | |
807 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
808 | } | |
809 | { | |
810 | delete _result; | |
811 | } | |
812 | return _resultobj; | |
813 | } | |
814 | ||
815 | #define wxConfigBase_GetVendorName(_swigobj) (_swigobj->GetVendorName()) | |
816 | static PyObject *_wrap_wxConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
817 | PyObject * _resultobj; | |
818 | wxString * _result; | |
819 | wxConfigBase * _arg0; | |
820 | PyObject * _argo0 = 0; | |
821 | char *_kwnames[] = { "self", NULL }; | |
822 | ||
823 | self = self; | |
824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfigBase_GetVendorName",_kwnames,&_argo0)) | |
825 | return NULL; | |
826 | if (_argo0) { | |
827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_GetVendorName. Expected _wxConfigBase_p."); | |
830 | return NULL; | |
831 | } | |
832 | } | |
833 | { | |
834 | wxPy_BEGIN_ALLOW_THREADS; | |
835 | _result = new wxString (wxConfigBase_GetVendorName(_arg0)); | |
836 | ||
837 | wxPy_END_ALLOW_THREADS; | |
838 | }{ | |
839 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
840 | } | |
841 | { | |
842 | delete _result; | |
843 | } | |
844 | return _resultobj; | |
845 | } | |
846 | ||
847 | #define wxConfigBase_HasEntry(_swigobj,_swigarg0) (_swigobj->HasEntry(_swigarg0)) | |
848 | static PyObject *_wrap_wxConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
849 | PyObject * _resultobj; | |
850 | bool _result; | |
851 | wxConfigBase * _arg0; | |
852 | wxString * _arg1; | |
853 | PyObject * _argo0 = 0; | |
854 | PyObject * _obj1 = 0; | |
855 | char *_kwnames[] = { "self","strName", NULL }; | |
856 | ||
857 | self = self; | |
858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxConfigBase_HasEntry",_kwnames,&_argo0,&_obj1)) | |
859 | return NULL; | |
860 | if (_argo0) { | |
861 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
862 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
863 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_HasEntry. Expected _wxConfigBase_p."); | |
864 | return NULL; | |
865 | } | |
866 | } | |
867 | { | |
2cd2fac8 RD |
868 | #if PYTHON_API_VERSION >= 1009 |
869 | char* tmpPtr; int tmpSize; | |
870 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
871 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
872 | return NULL; | |
873 | } | |
874 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
875 | return NULL; | |
876 | _arg1 = new wxString(tmpPtr, tmpSize); | |
877 | #else | |
f6bcfd97 BP |
878 | if (!PyString_Check(_obj1)) { |
879 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
880 | return NULL; | |
881 | } | |
2cd2fac8 RD |
882 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
883 | #endif | |
f6bcfd97 BP |
884 | } |
885 | { | |
886 | wxPy_BEGIN_ALLOW_THREADS; | |
887 | _result = (bool )wxConfigBase_HasEntry(_arg0,*_arg1); | |
888 | ||
889 | wxPy_END_ALLOW_THREADS; | |
890 | } _resultobj = Py_BuildValue("i",_result); | |
891 | { | |
892 | if (_obj1) | |
893 | delete _arg1; | |
894 | } | |
895 | return _resultobj; | |
896 | } | |
897 | ||
898 | #define wxConfigBase_HasGroup(_swigobj,_swigarg0) (_swigobj->HasGroup(_swigarg0)) | |
899 | static PyObject *_wrap_wxConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
900 | PyObject * _resultobj; | |
901 | bool _result; | |
902 | wxConfigBase * _arg0; | |
903 | wxString * _arg1; | |
904 | PyObject * _argo0 = 0; | |
905 | PyObject * _obj1 = 0; | |
906 | char *_kwnames[] = { "self","strName", NULL }; | |
907 | ||
908 | self = self; | |
909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxConfigBase_HasGroup",_kwnames,&_argo0,&_obj1)) | |
910 | return NULL; | |
911 | if (_argo0) { | |
912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_HasGroup. Expected _wxConfigBase_p."); | |
915 | return NULL; | |
916 | } | |
917 | } | |
918 | { | |
2cd2fac8 RD |
919 | #if PYTHON_API_VERSION >= 1009 |
920 | char* tmpPtr; int tmpSize; | |
921 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
922 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
923 | return NULL; | |
924 | } | |
925 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
926 | return NULL; | |
927 | _arg1 = new wxString(tmpPtr, tmpSize); | |
928 | #else | |
f6bcfd97 BP |
929 | if (!PyString_Check(_obj1)) { |
930 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
931 | return NULL; | |
932 | } | |
2cd2fac8 RD |
933 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
934 | #endif | |
f6bcfd97 BP |
935 | } |
936 | { | |
937 | wxPy_BEGIN_ALLOW_THREADS; | |
938 | _result = (bool )wxConfigBase_HasGroup(_arg0,*_arg1); | |
939 | ||
940 | wxPy_END_ALLOW_THREADS; | |
941 | } _resultobj = Py_BuildValue("i",_result); | |
942 | { | |
943 | if (_obj1) | |
944 | delete _arg1; | |
945 | } | |
946 | return _resultobj; | |
947 | } | |
948 | ||
949 | #define wxConfigBase_IsExpandingEnvVars(_swigobj) (_swigobj->IsExpandingEnvVars()) | |
950 | static PyObject *_wrap_wxConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
951 | PyObject * _resultobj; | |
952 | bool _result; | |
953 | wxConfigBase * _arg0; | |
954 | PyObject * _argo0 = 0; | |
955 | char *_kwnames[] = { "self", NULL }; | |
956 | ||
957 | self = self; | |
958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfigBase_IsExpandingEnvVars",_kwnames,&_argo0)) | |
959 | return NULL; | |
960 | if (_argo0) { | |
961 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
962 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_IsExpandingEnvVars. Expected _wxConfigBase_p."); | |
964 | return NULL; | |
965 | } | |
966 | } | |
967 | { | |
968 | wxPy_BEGIN_ALLOW_THREADS; | |
969 | _result = (bool )wxConfigBase_IsExpandingEnvVars(_arg0); | |
970 | ||
971 | wxPy_END_ALLOW_THREADS; | |
972 | } _resultobj = Py_BuildValue("i",_result); | |
973 | return _resultobj; | |
974 | } | |
975 | ||
976 | #define wxConfigBase_IsRecordingDefaults(_swigobj) (_swigobj->IsRecordingDefaults()) | |
977 | static PyObject *_wrap_wxConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
978 | PyObject * _resultobj; | |
979 | bool _result; | |
980 | wxConfigBase * _arg0; | |
981 | PyObject * _argo0 = 0; | |
982 | char *_kwnames[] = { "self", NULL }; | |
983 | ||
984 | self = self; | |
985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfigBase_IsRecordingDefaults",_kwnames,&_argo0)) | |
986 | return NULL; | |
987 | if (_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_IsRecordingDefaults. Expected _wxConfigBase_p."); | |
991 | return NULL; | |
992 | } | |
993 | } | |
994 | { | |
995 | wxPy_BEGIN_ALLOW_THREADS; | |
996 | _result = (bool )wxConfigBase_IsRecordingDefaults(_arg0); | |
997 | ||
998 | wxPy_END_ALLOW_THREADS; | |
999 | } _resultobj = Py_BuildValue("i",_result); | |
1000 | return _resultobj; | |
1001 | } | |
1002 | ||
1003 | #define wxConfigBase_Read(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1)) | |
1004 | static PyObject *_wrap_wxConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1005 | PyObject * _resultobj; | |
1006 | wxString * _result; | |
1007 | wxConfigBase * _arg0; | |
1008 | wxString * _arg1; | |
1009 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
1010 | PyObject * _argo0 = 0; | |
1011 | PyObject * _obj1 = 0; | |
1012 | PyObject * _obj2 = 0; | |
1013 | char *_kwnames[] = { "self","key","defaultVal", NULL }; | |
1014 | ||
1015 | self = self; | |
1016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxConfigBase_Read",_kwnames,&_argo0,&_obj1,&_obj2)) | |
1017 | return NULL; | |
1018 | if (_argo0) { | |
1019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_Read. Expected _wxConfigBase_p."); | |
1022 | return NULL; | |
1023 | } | |
1024 | } | |
1025 | { | |
2cd2fac8 RD |
1026 | #if PYTHON_API_VERSION >= 1009 |
1027 | char* tmpPtr; int tmpSize; | |
1028 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1029 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1030 | return NULL; | |
1031 | } | |
1032 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1033 | return NULL; | |
1034 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1035 | #else | |
f6bcfd97 BP |
1036 | if (!PyString_Check(_obj1)) { |
1037 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1038 | return NULL; | |
1039 | } | |
2cd2fac8 RD |
1040 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1041 | #endif | |
f6bcfd97 BP |
1042 | } |
1043 | if (_obj2) | |
1044 | { | |
2cd2fac8 RD |
1045 | #if PYTHON_API_VERSION >= 1009 |
1046 | char* tmpPtr; int tmpSize; | |
1047 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
1048 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1049 | return NULL; | |
1050 | } | |
1051 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1052 | return NULL; | |
1053 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1054 | #else | |
f6bcfd97 BP |
1055 | if (!PyString_Check(_obj2)) { |
1056 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1057 | return NULL; | |
1058 | } | |
2cd2fac8 RD |
1059 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
1060 | #endif | |
f6bcfd97 BP |
1061 | } |
1062 | { | |
1063 | wxPy_BEGIN_ALLOW_THREADS; | |
1064 | _result = new wxString (wxConfigBase_Read(_arg0,*_arg1,*_arg2)); | |
1065 | ||
1066 | wxPy_END_ALLOW_THREADS; | |
1067 | }{ | |
1068 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1069 | } | |
1070 | { | |
1071 | if (_obj1) | |
1072 | delete _arg1; | |
1073 | } | |
1074 | { | |
1075 | if (_obj2) | |
1076 | delete _arg2; | |
1077 | } | |
1078 | { | |
1079 | delete _result; | |
1080 | } | |
1081 | return _resultobj; | |
1082 | } | |
1083 | ||
1084 | #define wxConfigBase_ReadInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1)) | |
1085 | static PyObject *_wrap_wxConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1086 | PyObject * _resultobj; | |
1087 | long _result; | |
1088 | wxConfigBase * _arg0; | |
1089 | wxString * _arg1; | |
1090 | long _arg2 = (long ) 0; | |
1091 | PyObject * _argo0 = 0; | |
1092 | PyObject * _obj1 = 0; | |
1093 | char *_kwnames[] = { "self","key","defaultVal", NULL }; | |
1094 | ||
1095 | self = self; | |
1096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|l:wxConfigBase_ReadInt",_kwnames,&_argo0,&_obj1,&_arg2)) | |
1097 | return NULL; | |
1098 | if (_argo0) { | |
1099 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1100 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_ReadInt. Expected _wxConfigBase_p."); | |
1102 | return NULL; | |
1103 | } | |
1104 | } | |
1105 | { | |
2cd2fac8 RD |
1106 | #if PYTHON_API_VERSION >= 1009 |
1107 | char* tmpPtr; int tmpSize; | |
1108 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1109 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1110 | return NULL; | |
1111 | } | |
1112 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1113 | return NULL; | |
1114 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1115 | #else | |
f6bcfd97 BP |
1116 | if (!PyString_Check(_obj1)) { |
1117 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1118 | return NULL; | |
1119 | } | |
2cd2fac8 RD |
1120 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1121 | #endif | |
f6bcfd97 BP |
1122 | } |
1123 | { | |
1124 | wxPy_BEGIN_ALLOW_THREADS; | |
1125 | _result = (long )wxConfigBase_ReadInt(_arg0,*_arg1,_arg2); | |
1126 | ||
1127 | wxPy_END_ALLOW_THREADS; | |
1128 | } _resultobj = Py_BuildValue("l",_result); | |
1129 | { | |
1130 | if (_obj1) | |
1131 | delete _arg1; | |
1132 | } | |
1133 | return _resultobj; | |
1134 | } | |
1135 | ||
1136 | #define wxConfigBase_ReadFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1)) | |
1137 | static PyObject *_wrap_wxConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1138 | PyObject * _resultobj; | |
1139 | double _result; | |
1140 | wxConfigBase * _arg0; | |
1141 | wxString * _arg1; | |
1142 | double _arg2 = (double ) 0.0; | |
1143 | PyObject * _argo0 = 0; | |
1144 | PyObject * _obj1 = 0; | |
1145 | char *_kwnames[] = { "self","key","defaultVal", NULL }; | |
1146 | ||
1147 | self = self; | |
1148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|d:wxConfigBase_ReadFloat",_kwnames,&_argo0,&_obj1,&_arg2)) | |
1149 | return NULL; | |
1150 | if (_argo0) { | |
1151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_ReadFloat. Expected _wxConfigBase_p."); | |
1154 | return NULL; | |
1155 | } | |
1156 | } | |
1157 | { | |
2cd2fac8 RD |
1158 | #if PYTHON_API_VERSION >= 1009 |
1159 | char* tmpPtr; int tmpSize; | |
1160 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1161 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1162 | return NULL; | |
1163 | } | |
1164 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1165 | return NULL; | |
1166 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1167 | #else | |
f6bcfd97 BP |
1168 | if (!PyString_Check(_obj1)) { |
1169 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1170 | return NULL; | |
1171 | } | |
2cd2fac8 RD |
1172 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1173 | #endif | |
f6bcfd97 BP |
1174 | } |
1175 | { | |
1176 | wxPy_BEGIN_ALLOW_THREADS; | |
1177 | _result = (double )wxConfigBase_ReadFloat(_arg0,*_arg1,_arg2); | |
1178 | ||
1179 | wxPy_END_ALLOW_THREADS; | |
1180 | } _resultobj = Py_BuildValue("d",_result); | |
1181 | { | |
1182 | if (_obj1) | |
1183 | delete _arg1; | |
1184 | } | |
1185 | return _resultobj; | |
1186 | } | |
1187 | ||
1188 | #define wxConfigBase_SetExpandEnvVars(_swigobj,_swigarg0) (_swigobj->SetExpandEnvVars(_swigarg0)) | |
1189 | static PyObject *_wrap_wxConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1190 | PyObject * _resultobj; | |
1191 | wxConfigBase * _arg0; | |
1192 | bool _arg1 = (bool ) TRUE; | |
1193 | PyObject * _argo0 = 0; | |
1194 | int tempbool1 = (int) TRUE; | |
1195 | char *_kwnames[] = { "self","bDoIt", NULL }; | |
1196 | ||
1197 | self = self; | |
1198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxConfigBase_SetExpandEnvVars",_kwnames,&_argo0,&tempbool1)) | |
1199 | return NULL; | |
1200 | if (_argo0) { | |
1201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_SetExpandEnvVars. Expected _wxConfigBase_p."); | |
1204 | return NULL; | |
1205 | } | |
1206 | } | |
1207 | _arg1 = (bool ) tempbool1; | |
1208 | { | |
1209 | wxPy_BEGIN_ALLOW_THREADS; | |
1210 | wxConfigBase_SetExpandEnvVars(_arg0,_arg1); | |
1211 | ||
1212 | wxPy_END_ALLOW_THREADS; | |
1213 | } Py_INCREF(Py_None); | |
1214 | _resultobj = Py_None; | |
1215 | return _resultobj; | |
1216 | } | |
1217 | ||
1218 | #define wxConfigBase_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0)) | |
1219 | static PyObject *_wrap_wxConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1220 | PyObject * _resultobj; | |
1221 | wxConfigBase * _arg0; | |
1222 | wxString * _arg1; | |
1223 | PyObject * _argo0 = 0; | |
1224 | PyObject * _obj1 = 0; | |
1225 | char *_kwnames[] = { "self","strPath", NULL }; | |
1226 | ||
1227 | self = self; | |
1228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxConfigBase_SetPath",_kwnames,&_argo0,&_obj1)) | |
1229 | return NULL; | |
1230 | if (_argo0) { | |
1231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_SetPath. Expected _wxConfigBase_p."); | |
1234 | return NULL; | |
1235 | } | |
1236 | } | |
1237 | { | |
2cd2fac8 RD |
1238 | #if PYTHON_API_VERSION >= 1009 |
1239 | char* tmpPtr; int tmpSize; | |
1240 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1241 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1242 | return NULL; | |
1243 | } | |
1244 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1245 | return NULL; | |
1246 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1247 | #else | |
f6bcfd97 BP |
1248 | if (!PyString_Check(_obj1)) { |
1249 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1250 | return NULL; | |
1251 | } | |
2cd2fac8 RD |
1252 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1253 | #endif | |
f6bcfd97 BP |
1254 | } |
1255 | { | |
1256 | wxPy_BEGIN_ALLOW_THREADS; | |
1257 | wxConfigBase_SetPath(_arg0,*_arg1); | |
1258 | ||
1259 | wxPy_END_ALLOW_THREADS; | |
1260 | } Py_INCREF(Py_None); | |
1261 | _resultobj = Py_None; | |
1262 | { | |
1263 | if (_obj1) | |
1264 | delete _arg1; | |
1265 | } | |
1266 | return _resultobj; | |
1267 | } | |
1268 | ||
1269 | #define wxConfigBase_SetRecordDefaults(_swigobj,_swigarg0) (_swigobj->SetRecordDefaults(_swigarg0)) | |
1270 | static PyObject *_wrap_wxConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1271 | PyObject * _resultobj; | |
1272 | wxConfigBase * _arg0; | |
1273 | bool _arg1 = (bool ) TRUE; | |
1274 | PyObject * _argo0 = 0; | |
1275 | int tempbool1 = (int) TRUE; | |
1276 | char *_kwnames[] = { "self","bDoIt", NULL }; | |
1277 | ||
1278 | self = self; | |
1279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxConfigBase_SetRecordDefaults",_kwnames,&_argo0,&tempbool1)) | |
1280 | return NULL; | |
1281 | if (_argo0) { | |
1282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_SetRecordDefaults. Expected _wxConfigBase_p."); | |
1285 | return NULL; | |
1286 | } | |
1287 | } | |
1288 | _arg1 = (bool ) tempbool1; | |
1289 | { | |
1290 | wxPy_BEGIN_ALLOW_THREADS; | |
1291 | wxConfigBase_SetRecordDefaults(_arg0,_arg1); | |
1292 | ||
1293 | wxPy_END_ALLOW_THREADS; | |
1294 | } Py_INCREF(Py_None); | |
1295 | _resultobj = Py_None; | |
1296 | return _resultobj; | |
1297 | } | |
1298 | ||
1299 | #define wxConfigBase_SetAppName(_swigobj,_swigarg0) (_swigobj->SetAppName(_swigarg0)) | |
1300 | static PyObject *_wrap_wxConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1301 | PyObject * _resultobj; | |
1302 | wxConfigBase * _arg0; | |
1303 | wxString * _arg1; | |
1304 | PyObject * _argo0 = 0; | |
1305 | PyObject * _obj1 = 0; | |
1306 | char *_kwnames[] = { "self","appName", NULL }; | |
1307 | ||
1308 | self = self; | |
1309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxConfigBase_SetAppName",_kwnames,&_argo0,&_obj1)) | |
1310 | return NULL; | |
1311 | if (_argo0) { | |
1312 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1313 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1314 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_SetAppName. Expected _wxConfigBase_p."); | |
1315 | return NULL; | |
1316 | } | |
1317 | } | |
1318 | { | |
2cd2fac8 RD |
1319 | #if PYTHON_API_VERSION >= 1009 |
1320 | char* tmpPtr; int tmpSize; | |
1321 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1322 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1323 | return NULL; | |
1324 | } | |
1325 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1326 | return NULL; | |
1327 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1328 | #else | |
f6bcfd97 BP |
1329 | if (!PyString_Check(_obj1)) { |
1330 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1331 | return NULL; | |
1332 | } | |
2cd2fac8 RD |
1333 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1334 | #endif | |
f6bcfd97 BP |
1335 | } |
1336 | { | |
1337 | wxPy_BEGIN_ALLOW_THREADS; | |
1338 | wxConfigBase_SetAppName(_arg0,*_arg1); | |
1339 | ||
1340 | wxPy_END_ALLOW_THREADS; | |
1341 | } Py_INCREF(Py_None); | |
1342 | _resultobj = Py_None; | |
1343 | { | |
1344 | if (_obj1) | |
1345 | delete _arg1; | |
1346 | } | |
1347 | return _resultobj; | |
1348 | } | |
1349 | ||
1350 | #define wxConfigBase_SetVendorName(_swigobj,_swigarg0) (_swigobj->SetVendorName(_swigarg0)) | |
1351 | static PyObject *_wrap_wxConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1352 | PyObject * _resultobj; | |
1353 | wxConfigBase * _arg0; | |
1354 | wxString * _arg1; | |
1355 | PyObject * _argo0 = 0; | |
1356 | PyObject * _obj1 = 0; | |
1357 | char *_kwnames[] = { "self","vendorName", NULL }; | |
1358 | ||
1359 | self = self; | |
1360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxConfigBase_SetVendorName",_kwnames,&_argo0,&_obj1)) | |
1361 | return NULL; | |
1362 | if (_argo0) { | |
1363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_SetVendorName. Expected _wxConfigBase_p."); | |
1366 | return NULL; | |
1367 | } | |
1368 | } | |
1369 | { | |
2cd2fac8 RD |
1370 | #if PYTHON_API_VERSION >= 1009 |
1371 | char* tmpPtr; int tmpSize; | |
1372 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1373 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1374 | return NULL; | |
1375 | } | |
1376 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1377 | return NULL; | |
1378 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1379 | #else | |
f6bcfd97 BP |
1380 | if (!PyString_Check(_obj1)) { |
1381 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1382 | return NULL; | |
1383 | } | |
2cd2fac8 RD |
1384 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1385 | #endif | |
f6bcfd97 BP |
1386 | } |
1387 | { | |
1388 | wxPy_BEGIN_ALLOW_THREADS; | |
1389 | wxConfigBase_SetVendorName(_arg0,*_arg1); | |
1390 | ||
1391 | wxPy_END_ALLOW_THREADS; | |
1392 | } Py_INCREF(Py_None); | |
1393 | _resultobj = Py_None; | |
1394 | { | |
1395 | if (_obj1) | |
1396 | delete _arg1; | |
1397 | } | |
1398 | return _resultobj; | |
1399 | } | |
1400 | ||
1401 | #define wxConfigBase_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
1402 | static PyObject *_wrap_wxConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1403 | PyObject * _resultobj; | |
1404 | wxConfigBase * _arg0; | |
1405 | long _arg1; | |
1406 | PyObject * _argo0 = 0; | |
1407 | char *_kwnames[] = { "self","style", NULL }; | |
1408 | ||
1409 | self = self; | |
1410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxConfigBase_SetStyle",_kwnames,&_argo0,&_arg1)) | |
1411 | return NULL; | |
1412 | if (_argo0) { | |
1413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_SetStyle. Expected _wxConfigBase_p."); | |
1416 | return NULL; | |
1417 | } | |
1418 | } | |
1419 | { | |
1420 | wxPy_BEGIN_ALLOW_THREADS; | |
1421 | wxConfigBase_SetStyle(_arg0,_arg1); | |
1422 | ||
1423 | wxPy_END_ALLOW_THREADS; | |
1424 | } Py_INCREF(Py_None); | |
1425 | _resultobj = Py_None; | |
1426 | return _resultobj; | |
1427 | } | |
1428 | ||
1429 | #define wxConfigBase_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
1430 | static PyObject *_wrap_wxConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1431 | PyObject * _resultobj; | |
1432 | long _result; | |
1433 | wxConfigBase * _arg0; | |
1434 | PyObject * _argo0 = 0; | |
1435 | char *_kwnames[] = { "self", NULL }; | |
1436 | ||
1437 | self = self; | |
1438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfigBase_GetStyle",_kwnames,&_argo0)) | |
1439 | return NULL; | |
1440 | if (_argo0) { | |
1441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_GetStyle. Expected _wxConfigBase_p."); | |
1444 | return NULL; | |
1445 | } | |
1446 | } | |
1447 | { | |
1448 | wxPy_BEGIN_ALLOW_THREADS; | |
1449 | _result = (long )wxConfigBase_GetStyle(_arg0); | |
1450 | ||
1451 | wxPy_END_ALLOW_THREADS; | |
1452 | } _resultobj = Py_BuildValue("l",_result); | |
1453 | return _resultobj; | |
1454 | } | |
1455 | ||
1456 | #define wxConfigBase_Write(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1)) | |
1457 | static PyObject *_wrap_wxConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1458 | PyObject * _resultobj; | |
1459 | bool _result; | |
1460 | wxConfigBase * _arg0; | |
1461 | wxString * _arg1; | |
1462 | wxString * _arg2; | |
1463 | PyObject * _argo0 = 0; | |
1464 | PyObject * _obj1 = 0; | |
1465 | PyObject * _obj2 = 0; | |
1466 | char *_kwnames[] = { "self","key","value", NULL }; | |
1467 | ||
1468 | self = self; | |
1469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxConfigBase_Write",_kwnames,&_argo0,&_obj1,&_obj2)) | |
1470 | return NULL; | |
1471 | if (_argo0) { | |
1472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_Write. Expected _wxConfigBase_p."); | |
1475 | return NULL; | |
1476 | } | |
1477 | } | |
1478 | { | |
2cd2fac8 RD |
1479 | #if PYTHON_API_VERSION >= 1009 |
1480 | char* tmpPtr; int tmpSize; | |
1481 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1482 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1483 | return NULL; | |
1484 | } | |
1485 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1486 | return NULL; | |
1487 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1488 | #else | |
f6bcfd97 BP |
1489 | if (!PyString_Check(_obj1)) { |
1490 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1491 | return NULL; | |
1492 | } | |
2cd2fac8 RD |
1493 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1494 | #endif | |
f6bcfd97 BP |
1495 | } |
1496 | { | |
2cd2fac8 RD |
1497 | #if PYTHON_API_VERSION >= 1009 |
1498 | char* tmpPtr; int tmpSize; | |
1499 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
1500 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1501 | return NULL; | |
1502 | } | |
1503 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1504 | return NULL; | |
1505 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1506 | #else | |
f6bcfd97 BP |
1507 | if (!PyString_Check(_obj2)) { |
1508 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1509 | return NULL; | |
1510 | } | |
2cd2fac8 RD |
1511 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
1512 | #endif | |
f6bcfd97 BP |
1513 | } |
1514 | { | |
1515 | wxPy_BEGIN_ALLOW_THREADS; | |
1516 | _result = (bool )wxConfigBase_Write(_arg0,*_arg1,*_arg2); | |
1517 | ||
1518 | wxPy_END_ALLOW_THREADS; | |
1519 | } _resultobj = Py_BuildValue("i",_result); | |
1520 | { | |
1521 | if (_obj1) | |
1522 | delete _arg1; | |
1523 | } | |
1524 | { | |
1525 | if (_obj2) | |
1526 | delete _arg2; | |
1527 | } | |
1528 | return _resultobj; | |
1529 | } | |
1530 | ||
1531 | #define wxConfigBase_WriteInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1)) | |
1532 | static PyObject *_wrap_wxConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1533 | PyObject * _resultobj; | |
1534 | bool _result; | |
1535 | wxConfigBase * _arg0; | |
1536 | wxString * _arg1; | |
1537 | long _arg2; | |
1538 | PyObject * _argo0 = 0; | |
1539 | PyObject * _obj1 = 0; | |
1540 | char *_kwnames[] = { "self","key","value", NULL }; | |
1541 | ||
1542 | self = self; | |
1543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxConfigBase_WriteInt",_kwnames,&_argo0,&_obj1,&_arg2)) | |
1544 | return NULL; | |
1545 | if (_argo0) { | |
1546 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1547 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_WriteInt. Expected _wxConfigBase_p."); | |
1549 | return NULL; | |
1550 | } | |
1551 | } | |
1552 | { | |
2cd2fac8 RD |
1553 | #if PYTHON_API_VERSION >= 1009 |
1554 | char* tmpPtr; int tmpSize; | |
1555 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1556 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1557 | return NULL; | |
1558 | } | |
1559 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1560 | return NULL; | |
1561 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1562 | #else | |
f6bcfd97 BP |
1563 | if (!PyString_Check(_obj1)) { |
1564 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1565 | return NULL; | |
1566 | } | |
2cd2fac8 RD |
1567 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1568 | #endif | |
f6bcfd97 BP |
1569 | } |
1570 | { | |
1571 | wxPy_BEGIN_ALLOW_THREADS; | |
1572 | _result = (bool )wxConfigBase_WriteInt(_arg0,*_arg1,_arg2); | |
1573 | ||
1574 | wxPy_END_ALLOW_THREADS; | |
1575 | } _resultobj = Py_BuildValue("i",_result); | |
1576 | { | |
1577 | if (_obj1) | |
1578 | delete _arg1; | |
1579 | } | |
1580 | return _resultobj; | |
1581 | } | |
1582 | ||
1583 | #define wxConfigBase_WriteFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1)) | |
1584 | static PyObject *_wrap_wxConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1585 | PyObject * _resultobj; | |
1586 | bool _result; | |
1587 | wxConfigBase * _arg0; | |
1588 | wxString * _arg1; | |
1589 | double _arg2; | |
1590 | PyObject * _argo0 = 0; | |
1591 | PyObject * _obj1 = 0; | |
1592 | char *_kwnames[] = { "self","key","value", NULL }; | |
1593 | ||
1594 | self = self; | |
1595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOd:wxConfigBase_WriteFloat",_kwnames,&_argo0,&_obj1,&_arg2)) | |
1596 | return NULL; | |
1597 | if (_argo0) { | |
1598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_WriteFloat. Expected _wxConfigBase_p."); | |
1601 | return NULL; | |
1602 | } | |
1603 | } | |
1604 | { | |
2cd2fac8 RD |
1605 | #if PYTHON_API_VERSION >= 1009 |
1606 | char* tmpPtr; int tmpSize; | |
1607 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1608 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1609 | return NULL; | |
1610 | } | |
1611 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1612 | return NULL; | |
1613 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1614 | #else | |
f6bcfd97 BP |
1615 | if (!PyString_Check(_obj1)) { |
1616 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1617 | return NULL; | |
1618 | } | |
2cd2fac8 RD |
1619 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1620 | #endif | |
f6bcfd97 BP |
1621 | } |
1622 | { | |
1623 | wxPy_BEGIN_ALLOW_THREADS; | |
1624 | _result = (bool )wxConfigBase_WriteFloat(_arg0,*_arg1,_arg2); | |
1625 | ||
1626 | wxPy_END_ALLOW_THREADS; | |
1627 | } _resultobj = Py_BuildValue("i",_result); | |
1628 | { | |
1629 | if (_obj1) | |
1630 | delete _arg1; | |
1631 | } | |
1632 | return _resultobj; | |
1633 | } | |
1634 | ||
1635 | #define wxConfigBase_GetEntryType(_swigobj,_swigarg0) (_swigobj->GetEntryType(_swigarg0)) | |
1636 | static PyObject *_wrap_wxConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1637 | PyObject * _resultobj; | |
1638 | wxConfigBase::EntryType _result; | |
1639 | wxConfigBase * _arg0; | |
1640 | wxString * _arg1; | |
1641 | PyObject * _argo0 = 0; | |
1642 | PyObject * _obj1 = 0; | |
1643 | char *_kwnames[] = { "self","name", NULL }; | |
1644 | ||
1645 | self = self; | |
1646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxConfigBase_GetEntryType",_kwnames,&_argo0,&_obj1)) | |
1647 | return NULL; | |
1648 | if (_argo0) { | |
1649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_GetEntryType. Expected _wxConfigBase_p."); | |
1652 | return NULL; | |
1653 | } | |
1654 | } | |
1655 | { | |
2cd2fac8 RD |
1656 | #if PYTHON_API_VERSION >= 1009 |
1657 | char* tmpPtr; int tmpSize; | |
1658 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1659 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1660 | return NULL; | |
1661 | } | |
1662 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1663 | return NULL; | |
1664 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1665 | #else | |
f6bcfd97 BP |
1666 | if (!PyString_Check(_obj1)) { |
1667 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1668 | return NULL; | |
1669 | } | |
2cd2fac8 RD |
1670 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1671 | #endif | |
f6bcfd97 BP |
1672 | } |
1673 | { | |
1674 | wxPy_BEGIN_ALLOW_THREADS; | |
1675 | _result = (wxConfigBase::EntryType )wxConfigBase_GetEntryType(_arg0,*_arg1); | |
1676 | ||
1677 | wxPy_END_ALLOW_THREADS; | |
1678 | } _resultobj = Py_BuildValue("i",_result); | |
1679 | { | |
1680 | if (_obj1) | |
1681 | delete _arg1; | |
1682 | } | |
1683 | return _resultobj; | |
1684 | } | |
1685 | ||
1686 | #define wxConfigBase_RenameEntry(_swigobj,_swigarg0,_swigarg1) (_swigobj->RenameEntry(_swigarg0,_swigarg1)) | |
1687 | static PyObject *_wrap_wxConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1688 | PyObject * _resultobj; | |
1689 | bool _result; | |
1690 | wxConfigBase * _arg0; | |
1691 | wxString * _arg1; | |
1692 | wxString * _arg2; | |
1693 | PyObject * _argo0 = 0; | |
1694 | PyObject * _obj1 = 0; | |
1695 | PyObject * _obj2 = 0; | |
1696 | char *_kwnames[] = { "self","oldName","newName", NULL }; | |
1697 | ||
1698 | self = self; | |
1699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxConfigBase_RenameEntry",_kwnames,&_argo0,&_obj1,&_obj2)) | |
1700 | return NULL; | |
1701 | if (_argo0) { | |
1702 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1703 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_RenameEntry. Expected _wxConfigBase_p."); | |
1705 | return NULL; | |
1706 | } | |
1707 | } | |
1708 | { | |
2cd2fac8 RD |
1709 | #if PYTHON_API_VERSION >= 1009 |
1710 | char* tmpPtr; int tmpSize; | |
1711 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1712 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1713 | return NULL; | |
1714 | } | |
1715 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1716 | return NULL; | |
1717 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1718 | #else | |
f6bcfd97 BP |
1719 | if (!PyString_Check(_obj1)) { |
1720 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1721 | return NULL; | |
1722 | } | |
2cd2fac8 RD |
1723 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1724 | #endif | |
f6bcfd97 BP |
1725 | } |
1726 | { | |
2cd2fac8 RD |
1727 | #if PYTHON_API_VERSION >= 1009 |
1728 | char* tmpPtr; int tmpSize; | |
1729 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
1730 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1731 | return NULL; | |
1732 | } | |
1733 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1734 | return NULL; | |
1735 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1736 | #else | |
f6bcfd97 BP |
1737 | if (!PyString_Check(_obj2)) { |
1738 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1739 | return NULL; | |
1740 | } | |
2cd2fac8 RD |
1741 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
1742 | #endif | |
f6bcfd97 BP |
1743 | } |
1744 | { | |
1745 | wxPy_BEGIN_ALLOW_THREADS; | |
1746 | _result = (bool )wxConfigBase_RenameEntry(_arg0,*_arg1,*_arg2); | |
1747 | ||
1748 | wxPy_END_ALLOW_THREADS; | |
1749 | } _resultobj = Py_BuildValue("i",_result); | |
1750 | { | |
1751 | if (_obj1) | |
1752 | delete _arg1; | |
1753 | } | |
1754 | { | |
1755 | if (_obj2) | |
1756 | delete _arg2; | |
1757 | } | |
1758 | return _resultobj; | |
1759 | } | |
1760 | ||
1761 | #define wxConfigBase_RenameGroup(_swigobj,_swigarg0,_swigarg1) (_swigobj->RenameGroup(_swigarg0,_swigarg1)) | |
1762 | static PyObject *_wrap_wxConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1763 | PyObject * _resultobj; | |
1764 | bool _result; | |
1765 | wxConfigBase * _arg0; | |
1766 | wxString * _arg1; | |
1767 | wxString * _arg2; | |
1768 | PyObject * _argo0 = 0; | |
1769 | PyObject * _obj1 = 0; | |
1770 | PyObject * _obj2 = 0; | |
1771 | char *_kwnames[] = { "self","oldName","newName", NULL }; | |
1772 | ||
1773 | self = self; | |
1774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxConfigBase_RenameGroup",_kwnames,&_argo0,&_obj1,&_obj2)) | |
1775 | return NULL; | |
1776 | if (_argo0) { | |
1777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_RenameGroup. Expected _wxConfigBase_p."); | |
1780 | return NULL; | |
1781 | } | |
1782 | } | |
1783 | { | |
2cd2fac8 RD |
1784 | #if PYTHON_API_VERSION >= 1009 |
1785 | char* tmpPtr; int tmpSize; | |
1786 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1787 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1788 | return NULL; | |
1789 | } | |
1790 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1791 | return NULL; | |
1792 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1793 | #else | |
f6bcfd97 BP |
1794 | if (!PyString_Check(_obj1)) { |
1795 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1796 | return NULL; | |
1797 | } | |
2cd2fac8 RD |
1798 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1799 | #endif | |
f6bcfd97 BP |
1800 | } |
1801 | { | |
2cd2fac8 RD |
1802 | #if PYTHON_API_VERSION >= 1009 |
1803 | char* tmpPtr; int tmpSize; | |
1804 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
1805 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1806 | return NULL; | |
1807 | } | |
1808 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1809 | return NULL; | |
1810 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1811 | #else | |
f6bcfd97 BP |
1812 | if (!PyString_Check(_obj2)) { |
1813 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1814 | return NULL; | |
1815 | } | |
2cd2fac8 RD |
1816 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
1817 | #endif | |
f6bcfd97 BP |
1818 | } |
1819 | { | |
1820 | wxPy_BEGIN_ALLOW_THREADS; | |
1821 | _result = (bool )wxConfigBase_RenameGroup(_arg0,*_arg1,*_arg2); | |
1822 | ||
1823 | wxPy_END_ALLOW_THREADS; | |
1824 | } _resultobj = Py_BuildValue("i",_result); | |
1825 | { | |
1826 | if (_obj1) | |
1827 | delete _arg1; | |
1828 | } | |
1829 | { | |
1830 | if (_obj2) | |
1831 | delete _arg2; | |
1832 | } | |
1833 | return _resultobj; | |
1834 | } | |
1835 | ||
1836 | #define wxConfigBase_ExpandEnvVars(_swigobj,_swigarg0) (_swigobj->ExpandEnvVars(_swigarg0)) | |
1837 | static PyObject *_wrap_wxConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1838 | PyObject * _resultobj; | |
1839 | wxString * _result; | |
1840 | wxConfigBase * _arg0; | |
1841 | wxString * _arg1; | |
1842 | PyObject * _argo0 = 0; | |
1843 | PyObject * _obj1 = 0; | |
1844 | char *_kwnames[] = { "self","str", NULL }; | |
1845 | ||
1846 | self = self; | |
1847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxConfigBase_ExpandEnvVars",_kwnames,&_argo0,&_obj1)) | |
1848 | return NULL; | |
1849 | if (_argo0) { | |
1850 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1851 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_ExpandEnvVars. Expected _wxConfigBase_p."); | |
1853 | return NULL; | |
1854 | } | |
1855 | } | |
1856 | { | |
2cd2fac8 RD |
1857 | #if PYTHON_API_VERSION >= 1009 |
1858 | char* tmpPtr; int tmpSize; | |
1859 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1860 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1861 | return NULL; | |
1862 | } | |
1863 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1864 | return NULL; | |
1865 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1866 | #else | |
f6bcfd97 BP |
1867 | if (!PyString_Check(_obj1)) { |
1868 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1869 | return NULL; | |
1870 | } | |
2cd2fac8 RD |
1871 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1872 | #endif | |
f6bcfd97 BP |
1873 | } |
1874 | { | |
1875 | wxPy_BEGIN_ALLOW_THREADS; | |
1876 | _result = new wxString (wxConfigBase_ExpandEnvVars(_arg0,*_arg1)); | |
1877 | ||
1878 | wxPy_END_ALLOW_THREADS; | |
1879 | }{ | |
1880 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1881 | } | |
1882 | { | |
1883 | if (_obj1) | |
1884 | delete _arg1; | |
1885 | } | |
1886 | { | |
1887 | delete _result; | |
1888 | } | |
1889 | return _resultobj; | |
1890 | } | |
1891 | ||
1892 | static void *SwigwxConfigTowxConfigBase(void *ptr) { | |
1893 | wxConfig *src; | |
1894 | wxConfigBase *dest; | |
1895 | src = (wxConfig *) ptr; | |
1896 | dest = (wxConfigBase *) src; | |
1897 | return (void *) dest; | |
1898 | } | |
1899 | ||
1900 | #define new_wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
1901 | static PyObject *_wrap_new_wxConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1902 | PyObject * _resultobj; | |
1903 | wxConfig * _result; | |
1904 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; | |
1905 | wxString * _arg1 = (wxString *) &wxPyEmptyStr; | |
1906 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
1907 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
1908 | long _arg4 = (long ) 0; | |
1909 | PyObject * _obj0 = 0; | |
1910 | PyObject * _obj1 = 0; | |
1911 | PyObject * _obj2 = 0; | |
1912 | PyObject * _obj3 = 0; | |
1913 | char *_kwnames[] = { "appName","vendorName","localFilename","globalFilename","style", NULL }; | |
1914 | char _ptemp[128]; | |
1915 | ||
1916 | self = self; | |
1917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOOOl:new_wxConfig",_kwnames,&_obj0,&_obj1,&_obj2,&_obj3,&_arg4)) | |
1918 | return NULL; | |
1919 | if (_obj0) | |
1920 | { | |
2cd2fac8 RD |
1921 | #if PYTHON_API_VERSION >= 1009 |
1922 | char* tmpPtr; int tmpSize; | |
1923 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
1924 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1925 | return NULL; | |
1926 | } | |
1927 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1928 | return NULL; | |
1929 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1930 | #else | |
f6bcfd97 BP |
1931 | if (!PyString_Check(_obj0)) { |
1932 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1933 | return NULL; | |
1934 | } | |
2cd2fac8 RD |
1935 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1936 | #endif | |
f6bcfd97 BP |
1937 | } |
1938 | if (_obj1) | |
1939 | { | |
2cd2fac8 RD |
1940 | #if PYTHON_API_VERSION >= 1009 |
1941 | char* tmpPtr; int tmpSize; | |
1942 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1943 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1944 | return NULL; | |
1945 | } | |
1946 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1947 | return NULL; | |
1948 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1949 | #else | |
f6bcfd97 BP |
1950 | if (!PyString_Check(_obj1)) { |
1951 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1952 | return NULL; | |
1953 | } | |
2cd2fac8 RD |
1954 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1955 | #endif | |
f6bcfd97 BP |
1956 | } |
1957 | if (_obj2) | |
1958 | { | |
2cd2fac8 RD |
1959 | #if PYTHON_API_VERSION >= 1009 |
1960 | char* tmpPtr; int tmpSize; | |
1961 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
1962 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1963 | return NULL; | |
1964 | } | |
1965 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1966 | return NULL; | |
1967 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1968 | #else | |
f6bcfd97 BP |
1969 | if (!PyString_Check(_obj2)) { |
1970 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1971 | return NULL; | |
1972 | } | |
2cd2fac8 RD |
1973 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
1974 | #endif | |
f6bcfd97 BP |
1975 | } |
1976 | if (_obj3) | |
1977 | { | |
2cd2fac8 RD |
1978 | #if PYTHON_API_VERSION >= 1009 |
1979 | char* tmpPtr; int tmpSize; | |
1980 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
1981 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1982 | return NULL; | |
1983 | } | |
1984 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
1985 | return NULL; | |
1986 | _arg3 = new wxString(tmpPtr, tmpSize); | |
1987 | #else | |
f6bcfd97 BP |
1988 | if (!PyString_Check(_obj3)) { |
1989 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1990 | return NULL; | |
1991 | } | |
2cd2fac8 RD |
1992 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
1993 | #endif | |
f6bcfd97 BP |
1994 | } |
1995 | { | |
1996 | wxPy_BEGIN_ALLOW_THREADS; | |
1997 | _result = (wxConfig *)new_wxConfig(*_arg0,*_arg1,*_arg2,*_arg3,_arg4); | |
1998 | ||
1999 | wxPy_END_ALLOW_THREADS; | |
2000 | } if (_result) { | |
2001 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxConfig_p"); | |
2002 | _resultobj = Py_BuildValue("s",_ptemp); | |
2003 | } else { | |
2004 | Py_INCREF(Py_None); | |
2005 | _resultobj = Py_None; | |
2006 | } | |
2007 | { | |
2008 | if (_obj0) | |
2009 | delete _arg0; | |
2010 | } | |
2011 | { | |
2012 | if (_obj1) | |
2013 | delete _arg1; | |
2014 | } | |
2015 | { | |
2016 | if (_obj2) | |
2017 | delete _arg2; | |
2018 | } | |
2019 | { | |
2020 | if (_obj3) | |
2021 | delete _arg3; | |
2022 | } | |
2023 | return _resultobj; | |
2024 | } | |
2025 | ||
2026 | #define delete_wxConfig(_swigobj) (delete _swigobj) | |
2027 | static PyObject *_wrap_delete_wxConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2028 | PyObject * _resultobj; | |
2029 | wxConfig * _arg0; | |
2030 | PyObject * _argo0 = 0; | |
2031 | char *_kwnames[] = { "self", NULL }; | |
2032 | ||
2033 | self = self; | |
2034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxConfig",_kwnames,&_argo0)) | |
2035 | return NULL; | |
2036 | if (_argo0) { | |
2037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) { | |
2039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxConfig. Expected _wxConfig_p."); | |
2040 | return NULL; | |
2041 | } | |
2042 | } | |
2043 | { | |
2044 | wxPy_BEGIN_ALLOW_THREADS; | |
2045 | delete_wxConfig(_arg0); | |
2046 | ||
2047 | wxPy_END_ALLOW_THREADS; | |
2048 | } Py_INCREF(Py_None); | |
2049 | _resultobj = Py_None; | |
2050 | return _resultobj; | |
2051 | } | |
2052 | ||
2053 | static void *SwigwxFileConfigTowxConfigBase(void *ptr) { | |
2054 | wxFileConfig *src; | |
2055 | wxConfigBase *dest; | |
2056 | src = (wxFileConfig *) ptr; | |
2057 | dest = (wxConfigBase *) src; | |
2058 | return (void *) dest; | |
2059 | } | |
2060 | ||
2061 | #define new_wxFileConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxFileConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
2062 | static PyObject *_wrap_new_wxFileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2063 | PyObject * _resultobj; | |
2064 | wxFileConfig * _result; | |
2065 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; | |
2066 | wxString * _arg1 = (wxString *) &wxPyEmptyStr; | |
2067 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
2068 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
2069 | long _arg4 = (long ) 0; | |
2070 | PyObject * _obj0 = 0; | |
2071 | PyObject * _obj1 = 0; | |
2072 | PyObject * _obj2 = 0; | |
2073 | PyObject * _obj3 = 0; | |
2074 | char *_kwnames[] = { "appName","vendorName","localFilename","globalFilename","style", NULL }; | |
2075 | char _ptemp[128]; | |
2076 | ||
2077 | self = self; | |
2078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOOOl:new_wxFileConfig",_kwnames,&_obj0,&_obj1,&_obj2,&_obj3,&_arg4)) | |
2079 | return NULL; | |
2080 | if (_obj0) | |
2081 | { | |
2cd2fac8 RD |
2082 | #if PYTHON_API_VERSION >= 1009 |
2083 | char* tmpPtr; int tmpSize; | |
2084 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
2085 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
2086 | return NULL; | |
2087 | } | |
2088 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2089 | return NULL; | |
2090 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2091 | #else | |
f6bcfd97 BP |
2092 | if (!PyString_Check(_obj0)) { |
2093 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2094 | return NULL; | |
2095 | } | |
2cd2fac8 RD |
2096 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2097 | #endif | |
f6bcfd97 BP |
2098 | } |
2099 | if (_obj1) | |
2100 | { | |
2cd2fac8 RD |
2101 | #if PYTHON_API_VERSION >= 1009 |
2102 | char* tmpPtr; int tmpSize; | |
2103 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2104 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
2105 | return NULL; | |
2106 | } | |
2107 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2108 | return NULL; | |
2109 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2110 | #else | |
f6bcfd97 BP |
2111 | if (!PyString_Check(_obj1)) { |
2112 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2113 | return NULL; | |
2114 | } | |
2cd2fac8 RD |
2115 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2116 | #endif | |
f6bcfd97 BP |
2117 | } |
2118 | if (_obj2) | |
2119 | { | |
2cd2fac8 RD |
2120 | #if PYTHON_API_VERSION >= 1009 |
2121 | char* tmpPtr; int tmpSize; | |
2122 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
2123 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
2124 | return NULL; | |
2125 | } | |
2126 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
2127 | return NULL; | |
2128 | _arg2 = new wxString(tmpPtr, tmpSize); | |
2129 | #else | |
f6bcfd97 BP |
2130 | if (!PyString_Check(_obj2)) { |
2131 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2132 | return NULL; | |
2133 | } | |
2cd2fac8 RD |
2134 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
2135 | #endif | |
f6bcfd97 BP |
2136 | } |
2137 | if (_obj3) | |
2138 | { | |
2cd2fac8 RD |
2139 | #if PYTHON_API_VERSION >= 1009 |
2140 | char* tmpPtr; int tmpSize; | |
2141 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
2142 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
2143 | return NULL; | |
2144 | } | |
2145 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
2146 | return NULL; | |
2147 | _arg3 = new wxString(tmpPtr, tmpSize); | |
2148 | #else | |
f6bcfd97 BP |
2149 | if (!PyString_Check(_obj3)) { |
2150 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2151 | return NULL; | |
2152 | } | |
2cd2fac8 RD |
2153 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
2154 | #endif | |
f6bcfd97 BP |
2155 | } |
2156 | { | |
2157 | wxPy_BEGIN_ALLOW_THREADS; | |
2158 | _result = (wxFileConfig *)new_wxFileConfig(*_arg0,*_arg1,*_arg2,*_arg3,_arg4); | |
2159 | ||
2160 | wxPy_END_ALLOW_THREADS; | |
2161 | } if (_result) { | |
2162 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileConfig_p"); | |
2163 | _resultobj = Py_BuildValue("s",_ptemp); | |
2164 | } else { | |
2165 | Py_INCREF(Py_None); | |
2166 | _resultobj = Py_None; | |
2167 | } | |
2168 | { | |
2169 | if (_obj0) | |
2170 | delete _arg0; | |
2171 | } | |
2172 | { | |
2173 | if (_obj1) | |
2174 | delete _arg1; | |
2175 | } | |
2176 | { | |
2177 | if (_obj2) | |
2178 | delete _arg2; | |
2179 | } | |
2180 | { | |
2181 | if (_obj3) | |
2182 | delete _arg3; | |
2183 | } | |
2184 | return _resultobj; | |
2185 | } | |
2186 | ||
2187 | #define delete_wxFileConfig(_swigobj) (delete _swigobj) | |
2188 | static PyObject *_wrap_delete_wxFileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2189 | PyObject * _resultobj; | |
2190 | wxFileConfig * _arg0; | |
2191 | PyObject * _argo0 = 0; | |
2192 | char *_kwnames[] = { "self", NULL }; | |
2193 | ||
2194 | self = self; | |
2195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileConfig",_kwnames,&_argo0)) | |
2196 | return NULL; | |
2197 | if (_argo0) { | |
2198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileConfig_p")) { | |
2200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileConfig. Expected _wxFileConfig_p."); | |
2201 | return NULL; | |
2202 | } | |
2203 | } | |
2204 | { | |
2205 | wxPy_BEGIN_ALLOW_THREADS; | |
2206 | delete_wxFileConfig(_arg0); | |
2207 | ||
2208 | wxPy_END_ALLOW_THREADS; | |
2209 | } Py_INCREF(Py_None); | |
2210 | _resultobj = Py_None; | |
2211 | return _resultobj; | |
2212 | } | |
2213 | ||
2214 | static PyObject *_wrap_wxDateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2215 | PyObject * _resultobj; | |
2216 | wxDateTime::Country _arg0; | |
2217 | char *_kwnames[] = { "country", NULL }; | |
2218 | ||
2219 | self = self; | |
2220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxDateTime_SetCountry",_kwnames,&_arg0)) | |
2221 | return NULL; | |
2222 | { | |
2223 | wxPy_BEGIN_ALLOW_THREADS; | |
2224 | wxDateTime::SetCountry(_arg0); | |
2225 | ||
2226 | wxPy_END_ALLOW_THREADS; | |
2227 | } Py_INCREF(Py_None); | |
2228 | _resultobj = Py_None; | |
2229 | return _resultobj; | |
2230 | } | |
2231 | ||
2232 | static PyObject *_wrap_wxDateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2233 | PyObject * _resultobj; | |
2234 | wxDateTime::Country _result; | |
2235 | char *_kwnames[] = { NULL }; | |
2236 | ||
2237 | self = self; | |
2238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDateTime_GetCountry",_kwnames)) | |
2239 | return NULL; | |
2240 | { | |
2241 | wxPy_BEGIN_ALLOW_THREADS; | |
2242 | _result = (wxDateTime::Country )wxDateTime::GetCountry(); | |
2243 | ||
2244 | wxPy_END_ALLOW_THREADS; | |
2245 | } _resultobj = Py_BuildValue("i",_result); | |
2246 | return _resultobj; | |
2247 | } | |
2248 | ||
2249 | static PyObject *_wrap_wxDateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2250 | PyObject * _resultobj; | |
2251 | bool _result; | |
2252 | wxDateTime::Country _arg0 = (wxDateTime::Country ) wxDateTime::Country_Default; | |
2253 | char *_kwnames[] = { "country", NULL }; | |
2254 | ||
2255 | self = self; | |
2256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxDateTime_IsWestEuropeanCountry",_kwnames,&_arg0)) | |
2257 | return NULL; | |
2258 | { | |
2259 | wxPy_BEGIN_ALLOW_THREADS; | |
2260 | _result = (bool )wxDateTime::IsWestEuropeanCountry(_arg0); | |
2261 | ||
2262 | wxPy_END_ALLOW_THREADS; | |
2263 | } _resultobj = Py_BuildValue("i",_result); | |
2264 | return _resultobj; | |
2265 | } | |
2266 | ||
2267 | static PyObject *_wrap_wxDateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2268 | PyObject * _resultobj; | |
2269 | int _result; | |
2270 | wxDateTime::Calendar _arg0 = (wxDateTime::Calendar ) wxDateTime::Gregorian; | |
2271 | char *_kwnames[] = { "cal", NULL }; | |
2272 | ||
2273 | self = self; | |
2274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxDateTime_GetCurrentYear",_kwnames,&_arg0)) | |
2275 | return NULL; | |
2276 | { | |
2277 | wxPy_BEGIN_ALLOW_THREADS; | |
2278 | _result = (int )wxDateTime::GetCurrentYear(_arg0); | |
2279 | ||
2280 | wxPy_END_ALLOW_THREADS; | |
2281 | } _resultobj = Py_BuildValue("i",_result); | |
2282 | return _resultobj; | |
2283 | } | |
2284 | ||
2285 | static PyObject *_wrap_wxDateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2286 | PyObject * _resultobj; | |
2287 | int _result; | |
2288 | int _arg0; | |
2289 | char *_kwnames[] = { "year", NULL }; | |
2290 | ||
2291 | self = self; | |
2292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxDateTime_ConvertYearToBC",_kwnames,&_arg0)) | |
2293 | return NULL; | |
2294 | { | |
2295 | wxPy_BEGIN_ALLOW_THREADS; | |
2296 | _result = (int )wxDateTime::ConvertYearToBC(_arg0); | |
2297 | ||
2298 | wxPy_END_ALLOW_THREADS; | |
2299 | } _resultobj = Py_BuildValue("i",_result); | |
2300 | return _resultobj; | |
2301 | } | |
2302 | ||
2303 | static PyObject *_wrap_wxDateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2304 | PyObject * _resultobj; | |
2305 | wxDateTime::Month _result; | |
2306 | wxDateTime::Calendar _arg0 = (wxDateTime::Calendar ) wxDateTime::Gregorian; | |
2307 | char *_kwnames[] = { "cal", NULL }; | |
2308 | ||
2309 | self = self; | |
2310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxDateTime_GetCurrentMonth",_kwnames,&_arg0)) | |
2311 | return NULL; | |
2312 | { | |
2313 | wxPy_BEGIN_ALLOW_THREADS; | |
2314 | _result = (wxDateTime::Month )wxDateTime::GetCurrentMonth(_arg0); | |
2315 | ||
2316 | wxPy_END_ALLOW_THREADS; | |
2317 | } _resultobj = Py_BuildValue("i",_result); | |
2318 | return _resultobj; | |
2319 | } | |
2320 | ||
2321 | static PyObject *_wrap_wxDateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2322 | PyObject * _resultobj; | |
2323 | bool _result; | |
2324 | int _arg0 = (int ) wxDateTime::Inv_Year; | |
2325 | wxDateTime::Calendar _arg1 = (wxDateTime::Calendar ) wxDateTime::Gregorian; | |
2326 | char *_kwnames[] = { "year","cal", NULL }; | |
2327 | ||
2328 | self = self; | |
2329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:wxDateTime_IsLeapYear",_kwnames,&_arg0,&_arg1)) | |
2330 | return NULL; | |
2331 | { | |
2332 | wxPy_BEGIN_ALLOW_THREADS; | |
2333 | _result = (bool )wxDateTime::IsLeapYear(_arg0,_arg1); | |
2334 | ||
2335 | wxPy_END_ALLOW_THREADS; | |
2336 | } _resultobj = Py_BuildValue("i",_result); | |
2337 | return _resultobj; | |
2338 | } | |
2339 | ||
2340 | static PyObject *_wrap_wxDateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2341 | PyObject * _resultobj; | |
2342 | int _result; | |
2343 | int _arg0 = (int ) wxDateTime::Inv_Year; | |
2344 | char *_kwnames[] = { "year", NULL }; | |
2345 | ||
2346 | self = self; | |
2347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxDateTime_GetCentury",_kwnames,&_arg0)) | |
2348 | return NULL; | |
2349 | { | |
2350 | wxPy_BEGIN_ALLOW_THREADS; | |
2351 | _result = (int )wxDateTime::GetCentury(_arg0); | |
2352 | ||
2353 | wxPy_END_ALLOW_THREADS; | |
2354 | } _resultobj = Py_BuildValue("i",_result); | |
2355 | return _resultobj; | |
2356 | } | |
2357 | ||
2358 | static PyObject *_wrap_wxDateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2359 | PyObject * _resultobj; | |
2360 | wxDateTime::wxDateTime_t _result; | |
2361 | int _arg0; | |
2362 | wxDateTime::Calendar _arg1 = (wxDateTime::Calendar ) wxDateTime::Gregorian; | |
2363 | char *_kwnames[] = { "year","cal", NULL }; | |
2364 | ||
2365 | self = self; | |
2366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i|i:wxDateTime_GetNumberOfDaysinYear",_kwnames,&_arg0,&_arg1)) | |
2367 | return NULL; | |
2368 | { | |
2369 | wxPy_BEGIN_ALLOW_THREADS; | |
2370 | _result = (wxDateTime::wxDateTime_t )wxDateTime::GetNumberOfDays(_arg0,_arg1); | |
2371 | ||
2372 | wxPy_END_ALLOW_THREADS; | |
2373 | } _resultobj = Py_BuildValue("h",_result); | |
2374 | return _resultobj; | |
2375 | } | |
2376 | ||
2377 | static PyObject *_wrap_wxDateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2378 | PyObject * _resultobj; | |
2379 | wxDateTime::wxDateTime_t _result; | |
2380 | wxDateTime::Month _arg0; | |
2381 | int _arg1 = (int ) wxDateTime::Inv_Year; | |
2382 | wxDateTime::Calendar _arg2 = (wxDateTime::Calendar ) wxDateTime::Gregorian; | |
2383 | char *_kwnames[] = { "month","year","cal", NULL }; | |
2384 | ||
2385 | self = self; | |
2386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i|ii:wxDateTime_GetNumberOfDaysInMonth",_kwnames,&_arg0,&_arg1,&_arg2)) | |
2387 | return NULL; | |
2388 | { | |
2389 | wxPy_BEGIN_ALLOW_THREADS; | |
2390 | _result = (wxDateTime::wxDateTime_t )wxDateTime::GetNumberOfDays(_arg0,_arg1,_arg2); | |
2391 | ||
2392 | wxPy_END_ALLOW_THREADS; | |
2393 | } _resultobj = Py_BuildValue("h",_result); | |
2394 | return _resultobj; | |
2395 | } | |
2396 | ||
2397 | static PyObject *_wrap_wxDateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2398 | PyObject * _resultobj; | |
2399 | wxString * _result; | |
2400 | wxDateTime::Month _arg0; | |
2401 | wxDateTime::NameFlags _arg1 = (wxDateTime::NameFlags ) wxDateTime::Name_Full; | |
2402 | char *_kwnames[] = { "month","flags", NULL }; | |
2403 | ||
2404 | self = self; | |
2405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i|i:wxDateTime_GetMonthName",_kwnames,&_arg0,&_arg1)) | |
2406 | return NULL; | |
2407 | { | |
2408 | wxPy_BEGIN_ALLOW_THREADS; | |
2409 | _result = new wxString (wxDateTime::GetMonthName(_arg0,_arg1)); | |
2410 | ||
2411 | wxPy_END_ALLOW_THREADS; | |
2412 | }{ | |
2413 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2414 | } | |
2415 | { | |
2416 | delete _result; | |
2417 | } | |
2418 | return _resultobj; | |
2419 | } | |
2420 | ||
2421 | static PyObject *_wrap_wxDateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2422 | PyObject * _resultobj; | |
2423 | wxString * _result; | |
2424 | wxDateTime::WeekDay _arg0; | |
2425 | wxDateTime::NameFlags _arg1 = (wxDateTime::NameFlags ) wxDateTime::Name_Full; | |
2426 | char *_kwnames[] = { "weekday","flags", NULL }; | |
2427 | ||
2428 | self = self; | |
2429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i|i:wxDateTime_GetWeekDayName",_kwnames,&_arg0,&_arg1)) | |
2430 | return NULL; | |
2431 | { | |
2432 | wxPy_BEGIN_ALLOW_THREADS; | |
2433 | _result = new wxString (wxDateTime::GetWeekDayName(_arg0,_arg1)); | |
2434 | ||
2435 | wxPy_END_ALLOW_THREADS; | |
2436 | }{ | |
2437 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2438 | } | |
2439 | { | |
2440 | delete _result; | |
2441 | } | |
2442 | return _resultobj; | |
2443 | } | |
2444 | ||
2445 | static PyObject *_wrap_wxDateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2446 | PyObject * _resultobj; | |
2447 | wxString * _arg0; | |
2448 | wxString * _arg1; | |
2449 | PyObject * _obj0 = 0; | |
2450 | PyObject * _obj1 = 0; | |
2451 | char *_kwnames[] = { "OUTPUT","OUTPUT", NULL }; | |
2452 | ||
2453 | self = self; | |
2454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime_GetAmPmStrings",_kwnames,&_obj0,&_obj1)) | |
2455 | return NULL; | |
2456 | { | |
2cd2fac8 RD |
2457 | #if PYTHON_API_VERSION >= 1009 |
2458 | char* tmpPtr; int tmpSize; | |
2459 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
2460 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
2461 | return NULL; | |
2462 | } | |
2463 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2464 | return NULL; | |
2465 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2466 | #else | |
f6bcfd97 BP |
2467 | if (!PyString_Check(_obj0)) { |
2468 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2469 | return NULL; | |
2470 | } | |
2cd2fac8 RD |
2471 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2472 | #endif | |
f6bcfd97 BP |
2473 | } |
2474 | { | |
2cd2fac8 RD |
2475 | #if PYTHON_API_VERSION >= 1009 |
2476 | char* tmpPtr; int tmpSize; | |
2477 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2478 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
2479 | return NULL; | |
2480 | } | |
2481 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2482 | return NULL; | |
2483 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2484 | #else | |
f6bcfd97 BP |
2485 | if (!PyString_Check(_obj1)) { |
2486 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2487 | return NULL; | |
2488 | } | |
2cd2fac8 RD |
2489 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2490 | #endif | |
f6bcfd97 BP |
2491 | } |
2492 | { | |
2493 | wxPy_BEGIN_ALLOW_THREADS; | |
2494 | wxDateTime::GetAmPmStrings(_arg0,_arg1); | |
2495 | ||
2496 | wxPy_END_ALLOW_THREADS; | |
2497 | } Py_INCREF(Py_None); | |
2498 | _resultobj = Py_None; | |
2499 | { | |
2500 | if (_obj0) | |
2501 | delete _arg0; | |
2502 | } | |
2503 | { | |
2504 | if (_obj1) | |
2505 | delete _arg1; | |
2506 | } | |
2507 | return _resultobj; | |
2508 | } | |
2509 | ||
2510 | static PyObject *_wrap_wxDateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2511 | PyObject * _resultobj; | |
2512 | bool _result; | |
2513 | int _arg0 = (int ) wxDateTime::Inv_Year; | |
2514 | wxDateTime::Country _arg1 = (wxDateTime::Country ) wxDateTime::Country_Default; | |
2515 | char *_kwnames[] = { "year","country", NULL }; | |
2516 | ||
2517 | self = self; | |
2518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:wxDateTime_IsDSTApplicable",_kwnames,&_arg0,&_arg1)) | |
2519 | return NULL; | |
2520 | { | |
2521 | wxPy_BEGIN_ALLOW_THREADS; | |
2522 | _result = (bool )wxDateTime::IsDSTApplicable(_arg0,_arg1); | |
2523 | ||
2524 | wxPy_END_ALLOW_THREADS; | |
2525 | } _resultobj = Py_BuildValue("i",_result); | |
2526 | return _resultobj; | |
2527 | } | |
2528 | ||
2529 | static PyObject *_wrap_wxDateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2530 | PyObject * _resultobj; | |
2531 | wxDateTime * _result; | |
2532 | int _arg0 = (int ) wxDateTime::Inv_Year; | |
2533 | wxDateTime::Country _arg1 = (wxDateTime::Country ) wxDateTime::Country_Default; | |
2534 | char *_kwnames[] = { "year","country", NULL }; | |
2535 | char _ptemp[128]; | |
2536 | ||
2537 | self = self; | |
2538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:wxDateTime_GetBeginDST",_kwnames,&_arg0,&_arg1)) | |
2539 | return NULL; | |
2540 | { | |
2541 | wxPy_BEGIN_ALLOW_THREADS; | |
2542 | _result = new wxDateTime (wxDateTime::GetBeginDST(_arg0,_arg1)); | |
2543 | ||
2544 | wxPy_END_ALLOW_THREADS; | |
2545 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); | |
2546 | _resultobj = Py_BuildValue("s",_ptemp); | |
2547 | return _resultobj; | |
2548 | } | |
2549 | ||
2550 | static PyObject *_wrap_wxDateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2551 | PyObject * _resultobj; | |
2552 | wxDateTime * _result; | |
2553 | int _arg0 = (int ) wxDateTime::Inv_Year; | |
2554 | wxDateTime::Country _arg1 = (wxDateTime::Country ) wxDateTime::Country_Default; | |
2555 | char *_kwnames[] = { "year","country", NULL }; | |
2556 | char _ptemp[128]; | |
2557 | ||
2558 | self = self; | |
2559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:wxDateTime_GetEndDST",_kwnames,&_arg0,&_arg1)) | |
2560 | return NULL; | |
2561 | { | |
2562 | wxPy_BEGIN_ALLOW_THREADS; | |
2563 | _result = new wxDateTime (wxDateTime::GetEndDST(_arg0,_arg1)); | |
2564 | ||
2565 | wxPy_END_ALLOW_THREADS; | |
2566 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); | |
2567 | _resultobj = Py_BuildValue("s",_ptemp); | |
2568 | return _resultobj; | |
2569 | } | |
2570 | ||
2571 | static PyObject *_wrap_wxDateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2572 | PyObject * _resultobj; | |
2573 | wxDateTime * _result; | |
2574 | char *_kwnames[] = { NULL }; | |
2575 | char _ptemp[128]; | |
2576 | ||
2577 | self = self; | |
2578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDateTime_Now",_kwnames)) | |
2579 | return NULL; | |
2580 | { | |
2581 | wxPy_BEGIN_ALLOW_THREADS; | |
2582 | _result = new wxDateTime (wxDateTime::Now()); | |
2583 | ||
2584 | wxPy_END_ALLOW_THREADS; | |
2585 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); | |
2586 | _resultobj = Py_BuildValue("s",_ptemp); | |
2587 | return _resultobj; | |
2588 | } | |
2589 | ||
2590 | static PyObject *_wrap_wxDateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2591 | PyObject * _resultobj; | |
2592 | wxDateTime * _result; | |
2593 | char *_kwnames[] = { NULL }; | |
2594 | char _ptemp[128]; | |
2595 | ||
2596 | self = self; | |
2597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDateTime_Today",_kwnames)) | |
2598 | return NULL; | |
2599 | { | |
2600 | wxPy_BEGIN_ALLOW_THREADS; | |
2601 | _result = new wxDateTime (wxDateTime::Today()); | |
2602 | ||
2603 | wxPy_END_ALLOW_THREADS; | |
2604 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); | |
2605 | _resultobj = Py_BuildValue("s",_ptemp); | |
2606 | return _resultobj; | |
2607 | } | |
2608 | ||
2609 | #define new_wxDateTime() (new wxDateTime()) | |
2610 | static PyObject *_wrap_new_wxDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2611 | PyObject * _resultobj; | |
2612 | wxDateTime * _result; | |
2613 | char *_kwnames[] = { NULL }; | |
2614 | char _ptemp[128]; | |
2615 | ||
2616 | self = self; | |
2617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxDateTime",_kwnames)) | |
2618 | return NULL; | |
2619 | { | |
2620 | wxPy_BEGIN_ALLOW_THREADS; | |
2621 | _result = (wxDateTime *)new_wxDateTime(); | |
2622 | ||
2623 | wxPy_END_ALLOW_THREADS; | |
2624 | } if (_result) { | |
2625 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
2626 | _resultobj = Py_BuildValue("s",_ptemp); | |
2627 | } else { | |
2628 | Py_INCREF(Py_None); | |
2629 | _resultobj = Py_None; | |
2630 | } | |
2631 | return _resultobj; | |
2632 | } | |
2633 | ||
2634 | #define new_wxDateTimeFromTimeT(_swigarg0) (new wxDateTime(_swigarg0)) | |
2635 | static PyObject *_wrap_new_wxDateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2636 | PyObject * _resultobj; | |
2637 | wxDateTime * _result; | |
c368d904 | 2638 | time_t _arg0; |
f6bcfd97 BP |
2639 | char *_kwnames[] = { "timet", NULL }; |
2640 | char _ptemp[128]; | |
2641 | ||
2642 | self = self; | |
c368d904 | 2643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:new_wxDateTimeFromTimeT",_kwnames,&_arg0)) |
f6bcfd97 | 2644 | return NULL; |
f6bcfd97 BP |
2645 | { |
2646 | wxPy_BEGIN_ALLOW_THREADS; | |
c368d904 | 2647 | _result = (wxDateTime *)new_wxDateTimeFromTimeT(_arg0); |
f6bcfd97 BP |
2648 | |
2649 | wxPy_END_ALLOW_THREADS; | |
2650 | } if (_result) { | |
2651 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
2652 | _resultobj = Py_BuildValue("s",_ptemp); | |
2653 | } else { | |
2654 | Py_INCREF(Py_None); | |
2655 | _resultobj = Py_None; | |
2656 | } | |
2657 | return _resultobj; | |
2658 | } | |
2659 | ||
2660 | #define new_wxDateTimeFromJDN(_swigarg0) (new wxDateTime(_swigarg0)) | |
2661 | static PyObject *_wrap_new_wxDateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2662 | PyObject * _resultobj; | |
2663 | wxDateTime * _result; | |
2664 | double _arg0; | |
2665 | char *_kwnames[] = { "jdn", NULL }; | |
2666 | char _ptemp[128]; | |
2667 | ||
2668 | self = self; | |
2669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"d:new_wxDateTimeFromJDN",_kwnames,&_arg0)) | |
2670 | return NULL; | |
2671 | { | |
2672 | wxPy_BEGIN_ALLOW_THREADS; | |
2673 | _result = (wxDateTime *)new_wxDateTimeFromJDN(_arg0); | |
2674 | ||
2675 | wxPy_END_ALLOW_THREADS; | |
2676 | } if (_result) { | |
2677 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
2678 | _resultobj = Py_BuildValue("s",_ptemp); | |
2679 | } else { | |
2680 | Py_INCREF(Py_None); | |
2681 | _resultobj = Py_None; | |
2682 | } | |
2683 | return _resultobj; | |
2684 | } | |
2685 | ||
2686 | #define new_wxDateTimeFromHMS(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxDateTime(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
2687 | static PyObject *_wrap_new_wxDateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2688 | PyObject * _resultobj; | |
2689 | wxDateTime * _result; | |
2690 | wxDateTime::wxDateTime_t _arg0; | |
2691 | wxDateTime::wxDateTime_t _arg1 = (wxDateTime::wxDateTime_t ) 0; | |
2692 | wxDateTime::wxDateTime_t _arg2 = (wxDateTime::wxDateTime_t ) 0; | |
2693 | wxDateTime::wxDateTime_t _arg3 = (wxDateTime::wxDateTime_t ) 0; | |
2694 | char *_kwnames[] = { "hour","minute","second","millisec", NULL }; | |
2695 | char _ptemp[128]; | |
2696 | ||
2697 | self = self; | |
2698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"h|hhh:new_wxDateTimeFromHMS",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
2699 | return NULL; | |
2700 | { | |
2701 | wxPy_BEGIN_ALLOW_THREADS; | |
2702 | _result = (wxDateTime *)new_wxDateTimeFromHMS(_arg0,_arg1,_arg2,_arg3); | |
2703 | ||
2704 | wxPy_END_ALLOW_THREADS; | |
2705 | } if (_result) { | |
2706 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
2707 | _resultobj = Py_BuildValue("s",_ptemp); | |
2708 | } else { | |
2709 | Py_INCREF(Py_None); | |
2710 | _resultobj = Py_None; | |
2711 | } | |
2712 | return _resultobj; | |
2713 | } | |
2714 | ||
2715 | #define new_wxDateTimeFromDMY(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDateTime(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
2716 | static PyObject *_wrap_new_wxDateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2717 | PyObject * _resultobj; | |
2718 | wxDateTime * _result; | |
2719 | wxDateTime::wxDateTime_t _arg0; | |
2720 | wxDateTime::Month _arg1 = (wxDateTime::Month ) wxDateTime::Inv_Month; | |
2721 | int _arg2 = (int ) wxDateTime::Inv_Year; | |
2722 | wxDateTime::wxDateTime_t _arg3 = (wxDateTime::wxDateTime_t ) 0; | |
2723 | wxDateTime::wxDateTime_t _arg4 = (wxDateTime::wxDateTime_t ) 0; | |
2724 | wxDateTime::wxDateTime_t _arg5 = (wxDateTime::wxDateTime_t ) 0; | |
2725 | wxDateTime::wxDateTime_t _arg6 = (wxDateTime::wxDateTime_t ) 0; | |
2726 | char *_kwnames[] = { "day","month","year","hour","minute","second","millisec", NULL }; | |
2727 | char _ptemp[128]; | |
2728 | ||
2729 | self = self; | |
2730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"h|iihhhh:new_wxDateTimeFromDMY",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
2731 | return NULL; | |
2732 | { | |
2733 | wxPy_BEGIN_ALLOW_THREADS; | |
2734 | _result = (wxDateTime *)new_wxDateTimeFromDMY(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
2735 | ||
2736 | wxPy_END_ALLOW_THREADS; | |
2737 | } if (_result) { | |
2738 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
2739 | _resultobj = Py_BuildValue("s",_ptemp); | |
2740 | } else { | |
2741 | Py_INCREF(Py_None); | |
2742 | _resultobj = Py_None; | |
2743 | } | |
2744 | return _resultobj; | |
2745 | } | |
2746 | ||
2747 | #define delete_wxDateTime(_swigobj) (delete _swigobj) | |
2748 | static PyObject *_wrap_delete_wxDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2749 | PyObject * _resultobj; | |
2750 | wxDateTime * _arg0; | |
2751 | PyObject * _argo0 = 0; | |
2752 | char *_kwnames[] = { "self", NULL }; | |
2753 | ||
2754 | self = self; | |
2755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDateTime",_kwnames,&_argo0)) | |
2756 | return NULL; | |
2757 | if (_argo0) { | |
2758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
2760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDateTime. Expected _wxDateTime_p."); | |
2761 | return NULL; | |
2762 | } | |
2763 | } | |
2764 | { | |
2765 | wxPy_BEGIN_ALLOW_THREADS; | |
2766 | delete_wxDateTime(_arg0); | |
2767 | ||
2768 | wxPy_END_ALLOW_THREADS; | |
2769 | } Py_INCREF(Py_None); | |
2770 | _resultobj = Py_None; | |
2771 | return _resultobj; | |
2772 | } | |
2773 | ||
2774 | #define wxDateTime_SetToCurrent(_swigobj) (_swigobj->SetToCurrent()) | |
2775 | static PyObject *_wrap_wxDateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2776 | PyObject * _resultobj; | |
2777 | wxDateTime * _result; | |
2778 | wxDateTime * _arg0; | |
2779 | PyObject * _argo0 = 0; | |
2780 | char *_kwnames[] = { "self", NULL }; | |
2781 | char _ptemp[128]; | |
2782 | ||
2783 | self = self; | |
2784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_SetToCurrent",_kwnames,&_argo0)) | |
2785 | return NULL; | |
2786 | if (_argo0) { | |
2787 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2788 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
2789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetToCurrent. Expected _wxDateTime_p."); | |
2790 | return NULL; | |
2791 | } | |
2792 | } | |
2793 | { | |
2794 | wxPy_BEGIN_ALLOW_THREADS; | |
2795 | wxDateTime & _result_ref = wxDateTime_SetToCurrent(_arg0); | |
2796 | _result = (wxDateTime *) &_result_ref; | |
2797 | ||
2798 | wxPy_END_ALLOW_THREADS; | |
2799 | } if (_result) { | |
2800 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
2801 | _resultobj = Py_BuildValue("s",_ptemp); | |
2802 | } else { | |
2803 | Py_INCREF(Py_None); | |
2804 | _resultobj = Py_None; | |
2805 | } | |
2806 | return _resultobj; | |
2807 | } | |
2808 | ||
2809 | #define wxDateTime_SetTimeT(_swigobj,_swigarg0) (_swigobj->Set(_swigarg0)) | |
2810 | static PyObject *_wrap_wxDateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2811 | PyObject * _resultobj; | |
2812 | wxDateTime * _result; | |
2813 | wxDateTime * _arg0; | |
c368d904 | 2814 | time_t _arg1; |
f6bcfd97 | 2815 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2816 | char *_kwnames[] = { "self","timet", NULL }; |
2817 | char _ptemp[128]; | |
2818 | ||
2819 | self = self; | |
c368d904 | 2820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateTime_SetTimeT",_kwnames,&_argo0,&_arg1)) |
f6bcfd97 BP |
2821 | return NULL; |
2822 | if (_argo0) { | |
2823 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2824 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
2825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetTimeT. Expected _wxDateTime_p."); | |
2826 | return NULL; | |
2827 | } | |
2828 | } | |
f6bcfd97 BP |
2829 | { |
2830 | wxPy_BEGIN_ALLOW_THREADS; | |
c368d904 | 2831 | wxDateTime & _result_ref = wxDateTime_SetTimeT(_arg0,_arg1); |
f6bcfd97 BP |
2832 | _result = (wxDateTime *) &_result_ref; |
2833 | ||
2834 | wxPy_END_ALLOW_THREADS; | |
2835 | } if (_result) { | |
2836 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
2837 | _resultobj = Py_BuildValue("s",_ptemp); | |
2838 | } else { | |
2839 | Py_INCREF(Py_None); | |
2840 | _resultobj = Py_None; | |
2841 | } | |
2842 | return _resultobj; | |
2843 | } | |
2844 | ||
2845 | #define wxDateTime_SetJDN(_swigobj,_swigarg0) (_swigobj->Set(_swigarg0)) | |
2846 | static PyObject *_wrap_wxDateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2847 | PyObject * _resultobj; | |
2848 | wxDateTime * _result; | |
2849 | wxDateTime * _arg0; | |
2850 | double _arg1; | |
2851 | PyObject * _argo0 = 0; | |
2852 | char *_kwnames[] = { "self","jdn", NULL }; | |
2853 | char _ptemp[128]; | |
2854 | ||
2855 | self = self; | |
2856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Od:wxDateTime_SetJDN",_kwnames,&_argo0,&_arg1)) | |
2857 | return NULL; | |
2858 | if (_argo0) { | |
2859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
2861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetJDN. Expected _wxDateTime_p."); | |
2862 | return NULL; | |
2863 | } | |
2864 | } | |
2865 | { | |
2866 | wxPy_BEGIN_ALLOW_THREADS; | |
2867 | wxDateTime & _result_ref = wxDateTime_SetJDN(_arg0,_arg1); | |
2868 | _result = (wxDateTime *) &_result_ref; | |
2869 | ||
2870 | wxPy_END_ALLOW_THREADS; | |
2871 | } if (_result) { | |
2872 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
2873 | _resultobj = Py_BuildValue("s",_ptemp); | |
2874 | } else { | |
2875 | Py_INCREF(Py_None); | |
2876 | _resultobj = Py_None; | |
2877 | } | |
2878 | return _resultobj; | |
2879 | } | |
2880 | ||
2881 | #define wxDateTime_SetHMS(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
2882 | static PyObject *_wrap_wxDateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2883 | PyObject * _resultobj; | |
2884 | wxDateTime * _result; | |
2885 | wxDateTime * _arg0; | |
2886 | wxDateTime::wxDateTime_t _arg1; | |
2887 | wxDateTime::wxDateTime_t _arg2 = (wxDateTime::wxDateTime_t ) 0; | |
2888 | wxDateTime::wxDateTime_t _arg3 = (wxDateTime::wxDateTime_t ) 0; | |
2889 | wxDateTime::wxDateTime_t _arg4 = (wxDateTime::wxDateTime_t ) 0; | |
2890 | PyObject * _argo0 = 0; | |
2891 | char *_kwnames[] = { "self","hour","minute","second","millisec", NULL }; | |
2892 | char _ptemp[128]; | |
2893 | ||
2894 | self = self; | |
2895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oh|hhh:wxDateTime_SetHMS",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2896 | return NULL; | |
2897 | if (_argo0) { | |
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_SetHMS. Expected _wxDateTime_p."); | |
2901 | return NULL; | |
2902 | } | |
2903 | } | |
2904 | { | |
2905 | wxPy_BEGIN_ALLOW_THREADS; | |
2906 | wxDateTime & _result_ref = wxDateTime_SetHMS(_arg0,_arg1,_arg2,_arg3,_arg4); | |
2907 | _result = (wxDateTime *) &_result_ref; | |
2908 | ||
2909 | wxPy_END_ALLOW_THREADS; | |
2910 | } if (_result) { | |
2911 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
2912 | _resultobj = Py_BuildValue("s",_ptemp); | |
2913 | } else { | |
2914 | Py_INCREF(Py_None); | |
2915 | _resultobj = Py_None; | |
2916 | } | |
2917 | return _resultobj; | |
2918 | } | |
2919 | ||
2920 | #define wxDateTime_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
2921 | static PyObject *_wrap_wxDateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2922 | PyObject * _resultobj; | |
2923 | wxDateTime * _result; | |
2924 | wxDateTime * _arg0; | |
2925 | wxDateTime::wxDateTime_t _arg1; | |
2926 | wxDateTime::Month _arg2 = (wxDateTime::Month ) wxDateTime::Inv_Month; | |
2927 | int _arg3 = (int ) wxDateTime::Inv_Year; | |
2928 | wxDateTime::wxDateTime_t _arg4 = (wxDateTime::wxDateTime_t ) 0; | |
2929 | wxDateTime::wxDateTime_t _arg5 = (wxDateTime::wxDateTime_t ) 0; | |
2930 | wxDateTime::wxDateTime_t _arg6 = (wxDateTime::wxDateTime_t ) 0; | |
2931 | wxDateTime::wxDateTime_t _arg7 = (wxDateTime::wxDateTime_t ) 0; | |
2932 | PyObject * _argo0 = 0; | |
2933 | char *_kwnames[] = { "self","day","month","year","hour","minute","second","millisec", NULL }; | |
2934 | char _ptemp[128]; | |
2935 | ||
2936 | self = self; | |
2937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oh|iihhhh:wxDateTime_Set",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) | |
2938 | return NULL; | |
2939 | if (_argo0) { | |
2940 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2941 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
2942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_Set. Expected _wxDateTime_p."); | |
2943 | return NULL; | |
2944 | } | |
2945 | } | |
2946 | { | |
2947 | wxPy_BEGIN_ALLOW_THREADS; | |
2948 | wxDateTime & _result_ref = wxDateTime_Set(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); | |
2949 | _result = (wxDateTime *) &_result_ref; | |
2950 | ||
2951 | wxPy_END_ALLOW_THREADS; | |
2952 | } if (_result) { | |
2953 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
2954 | _resultobj = Py_BuildValue("s",_ptemp); | |
2955 | } else { | |
2956 | Py_INCREF(Py_None); | |
2957 | _resultobj = Py_None; | |
2958 | } | |
2959 | return _resultobj; | |
2960 | } | |
2961 | ||
2962 | #define wxDateTime_ResetTime(_swigobj) (_swigobj->ResetTime()) | |
2963 | static PyObject *_wrap_wxDateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2964 | PyObject * _resultobj; | |
2965 | wxDateTime * _result; | |
2966 | wxDateTime * _arg0; | |
2967 | PyObject * _argo0 = 0; | |
2968 | char *_kwnames[] = { "self", NULL }; | |
2969 | char _ptemp[128]; | |
2970 | ||
2971 | self = self; | |
2972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_ResetTime",_kwnames,&_argo0)) | |
2973 | return NULL; | |
2974 | if (_argo0) { | |
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_ResetTime. Expected _wxDateTime_p."); | |
2978 | return NULL; | |
2979 | } | |
2980 | } | |
2981 | { | |
2982 | wxPy_BEGIN_ALLOW_THREADS; | |
2983 | wxDateTime & _result_ref = wxDateTime_ResetTime(_arg0); | |
2984 | _result = (wxDateTime *) &_result_ref; | |
2985 | ||
2986 | wxPy_END_ALLOW_THREADS; | |
2987 | } if (_result) { | |
2988 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
2989 | _resultobj = Py_BuildValue("s",_ptemp); | |
2990 | } else { | |
2991 | Py_INCREF(Py_None); | |
2992 | _resultobj = Py_None; | |
2993 | } | |
2994 | return _resultobj; | |
2995 | } | |
2996 | ||
2997 | #define wxDateTime_SetYear(_swigobj,_swigarg0) (_swigobj->SetYear(_swigarg0)) | |
2998 | static PyObject *_wrap_wxDateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2999 | PyObject * _resultobj; | |
3000 | wxDateTime * _result; | |
3001 | wxDateTime * _arg0; | |
3002 | int _arg1; | |
3003 | PyObject * _argo0 = 0; | |
3004 | char *_kwnames[] = { "self","year", NULL }; | |
3005 | char _ptemp[128]; | |
3006 | ||
3007 | self = self; | |
3008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateTime_SetYear",_kwnames,&_argo0,&_arg1)) | |
3009 | return NULL; | |
3010 | if (_argo0) { | |
3011 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3012 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3013 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetYear. Expected _wxDateTime_p."); | |
3014 | return NULL; | |
3015 | } | |
3016 | } | |
3017 | { | |
3018 | wxPy_BEGIN_ALLOW_THREADS; | |
3019 | wxDateTime & _result_ref = wxDateTime_SetYear(_arg0,_arg1); | |
3020 | _result = (wxDateTime *) &_result_ref; | |
3021 | ||
3022 | wxPy_END_ALLOW_THREADS; | |
3023 | } if (_result) { | |
3024 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
3025 | _resultobj = Py_BuildValue("s",_ptemp); | |
3026 | } else { | |
3027 | Py_INCREF(Py_None); | |
3028 | _resultobj = Py_None; | |
3029 | } | |
3030 | return _resultobj; | |
3031 | } | |
3032 | ||
3033 | #define wxDateTime_SetMonth(_swigobj,_swigarg0) (_swigobj->SetMonth(_swigarg0)) | |
3034 | static PyObject *_wrap_wxDateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3035 | PyObject * _resultobj; | |
3036 | wxDateTime * _result; | |
3037 | wxDateTime * _arg0; | |
3038 | wxDateTime::Month _arg1; | |
3039 | PyObject * _argo0 = 0; | |
3040 | char *_kwnames[] = { "self","month", NULL }; | |
3041 | char _ptemp[128]; | |
3042 | ||
3043 | self = self; | |
3044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateTime_SetMonth",_kwnames,&_argo0,&_arg1)) | |
3045 | return NULL; | |
3046 | if (_argo0) { | |
3047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetMonth. Expected _wxDateTime_p."); | |
3050 | return NULL; | |
3051 | } | |
3052 | } | |
3053 | { | |
3054 | wxPy_BEGIN_ALLOW_THREADS; | |
3055 | wxDateTime & _result_ref = wxDateTime_SetMonth(_arg0,_arg1); | |
3056 | _result = (wxDateTime *) &_result_ref; | |
3057 | ||
3058 | wxPy_END_ALLOW_THREADS; | |
3059 | } if (_result) { | |
3060 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
3061 | _resultobj = Py_BuildValue("s",_ptemp); | |
3062 | } else { | |
3063 | Py_INCREF(Py_None); | |
3064 | _resultobj = Py_None; | |
3065 | } | |
3066 | return _resultobj; | |
3067 | } | |
3068 | ||
3069 | #define wxDateTime_SetDay(_swigobj,_swigarg0) (_swigobj->SetDay(_swigarg0)) | |
3070 | static PyObject *_wrap_wxDateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3071 | PyObject * _resultobj; | |
3072 | wxDateTime * _result; | |
3073 | wxDateTime * _arg0; | |
3074 | wxDateTime::wxDateTime_t _arg1; | |
3075 | PyObject * _argo0 = 0; | |
3076 | char *_kwnames[] = { "self","day", NULL }; | |
3077 | char _ptemp[128]; | |
3078 | ||
3079 | self = self; | |
3080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oh:wxDateTime_SetDay",_kwnames,&_argo0,&_arg1)) | |
3081 | return NULL; | |
3082 | if (_argo0) { | |
3083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetDay. Expected _wxDateTime_p."); | |
3086 | return NULL; | |
3087 | } | |
3088 | } | |
3089 | { | |
3090 | wxPy_BEGIN_ALLOW_THREADS; | |
3091 | wxDateTime & _result_ref = wxDateTime_SetDay(_arg0,_arg1); | |
3092 | _result = (wxDateTime *) &_result_ref; | |
3093 | ||
3094 | wxPy_END_ALLOW_THREADS; | |
3095 | } if (_result) { | |
3096 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
3097 | _resultobj = Py_BuildValue("s",_ptemp); | |
3098 | } else { | |
3099 | Py_INCREF(Py_None); | |
3100 | _resultobj = Py_None; | |
3101 | } | |
3102 | return _resultobj; | |
3103 | } | |
3104 | ||
3105 | #define wxDateTime_SetHour(_swigobj,_swigarg0) (_swigobj->SetHour(_swigarg0)) | |
3106 | static PyObject *_wrap_wxDateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3107 | PyObject * _resultobj; | |
3108 | wxDateTime * _result; | |
3109 | wxDateTime * _arg0; | |
3110 | wxDateTime::wxDateTime_t _arg1; | |
3111 | PyObject * _argo0 = 0; | |
3112 | char *_kwnames[] = { "self","hour", NULL }; | |
3113 | char _ptemp[128]; | |
3114 | ||
3115 | self = self; | |
3116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oh:wxDateTime_SetHour",_kwnames,&_argo0,&_arg1)) | |
3117 | return NULL; | |
3118 | if (_argo0) { | |
3119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetHour. Expected _wxDateTime_p."); | |
3122 | return NULL; | |
3123 | } | |
3124 | } | |
3125 | { | |
3126 | wxPy_BEGIN_ALLOW_THREADS; | |
3127 | wxDateTime & _result_ref = wxDateTime_SetHour(_arg0,_arg1); | |
3128 | _result = (wxDateTime *) &_result_ref; | |
3129 | ||
3130 | wxPy_END_ALLOW_THREADS; | |
3131 | } if (_result) { | |
3132 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
3133 | _resultobj = Py_BuildValue("s",_ptemp); | |
3134 | } else { | |
3135 | Py_INCREF(Py_None); | |
3136 | _resultobj = Py_None; | |
3137 | } | |
3138 | return _resultobj; | |
3139 | } | |
3140 | ||
3141 | #define wxDateTime_SetMinute(_swigobj,_swigarg0) (_swigobj->SetMinute(_swigarg0)) | |
3142 | static PyObject *_wrap_wxDateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3143 | PyObject * _resultobj; | |
3144 | wxDateTime * _result; | |
3145 | wxDateTime * _arg0; | |
3146 | wxDateTime::wxDateTime_t _arg1; | |
3147 | PyObject * _argo0 = 0; | |
3148 | char *_kwnames[] = { "self","minute", NULL }; | |
3149 | char _ptemp[128]; | |
3150 | ||
3151 | self = self; | |
3152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oh:wxDateTime_SetMinute",_kwnames,&_argo0,&_arg1)) | |
3153 | return NULL; | |
3154 | if (_argo0) { | |
3155 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3156 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetMinute. Expected _wxDateTime_p."); | |
3158 | return NULL; | |
3159 | } | |
3160 | } | |
3161 | { | |
3162 | wxPy_BEGIN_ALLOW_THREADS; | |
3163 | wxDateTime & _result_ref = wxDateTime_SetMinute(_arg0,_arg1); | |
3164 | _result = (wxDateTime *) &_result_ref; | |
3165 | ||
3166 | wxPy_END_ALLOW_THREADS; | |
3167 | } if (_result) { | |
3168 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
3169 | _resultobj = Py_BuildValue("s",_ptemp); | |
3170 | } else { | |
3171 | Py_INCREF(Py_None); | |
3172 | _resultobj = Py_None; | |
3173 | } | |
3174 | return _resultobj; | |
3175 | } | |
3176 | ||
3177 | #define wxDateTime_SetSecond(_swigobj,_swigarg0) (_swigobj->SetSecond(_swigarg0)) | |
3178 | static PyObject *_wrap_wxDateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3179 | PyObject * _resultobj; | |
3180 | wxDateTime * _result; | |
3181 | wxDateTime * _arg0; | |
3182 | wxDateTime::wxDateTime_t _arg1; | |
3183 | PyObject * _argo0 = 0; | |
3184 | char *_kwnames[] = { "self","second", NULL }; | |
3185 | char _ptemp[128]; | |
3186 | ||
3187 | self = self; | |
3188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oh:wxDateTime_SetSecond",_kwnames,&_argo0,&_arg1)) | |
3189 | return NULL; | |
3190 | if (_argo0) { | |
3191 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3192 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetSecond. Expected _wxDateTime_p."); | |
3194 | return NULL; | |
3195 | } | |
3196 | } | |
3197 | { | |
3198 | wxPy_BEGIN_ALLOW_THREADS; | |
3199 | wxDateTime & _result_ref = wxDateTime_SetSecond(_arg0,_arg1); | |
3200 | _result = (wxDateTime *) &_result_ref; | |
3201 | ||
3202 | wxPy_END_ALLOW_THREADS; | |
3203 | } if (_result) { | |
3204 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
3205 | _resultobj = Py_BuildValue("s",_ptemp); | |
3206 | } else { | |
3207 | Py_INCREF(Py_None); | |
3208 | _resultobj = Py_None; | |
3209 | } | |
3210 | return _resultobj; | |
3211 | } | |
3212 | ||
3213 | #define wxDateTime_SetMillisecond(_swigobj,_swigarg0) (_swigobj->SetMillisecond(_swigarg0)) | |
3214 | static PyObject *_wrap_wxDateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3215 | PyObject * _resultobj; | |
3216 | wxDateTime * _result; | |
3217 | wxDateTime * _arg0; | |
3218 | wxDateTime::wxDateTime_t _arg1; | |
3219 | PyObject * _argo0 = 0; | |
3220 | char *_kwnames[] = { "self","millisecond", NULL }; | |
3221 | char _ptemp[128]; | |
3222 | ||
3223 | self = self; | |
3224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oh:wxDateTime_SetMillisecond",_kwnames,&_argo0,&_arg1)) | |
3225 | return NULL; | |
3226 | if (_argo0) { | |
3227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetMillisecond. Expected _wxDateTime_p."); | |
3230 | return NULL; | |
3231 | } | |
3232 | } | |
3233 | { | |
3234 | wxPy_BEGIN_ALLOW_THREADS; | |
3235 | wxDateTime & _result_ref = wxDateTime_SetMillisecond(_arg0,_arg1); | |
3236 | _result = (wxDateTime *) &_result_ref; | |
3237 | ||
3238 | wxPy_END_ALLOW_THREADS; | |
3239 | } if (_result) { | |
3240 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
3241 | _resultobj = Py_BuildValue("s",_ptemp); | |
3242 | } else { | |
3243 | Py_INCREF(Py_None); | |
3244 | _resultobj = Py_None; | |
3245 | } | |
3246 | return _resultobj; | |
3247 | } | |
3248 | ||
3249 | #define wxDateTime_SetToWeekDayInSameWeek(_swigobj,_swigarg0) (_swigobj->SetToWeekDayInSameWeek(_swigarg0)) | |
3250 | static PyObject *_wrap_wxDateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3251 | PyObject * _resultobj; | |
3252 | wxDateTime * _result; | |
3253 | wxDateTime * _arg0; | |
3254 | wxDateTime::WeekDay _arg1; | |
3255 | PyObject * _argo0 = 0; | |
3256 | char *_kwnames[] = { "self","weekday", NULL }; | |
3257 | char _ptemp[128]; | |
3258 | ||
3259 | self = self; | |
3260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateTime_SetToWeekDayInSameWeek",_kwnames,&_argo0,&_arg1)) | |
3261 | return NULL; | |
3262 | if (_argo0) { | |
3263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetToWeekDayInSameWeek. Expected _wxDateTime_p."); | |
3266 | return NULL; | |
3267 | } | |
3268 | } | |
3269 | { | |
3270 | wxPy_BEGIN_ALLOW_THREADS; | |
3271 | wxDateTime & _result_ref = wxDateTime_SetToWeekDayInSameWeek(_arg0,_arg1); | |
3272 | _result = (wxDateTime *) &_result_ref; | |
3273 | ||
3274 | wxPy_END_ALLOW_THREADS; | |
3275 | } if (_result) { | |
3276 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
3277 | _resultobj = Py_BuildValue("s",_ptemp); | |
3278 | } else { | |
3279 | Py_INCREF(Py_None); | |
3280 | _resultobj = Py_None; | |
3281 | } | |
3282 | return _resultobj; | |
3283 | } | |
3284 | ||
3285 | #define wxDateTime_GetWeekDayInSameWeek(_swigobj,_swigarg0) (_swigobj->GetWeekDayInSameWeek(_swigarg0)) | |
3286 | static PyObject *_wrap_wxDateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3287 | PyObject * _resultobj; | |
3288 | wxDateTime * _result; | |
3289 | wxDateTime * _arg0; | |
3290 | wxDateTime::WeekDay _arg1; | |
3291 | PyObject * _argo0 = 0; | |
3292 | char *_kwnames[] = { "self","weekday", NULL }; | |
3293 | char _ptemp[128]; | |
3294 | ||
3295 | self = self; | |
3296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateTime_GetWeekDayInSameWeek",_kwnames,&_argo0,&_arg1)) | |
3297 | return NULL; | |
3298 | if (_argo0) { | |
3299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetWeekDayInSameWeek. Expected _wxDateTime_p."); | |
3302 | return NULL; | |
3303 | } | |
3304 | } | |
3305 | { | |
3306 | wxPy_BEGIN_ALLOW_THREADS; | |
3307 | _result = new wxDateTime (wxDateTime_GetWeekDayInSameWeek(_arg0,_arg1)); | |
3308 | ||
3309 | wxPy_END_ALLOW_THREADS; | |
3310 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); | |
3311 | _resultobj = Py_BuildValue("s",_ptemp); | |
3312 | return _resultobj; | |
3313 | } | |
3314 | ||
3315 | #define wxDateTime_SetToNextWeekDay(_swigobj,_swigarg0) (_swigobj->SetToNextWeekDay(_swigarg0)) | |
3316 | static PyObject *_wrap_wxDateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3317 | PyObject * _resultobj; | |
3318 | wxDateTime * _result; | |
3319 | wxDateTime * _arg0; | |
3320 | wxDateTime::WeekDay _arg1; | |
3321 | PyObject * _argo0 = 0; | |
3322 | char *_kwnames[] = { "self","weekday", NULL }; | |
3323 | char _ptemp[128]; | |
3324 | ||
3325 | self = self; | |
3326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateTime_SetToNextWeekDay",_kwnames,&_argo0,&_arg1)) | |
3327 | return NULL; | |
3328 | if (_argo0) { | |
3329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetToNextWeekDay. Expected _wxDateTime_p."); | |
3332 | return NULL; | |
3333 | } | |
3334 | } | |
3335 | { | |
3336 | wxPy_BEGIN_ALLOW_THREADS; | |
3337 | wxDateTime & _result_ref = wxDateTime_SetToNextWeekDay(_arg0,_arg1); | |
3338 | _result = (wxDateTime *) &_result_ref; | |
3339 | ||
3340 | wxPy_END_ALLOW_THREADS; | |
3341 | } if (_result) { | |
3342 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
3343 | _resultobj = Py_BuildValue("s",_ptemp); | |
3344 | } else { | |
3345 | Py_INCREF(Py_None); | |
3346 | _resultobj = Py_None; | |
3347 | } | |
3348 | return _resultobj; | |
3349 | } | |
3350 | ||
3351 | #define wxDateTime_GetNextWeekDay(_swigobj,_swigarg0) (_swigobj->GetNextWeekDay(_swigarg0)) | |
3352 | static PyObject *_wrap_wxDateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3353 | PyObject * _resultobj; | |
3354 | wxDateTime * _result; | |
3355 | wxDateTime * _arg0; | |
3356 | wxDateTime::WeekDay _arg1; | |
3357 | PyObject * _argo0 = 0; | |
3358 | char *_kwnames[] = { "self","weekday", NULL }; | |
3359 | char _ptemp[128]; | |
3360 | ||
3361 | self = self; | |
3362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateTime_GetNextWeekDay",_kwnames,&_argo0,&_arg1)) | |
3363 | return NULL; | |
3364 | if (_argo0) { | |
3365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetNextWeekDay. Expected _wxDateTime_p."); | |
3368 | return NULL; | |
3369 | } | |
3370 | } | |
3371 | { | |
3372 | wxPy_BEGIN_ALLOW_THREADS; | |
3373 | _result = new wxDateTime (wxDateTime_GetNextWeekDay(_arg0,_arg1)); | |
3374 | ||
3375 | wxPy_END_ALLOW_THREADS; | |
3376 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); | |
3377 | _resultobj = Py_BuildValue("s",_ptemp); | |
3378 | return _resultobj; | |
3379 | } | |
3380 | ||
3381 | #define wxDateTime_SetToPrevWeekDay(_swigobj,_swigarg0) (_swigobj->SetToPrevWeekDay(_swigarg0)) | |
3382 | static PyObject *_wrap_wxDateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3383 | PyObject * _resultobj; | |
3384 | wxDateTime * _result; | |
3385 | wxDateTime * _arg0; | |
3386 | wxDateTime::WeekDay _arg1; | |
3387 | PyObject * _argo0 = 0; | |
3388 | char *_kwnames[] = { "self","weekday", NULL }; | |
3389 | char _ptemp[128]; | |
3390 | ||
3391 | self = self; | |
3392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateTime_SetToPrevWeekDay",_kwnames,&_argo0,&_arg1)) | |
3393 | return NULL; | |
3394 | if (_argo0) { | |
3395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetToPrevWeekDay. Expected _wxDateTime_p."); | |
3398 | return NULL; | |
3399 | } | |
3400 | } | |
3401 | { | |
3402 | wxPy_BEGIN_ALLOW_THREADS; | |
3403 | wxDateTime & _result_ref = wxDateTime_SetToPrevWeekDay(_arg0,_arg1); | |
3404 | _result = (wxDateTime *) &_result_ref; | |
3405 | ||
3406 | wxPy_END_ALLOW_THREADS; | |
3407 | } if (_result) { | |
3408 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
3409 | _resultobj = Py_BuildValue("s",_ptemp); | |
3410 | } else { | |
3411 | Py_INCREF(Py_None); | |
3412 | _resultobj = Py_None; | |
3413 | } | |
3414 | return _resultobj; | |
3415 | } | |
3416 | ||
3417 | #define wxDateTime_GetPrevWeekDay(_swigobj,_swigarg0) (_swigobj->GetPrevWeekDay(_swigarg0)) | |
3418 | static PyObject *_wrap_wxDateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3419 | PyObject * _resultobj; | |
3420 | wxDateTime * _result; | |
3421 | wxDateTime * _arg0; | |
3422 | wxDateTime::WeekDay _arg1; | |
3423 | PyObject * _argo0 = 0; | |
3424 | char *_kwnames[] = { "self","weekday", NULL }; | |
3425 | char _ptemp[128]; | |
3426 | ||
3427 | self = self; | |
3428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateTime_GetPrevWeekDay",_kwnames,&_argo0,&_arg1)) | |
3429 | return NULL; | |
3430 | if (_argo0) { | |
3431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetPrevWeekDay. Expected _wxDateTime_p."); | |
3434 | return NULL; | |
3435 | } | |
3436 | } | |
3437 | { | |
3438 | wxPy_BEGIN_ALLOW_THREADS; | |
3439 | _result = new wxDateTime (wxDateTime_GetPrevWeekDay(_arg0,_arg1)); | |
3440 | ||
3441 | wxPy_END_ALLOW_THREADS; | |
3442 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); | |
3443 | _resultobj = Py_BuildValue("s",_ptemp); | |
3444 | return _resultobj; | |
3445 | } | |
3446 | ||
3447 | #define wxDateTime_SetToWeekDay(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetToWeekDay(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
3448 | static PyObject *_wrap_wxDateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3449 | PyObject * _resultobj; | |
3450 | bool _result; | |
3451 | wxDateTime * _arg0; | |
3452 | wxDateTime::WeekDay _arg1; | |
3453 | int _arg2 = (int ) 1; | |
3454 | wxDateTime::Month _arg3 = (wxDateTime::Month ) wxDateTime::Inv_Month; | |
3455 | int _arg4 = (int ) wxDateTime::Inv_Year; | |
3456 | PyObject * _argo0 = 0; | |
3457 | char *_kwnames[] = { "self","weekday","n","month","year", NULL }; | |
3458 | ||
3459 | self = self; | |
3460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|iii:wxDateTime_SetToWeekDay",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
3461 | return NULL; | |
3462 | if (_argo0) { | |
3463 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3464 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetToWeekDay. Expected _wxDateTime_p."); | |
3466 | return NULL; | |
3467 | } | |
3468 | } | |
3469 | { | |
3470 | wxPy_BEGIN_ALLOW_THREADS; | |
3471 | _result = (bool )wxDateTime_SetToWeekDay(_arg0,_arg1,_arg2,_arg3,_arg4); | |
3472 | ||
3473 | wxPy_END_ALLOW_THREADS; | |
3474 | } _resultobj = Py_BuildValue("i",_result); | |
3475 | return _resultobj; | |
3476 | } | |
3477 | ||
3478 | #define wxDateTime_GetWeekDay(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetWeekDay(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
3479 | static PyObject *_wrap_wxDateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3480 | PyObject * _resultobj; | |
3481 | wxDateTime * _result; | |
3482 | wxDateTime * _arg0; | |
3483 | wxDateTime::WeekDay _arg1; | |
3484 | int _arg2 = (int ) 1; | |
3485 | wxDateTime::Month _arg3 = (wxDateTime::Month ) wxDateTime::Inv_Month; | |
3486 | int _arg4 = (int ) wxDateTime::Inv_Year; | |
3487 | PyObject * _argo0 = 0; | |
3488 | char *_kwnames[] = { "self","weekday","n","month","year", NULL }; | |
3489 | char _ptemp[128]; | |
3490 | ||
3491 | self = self; | |
3492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|iii:wxDateTime_GetWeekDay",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
3493 | return NULL; | |
3494 | if (_argo0) { | |
3495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetWeekDay. Expected _wxDateTime_p."); | |
3498 | return NULL; | |
3499 | } | |
3500 | } | |
3501 | { | |
3502 | wxPy_BEGIN_ALLOW_THREADS; | |
3503 | _result = new wxDateTime (wxDateTime_GetWeekDay(_arg0,_arg1,_arg2,_arg3,_arg4)); | |
3504 | ||
3505 | wxPy_END_ALLOW_THREADS; | |
3506 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); | |
3507 | _resultobj = Py_BuildValue("s",_ptemp); | |
3508 | return _resultobj; | |
3509 | } | |
3510 | ||
3511 | #define wxDateTime_SetToLastWeekDay(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetToLastWeekDay(_swigarg0,_swigarg1,_swigarg2)) | |
3512 | static PyObject *_wrap_wxDateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3513 | PyObject * _resultobj; | |
3514 | bool _result; | |
3515 | wxDateTime * _arg0; | |
3516 | wxDateTime::WeekDay _arg1; | |
3517 | wxDateTime::Month _arg2 = (wxDateTime::Month ) wxDateTime::Inv_Month; | |
3518 | int _arg3 = (int ) wxDateTime::Inv_Year; | |
3519 | PyObject * _argo0 = 0; | |
3520 | char *_kwnames[] = { "self","weekday","month","year", NULL }; | |
3521 | ||
3522 | self = self; | |
3523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxDateTime_SetToLastWeekDay",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
3524 | return NULL; | |
3525 | if (_argo0) { | |
3526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetToLastWeekDay. Expected _wxDateTime_p."); | |
3529 | return NULL; | |
3530 | } | |
3531 | } | |
3532 | { | |
3533 | wxPy_BEGIN_ALLOW_THREADS; | |
3534 | _result = (bool )wxDateTime_SetToLastWeekDay(_arg0,_arg1,_arg2,_arg3); | |
3535 | ||
3536 | wxPy_END_ALLOW_THREADS; | |
3537 | } _resultobj = Py_BuildValue("i",_result); | |
3538 | return _resultobj; | |
3539 | } | |
3540 | ||
3541 | #define wxDateTime_GetLastWeekDay(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetLastWeekDay(_swigarg0,_swigarg1,_swigarg2)) | |
3542 | static PyObject *_wrap_wxDateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3543 | PyObject * _resultobj; | |
3544 | wxDateTime * _result; | |
3545 | wxDateTime * _arg0; | |
3546 | wxDateTime::WeekDay _arg1; | |
3547 | wxDateTime::Month _arg2 = (wxDateTime::Month ) wxDateTime::Inv_Month; | |
3548 | int _arg3 = (int ) wxDateTime::Inv_Year; | |
3549 | PyObject * _argo0 = 0; | |
3550 | char *_kwnames[] = { "self","weekday","month","year", NULL }; | |
3551 | char _ptemp[128]; | |
3552 | ||
3553 | self = self; | |
3554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxDateTime_GetLastWeekDay",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
3555 | return NULL; | |
3556 | if (_argo0) { | |
3557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetLastWeekDay. Expected _wxDateTime_p."); | |
3560 | return NULL; | |
3561 | } | |
3562 | } | |
3563 | { | |
3564 | wxPy_BEGIN_ALLOW_THREADS; | |
3565 | _result = new wxDateTime (wxDateTime_GetLastWeekDay(_arg0,_arg1,_arg2,_arg3)); | |
3566 | ||
3567 | wxPy_END_ALLOW_THREADS; | |
3568 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); | |
3569 | _resultobj = Py_BuildValue("s",_ptemp); | |
3570 | return _resultobj; | |
3571 | } | |
3572 | ||
3573 | #define wxDateTime_SetToTheWeek(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToTheWeek(_swigarg0,_swigarg1)) | |
3574 | static PyObject *_wrap_wxDateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3575 | PyObject * _resultobj; | |
3576 | bool _result; | |
3577 | wxDateTime * _arg0; | |
3578 | wxDateTime::wxDateTime_t _arg1; | |
3579 | wxDateTime::WeekDay _arg2 = (wxDateTime::WeekDay ) wxDateTime::Mon; | |
3580 | PyObject * _argo0 = 0; | |
3581 | char *_kwnames[] = { "self","numWeek","weekday", NULL }; | |
3582 | ||
3583 | self = self; | |
3584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oh|i:wxDateTime_SetToTheWeek",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3585 | return NULL; | |
3586 | if (_argo0) { | |
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_SetToTheWeek. Expected _wxDateTime_p."); | |
3590 | return NULL; | |
3591 | } | |
3592 | } | |
3593 | { | |
3594 | wxPy_BEGIN_ALLOW_THREADS; | |
3595 | _result = (bool )wxDateTime_SetToTheWeek(_arg0,_arg1,_arg2); | |
3596 | ||
3597 | wxPy_END_ALLOW_THREADS; | |
3598 | } _resultobj = Py_BuildValue("i",_result); | |
3599 | return _resultobj; | |
3600 | } | |
3601 | ||
3602 | #define wxDateTime_GetWeek(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetWeek(_swigarg0,_swigarg1)) | |
3603 | static PyObject *_wrap_wxDateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3604 | PyObject * _resultobj; | |
3605 | wxDateTime * _result; | |
3606 | wxDateTime * _arg0; | |
3607 | wxDateTime::wxDateTime_t _arg1; | |
3608 | wxDateTime::WeekDay _arg2 = (wxDateTime::WeekDay ) wxDateTime::Mon; | |
3609 | PyObject * _argo0 = 0; | |
3610 | char *_kwnames[] = { "self","numWeek","weekday", NULL }; | |
3611 | char _ptemp[128]; | |
3612 | ||
3613 | self = self; | |
3614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oh|i:wxDateTime_GetWeek",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3615 | return NULL; | |
3616 | if (_argo0) { | |
3617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetWeek. Expected _wxDateTime_p."); | |
3620 | return NULL; | |
3621 | } | |
3622 | } | |
3623 | { | |
3624 | wxPy_BEGIN_ALLOW_THREADS; | |
3625 | _result = new wxDateTime (wxDateTime_GetWeek(_arg0,_arg1,_arg2)); | |
3626 | ||
3627 | wxPy_END_ALLOW_THREADS; | |
3628 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); | |
3629 | _resultobj = Py_BuildValue("s",_ptemp); | |
3630 | return _resultobj; | |
3631 | } | |
3632 | ||
3633 | #define wxDateTime_SetToLastMonthDay(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToLastMonthDay(_swigarg0,_swigarg1)) | |
3634 | static PyObject *_wrap_wxDateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3635 | PyObject * _resultobj; | |
3636 | wxDateTime * _result; | |
3637 | wxDateTime * _arg0; | |
3638 | wxDateTime::Month _arg1 = (wxDateTime::Month ) wxDateTime::Inv_Month; | |
3639 | int _arg2 = (int ) wxDateTime::Inv_Year; | |
3640 | PyObject * _argo0 = 0; | |
3641 | char *_kwnames[] = { "self","month","year", NULL }; | |
3642 | char _ptemp[128]; | |
3643 | ||
3644 | self = self; | |
3645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxDateTime_SetToLastMonthDay",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3646 | return NULL; | |
3647 | if (_argo0) { | |
3648 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3649 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3650 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetToLastMonthDay. Expected _wxDateTime_p."); | |
3651 | return NULL; | |
3652 | } | |
3653 | } | |
3654 | { | |
3655 | wxPy_BEGIN_ALLOW_THREADS; | |
3656 | wxDateTime & _result_ref = wxDateTime_SetToLastMonthDay(_arg0,_arg1,_arg2); | |
3657 | _result = (wxDateTime *) &_result_ref; | |
3658 | ||
3659 | wxPy_END_ALLOW_THREADS; | |
3660 | } if (_result) { | |
3661 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
3662 | _resultobj = Py_BuildValue("s",_ptemp); | |
3663 | } else { | |
3664 | Py_INCREF(Py_None); | |
3665 | _resultobj = Py_None; | |
3666 | } | |
3667 | return _resultobj; | |
3668 | } | |
3669 | ||
3670 | #define wxDateTime_GetLastMonthDay(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLastMonthDay(_swigarg0,_swigarg1)) | |
3671 | static PyObject *_wrap_wxDateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3672 | PyObject * _resultobj; | |
3673 | wxDateTime * _result; | |
3674 | wxDateTime * _arg0; | |
3675 | wxDateTime::Month _arg1 = (wxDateTime::Month ) wxDateTime::Inv_Month; | |
3676 | int _arg2 = (int ) wxDateTime::Inv_Year; | |
3677 | PyObject * _argo0 = 0; | |
3678 | char *_kwnames[] = { "self","month","year", NULL }; | |
3679 | char _ptemp[128]; | |
3680 | ||
3681 | self = self; | |
3682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxDateTime_GetLastMonthDay",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3683 | return NULL; | |
3684 | if (_argo0) { | |
3685 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3686 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetLastMonthDay. Expected _wxDateTime_p."); | |
3688 | return NULL; | |
3689 | } | |
3690 | } | |
3691 | { | |
3692 | wxPy_BEGIN_ALLOW_THREADS; | |
3693 | _result = new wxDateTime (wxDateTime_GetLastMonthDay(_arg0,_arg1,_arg2)); | |
3694 | ||
3695 | wxPy_END_ALLOW_THREADS; | |
3696 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); | |
3697 | _resultobj = Py_BuildValue("s",_ptemp); | |
3698 | return _resultobj; | |
3699 | } | |
3700 | ||
3701 | #define wxDateTime_SetToYearDay(_swigobj,_swigarg0) (_swigobj->SetToYearDay(_swigarg0)) | |
3702 | static PyObject *_wrap_wxDateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3703 | PyObject * _resultobj; | |
3704 | wxDateTime * _result; | |
3705 | wxDateTime * _arg0; | |
3706 | wxDateTime::wxDateTime_t _arg1; | |
3707 | PyObject * _argo0 = 0; | |
3708 | char *_kwnames[] = { "self","yday", NULL }; | |
3709 | char _ptemp[128]; | |
3710 | ||
3711 | self = self; | |
3712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oh:wxDateTime_SetToYearDay",_kwnames,&_argo0,&_arg1)) | |
3713 | return NULL; | |
3714 | if (_argo0) { | |
3715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetToYearDay. Expected _wxDateTime_p."); | |
3718 | return NULL; | |
3719 | } | |
3720 | } | |
3721 | { | |
3722 | wxPy_BEGIN_ALLOW_THREADS; | |
3723 | wxDateTime & _result_ref = wxDateTime_SetToYearDay(_arg0,_arg1); | |
3724 | _result = (wxDateTime *) &_result_ref; | |
3725 | ||
3726 | wxPy_END_ALLOW_THREADS; | |
3727 | } if (_result) { | |
3728 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
3729 | _resultobj = Py_BuildValue("s",_ptemp); | |
3730 | } else { | |
3731 | Py_INCREF(Py_None); | |
3732 | _resultobj = Py_None; | |
3733 | } | |
3734 | return _resultobj; | |
3735 | } | |
3736 | ||
3737 | #define wxDateTime_GetYearDay(_swigobj,_swigarg0) (_swigobj->GetYearDay(_swigarg0)) | |
3738 | static PyObject *_wrap_wxDateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3739 | PyObject * _resultobj; | |
3740 | wxDateTime * _result; | |
3741 | wxDateTime * _arg0; | |
3742 | wxDateTime::wxDateTime_t _arg1; | |
3743 | PyObject * _argo0 = 0; | |
3744 | char *_kwnames[] = { "self","yday", NULL }; | |
3745 | char _ptemp[128]; | |
3746 | ||
3747 | self = self; | |
3748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oh:wxDateTime_GetYearDay",_kwnames,&_argo0,&_arg1)) | |
3749 | return NULL; | |
3750 | if (_argo0) { | |
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_GetYearDay. Expected _wxDateTime_p."); | |
3754 | return NULL; | |
3755 | } | |
3756 | } | |
3757 | { | |
3758 | wxPy_BEGIN_ALLOW_THREADS; | |
3759 | _result = new wxDateTime (wxDateTime_GetYearDay(_arg0,_arg1)); | |
3760 | ||
3761 | wxPy_END_ALLOW_THREADS; | |
3762 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); | |
3763 | _resultobj = Py_BuildValue("s",_ptemp); | |
3764 | return _resultobj; | |
3765 | } | |
3766 | ||
3767 | #define wxDateTime_GetJulianDayNumber(_swigobj) (_swigobj->GetJulianDayNumber()) | |
3768 | static PyObject *_wrap_wxDateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3769 | PyObject * _resultobj; | |
3770 | double _result; | |
3771 | wxDateTime * _arg0; | |
3772 | PyObject * _argo0 = 0; | |
3773 | char *_kwnames[] = { "self", NULL }; | |
3774 | ||
3775 | self = self; | |
3776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_GetJulianDayNumber",_kwnames,&_argo0)) | |
3777 | return NULL; | |
3778 | if (_argo0) { | |
3779 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3780 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetJulianDayNumber. Expected _wxDateTime_p."); | |
3782 | return NULL; | |
3783 | } | |
3784 | } | |
3785 | { | |
3786 | wxPy_BEGIN_ALLOW_THREADS; | |
3787 | _result = (double )wxDateTime_GetJulianDayNumber(_arg0); | |
3788 | ||
3789 | wxPy_END_ALLOW_THREADS; | |
3790 | } _resultobj = Py_BuildValue("d",_result); | |
3791 | return _resultobj; | |
3792 | } | |
3793 | ||
3794 | #define wxDateTime_GetJDN(_swigobj) (_swigobj->GetJDN()) | |
3795 | static PyObject *_wrap_wxDateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3796 | PyObject * _resultobj; | |
3797 | double _result; | |
3798 | wxDateTime * _arg0; | |
3799 | PyObject * _argo0 = 0; | |
3800 | char *_kwnames[] = { "self", NULL }; | |
3801 | ||
3802 | self = self; | |
3803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_GetJDN",_kwnames,&_argo0)) | |
3804 | return NULL; | |
3805 | if (_argo0) { | |
3806 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3807 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetJDN. Expected _wxDateTime_p."); | |
3809 | return NULL; | |
3810 | } | |
3811 | } | |
3812 | { | |
3813 | wxPy_BEGIN_ALLOW_THREADS; | |
3814 | _result = (double )wxDateTime_GetJDN(_arg0); | |
3815 | ||
3816 | wxPy_END_ALLOW_THREADS; | |
3817 | } _resultobj = Py_BuildValue("d",_result); | |
3818 | return _resultobj; | |
3819 | } | |
3820 | ||
3821 | #define wxDateTime_GetModifiedJulianDayNumber(_swigobj) (_swigobj->GetModifiedJulianDayNumber()) | |
3822 | static PyObject *_wrap_wxDateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3823 | PyObject * _resultobj; | |
3824 | double _result; | |
3825 | wxDateTime * _arg0; | |
3826 | PyObject * _argo0 = 0; | |
3827 | char *_kwnames[] = { "self", NULL }; | |
3828 | ||
3829 | self = self; | |
3830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_GetModifiedJulianDayNumber",_kwnames,&_argo0)) | |
3831 | return NULL; | |
3832 | if (_argo0) { | |
3833 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3834 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3835 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetModifiedJulianDayNumber. Expected _wxDateTime_p."); | |
3836 | return NULL; | |
3837 | } | |
3838 | } | |
3839 | { | |
3840 | wxPy_BEGIN_ALLOW_THREADS; | |
3841 | _result = (double )wxDateTime_GetModifiedJulianDayNumber(_arg0); | |
3842 | ||
3843 | wxPy_END_ALLOW_THREADS; | |
3844 | } _resultobj = Py_BuildValue("d",_result); | |
3845 | return _resultobj; | |
3846 | } | |
3847 | ||
3848 | #define wxDateTime_GetMJD(_swigobj) (_swigobj->GetMJD()) | |
3849 | static PyObject *_wrap_wxDateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3850 | PyObject * _resultobj; | |
3851 | double _result; | |
3852 | wxDateTime * _arg0; | |
3853 | PyObject * _argo0 = 0; | |
3854 | char *_kwnames[] = { "self", NULL }; | |
3855 | ||
3856 | self = self; | |
3857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_GetMJD",_kwnames,&_argo0)) | |
3858 | return NULL; | |
3859 | if (_argo0) { | |
3860 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3861 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetMJD. Expected _wxDateTime_p."); | |
3863 | return NULL; | |
3864 | } | |
3865 | } | |
3866 | { | |
3867 | wxPy_BEGIN_ALLOW_THREADS; | |
3868 | _result = (double )wxDateTime_GetMJD(_arg0); | |
3869 | ||
3870 | wxPy_END_ALLOW_THREADS; | |
3871 | } _resultobj = Py_BuildValue("d",_result); | |
3872 | return _resultobj; | |
3873 | } | |
3874 | ||
3875 | #define wxDateTime_GetRataDie(_swigobj) (_swigobj->GetRataDie()) | |
3876 | static PyObject *_wrap_wxDateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3877 | PyObject * _resultobj; | |
3878 | double _result; | |
3879 | wxDateTime * _arg0; | |
3880 | PyObject * _argo0 = 0; | |
3881 | char *_kwnames[] = { "self", NULL }; | |
3882 | ||
3883 | self = self; | |
3884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_GetRataDie",_kwnames,&_argo0)) | |
3885 | return NULL; | |
3886 | if (_argo0) { | |
3887 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3888 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetRataDie. Expected _wxDateTime_p."); | |
3890 | return NULL; | |
3891 | } | |
3892 | } | |
3893 | { | |
3894 | wxPy_BEGIN_ALLOW_THREADS; | |
3895 | _result = (double )wxDateTime_GetRataDie(_arg0); | |
3896 | ||
3897 | wxPy_END_ALLOW_THREADS; | |
3898 | } _resultobj = Py_BuildValue("d",_result); | |
3899 | return _resultobj; | |
3900 | } | |
3901 | ||
3902 | #define wxDateTime_ToTimezone(_swigobj,_swigarg0,_swigarg1) (_swigobj->ToTimezone(_swigarg0,_swigarg1)) | |
3903 | static PyObject *_wrap_wxDateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3904 | PyObject * _resultobj; | |
3905 | wxDateTime * _result; | |
3906 | wxDateTime * _arg0; | |
3907 | wxDateTime::TimeZone * _arg1; | |
3908 | bool _arg2 = (bool ) FALSE; | |
3909 | PyObject * _argo0 = 0; | |
3910 | PyObject * _obj1 = 0; | |
3911 | int tempbool2 = (int) FALSE; | |
3912 | char *_kwnames[] = { "self","tz","noDST", NULL }; | |
3913 | char _ptemp[128]; | |
3914 | ||
3915 | self = self; | |
3916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxDateTime_ToTimezone",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
3917 | return NULL; | |
3918 | if (_argo0) { | |
3919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_ToTimezone. Expected _wxDateTime_p."); | |
3922 | return NULL; | |
3923 | } | |
3924 | } | |
3925 | { | |
3926 | _arg1 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj1)); | |
3927 | } | |
3928 | _arg2 = (bool ) tempbool2; | |
3929 | { | |
3930 | wxPy_BEGIN_ALLOW_THREADS; | |
3931 | _result = new wxDateTime (wxDateTime_ToTimezone(_arg0,*_arg1,_arg2)); | |
3932 | ||
3933 | wxPy_END_ALLOW_THREADS; | |
3934 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); | |
3935 | _resultobj = Py_BuildValue("s",_ptemp); | |
3936 | { | |
3937 | if (_arg1) delete _arg1; | |
3938 | } | |
3939 | return _resultobj; | |
3940 | } | |
3941 | ||
3942 | #define wxDateTime_MakeTimezone(_swigobj,_swigarg0,_swigarg1) (_swigobj->MakeTimezone(_swigarg0,_swigarg1)) | |
3943 | static PyObject *_wrap_wxDateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3944 | PyObject * _resultobj; | |
3945 | wxDateTime * _result; | |
3946 | wxDateTime * _arg0; | |
3947 | wxDateTime::TimeZone * _arg1; | |
3948 | bool _arg2 = (bool ) FALSE; | |
3949 | PyObject * _argo0 = 0; | |
3950 | PyObject * _obj1 = 0; | |
3951 | int tempbool2 = (int) FALSE; | |
3952 | char *_kwnames[] = { "self","tz","noDST", NULL }; | |
3953 | char _ptemp[128]; | |
3954 | ||
3955 | self = self; | |
3956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxDateTime_MakeTimezone",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
3957 | return NULL; | |
3958 | if (_argo0) { | |
3959 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3960 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_MakeTimezone. Expected _wxDateTime_p."); | |
3962 | return NULL; | |
3963 | } | |
3964 | } | |
3965 | { | |
3966 | _arg1 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj1)); | |
3967 | } | |
3968 | _arg2 = (bool ) tempbool2; | |
3969 | { | |
3970 | wxPy_BEGIN_ALLOW_THREADS; | |
3971 | wxDateTime & _result_ref = wxDateTime_MakeTimezone(_arg0,*_arg1,_arg2); | |
3972 | _result = (wxDateTime *) &_result_ref; | |
3973 | ||
3974 | wxPy_END_ALLOW_THREADS; | |
3975 | } if (_result) { | |
3976 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
3977 | _resultobj = Py_BuildValue("s",_ptemp); | |
3978 | } else { | |
3979 | Py_INCREF(Py_None); | |
3980 | _resultobj = Py_None; | |
3981 | } | |
3982 | { | |
3983 | if (_arg1) delete _arg1; | |
3984 | } | |
3985 | return _resultobj; | |
3986 | } | |
3987 | ||
3988 | #define wxDateTime_ToGMT(_swigobj,_swigarg0) (_swigobj->ToGMT(_swigarg0)) | |
3989 | static PyObject *_wrap_wxDateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3990 | PyObject * _resultobj; | |
3991 | wxDateTime * _result; | |
3992 | wxDateTime * _arg0; | |
3993 | bool _arg1 = (bool ) FALSE; | |
3994 | PyObject * _argo0 = 0; | |
3995 | int tempbool1 = (int) FALSE; | |
3996 | char *_kwnames[] = { "self","noDST", NULL }; | |
3997 | char _ptemp[128]; | |
3998 | ||
3999 | self = self; | |
4000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDateTime_ToGMT",_kwnames,&_argo0,&tempbool1)) | |
4001 | return NULL; | |
4002 | if (_argo0) { | |
4003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_ToGMT. Expected _wxDateTime_p."); | |
4006 | return NULL; | |
4007 | } | |
4008 | } | |
4009 | _arg1 = (bool ) tempbool1; | |
4010 | { | |
4011 | wxPy_BEGIN_ALLOW_THREADS; | |
4012 | _result = new wxDateTime (wxDateTime_ToGMT(_arg0,_arg1)); | |
4013 | ||
4014 | wxPy_END_ALLOW_THREADS; | |
4015 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); | |
4016 | _resultobj = Py_BuildValue("s",_ptemp); | |
4017 | return _resultobj; | |
4018 | } | |
4019 | ||
4020 | #define wxDateTime_MakeGMT(_swigobj,_swigarg0) (_swigobj->MakeGMT(_swigarg0)) | |
4021 | static PyObject *_wrap_wxDateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4022 | PyObject * _resultobj; | |
4023 | wxDateTime * _result; | |
4024 | wxDateTime * _arg0; | |
4025 | bool _arg1 = (bool ) FALSE; | |
4026 | PyObject * _argo0 = 0; | |
4027 | int tempbool1 = (int) FALSE; | |
4028 | char *_kwnames[] = { "self","noDST", NULL }; | |
4029 | char _ptemp[128]; | |
4030 | ||
4031 | self = self; | |
4032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDateTime_MakeGMT",_kwnames,&_argo0,&tempbool1)) | |
4033 | return NULL; | |
4034 | if (_argo0) { | |
4035 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4036 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_MakeGMT. Expected _wxDateTime_p."); | |
4038 | return NULL; | |
4039 | } | |
4040 | } | |
4041 | _arg1 = (bool ) tempbool1; | |
4042 | { | |
4043 | wxPy_BEGIN_ALLOW_THREADS; | |
4044 | wxDateTime & _result_ref = wxDateTime_MakeGMT(_arg0,_arg1); | |
4045 | _result = (wxDateTime *) &_result_ref; | |
4046 | ||
4047 | wxPy_END_ALLOW_THREADS; | |
4048 | } if (_result) { | |
4049 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
4050 | _resultobj = Py_BuildValue("s",_ptemp); | |
4051 | } else { | |
4052 | Py_INCREF(Py_None); | |
4053 | _resultobj = Py_None; | |
4054 | } | |
4055 | return _resultobj; | |
4056 | } | |
4057 | ||
4058 | #define wxDateTime_IsDST(_swigobj,_swigarg0) (_swigobj->IsDST(_swigarg0)) | |
4059 | static PyObject *_wrap_wxDateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4060 | PyObject * _resultobj; | |
4061 | int _result; | |
4062 | wxDateTime * _arg0; | |
4063 | wxDateTime::Country _arg1 = (wxDateTime::Country ) wxDateTime::Country_Default; | |
4064 | PyObject * _argo0 = 0; | |
4065 | char *_kwnames[] = { "self","country", NULL }; | |
4066 | ||
4067 | self = self; | |
4068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDateTime_IsDST",_kwnames,&_argo0,&_arg1)) | |
4069 | return NULL; | |
4070 | if (_argo0) { | |
4071 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4072 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_IsDST. Expected _wxDateTime_p."); | |
4074 | return NULL; | |
4075 | } | |
4076 | } | |
4077 | { | |
4078 | wxPy_BEGIN_ALLOW_THREADS; | |
4079 | _result = (int )wxDateTime_IsDST(_arg0,_arg1); | |
4080 | ||
4081 | wxPy_END_ALLOW_THREADS; | |
4082 | } _resultobj = Py_BuildValue("i",_result); | |
4083 | return _resultobj; | |
4084 | } | |
4085 | ||
4086 | #define wxDateTime_IsValid(_swigobj) (_swigobj->IsValid()) | |
4087 | static PyObject *_wrap_wxDateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4088 | PyObject * _resultobj; | |
4089 | bool _result; | |
4090 | wxDateTime * _arg0; | |
4091 | PyObject * _argo0 = 0; | |
4092 | char *_kwnames[] = { "self", NULL }; | |
4093 | ||
4094 | self = self; | |
4095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_IsValid",_kwnames,&_argo0)) | |
4096 | return NULL; | |
4097 | if (_argo0) { | |
4098 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4099 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4100 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_IsValid. Expected _wxDateTime_p."); | |
4101 | return NULL; | |
4102 | } | |
4103 | } | |
4104 | { | |
4105 | wxPy_BEGIN_ALLOW_THREADS; | |
4106 | _result = (bool )wxDateTime_IsValid(_arg0); | |
4107 | ||
4108 | wxPy_END_ALLOW_THREADS; | |
4109 | } _resultobj = Py_BuildValue("i",_result); | |
4110 | return _resultobj; | |
4111 | } | |
4112 | ||
4113 | #define wxDateTime_GetTicks(_swigobj) (_swigobj->GetTicks()) | |
4114 | static PyObject *_wrap_wxDateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4115 | PyObject * _resultobj; | |
c368d904 | 4116 | time_t _result; |
f6bcfd97 BP |
4117 | wxDateTime * _arg0; |
4118 | PyObject * _argo0 = 0; | |
4119 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
4120 | |
4121 | self = self; | |
4122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_GetTicks",_kwnames,&_argo0)) | |
4123 | return NULL; | |
4124 | if (_argo0) { | |
4125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetTicks. Expected _wxDateTime_p."); | |
4128 | return NULL; | |
4129 | } | |
4130 | } | |
4131 | { | |
4132 | wxPy_BEGIN_ALLOW_THREADS; | |
c368d904 | 4133 | _result = (time_t )wxDateTime_GetTicks(_arg0); |
f6bcfd97 BP |
4134 | |
4135 | wxPy_END_ALLOW_THREADS; | |
c368d904 | 4136 | } _resultobj = Py_BuildValue("i",_result); |
f6bcfd97 BP |
4137 | return _resultobj; |
4138 | } | |
4139 | ||
4140 | #define wxDateTime_GetYear(_swigobj,_swigarg0) (_swigobj->GetYear(_swigarg0)) | |
4141 | static PyObject *_wrap_wxDateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4142 | PyObject * _resultobj; | |
4143 | int _result; | |
4144 | wxDateTime * _arg0; | |
4145 | wxDateTime::TimeZone * _arg1 = (wxDateTime::TimeZone *) &LOCAL; | |
4146 | PyObject * _argo0 = 0; | |
4147 | PyObject * _obj1 = 0; | |
4148 | char *_kwnames[] = { "self","tz", NULL }; | |
4149 | ||
4150 | self = self; | |
4151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxDateTime_GetYear",_kwnames,&_argo0,&_obj1)) | |
4152 | return NULL; | |
4153 | if (_argo0) { | |
4154 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4155 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetYear. Expected _wxDateTime_p."); | |
4157 | return NULL; | |
4158 | } | |
4159 | } | |
4160 | if (_obj1) | |
4161 | { | |
4162 | _arg1 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj1)); | |
4163 | } | |
4164 | { | |
4165 | wxPy_BEGIN_ALLOW_THREADS; | |
4166 | _result = (int )wxDateTime_GetYear(_arg0,*_arg1); | |
4167 | ||
4168 | wxPy_END_ALLOW_THREADS; | |
4169 | } _resultobj = Py_BuildValue("i",_result); | |
4170 | { | |
4171 | if (_arg1) delete _arg1; | |
4172 | } | |
4173 | return _resultobj; | |
4174 | } | |
4175 | ||
4176 | #define wxDateTime_GetMonth(_swigobj,_swigarg0) (_swigobj->GetMonth(_swigarg0)) | |
4177 | static PyObject *_wrap_wxDateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4178 | PyObject * _resultobj; | |
4179 | wxDateTime::Month _result; | |
4180 | wxDateTime * _arg0; | |
4181 | wxDateTime::TimeZone * _arg1 = (wxDateTime::TimeZone *) &LOCAL; | |
4182 | PyObject * _argo0 = 0; | |
4183 | PyObject * _obj1 = 0; | |
4184 | char *_kwnames[] = { "self","tz", NULL }; | |
4185 | ||
4186 | self = self; | |
4187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxDateTime_GetMonth",_kwnames,&_argo0,&_obj1)) | |
4188 | return NULL; | |
4189 | if (_argo0) { | |
4190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4191 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetMonth. Expected _wxDateTime_p."); | |
4193 | return NULL; | |
4194 | } | |
4195 | } | |
4196 | if (_obj1) | |
4197 | { | |
4198 | _arg1 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj1)); | |
4199 | } | |
4200 | { | |
4201 | wxPy_BEGIN_ALLOW_THREADS; | |
4202 | _result = (wxDateTime::Month )wxDateTime_GetMonth(_arg0,*_arg1); | |
4203 | ||
4204 | wxPy_END_ALLOW_THREADS; | |
4205 | } _resultobj = Py_BuildValue("i",_result); | |
4206 | { | |
4207 | if (_arg1) delete _arg1; | |
4208 | } | |
4209 | return _resultobj; | |
4210 | } | |
4211 | ||
4212 | #define wxDateTime_GetDay(_swigobj,_swigarg0) (_swigobj->GetDay(_swigarg0)) | |
4213 | static PyObject *_wrap_wxDateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4214 | PyObject * _resultobj; | |
4215 | wxDateTime::wxDateTime_t _result; | |
4216 | wxDateTime * _arg0; | |
4217 | wxDateTime::TimeZone * _arg1 = (wxDateTime::TimeZone *) &LOCAL; | |
4218 | PyObject * _argo0 = 0; | |
4219 | PyObject * _obj1 = 0; | |
4220 | char *_kwnames[] = { "self","tz", NULL }; | |
4221 | ||
4222 | self = self; | |
4223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxDateTime_GetDay",_kwnames,&_argo0,&_obj1)) | |
4224 | return NULL; | |
4225 | if (_argo0) { | |
4226 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4227 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetDay. Expected _wxDateTime_p."); | |
4229 | return NULL; | |
4230 | } | |
4231 | } | |
4232 | if (_obj1) | |
4233 | { | |
4234 | _arg1 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj1)); | |
4235 | } | |
4236 | { | |
4237 | wxPy_BEGIN_ALLOW_THREADS; | |
4238 | _result = (wxDateTime::wxDateTime_t )wxDateTime_GetDay(_arg0,*_arg1); | |
4239 | ||
4240 | wxPy_END_ALLOW_THREADS; | |
4241 | } _resultobj = Py_BuildValue("h",_result); | |
4242 | { | |
4243 | if (_arg1) delete _arg1; | |
4244 | } | |
4245 | return _resultobj; | |
4246 | } | |
4247 | ||
4248 | #define wxDateTime_GetHour(_swigobj,_swigarg0) (_swigobj->GetHour(_swigarg0)) | |
4249 | static PyObject *_wrap_wxDateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4250 | PyObject * _resultobj; | |
4251 | wxDateTime::wxDateTime_t _result; | |
4252 | wxDateTime * _arg0; | |
4253 | wxDateTime::TimeZone * _arg1 = (wxDateTime::TimeZone *) &LOCAL; | |
4254 | PyObject * _argo0 = 0; | |
4255 | PyObject * _obj1 = 0; | |
4256 | char *_kwnames[] = { "self","tz", NULL }; | |
4257 | ||
4258 | self = self; | |
4259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxDateTime_GetHour",_kwnames,&_argo0,&_obj1)) | |
4260 | return NULL; | |
4261 | if (_argo0) { | |
4262 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4263 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4264 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetHour. Expected _wxDateTime_p."); | |
4265 | return NULL; | |
4266 | } | |
4267 | } | |
4268 | if (_obj1) | |
4269 | { | |
4270 | _arg1 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj1)); | |
4271 | } | |
4272 | { | |
4273 | wxPy_BEGIN_ALLOW_THREADS; | |
4274 | _result = (wxDateTime::wxDateTime_t )wxDateTime_GetHour(_arg0,*_arg1); | |
4275 | ||
4276 | wxPy_END_ALLOW_THREADS; | |
4277 | } _resultobj = Py_BuildValue("h",_result); | |
4278 | { | |
4279 | if (_arg1) delete _arg1; | |
4280 | } | |
4281 | return _resultobj; | |
4282 | } | |
4283 | ||
4284 | #define wxDateTime_GetMinute(_swigobj,_swigarg0) (_swigobj->GetMinute(_swigarg0)) | |
4285 | static PyObject *_wrap_wxDateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4286 | PyObject * _resultobj; | |
4287 | wxDateTime::wxDateTime_t _result; | |
4288 | wxDateTime * _arg0; | |
4289 | wxDateTime::TimeZone * _arg1 = (wxDateTime::TimeZone *) &LOCAL; | |
4290 | PyObject * _argo0 = 0; | |
4291 | PyObject * _obj1 = 0; | |
4292 | char *_kwnames[] = { "self","tz", NULL }; | |
4293 | ||
4294 | self = self; | |
4295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxDateTime_GetMinute",_kwnames,&_argo0,&_obj1)) | |
4296 | return NULL; | |
4297 | if (_argo0) { | |
4298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetMinute. Expected _wxDateTime_p."); | |
4301 | return NULL; | |
4302 | } | |
4303 | } | |
4304 | if (_obj1) | |
4305 | { | |
4306 | _arg1 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj1)); | |
4307 | } | |
4308 | { | |
4309 | wxPy_BEGIN_ALLOW_THREADS; | |
4310 | _result = (wxDateTime::wxDateTime_t )wxDateTime_GetMinute(_arg0,*_arg1); | |
4311 | ||
4312 | wxPy_END_ALLOW_THREADS; | |
4313 | } _resultobj = Py_BuildValue("h",_result); | |
4314 | { | |
4315 | if (_arg1) delete _arg1; | |
4316 | } | |
4317 | return _resultobj; | |
4318 | } | |
4319 | ||
4320 | #define wxDateTime_GetSecond(_swigobj,_swigarg0) (_swigobj->GetSecond(_swigarg0)) | |
4321 | static PyObject *_wrap_wxDateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4322 | PyObject * _resultobj; | |
4323 | wxDateTime::wxDateTime_t _result; | |
4324 | wxDateTime * _arg0; | |
4325 | wxDateTime::TimeZone * _arg1 = (wxDateTime::TimeZone *) &LOCAL; | |
4326 | PyObject * _argo0 = 0; | |
4327 | PyObject * _obj1 = 0; | |
4328 | char *_kwnames[] = { "self","tz", NULL }; | |
4329 | ||
4330 | self = self; | |
4331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxDateTime_GetSecond",_kwnames,&_argo0,&_obj1)) | |
4332 | return NULL; | |
4333 | if (_argo0) { | |
4334 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4335 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetSecond. Expected _wxDateTime_p."); | |
4337 | return NULL; | |
4338 | } | |
4339 | } | |
4340 | if (_obj1) | |
4341 | { | |
4342 | _arg1 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj1)); | |
4343 | } | |
4344 | { | |
4345 | wxPy_BEGIN_ALLOW_THREADS; | |
4346 | _result = (wxDateTime::wxDateTime_t )wxDateTime_GetSecond(_arg0,*_arg1); | |
4347 | ||
4348 | wxPy_END_ALLOW_THREADS; | |
4349 | } _resultobj = Py_BuildValue("h",_result); | |
4350 | { | |
4351 | if (_arg1) delete _arg1; | |
4352 | } | |
4353 | return _resultobj; | |
4354 | } | |
4355 | ||
4356 | #define wxDateTime_GetMillisecond(_swigobj,_swigarg0) (_swigobj->GetMillisecond(_swigarg0)) | |
4357 | static PyObject *_wrap_wxDateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4358 | PyObject * _resultobj; | |
4359 | wxDateTime::wxDateTime_t _result; | |
4360 | wxDateTime * _arg0; | |
4361 | wxDateTime::TimeZone * _arg1 = (wxDateTime::TimeZone *) &LOCAL; | |
4362 | PyObject * _argo0 = 0; | |
4363 | PyObject * _obj1 = 0; | |
4364 | char *_kwnames[] = { "self","tz", NULL }; | |
4365 | ||
4366 | self = self; | |
4367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxDateTime_GetMillisecond",_kwnames,&_argo0,&_obj1)) | |
4368 | return NULL; | |
4369 | if (_argo0) { | |
4370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetMillisecond. Expected _wxDateTime_p."); | |
4373 | return NULL; | |
4374 | } | |
4375 | } | |
4376 | if (_obj1) | |
4377 | { | |
4378 | _arg1 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj1)); | |
4379 | } | |
4380 | { | |
4381 | wxPy_BEGIN_ALLOW_THREADS; | |
4382 | _result = (wxDateTime::wxDateTime_t )wxDateTime_GetMillisecond(_arg0,*_arg1); | |
4383 | ||
4384 | wxPy_END_ALLOW_THREADS; | |
4385 | } _resultobj = Py_BuildValue("h",_result); | |
4386 | { | |
4387 | if (_arg1) delete _arg1; | |
4388 | } | |
4389 | return _resultobj; | |
4390 | } | |
4391 | ||
4392 | #define wxDateTime_GetDayOfYear(_swigobj,_swigarg0) (_swigobj->GetDayOfYear(_swigarg0)) | |
4393 | static PyObject *_wrap_wxDateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4394 | PyObject * _resultobj; | |
4395 | wxDateTime::wxDateTime_t _result; | |
4396 | wxDateTime * _arg0; | |
4397 | wxDateTime::TimeZone * _arg1 = (wxDateTime::TimeZone *) &LOCAL; | |
4398 | PyObject * _argo0 = 0; | |
4399 | PyObject * _obj1 = 0; | |
4400 | char *_kwnames[] = { "self","tz", NULL }; | |
4401 | ||
4402 | self = self; | |
4403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxDateTime_GetDayOfYear",_kwnames,&_argo0,&_obj1)) | |
4404 | return NULL; | |
4405 | if (_argo0) { | |
4406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetDayOfYear. Expected _wxDateTime_p."); | |
4409 | return NULL; | |
4410 | } | |
4411 | } | |
4412 | if (_obj1) | |
4413 | { | |
4414 | _arg1 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj1)); | |
4415 | } | |
4416 | { | |
4417 | wxPy_BEGIN_ALLOW_THREADS; | |
4418 | _result = (wxDateTime::wxDateTime_t )wxDateTime_GetDayOfYear(_arg0,*_arg1); | |
4419 | ||
4420 | wxPy_END_ALLOW_THREADS; | |
4421 | } _resultobj = Py_BuildValue("h",_result); | |
4422 | { | |
4423 | if (_arg1) delete _arg1; | |
4424 | } | |
4425 | return _resultobj; | |
4426 | } | |
4427 | ||
4428 | #define wxDateTime_GetWeekOfYear(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetWeekOfYear(_swigarg0,_swigarg1)) | |
4429 | static PyObject *_wrap_wxDateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4430 | PyObject * _resultobj; | |
4431 | wxDateTime::wxDateTime_t _result; | |
4432 | wxDateTime * _arg0; | |
4433 | wxDateTime::WeekFlags _arg1 = (wxDateTime::WeekFlags ) wxDateTime::Monday_First; | |
4434 | wxDateTime::TimeZone * _arg2 = (wxDateTime::TimeZone *) &LOCAL; | |
4435 | PyObject * _argo0 = 0; | |
4436 | PyObject * _obj2 = 0; | |
4437 | char *_kwnames[] = { "self","flags","tz", NULL }; | |
4438 | ||
4439 | self = self; | |
4440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxDateTime_GetWeekOfYear",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4441 | return NULL; | |
4442 | if (_argo0) { | |
4443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetWeekOfYear. Expected _wxDateTime_p."); | |
4446 | return NULL; | |
4447 | } | |
4448 | } | |
4449 | if (_obj2) | |
4450 | { | |
4451 | _arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj2)); | |
4452 | } | |
4453 | { | |
4454 | wxPy_BEGIN_ALLOW_THREADS; | |
4455 | _result = (wxDateTime::wxDateTime_t )wxDateTime_GetWeekOfYear(_arg0,_arg1,*_arg2); | |
4456 | ||
4457 | wxPy_END_ALLOW_THREADS; | |
4458 | } _resultobj = Py_BuildValue("h",_result); | |
4459 | { | |
4460 | if (_arg2) delete _arg2; | |
4461 | } | |
4462 | return _resultobj; | |
4463 | } | |
4464 | ||
4465 | #define wxDateTime_GetWeekOfMonth(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetWeekOfMonth(_swigarg0,_swigarg1)) | |
4466 | static PyObject *_wrap_wxDateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4467 | PyObject * _resultobj; | |
4468 | wxDateTime::wxDateTime_t _result; | |
4469 | wxDateTime * _arg0; | |
4470 | wxDateTime::WeekFlags _arg1 = (wxDateTime::WeekFlags ) wxDateTime::Monday_First; | |
4471 | wxDateTime::TimeZone * _arg2 = (wxDateTime::TimeZone *) &LOCAL; | |
4472 | PyObject * _argo0 = 0; | |
4473 | PyObject * _obj2 = 0; | |
4474 | char *_kwnames[] = { "self","flags","tz", NULL }; | |
4475 | ||
4476 | self = self; | |
4477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxDateTime_GetWeekOfMonth",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4478 | return NULL; | |
4479 | if (_argo0) { | |
4480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetWeekOfMonth. Expected _wxDateTime_p."); | |
4483 | return NULL; | |
4484 | } | |
4485 | } | |
4486 | if (_obj2) | |
4487 | { | |
4488 | _arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj2)); | |
4489 | } | |
4490 | { | |
4491 | wxPy_BEGIN_ALLOW_THREADS; | |
4492 | _result = (wxDateTime::wxDateTime_t )wxDateTime_GetWeekOfMonth(_arg0,_arg1,*_arg2); | |
4493 | ||
4494 | wxPy_END_ALLOW_THREADS; | |
4495 | } _resultobj = Py_BuildValue("h",_result); | |
4496 | { | |
4497 | if (_arg2) delete _arg2; | |
4498 | } | |
4499 | return _resultobj; | |
4500 | } | |
4501 | ||
4502 | #define wxDateTime_IsWorkDay(_swigobj,_swigarg0) (_swigobj->IsWorkDay(_swigarg0)) | |
4503 | static PyObject *_wrap_wxDateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4504 | PyObject * _resultobj; | |
4505 | bool _result; | |
4506 | wxDateTime * _arg0; | |
4507 | wxDateTime::Country _arg1 = (wxDateTime::Country ) wxDateTime::Country_Default; | |
4508 | PyObject * _argo0 = 0; | |
4509 | char *_kwnames[] = { "self","country", NULL }; | |
4510 | ||
4511 | self = self; | |
4512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDateTime_IsWorkDay",_kwnames,&_argo0,&_arg1)) | |
4513 | return NULL; | |
4514 | if (_argo0) { | |
4515 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4516 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_IsWorkDay. Expected _wxDateTime_p."); | |
4518 | return NULL; | |
4519 | } | |
4520 | } | |
4521 | { | |
4522 | wxPy_BEGIN_ALLOW_THREADS; | |
4523 | _result = (bool )wxDateTime_IsWorkDay(_arg0,_arg1); | |
4524 | ||
4525 | wxPy_END_ALLOW_THREADS; | |
4526 | } _resultobj = Py_BuildValue("i",_result); | |
4527 | return _resultobj; | |
4528 | } | |
4529 | ||
4530 | #define wxDateTime_IsEqualTo(_swigobj,_swigarg0) (_swigobj->IsEqualTo(_swigarg0)) | |
4531 | static PyObject *_wrap_wxDateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4532 | PyObject * _resultobj; | |
4533 | bool _result; | |
4534 | wxDateTime * _arg0; | |
4535 | wxDateTime * _arg1; | |
4536 | PyObject * _argo0 = 0; | |
4537 | PyObject * _argo1 = 0; | |
4538 | char *_kwnames[] = { "self","datetime", NULL }; | |
4539 | ||
4540 | self = self; | |
4541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime_IsEqualTo",_kwnames,&_argo0,&_argo1)) | |
4542 | return NULL; | |
4543 | if (_argo0) { | |
4544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_IsEqualTo. Expected _wxDateTime_p."); | |
4547 | return NULL; | |
4548 | } | |
4549 | } | |
4550 | if (_argo1) { | |
4551 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4552 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
4553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime_IsEqualTo. Expected _wxDateTime_p."); | |
4554 | return NULL; | |
4555 | } | |
4556 | } | |
4557 | { | |
4558 | wxPy_BEGIN_ALLOW_THREADS; | |
4559 | _result = (bool )wxDateTime_IsEqualTo(_arg0,*_arg1); | |
4560 | ||
4561 | wxPy_END_ALLOW_THREADS; | |
4562 | } _resultobj = Py_BuildValue("i",_result); | |
4563 | return _resultobj; | |
4564 | } | |
4565 | ||
4566 | #define wxDateTime_IsEarlierThan(_swigobj,_swigarg0) (_swigobj->IsEarlierThan(_swigarg0)) | |
4567 | static PyObject *_wrap_wxDateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4568 | PyObject * _resultobj; | |
4569 | bool _result; | |
4570 | wxDateTime * _arg0; | |
4571 | wxDateTime * _arg1; | |
4572 | PyObject * _argo0 = 0; | |
4573 | PyObject * _argo1 = 0; | |
4574 | char *_kwnames[] = { "self","datetime", NULL }; | |
4575 | ||
4576 | self = self; | |
4577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime_IsEarlierThan",_kwnames,&_argo0,&_argo1)) | |
4578 | return NULL; | |
4579 | if (_argo0) { | |
4580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_IsEarlierThan. Expected _wxDateTime_p."); | |
4583 | return NULL; | |
4584 | } | |
4585 | } | |
4586 | if (_argo1) { | |
4587 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4588 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
4589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime_IsEarlierThan. Expected _wxDateTime_p."); | |
4590 | return NULL; | |
4591 | } | |
4592 | } | |
4593 | { | |
4594 | wxPy_BEGIN_ALLOW_THREADS; | |
4595 | _result = (bool )wxDateTime_IsEarlierThan(_arg0,*_arg1); | |
4596 | ||
4597 | wxPy_END_ALLOW_THREADS; | |
4598 | } _resultobj = Py_BuildValue("i",_result); | |
4599 | return _resultobj; | |
4600 | } | |
4601 | ||
4602 | #define wxDateTime_IsLaterThan(_swigobj,_swigarg0) (_swigobj->IsLaterThan(_swigarg0)) | |
4603 | static PyObject *_wrap_wxDateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4604 | PyObject * _resultobj; | |
4605 | bool _result; | |
4606 | wxDateTime * _arg0; | |
4607 | wxDateTime * _arg1; | |
4608 | PyObject * _argo0 = 0; | |
4609 | PyObject * _argo1 = 0; | |
4610 | char *_kwnames[] = { "self","datetime", NULL }; | |
4611 | ||
4612 | self = self; | |
4613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime_IsLaterThan",_kwnames,&_argo0,&_argo1)) | |
4614 | return NULL; | |
4615 | if (_argo0) { | |
4616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_IsLaterThan. Expected _wxDateTime_p."); | |
4619 | return NULL; | |
4620 | } | |
4621 | } | |
4622 | if (_argo1) { | |
4623 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4624 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
4625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime_IsLaterThan. Expected _wxDateTime_p."); | |
4626 | return NULL; | |
4627 | } | |
4628 | } | |
4629 | { | |
4630 | wxPy_BEGIN_ALLOW_THREADS; | |
4631 | _result = (bool )wxDateTime_IsLaterThan(_arg0,*_arg1); | |
4632 | ||
4633 | wxPy_END_ALLOW_THREADS; | |
4634 | } _resultobj = Py_BuildValue("i",_result); | |
4635 | return _resultobj; | |
4636 | } | |
4637 | ||
4638 | #define wxDateTime_IsStrictlyBetween(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsStrictlyBetween(_swigarg0,_swigarg1)) | |
4639 | static PyObject *_wrap_wxDateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4640 | PyObject * _resultobj; | |
4641 | bool _result; | |
4642 | wxDateTime * _arg0; | |
4643 | wxDateTime * _arg1; | |
4644 | wxDateTime * _arg2; | |
4645 | PyObject * _argo0 = 0; | |
4646 | PyObject * _argo1 = 0; | |
4647 | PyObject * _argo2 = 0; | |
4648 | char *_kwnames[] = { "self","t1","t2", NULL }; | |
4649 | ||
4650 | self = self; | |
4651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDateTime_IsStrictlyBetween",_kwnames,&_argo0,&_argo1,&_argo2)) | |
4652 | return NULL; | |
4653 | if (_argo0) { | |
4654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_IsStrictlyBetween. Expected _wxDateTime_p."); | |
4657 | return NULL; | |
4658 | } | |
4659 | } | |
4660 | if (_argo1) { | |
4661 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4662 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
4663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime_IsStrictlyBetween. Expected _wxDateTime_p."); | |
4664 | return NULL; | |
4665 | } | |
4666 | } | |
4667 | if (_argo2) { | |
4668 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4669 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDateTime_p")) { | |
4670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDateTime_IsStrictlyBetween. Expected _wxDateTime_p."); | |
4671 | return NULL; | |
4672 | } | |
4673 | } | |
4674 | { | |
4675 | wxPy_BEGIN_ALLOW_THREADS; | |
4676 | _result = (bool )wxDateTime_IsStrictlyBetween(_arg0,*_arg1,*_arg2); | |
4677 | ||
4678 | wxPy_END_ALLOW_THREADS; | |
4679 | } _resultobj = Py_BuildValue("i",_result); | |
4680 | return _resultobj; | |
4681 | } | |
4682 | ||
4683 | #define wxDateTime_IsBetween(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsBetween(_swigarg0,_swigarg1)) | |
4684 | static PyObject *_wrap_wxDateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4685 | PyObject * _resultobj; | |
4686 | bool _result; | |
4687 | wxDateTime * _arg0; | |
4688 | wxDateTime * _arg1; | |
4689 | wxDateTime * _arg2; | |
4690 | PyObject * _argo0 = 0; | |
4691 | PyObject * _argo1 = 0; | |
4692 | PyObject * _argo2 = 0; | |
4693 | char *_kwnames[] = { "self","t1","t2", NULL }; | |
4694 | ||
4695 | self = self; | |
4696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDateTime_IsBetween",_kwnames,&_argo0,&_argo1,&_argo2)) | |
4697 | return NULL; | |
4698 | if (_argo0) { | |
4699 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4700 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_IsBetween. Expected _wxDateTime_p."); | |
4702 | return NULL; | |
4703 | } | |
4704 | } | |
4705 | if (_argo1) { | |
4706 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4707 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
4708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime_IsBetween. Expected _wxDateTime_p."); | |
4709 | return NULL; | |
4710 | } | |
4711 | } | |
4712 | if (_argo2) { | |
4713 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4714 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDateTime_p")) { | |
4715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDateTime_IsBetween. Expected _wxDateTime_p."); | |
4716 | return NULL; | |
4717 | } | |
4718 | } | |
4719 | { | |
4720 | wxPy_BEGIN_ALLOW_THREADS; | |
4721 | _result = (bool )wxDateTime_IsBetween(_arg0,*_arg1,*_arg2); | |
4722 | ||
4723 | wxPy_END_ALLOW_THREADS; | |
4724 | } _resultobj = Py_BuildValue("i",_result); | |
4725 | return _resultobj; | |
4726 | } | |
4727 | ||
4728 | #define wxDateTime_IsSameDate(_swigobj,_swigarg0) (_swigobj->IsSameDate(_swigarg0)) | |
4729 | static PyObject *_wrap_wxDateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4730 | PyObject * _resultobj; | |
4731 | bool _result; | |
4732 | wxDateTime * _arg0; | |
4733 | wxDateTime * _arg1; | |
4734 | PyObject * _argo0 = 0; | |
4735 | PyObject * _argo1 = 0; | |
4736 | char *_kwnames[] = { "self","dt", NULL }; | |
4737 | ||
4738 | self = self; | |
4739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime_IsSameDate",_kwnames,&_argo0,&_argo1)) | |
4740 | return NULL; | |
4741 | if (_argo0) { | |
4742 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4743 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_IsSameDate. Expected _wxDateTime_p."); | |
4745 | return NULL; | |
4746 | } | |
4747 | } | |
4748 | if (_argo1) { | |
4749 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4750 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
4751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime_IsSameDate. Expected _wxDateTime_p."); | |
4752 | return NULL; | |
4753 | } | |
4754 | } | |
4755 | { | |
4756 | wxPy_BEGIN_ALLOW_THREADS; | |
4757 | _result = (bool )wxDateTime_IsSameDate(_arg0,*_arg1); | |
4758 | ||
4759 | wxPy_END_ALLOW_THREADS; | |
4760 | } _resultobj = Py_BuildValue("i",_result); | |
4761 | return _resultobj; | |
4762 | } | |
4763 | ||
4764 | #define wxDateTime_IsSameTime(_swigobj,_swigarg0) (_swigobj->IsSameTime(_swigarg0)) | |
4765 | static PyObject *_wrap_wxDateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4766 | PyObject * _resultobj; | |
4767 | bool _result; | |
4768 | wxDateTime * _arg0; | |
4769 | wxDateTime * _arg1; | |
4770 | PyObject * _argo0 = 0; | |
4771 | PyObject * _argo1 = 0; | |
4772 | char *_kwnames[] = { "self","dt", NULL }; | |
4773 | ||
4774 | self = self; | |
4775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime_IsSameTime",_kwnames,&_argo0,&_argo1)) | |
4776 | return NULL; | |
4777 | if (_argo0) { | |
4778 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4779 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_IsSameTime. Expected _wxDateTime_p."); | |
4781 | return NULL; | |
4782 | } | |
4783 | } | |
4784 | if (_argo1) { | |
4785 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4786 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
4787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime_IsSameTime. Expected _wxDateTime_p."); | |
4788 | return NULL; | |
4789 | } | |
4790 | } | |
4791 | { | |
4792 | wxPy_BEGIN_ALLOW_THREADS; | |
4793 | _result = (bool )wxDateTime_IsSameTime(_arg0,*_arg1); | |
4794 | ||
4795 | wxPy_END_ALLOW_THREADS; | |
4796 | } _resultobj = Py_BuildValue("i",_result); | |
4797 | return _resultobj; | |
4798 | } | |
4799 | ||
4800 | #define wxDateTime_IsEqualUpTo(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEqualUpTo(_swigarg0,_swigarg1)) | |
4801 | static PyObject *_wrap_wxDateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4802 | PyObject * _resultobj; | |
4803 | bool _result; | |
4804 | wxDateTime * _arg0; | |
4805 | wxDateTime * _arg1; | |
4806 | wxTimeSpan * _arg2; | |
4807 | PyObject * _argo0 = 0; | |
4808 | PyObject * _argo1 = 0; | |
4809 | PyObject * _argo2 = 0; | |
4810 | char *_kwnames[] = { "self","dt","ts", NULL }; | |
4811 | ||
4812 | self = self; | |
4813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDateTime_IsEqualUpTo",_kwnames,&_argo0,&_argo1,&_argo2)) | |
4814 | return NULL; | |
4815 | if (_argo0) { | |
4816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_IsEqualUpTo. Expected _wxDateTime_p."); | |
4819 | return NULL; | |
4820 | } | |
4821 | } | |
4822 | if (_argo1) { | |
4823 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4824 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
4825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime_IsEqualUpTo. Expected _wxDateTime_p."); | |
4826 | return NULL; | |
4827 | } | |
4828 | } | |
4829 | if (_argo2) { | |
4830 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4831 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTimeSpan_p")) { | |
4832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDateTime_IsEqualUpTo. Expected _wxTimeSpan_p."); | |
4833 | return NULL; | |
4834 | } | |
4835 | } | |
4836 | { | |
4837 | wxPy_BEGIN_ALLOW_THREADS; | |
4838 | _result = (bool )wxDateTime_IsEqualUpTo(_arg0,*_arg1,*_arg2); | |
4839 | ||
4840 | wxPy_END_ALLOW_THREADS; | |
4841 | } _resultobj = Py_BuildValue("i",_result); | |
4842 | return _resultobj; | |
4843 | } | |
4844 | ||
4845 | #define wxDateTime_AddTS(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
4846 | static PyObject *_wrap_wxDateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4847 | PyObject * _resultobj; | |
4848 | wxDateTime * _result; | |
4849 | wxDateTime * _arg0; | |
4850 | wxTimeSpan * _arg1; | |
4851 | PyObject * _argo0 = 0; | |
4852 | PyObject * _argo1 = 0; | |
4853 | char *_kwnames[] = { "self","diff", NULL }; | |
4854 | char _ptemp[128]; | |
4855 | ||
4856 | self = self; | |
4857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime_AddTS",_kwnames,&_argo0,&_argo1)) | |
4858 | return NULL; | |
4859 | if (_argo0) { | |
4860 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4861 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_AddTS. Expected _wxDateTime_p."); | |
4863 | return NULL; | |
4864 | } | |
4865 | } | |
4866 | if (_argo1) { | |
4867 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4868 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) { | |
4869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime_AddTS. Expected _wxTimeSpan_p."); | |
4870 | return NULL; | |
4871 | } | |
4872 | } | |
4873 | { | |
4874 | wxPy_BEGIN_ALLOW_THREADS; | |
4875 | wxDateTime & _result_ref = wxDateTime_AddTS(_arg0,*_arg1); | |
4876 | _result = (wxDateTime *) &_result_ref; | |
4877 | ||
4878 | wxPy_END_ALLOW_THREADS; | |
4879 | } if (_result) { | |
4880 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
4881 | _resultobj = Py_BuildValue("s",_ptemp); | |
4882 | } else { | |
4883 | Py_INCREF(Py_None); | |
4884 | _resultobj = Py_None; | |
4885 | } | |
4886 | return _resultobj; | |
4887 | } | |
4888 | ||
4889 | #define wxDateTime_AddDS(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
4890 | static PyObject *_wrap_wxDateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4891 | PyObject * _resultobj; | |
4892 | wxDateTime * _result; | |
4893 | wxDateTime * _arg0; | |
4894 | wxDateSpan * _arg1; | |
4895 | PyObject * _argo0 = 0; | |
4896 | PyObject * _argo1 = 0; | |
4897 | char *_kwnames[] = { "self","diff", NULL }; | |
4898 | char _ptemp[128]; | |
4899 | ||
4900 | self = self; | |
4901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime_AddDS",_kwnames,&_argo0,&_argo1)) | |
4902 | return NULL; | |
4903 | if (_argo0) { | |
4904 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4905 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4906 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_AddDS. Expected _wxDateTime_p."); | |
4907 | return NULL; | |
4908 | } | |
4909 | } | |
4910 | if (_argo1) { | |
4911 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4912 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateSpan_p")) { | |
4913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime_AddDS. Expected _wxDateSpan_p."); | |
4914 | return NULL; | |
4915 | } | |
4916 | } | |
4917 | { | |
4918 | wxPy_BEGIN_ALLOW_THREADS; | |
4919 | wxDateTime & _result_ref = wxDateTime_AddDS(_arg0,*_arg1); | |
4920 | _result = (wxDateTime *) &_result_ref; | |
4921 | ||
4922 | wxPy_END_ALLOW_THREADS; | |
4923 | } if (_result) { | |
4924 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
4925 | _resultobj = Py_BuildValue("s",_ptemp); | |
4926 | } else { | |
4927 | Py_INCREF(Py_None); | |
4928 | _resultobj = Py_None; | |
4929 | } | |
4930 | return _resultobj; | |
4931 | } | |
4932 | ||
4933 | #define wxDateTime_SubtractTS(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
4934 | static PyObject *_wrap_wxDateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4935 | PyObject * _resultobj; | |
4936 | wxDateTime * _result; | |
4937 | wxDateTime * _arg0; | |
4938 | wxTimeSpan * _arg1; | |
4939 | PyObject * _argo0 = 0; | |
4940 | PyObject * _argo1 = 0; | |
4941 | char *_kwnames[] = { "self","diff", NULL }; | |
4942 | char _ptemp[128]; | |
4943 | ||
4944 | self = self; | |
4945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime_SubtractTS",_kwnames,&_argo0,&_argo1)) | |
4946 | return NULL; | |
4947 | if (_argo0) { | |
4948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SubtractTS. Expected _wxDateTime_p."); | |
4951 | return NULL; | |
4952 | } | |
4953 | } | |
4954 | if (_argo1) { | |
4955 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4956 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) { | |
4957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime_SubtractTS. Expected _wxTimeSpan_p."); | |
4958 | return NULL; | |
4959 | } | |
4960 | } | |
4961 | { | |
4962 | wxPy_BEGIN_ALLOW_THREADS; | |
4963 | wxDateTime & _result_ref = wxDateTime_SubtractTS(_arg0,*_arg1); | |
4964 | _result = (wxDateTime *) &_result_ref; | |
4965 | ||
4966 | wxPy_END_ALLOW_THREADS; | |
4967 | } if (_result) { | |
4968 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
4969 | _resultobj = Py_BuildValue("s",_ptemp); | |
4970 | } else { | |
4971 | Py_INCREF(Py_None); | |
4972 | _resultobj = Py_None; | |
4973 | } | |
4974 | return _resultobj; | |
4975 | } | |
4976 | ||
4977 | #define wxDateTime_SubtractDS(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
4978 | static PyObject *_wrap_wxDateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4979 | PyObject * _resultobj; | |
4980 | wxDateTime * _result; | |
4981 | wxDateTime * _arg0; | |
4982 | wxDateSpan * _arg1; | |
4983 | PyObject * _argo0 = 0; | |
4984 | PyObject * _argo1 = 0; | |
4985 | char *_kwnames[] = { "self","diff", NULL }; | |
4986 | char _ptemp[128]; | |
4987 | ||
4988 | self = self; | |
4989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime_SubtractDS",_kwnames,&_argo0,&_argo1)) | |
4990 | return NULL; | |
4991 | if (_argo0) { | |
4992 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4993 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SubtractDS. Expected _wxDateTime_p."); | |
4995 | return NULL; | |
4996 | } | |
4997 | } | |
4998 | if (_argo1) { | |
4999 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5000 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateSpan_p")) { | |
5001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime_SubtractDS. Expected _wxDateSpan_p."); | |
5002 | return NULL; | |
5003 | } | |
5004 | } | |
5005 | { | |
5006 | wxPy_BEGIN_ALLOW_THREADS; | |
5007 | wxDateTime & _result_ref = wxDateTime_SubtractDS(_arg0,*_arg1); | |
5008 | _result = (wxDateTime *) &_result_ref; | |
5009 | ||
5010 | wxPy_END_ALLOW_THREADS; | |
5011 | } if (_result) { | |
5012 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
5013 | _resultobj = Py_BuildValue("s",_ptemp); | |
5014 | } else { | |
5015 | Py_INCREF(Py_None); | |
5016 | _resultobj = Py_None; | |
5017 | } | |
5018 | return _resultobj; | |
5019 | } | |
5020 | ||
5021 | #define wxDateTime_Subtract(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
5022 | static PyObject *_wrap_wxDateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5023 | PyObject * _resultobj; | |
5024 | wxTimeSpan * _result; | |
5025 | wxDateTime * _arg0; | |
5026 | wxDateTime * _arg1; | |
5027 | PyObject * _argo0 = 0; | |
5028 | PyObject * _argo1 = 0; | |
5029 | char *_kwnames[] = { "self","dt", NULL }; | |
5030 | char _ptemp[128]; | |
5031 | ||
5032 | self = self; | |
5033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime_Subtract",_kwnames,&_argo0,&_argo1)) | |
5034 | return NULL; | |
5035 | if (_argo0) { | |
5036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_Subtract. Expected _wxDateTime_p."); | |
5039 | return NULL; | |
5040 | } | |
5041 | } | |
5042 | if (_argo1) { | |
5043 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5044 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
5045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime_Subtract. Expected _wxDateTime_p."); | |
5046 | return NULL; | |
5047 | } | |
5048 | } | |
5049 | { | |
5050 | wxPy_BEGIN_ALLOW_THREADS; | |
5051 | _result = new wxTimeSpan (wxDateTime_Subtract(_arg0,*_arg1)); | |
5052 | ||
5053 | wxPy_END_ALLOW_THREADS; | |
5054 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); | |
5055 | _resultobj = Py_BuildValue("s",_ptemp); | |
5056 | return _resultobj; | |
5057 | } | |
5058 | ||
5059 | static wxDateTime wxDateTime___add__TS(wxDateTime *self,const wxTimeSpan & other) { return *self + other; } | |
5060 | static PyObject *_wrap_wxDateTime___add__TS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5061 | PyObject * _resultobj; | |
5062 | wxDateTime * _result; | |
5063 | wxDateTime * _arg0; | |
5064 | wxTimeSpan * _arg1; | |
5065 | PyObject * _argo0 = 0; | |
5066 | PyObject * _argo1 = 0; | |
5067 | char *_kwnames[] = { "self","other", NULL }; | |
5068 | char _ptemp[128]; | |
5069 | ||
5070 | self = self; | |
5071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime___add__TS",_kwnames,&_argo0,&_argo1)) | |
5072 | return NULL; | |
5073 | if (_argo0) { | |
5074 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5075 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime___add__TS. Expected _wxDateTime_p."); | |
5077 | return NULL; | |
5078 | } | |
5079 | } | |
5080 | if (_argo1) { | |
5081 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5082 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) { | |
5083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime___add__TS. Expected _wxTimeSpan_p."); | |
5084 | return NULL; | |
5085 | } | |
5086 | } | |
5087 | { | |
5088 | wxPy_BEGIN_ALLOW_THREADS; | |
5089 | _result = new wxDateTime (wxDateTime___add__TS(_arg0,*_arg1)); | |
5090 | ||
5091 | wxPy_END_ALLOW_THREADS; | |
5092 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); | |
5093 | _resultobj = Py_BuildValue("s",_ptemp); | |
5094 | return _resultobj; | |
5095 | } | |
5096 | ||
5097 | static wxDateTime wxDateTime___add__DS(wxDateTime *self,const wxDateSpan & other) { return *self + other; } | |
5098 | static PyObject *_wrap_wxDateTime___add__DS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5099 | PyObject * _resultobj; | |
5100 | wxDateTime * _result; | |
5101 | wxDateTime * _arg0; | |
5102 | wxDateSpan * _arg1; | |
5103 | PyObject * _argo0 = 0; | |
5104 | PyObject * _argo1 = 0; | |
5105 | char *_kwnames[] = { "self","other", NULL }; | |
5106 | char _ptemp[128]; | |
5107 | ||
5108 | self = self; | |
5109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime___add__DS",_kwnames,&_argo0,&_argo1)) | |
5110 | return NULL; | |
5111 | if (_argo0) { | |
5112 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5113 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime___add__DS. Expected _wxDateTime_p."); | |
5115 | return NULL; | |
5116 | } | |
5117 | } | |
5118 | if (_argo1) { | |
5119 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5120 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateSpan_p")) { | |
5121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime___add__DS. Expected _wxDateSpan_p."); | |
5122 | return NULL; | |
5123 | } | |
5124 | } | |
5125 | { | |
5126 | wxPy_BEGIN_ALLOW_THREADS; | |
5127 | _result = new wxDateTime (wxDateTime___add__DS(_arg0,*_arg1)); | |
5128 | ||
5129 | wxPy_END_ALLOW_THREADS; | |
5130 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); | |
5131 | _resultobj = Py_BuildValue("s",_ptemp); | |
5132 | return _resultobj; | |
5133 | } | |
5134 | ||
5135 | static wxTimeSpan wxDateTime___sub__DT(wxDateTime *self,const wxDateTime & other) { return *self - other; } | |
5136 | static PyObject *_wrap_wxDateTime___sub__DT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5137 | PyObject * _resultobj; | |
5138 | wxTimeSpan * _result; | |
5139 | wxDateTime * _arg0; | |
5140 | wxDateTime * _arg1; | |
5141 | PyObject * _argo0 = 0; | |
5142 | PyObject * _argo1 = 0; | |
5143 | char *_kwnames[] = { "self","other", NULL }; | |
5144 | char _ptemp[128]; | |
5145 | ||
5146 | self = self; | |
5147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime___sub__DT",_kwnames,&_argo0,&_argo1)) | |
5148 | return NULL; | |
5149 | if (_argo0) { | |
5150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime___sub__DT. Expected _wxDateTime_p."); | |
5153 | return NULL; | |
5154 | } | |
5155 | } | |
5156 | if (_argo1) { | |
5157 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5158 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
5159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime___sub__DT. Expected _wxDateTime_p."); | |
5160 | return NULL; | |
5161 | } | |
5162 | } | |
5163 | { | |
5164 | wxPy_BEGIN_ALLOW_THREADS; | |
5165 | _result = new wxTimeSpan (wxDateTime___sub__DT(_arg0,*_arg1)); | |
5166 | ||
5167 | wxPy_END_ALLOW_THREADS; | |
5168 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); | |
5169 | _resultobj = Py_BuildValue("s",_ptemp); | |
5170 | return _resultobj; | |
5171 | } | |
5172 | ||
5173 | static wxDateTime wxDateTime___sub__TS(wxDateTime *self,const wxTimeSpan & other) { return *self - other; } | |
5174 | static PyObject *_wrap_wxDateTime___sub__TS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5175 | PyObject * _resultobj; | |
5176 | wxDateTime * _result; | |
5177 | wxDateTime * _arg0; | |
5178 | wxTimeSpan * _arg1; | |
5179 | PyObject * _argo0 = 0; | |
5180 | PyObject * _argo1 = 0; | |
5181 | char *_kwnames[] = { "self","other", NULL }; | |
5182 | char _ptemp[128]; | |
5183 | ||
5184 | self = self; | |
5185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime___sub__TS",_kwnames,&_argo0,&_argo1)) | |
5186 | return NULL; | |
5187 | if (_argo0) { | |
5188 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5189 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5190 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime___sub__TS. Expected _wxDateTime_p."); | |
5191 | return NULL; | |
5192 | } | |
5193 | } | |
5194 | if (_argo1) { | |
5195 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5196 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) { | |
5197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime___sub__TS. Expected _wxTimeSpan_p."); | |
5198 | return NULL; | |
5199 | } | |
5200 | } | |
5201 | { | |
5202 | wxPy_BEGIN_ALLOW_THREADS; | |
5203 | _result = new wxDateTime (wxDateTime___sub__TS(_arg0,*_arg1)); | |
5204 | ||
5205 | wxPy_END_ALLOW_THREADS; | |
5206 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); | |
5207 | _resultobj = Py_BuildValue("s",_ptemp); | |
5208 | return _resultobj; | |
5209 | } | |
5210 | ||
5211 | static wxDateTime wxDateTime___sub__DS(wxDateTime *self,const wxDateSpan & other) { return *self - other; } | |
5212 | static PyObject *_wrap_wxDateTime___sub__DS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5213 | PyObject * _resultobj; | |
5214 | wxDateTime * _result; | |
5215 | wxDateTime * _arg0; | |
5216 | wxDateSpan * _arg1; | |
5217 | PyObject * _argo0 = 0; | |
5218 | PyObject * _argo1 = 0; | |
5219 | char *_kwnames[] = { "self","other", NULL }; | |
5220 | char _ptemp[128]; | |
5221 | ||
5222 | self = self; | |
5223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime___sub__DS",_kwnames,&_argo0,&_argo1)) | |
5224 | return NULL; | |
5225 | if (_argo0) { | |
5226 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5227 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime___sub__DS. Expected _wxDateTime_p."); | |
5229 | return NULL; | |
5230 | } | |
5231 | } | |
5232 | if (_argo1) { | |
5233 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5234 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateSpan_p")) { | |
5235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime___sub__DS. Expected _wxDateSpan_p."); | |
5236 | return NULL; | |
5237 | } | |
5238 | } | |
5239 | { | |
5240 | wxPy_BEGIN_ALLOW_THREADS; | |
5241 | _result = new wxDateTime (wxDateTime___sub__DS(_arg0,*_arg1)); | |
5242 | ||
5243 | wxPy_END_ALLOW_THREADS; | |
5244 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); | |
5245 | _resultobj = Py_BuildValue("s",_ptemp); | |
5246 | return _resultobj; | |
5247 | } | |
5248 | ||
5249 | static int wxDateTime___cmp__(wxDateTime *self,const wxDateTime & other) { | |
5250 | if (*self < other) return -1; | |
5251 | if (*self == other) return 0; | |
5252 | return 1; | |
5253 | } | |
5254 | static PyObject *_wrap_wxDateTime___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5255 | PyObject * _resultobj; | |
5256 | int _result; | |
5257 | wxDateTime * _arg0; | |
5258 | wxDateTime * _arg1; | |
5259 | PyObject * _argo0 = 0; | |
5260 | PyObject * _argo1 = 0; | |
5261 | char *_kwnames[] = { "self","other", NULL }; | |
5262 | ||
5263 | self = self; | |
5264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime___cmp__",_kwnames,&_argo0,&_argo1)) | |
5265 | return NULL; | |
5266 | if (_argo0) { | |
5267 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5268 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime___cmp__. Expected _wxDateTime_p."); | |
5270 | return NULL; | |
5271 | } | |
5272 | } | |
5273 | if (_argo1) { | |
5274 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5275 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
5276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime___cmp__. Expected _wxDateTime_p."); | |
5277 | return NULL; | |
5278 | } | |
5279 | } | |
5280 | { | |
5281 | wxPy_BEGIN_ALLOW_THREADS; | |
5282 | _result = (int )wxDateTime___cmp__(_arg0,*_arg1); | |
5283 | ||
5284 | wxPy_END_ALLOW_THREADS; | |
5285 | } _resultobj = Py_BuildValue("i",_result); | |
5286 | return _resultobj; | |
5287 | } | |
5288 | ||
5289 | #define wxDateTime_ParseRfc822Date(_swigobj,_swigarg0) (_swigobj->ParseRfc822Date(_swigarg0)) | |
5290 | static PyObject *_wrap_wxDateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5291 | PyObject * _resultobj; | |
5292 | char * _result; | |
5293 | wxDateTime * _arg0; | |
5294 | char * _arg1; | |
5295 | PyObject * _argo0 = 0; | |
5296 | char *_kwnames[] = { "self","date", NULL }; | |
5297 | ||
5298 | self = self; | |
5299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxDateTime_ParseRfc822Date",_kwnames,&_argo0,&_arg1)) | |
5300 | return NULL; | |
5301 | if (_argo0) { | |
5302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_ParseRfc822Date. Expected _wxDateTime_p."); | |
5305 | return NULL; | |
5306 | } | |
5307 | } | |
5308 | { | |
5309 | wxPy_BEGIN_ALLOW_THREADS; | |
5310 | _result = (char *)wxDateTime_ParseRfc822Date(_arg0,_arg1); | |
5311 | ||
5312 | wxPy_END_ALLOW_THREADS; | |
5313 | } _resultobj = Py_BuildValue("s", _result); | |
5314 | return _resultobj; | |
5315 | } | |
5316 | ||
5317 | #define wxDateTime_ParseFormat(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ParseFormat(_swigarg0,_swigarg1,_swigarg2)) | |
5318 | static PyObject *_wrap_wxDateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5319 | PyObject * _resultobj; | |
5320 | char * _result; | |
5321 | wxDateTime * _arg0; | |
5322 | char * _arg1; | |
5323 | char * _arg2 = (char *) "%c"; | |
5324 | wxDateTime * _arg3 = (wxDateTime *) &wxDefaultDateTime; | |
5325 | PyObject * _argo0 = 0; | |
5326 | PyObject * _argo3 = 0; | |
5327 | char *_kwnames[] = { "self","date","format","dateDef", NULL }; | |
5328 | ||
5329 | self = self; | |
5330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|sO:wxDateTime_ParseFormat",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3)) | |
5331 | return NULL; | |
5332 | if (_argo0) { | |
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_ParseFormat. Expected _wxDateTime_p."); | |
5336 | return NULL; | |
5337 | } | |
5338 | } | |
5339 | if (_argo3) { | |
5340 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
5341 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxDateTime_p")) { | |
5342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDateTime_ParseFormat. Expected _wxDateTime_p."); | |
5343 | return NULL; | |
5344 | } | |
5345 | } | |
5346 | { | |
5347 | wxPy_BEGIN_ALLOW_THREADS; | |
5348 | _result = (char *)wxDateTime_ParseFormat(_arg0,_arg1,_arg2,*_arg3); | |
5349 | ||
5350 | wxPy_END_ALLOW_THREADS; | |
5351 | } _resultobj = Py_BuildValue("s", _result); | |
5352 | return _resultobj; | |
5353 | } | |
5354 | ||
5355 | #define wxDateTime_ParseDateTime(_swigobj,_swigarg0) (_swigobj->ParseDateTime(_swigarg0)) | |
5356 | static PyObject *_wrap_wxDateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5357 | PyObject * _resultobj; | |
5358 | char * _result; | |
5359 | wxDateTime * _arg0; | |
5360 | char * _arg1; | |
5361 | PyObject * _argo0 = 0; | |
5362 | char *_kwnames[] = { "self","datetime", NULL }; | |
5363 | ||
5364 | self = self; | |
5365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxDateTime_ParseDateTime",_kwnames,&_argo0,&_arg1)) | |
5366 | return NULL; | |
5367 | if (_argo0) { | |
5368 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5369 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_ParseDateTime. Expected _wxDateTime_p."); | |
5371 | return NULL; | |
5372 | } | |
5373 | } | |
5374 | { | |
5375 | wxPy_BEGIN_ALLOW_THREADS; | |
5376 | _result = (char *)wxDateTime_ParseDateTime(_arg0,_arg1); | |
5377 | ||
5378 | wxPy_END_ALLOW_THREADS; | |
5379 | } _resultobj = Py_BuildValue("s", _result); | |
5380 | return _resultobj; | |
5381 | } | |
5382 | ||
5383 | #define wxDateTime_ParseDate(_swigobj,_swigarg0) (_swigobj->ParseDate(_swigarg0)) | |
5384 | static PyObject *_wrap_wxDateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5385 | PyObject * _resultobj; | |
5386 | char * _result; | |
5387 | wxDateTime * _arg0; | |
5388 | char * _arg1; | |
5389 | PyObject * _argo0 = 0; | |
5390 | char *_kwnames[] = { "self","date", NULL }; | |
5391 | ||
5392 | self = self; | |
5393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxDateTime_ParseDate",_kwnames,&_argo0,&_arg1)) | |
5394 | return NULL; | |
5395 | if (_argo0) { | |
5396 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5397 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_ParseDate. Expected _wxDateTime_p."); | |
5399 | return NULL; | |
5400 | } | |
5401 | } | |
5402 | { | |
5403 | wxPy_BEGIN_ALLOW_THREADS; | |
5404 | _result = (char *)wxDateTime_ParseDate(_arg0,_arg1); | |
5405 | ||
5406 | wxPy_END_ALLOW_THREADS; | |
5407 | } _resultobj = Py_BuildValue("s", _result); | |
5408 | return _resultobj; | |
5409 | } | |
5410 | ||
5411 | #define wxDateTime_ParseTime(_swigobj,_swigarg0) (_swigobj->ParseTime(_swigarg0)) | |
5412 | static PyObject *_wrap_wxDateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5413 | PyObject * _resultobj; | |
5414 | char * _result; | |
5415 | wxDateTime * _arg0; | |
5416 | char * _arg1; | |
5417 | PyObject * _argo0 = 0; | |
5418 | char *_kwnames[] = { "self","time", NULL }; | |
5419 | ||
5420 | self = self; | |
5421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxDateTime_ParseTime",_kwnames,&_argo0,&_arg1)) | |
5422 | return NULL; | |
5423 | if (_argo0) { | |
5424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_ParseTime. Expected _wxDateTime_p."); | |
5427 | return NULL; | |
5428 | } | |
5429 | } | |
5430 | { | |
5431 | wxPy_BEGIN_ALLOW_THREADS; | |
5432 | _result = (char *)wxDateTime_ParseTime(_arg0,_arg1); | |
5433 | ||
5434 | wxPy_END_ALLOW_THREADS; | |
5435 | } _resultobj = Py_BuildValue("s", _result); | |
5436 | return _resultobj; | |
5437 | } | |
5438 | ||
5439 | #define wxDateTime_Format(_swigobj,_swigarg0,_swigarg1) (_swigobj->Format(_swigarg0,_swigarg1)) | |
5440 | static PyObject *_wrap_wxDateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5441 | PyObject * _resultobj; | |
5442 | wxString * _result; | |
5443 | wxDateTime * _arg0; | |
5444 | char * _arg1 = (char *) "%c"; | |
5445 | wxDateTime::TimeZone * _arg2 = (wxDateTime::TimeZone *) &LOCAL; | |
5446 | PyObject * _argo0 = 0; | |
5447 | PyObject * _obj2 = 0; | |
5448 | char *_kwnames[] = { "self","format","tz", NULL }; | |
5449 | ||
5450 | self = self; | |
5451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|sO:wxDateTime_Format",_kwnames,&_argo0,&_arg1,&_obj2)) | |
5452 | return NULL; | |
5453 | if (_argo0) { | |
5454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_Format. Expected _wxDateTime_p."); | |
5457 | return NULL; | |
5458 | } | |
5459 | } | |
5460 | if (_obj2) | |
5461 | { | |
5462 | _arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj2)); | |
5463 | } | |
5464 | { | |
5465 | wxPy_BEGIN_ALLOW_THREADS; | |
5466 | _result = new wxString (wxDateTime_Format(_arg0,_arg1,*_arg2)); | |
5467 | ||
5468 | wxPy_END_ALLOW_THREADS; | |
5469 | }{ | |
5470 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5471 | } | |
5472 | { | |
5473 | if (_arg2) delete _arg2; | |
5474 | } | |
5475 | { | |
5476 | delete _result; | |
5477 | } | |
5478 | return _resultobj; | |
5479 | } | |
5480 | ||
5481 | #define wxDateTime_FormatDate(_swigobj) (_swigobj->FormatDate()) | |
5482 | static PyObject *_wrap_wxDateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5483 | PyObject * _resultobj; | |
5484 | wxString * _result; | |
5485 | wxDateTime * _arg0; | |
5486 | PyObject * _argo0 = 0; | |
5487 | char *_kwnames[] = { "self", NULL }; | |
5488 | ||
5489 | self = self; | |
5490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_FormatDate",_kwnames,&_argo0)) | |
5491 | return NULL; | |
5492 | if (_argo0) { | |
5493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_FormatDate. Expected _wxDateTime_p."); | |
5496 | return NULL; | |
5497 | } | |
5498 | } | |
5499 | { | |
5500 | wxPy_BEGIN_ALLOW_THREADS; | |
5501 | _result = new wxString (wxDateTime_FormatDate(_arg0)); | |
5502 | ||
5503 | wxPy_END_ALLOW_THREADS; | |
5504 | }{ | |
5505 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5506 | } | |
5507 | { | |
5508 | delete _result; | |
5509 | } | |
5510 | return _resultobj; | |
5511 | } | |
5512 | ||
5513 | #define wxDateTime_FormatTime(_swigobj) (_swigobj->FormatTime()) | |
5514 | static PyObject *_wrap_wxDateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5515 | PyObject * _resultobj; | |
5516 | wxString * _result; | |
5517 | wxDateTime * _arg0; | |
5518 | PyObject * _argo0 = 0; | |
5519 | char *_kwnames[] = { "self", NULL }; | |
5520 | ||
5521 | self = self; | |
5522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_FormatTime",_kwnames,&_argo0)) | |
5523 | return NULL; | |
5524 | if (_argo0) { | |
5525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_FormatTime. Expected _wxDateTime_p."); | |
5528 | return NULL; | |
5529 | } | |
5530 | } | |
5531 | { | |
5532 | wxPy_BEGIN_ALLOW_THREADS; | |
5533 | _result = new wxString (wxDateTime_FormatTime(_arg0)); | |
5534 | ||
5535 | wxPy_END_ALLOW_THREADS; | |
5536 | }{ | |
5537 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5538 | } | |
5539 | { | |
5540 | delete _result; | |
5541 | } | |
5542 | return _resultobj; | |
5543 | } | |
5544 | ||
5545 | #define wxDateTime_FormatISODate(_swigobj) (_swigobj->FormatISODate()) | |
5546 | static PyObject *_wrap_wxDateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5547 | PyObject * _resultobj; | |
5548 | wxString * _result; | |
5549 | wxDateTime * _arg0; | |
5550 | PyObject * _argo0 = 0; | |
5551 | char *_kwnames[] = { "self", NULL }; | |
5552 | ||
5553 | self = self; | |
5554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_FormatISODate",_kwnames,&_argo0)) | |
5555 | return NULL; | |
5556 | if (_argo0) { | |
5557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_FormatISODate. Expected _wxDateTime_p."); | |
5560 | return NULL; | |
5561 | } | |
5562 | } | |
5563 | { | |
5564 | wxPy_BEGIN_ALLOW_THREADS; | |
5565 | _result = new wxString (wxDateTime_FormatISODate(_arg0)); | |
5566 | ||
5567 | wxPy_END_ALLOW_THREADS; | |
5568 | }{ | |
5569 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5570 | } | |
5571 | { | |
5572 | delete _result; | |
5573 | } | |
5574 | return _resultobj; | |
5575 | } | |
5576 | ||
5577 | #define wxDateTime_FormatISOTime(_swigobj) (_swigobj->FormatISOTime()) | |
5578 | static PyObject *_wrap_wxDateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5579 | PyObject * _resultobj; | |
5580 | wxString * _result; | |
5581 | wxDateTime * _arg0; | |
5582 | PyObject * _argo0 = 0; | |
5583 | char *_kwnames[] = { "self", NULL }; | |
5584 | ||
5585 | self = self; | |
5586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_FormatISOTime",_kwnames,&_argo0)) | |
5587 | return NULL; | |
5588 | if (_argo0) { | |
5589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_FormatISOTime. Expected _wxDateTime_p."); | |
5592 | return NULL; | |
5593 | } | |
5594 | } | |
5595 | { | |
5596 | wxPy_BEGIN_ALLOW_THREADS; | |
5597 | _result = new wxString (wxDateTime_FormatISOTime(_arg0)); | |
5598 | ||
5599 | wxPy_END_ALLOW_THREADS; | |
5600 | }{ | |
5601 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5602 | } | |
5603 | { | |
5604 | delete _result; | |
5605 | } | |
5606 | return _resultobj; | |
5607 | } | |
5608 | ||
5609 | static PyObject *_wrap_wxTimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5610 | PyObject * _resultobj; | |
5611 | wxTimeSpan * _result; | |
5612 | long _arg0; | |
5613 | char *_kwnames[] = { "sec", NULL }; | |
5614 | char _ptemp[128]; | |
5615 | ||
5616 | self = self; | |
5617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxTimeSpan_Seconds",_kwnames,&_arg0)) | |
5618 | return NULL; | |
5619 | { | |
5620 | wxPy_BEGIN_ALLOW_THREADS; | |
5621 | _result = new wxTimeSpan (wxTimeSpan::Seconds(_arg0)); | |
5622 | ||
5623 | wxPy_END_ALLOW_THREADS; | |
5624 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); | |
5625 | _resultobj = Py_BuildValue("s",_ptemp); | |
5626 | return _resultobj; | |
5627 | } | |
5628 | ||
5629 | static PyObject *_wrap_wxTimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5630 | PyObject * _resultobj; | |
5631 | wxTimeSpan * _result; | |
5632 | char *_kwnames[] = { NULL }; | |
5633 | char _ptemp[128]; | |
5634 | ||
5635 | self = self; | |
5636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxTimeSpan_Second",_kwnames)) | |
5637 | return NULL; | |
5638 | { | |
5639 | wxPy_BEGIN_ALLOW_THREADS; | |
5640 | _result = new wxTimeSpan (wxTimeSpan::Second()); | |
5641 | ||
5642 | wxPy_END_ALLOW_THREADS; | |
5643 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); | |
5644 | _resultobj = Py_BuildValue("s",_ptemp); | |
5645 | return _resultobj; | |
5646 | } | |
5647 | ||
5648 | static PyObject *_wrap_wxTimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5649 | PyObject * _resultobj; | |
5650 | wxTimeSpan * _result; | |
5651 | long _arg0; | |
5652 | char *_kwnames[] = { "min", NULL }; | |
5653 | char _ptemp[128]; | |
5654 | ||
5655 | self = self; | |
5656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxTimeSpan_Minutes",_kwnames,&_arg0)) | |
5657 | return NULL; | |
5658 | { | |
5659 | wxPy_BEGIN_ALLOW_THREADS; | |
5660 | _result = new wxTimeSpan (wxTimeSpan::Minutes(_arg0)); | |
5661 | ||
5662 | wxPy_END_ALLOW_THREADS; | |
5663 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); | |
5664 | _resultobj = Py_BuildValue("s",_ptemp); | |
5665 | return _resultobj; | |
5666 | } | |
5667 | ||
5668 | static PyObject *_wrap_wxTimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5669 | PyObject * _resultobj; | |
5670 | wxTimeSpan * _result; | |
5671 | char *_kwnames[] = { NULL }; | |
5672 | char _ptemp[128]; | |
5673 | ||
5674 | self = self; | |
5675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxTimeSpan_Minute",_kwnames)) | |
5676 | return NULL; | |
5677 | { | |
5678 | wxPy_BEGIN_ALLOW_THREADS; | |
5679 | _result = new wxTimeSpan (wxTimeSpan::Minute()); | |
5680 | ||
5681 | wxPy_END_ALLOW_THREADS; | |
5682 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); | |
5683 | _resultobj = Py_BuildValue("s",_ptemp); | |
5684 | return _resultobj; | |
5685 | } | |
5686 | ||
5687 | static PyObject *_wrap_wxTimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5688 | PyObject * _resultobj; | |
5689 | wxTimeSpan * _result; | |
5690 | long _arg0; | |
5691 | char *_kwnames[] = { "hours", NULL }; | |
5692 | char _ptemp[128]; | |
5693 | ||
5694 | self = self; | |
5695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxTimeSpan_Hours",_kwnames,&_arg0)) | |
5696 | return NULL; | |
5697 | { | |
5698 | wxPy_BEGIN_ALLOW_THREADS; | |
5699 | _result = new wxTimeSpan (wxTimeSpan::Hours(_arg0)); | |
5700 | ||
5701 | wxPy_END_ALLOW_THREADS; | |
5702 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); | |
5703 | _resultobj = Py_BuildValue("s",_ptemp); | |
5704 | return _resultobj; | |
5705 | } | |
5706 | ||
5707 | static PyObject *_wrap_wxTimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5708 | PyObject * _resultobj; | |
5709 | wxTimeSpan * _result; | |
5710 | char *_kwnames[] = { NULL }; | |
5711 | char _ptemp[128]; | |
5712 | ||
5713 | self = self; | |
5714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxTimeSpan_Hour",_kwnames)) | |
5715 | return NULL; | |
5716 | { | |
5717 | wxPy_BEGIN_ALLOW_THREADS; | |
5718 | _result = new wxTimeSpan (wxTimeSpan::Hour()); | |
5719 | ||
5720 | wxPy_END_ALLOW_THREADS; | |
5721 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); | |
5722 | _resultobj = Py_BuildValue("s",_ptemp); | |
5723 | return _resultobj; | |
5724 | } | |
5725 | ||
5726 | static PyObject *_wrap_wxTimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5727 | PyObject * _resultobj; | |
5728 | wxTimeSpan * _result; | |
5729 | long _arg0; | |
5730 | char *_kwnames[] = { "days", NULL }; | |
5731 | char _ptemp[128]; | |
5732 | ||
5733 | self = self; | |
5734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxTimeSpan_Days",_kwnames,&_arg0)) | |
5735 | return NULL; | |
5736 | { | |
5737 | wxPy_BEGIN_ALLOW_THREADS; | |
5738 | _result = new wxTimeSpan (wxTimeSpan::Days(_arg0)); | |
5739 | ||
5740 | wxPy_END_ALLOW_THREADS; | |
5741 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); | |
5742 | _resultobj = Py_BuildValue("s",_ptemp); | |
5743 | return _resultobj; | |
5744 | } | |
5745 | ||
5746 | static PyObject *_wrap_wxTimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5747 | PyObject * _resultobj; | |
5748 | wxTimeSpan * _result; | |
5749 | char *_kwnames[] = { NULL }; | |
5750 | char _ptemp[128]; | |
5751 | ||
5752 | self = self; | |
5753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxTimeSpan_Day",_kwnames)) | |
5754 | return NULL; | |
5755 | { | |
5756 | wxPy_BEGIN_ALLOW_THREADS; | |
5757 | _result = new wxTimeSpan (wxTimeSpan::Day()); | |
5758 | ||
5759 | wxPy_END_ALLOW_THREADS; | |
5760 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); | |
5761 | _resultobj = Py_BuildValue("s",_ptemp); | |
5762 | return _resultobj; | |
5763 | } | |
5764 | ||
5765 | static PyObject *_wrap_wxTimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5766 | PyObject * _resultobj; | |
5767 | wxTimeSpan * _result; | |
5768 | long _arg0; | |
5769 | char *_kwnames[] = { "days", NULL }; | |
5770 | char _ptemp[128]; | |
5771 | ||
5772 | self = self; | |
5773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxTimeSpan_Weeks",_kwnames,&_arg0)) | |
5774 | return NULL; | |
5775 | { | |
5776 | wxPy_BEGIN_ALLOW_THREADS; | |
5777 | _result = new wxTimeSpan (wxTimeSpan::Weeks(_arg0)); | |
5778 | ||
5779 | wxPy_END_ALLOW_THREADS; | |
5780 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); | |
5781 | _resultobj = Py_BuildValue("s",_ptemp); | |
5782 | return _resultobj; | |
5783 | } | |
5784 | ||
5785 | static PyObject *_wrap_wxTimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5786 | PyObject * _resultobj; | |
5787 | wxTimeSpan * _result; | |
5788 | char *_kwnames[] = { NULL }; | |
5789 | char _ptemp[128]; | |
5790 | ||
5791 | self = self; | |
5792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxTimeSpan_Week",_kwnames)) | |
5793 | return NULL; | |
5794 | { | |
5795 | wxPy_BEGIN_ALLOW_THREADS; | |
5796 | _result = new wxTimeSpan (wxTimeSpan::Week()); | |
5797 | ||
5798 | wxPy_END_ALLOW_THREADS; | |
5799 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); | |
5800 | _resultobj = Py_BuildValue("s",_ptemp); | |
5801 | return _resultobj; | |
5802 | } | |
5803 | ||
5804 | #define new_wxTimeSpan(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxTimeSpan(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5805 | static PyObject *_wrap_new_wxTimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5806 | PyObject * _resultobj; | |
5807 | wxTimeSpan * _result; | |
5808 | long _arg0 = (long ) 0; | |
5809 | long _arg1 = (long ) 0; | |
5810 | long _arg2 = (long ) 0; | |
5811 | long _arg3 = (long ) 0; | |
5812 | char *_kwnames[] = { "hours","minutes","seconds","milliseconds", NULL }; | |
5813 | char _ptemp[128]; | |
5814 | ||
5815 | self = self; | |
5816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxTimeSpan",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
5817 | return NULL; | |
5818 | { | |
5819 | wxPy_BEGIN_ALLOW_THREADS; | |
5820 | _result = (wxTimeSpan *)new_wxTimeSpan(_arg0,_arg1,_arg2,_arg3); | |
5821 | ||
5822 | wxPy_END_ALLOW_THREADS; | |
5823 | } if (_result) { | |
5824 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTimeSpan_p"); | |
5825 | _resultobj = Py_BuildValue("s",_ptemp); | |
5826 | } else { | |
5827 | Py_INCREF(Py_None); | |
5828 | _resultobj = Py_None; | |
5829 | } | |
5830 | return _resultobj; | |
5831 | } | |
5832 | ||
5833 | #define delete_wxTimeSpan(_swigobj) (delete _swigobj) | |
5834 | static PyObject *_wrap_delete_wxTimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5835 | PyObject * _resultobj; | |
5836 | wxTimeSpan * _arg0; | |
5837 | PyObject * _argo0 = 0; | |
5838 | char *_kwnames[] = { "self", NULL }; | |
5839 | ||
5840 | self = self; | |
5841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTimeSpan",_kwnames,&_argo0)) | |
5842 | return NULL; | |
5843 | if (_argo0) { | |
5844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
5846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTimeSpan. Expected _wxTimeSpan_p."); | |
5847 | return NULL; | |
5848 | } | |
5849 | } | |
5850 | { | |
5851 | wxPy_BEGIN_ALLOW_THREADS; | |
5852 | delete_wxTimeSpan(_arg0); | |
5853 | ||
5854 | wxPy_END_ALLOW_THREADS; | |
5855 | } Py_INCREF(Py_None); | |
5856 | _resultobj = Py_None; | |
5857 | return _resultobj; | |
5858 | } | |
5859 | ||
5860 | #define wxTimeSpan_Add(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
5861 | static PyObject *_wrap_wxTimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5862 | PyObject * _resultobj; | |
5863 | wxTimeSpan * _result; | |
5864 | wxTimeSpan * _arg0; | |
5865 | wxTimeSpan * _arg1; | |
5866 | PyObject * _argo0 = 0; | |
5867 | PyObject * _argo1 = 0; | |
5868 | char *_kwnames[] = { "self","diff", NULL }; | |
5869 | char _ptemp[128]; | |
5870 | ||
5871 | self = self; | |
5872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTimeSpan_Add",_kwnames,&_argo0,&_argo1)) | |
5873 | return NULL; | |
5874 | if (_argo0) { | |
5875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
5877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_Add. Expected _wxTimeSpan_p."); | |
5878 | return NULL; | |
5879 | } | |
5880 | } | |
5881 | if (_argo1) { | |
5882 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5883 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) { | |
5884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTimeSpan_Add. Expected _wxTimeSpan_p."); | |
5885 | return NULL; | |
5886 | } | |
5887 | } | |
5888 | { | |
5889 | wxPy_BEGIN_ALLOW_THREADS; | |
5890 | wxTimeSpan & _result_ref = wxTimeSpan_Add(_arg0,*_arg1); | |
5891 | _result = (wxTimeSpan *) &_result_ref; | |
5892 | ||
5893 | wxPy_END_ALLOW_THREADS; | |
5894 | } if (_result) { | |
5895 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTimeSpan_p"); | |
5896 | _resultobj = Py_BuildValue("s",_ptemp); | |
5897 | } else { | |
5898 | Py_INCREF(Py_None); | |
5899 | _resultobj = Py_None; | |
5900 | } | |
5901 | return _resultobj; | |
5902 | } | |
5903 | ||
5904 | #define wxTimeSpan_Subtract(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
5905 | static PyObject *_wrap_wxTimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5906 | PyObject * _resultobj; | |
5907 | wxTimeSpan * _result; | |
5908 | wxTimeSpan * _arg0; | |
5909 | wxTimeSpan * _arg1; | |
5910 | PyObject * _argo0 = 0; | |
5911 | PyObject * _argo1 = 0; | |
5912 | char *_kwnames[] = { "self","diff", NULL }; | |
5913 | char _ptemp[128]; | |
5914 | ||
5915 | self = self; | |
5916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTimeSpan_Subtract",_kwnames,&_argo0,&_argo1)) | |
5917 | return NULL; | |
5918 | if (_argo0) { | |
5919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
5921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_Subtract. Expected _wxTimeSpan_p."); | |
5922 | return NULL; | |
5923 | } | |
5924 | } | |
5925 | if (_argo1) { | |
5926 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5927 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) { | |
5928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTimeSpan_Subtract. Expected _wxTimeSpan_p."); | |
5929 | return NULL; | |
5930 | } | |
5931 | } | |
5932 | { | |
5933 | wxPy_BEGIN_ALLOW_THREADS; | |
5934 | wxTimeSpan & _result_ref = wxTimeSpan_Subtract(_arg0,*_arg1); | |
5935 | _result = (wxTimeSpan *) &_result_ref; | |
5936 | ||
5937 | wxPy_END_ALLOW_THREADS; | |
5938 | } if (_result) { | |
5939 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTimeSpan_p"); | |
5940 | _resultobj = Py_BuildValue("s",_ptemp); | |
5941 | } else { | |
5942 | Py_INCREF(Py_None); | |
5943 | _resultobj = Py_None; | |
5944 | } | |
5945 | return _resultobj; | |
5946 | } | |
5947 | ||
5948 | #define wxTimeSpan_Multiply(_swigobj,_swigarg0) (_swigobj->Multiply(_swigarg0)) | |
5949 | static PyObject *_wrap_wxTimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5950 | PyObject * _resultobj; | |
5951 | wxTimeSpan * _result; | |
5952 | wxTimeSpan * _arg0; | |
5953 | int _arg1; | |
5954 | PyObject * _argo0 = 0; | |
5955 | char *_kwnames[] = { "self","n", NULL }; | |
5956 | char _ptemp[128]; | |
5957 | ||
5958 | self = self; | |
5959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTimeSpan_Multiply",_kwnames,&_argo0,&_arg1)) | |
5960 | return NULL; | |
5961 | if (_argo0) { | |
5962 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5963 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
5964 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_Multiply. Expected _wxTimeSpan_p."); | |
5965 | return NULL; | |
5966 | } | |
5967 | } | |
5968 | { | |
5969 | wxPy_BEGIN_ALLOW_THREADS; | |
5970 | wxTimeSpan & _result_ref = wxTimeSpan_Multiply(_arg0,_arg1); | |
5971 | _result = (wxTimeSpan *) &_result_ref; | |
5972 | ||
5973 | wxPy_END_ALLOW_THREADS; | |
5974 | } if (_result) { | |
5975 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTimeSpan_p"); | |
5976 | _resultobj = Py_BuildValue("s",_ptemp); | |
5977 | } else { | |
5978 | Py_INCREF(Py_None); | |
5979 | _resultobj = Py_None; | |
5980 | } | |
5981 | return _resultobj; | |
5982 | } | |
5983 | ||
5984 | #define wxTimeSpan_Neg(_swigobj) (_swigobj->Neg()) | |
5985 | static PyObject *_wrap_wxTimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5986 | PyObject * _resultobj; | |
5987 | wxTimeSpan * _result; | |
5988 | wxTimeSpan * _arg0; | |
5989 | PyObject * _argo0 = 0; | |
5990 | char *_kwnames[] = { "self", NULL }; | |
5991 | char _ptemp[128]; | |
5992 | ||
5993 | self = self; | |
5994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_Neg",_kwnames,&_argo0)) | |
5995 | return NULL; | |
5996 | if (_argo0) { | |
5997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
5999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_Neg. Expected _wxTimeSpan_p."); | |
6000 | return NULL; | |
6001 | } | |
6002 | } | |
6003 | { | |
6004 | wxPy_BEGIN_ALLOW_THREADS; | |
6005 | wxTimeSpan & _result_ref = wxTimeSpan_Neg(_arg0); | |
6006 | _result = (wxTimeSpan *) &_result_ref; | |
6007 | ||
6008 | wxPy_END_ALLOW_THREADS; | |
6009 | } if (_result) { | |
6010 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTimeSpan_p"); | |
6011 | _resultobj = Py_BuildValue("s",_ptemp); | |
6012 | } else { | |
6013 | Py_INCREF(Py_None); | |
6014 | _resultobj = Py_None; | |
6015 | } | |
6016 | return _resultobj; | |
6017 | } | |
6018 | ||
6019 | #define wxTimeSpan_Abs(_swigobj) (_swigobj->Abs()) | |
6020 | static PyObject *_wrap_wxTimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6021 | PyObject * _resultobj; | |
6022 | wxTimeSpan * _result; | |
6023 | wxTimeSpan * _arg0; | |
6024 | PyObject * _argo0 = 0; | |
6025 | char *_kwnames[] = { "self", NULL }; | |
6026 | char _ptemp[128]; | |
6027 | ||
6028 | self = self; | |
6029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_Abs",_kwnames,&_argo0)) | |
6030 | return NULL; | |
6031 | if (_argo0) { | |
6032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_Abs. Expected _wxTimeSpan_p."); | |
6035 | return NULL; | |
6036 | } | |
6037 | } | |
6038 | { | |
6039 | wxPy_BEGIN_ALLOW_THREADS; | |
6040 | _result = new wxTimeSpan (wxTimeSpan_Abs(_arg0)); | |
6041 | ||
6042 | wxPy_END_ALLOW_THREADS; | |
6043 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); | |
6044 | _resultobj = Py_BuildValue("s",_ptemp); | |
6045 | return _resultobj; | |
6046 | } | |
6047 | ||
6048 | static wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,const wxTimeSpan & other) { return *self + other; } | |
6049 | static PyObject *_wrap_wxTimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6050 | PyObject * _resultobj; | |
6051 | wxTimeSpan * _result; | |
6052 | wxTimeSpan * _arg0; | |
6053 | wxTimeSpan * _arg1; | |
6054 | PyObject * _argo0 = 0; | |
6055 | PyObject * _argo1 = 0; | |
6056 | char *_kwnames[] = { "self","other", NULL }; | |
6057 | char _ptemp[128]; | |
6058 | ||
6059 | self = self; | |
6060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTimeSpan___add__",_kwnames,&_argo0,&_argo1)) | |
6061 | return NULL; | |
6062 | if (_argo0) { | |
6063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan___add__. Expected _wxTimeSpan_p."); | |
6066 | return NULL; | |
6067 | } | |
6068 | } | |
6069 | if (_argo1) { | |
6070 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6071 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) { | |
6072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTimeSpan___add__. Expected _wxTimeSpan_p."); | |
6073 | return NULL; | |
6074 | } | |
6075 | } | |
6076 | { | |
6077 | wxPy_BEGIN_ALLOW_THREADS; | |
6078 | _result = new wxTimeSpan (wxTimeSpan___add__(_arg0,*_arg1)); | |
6079 | ||
6080 | wxPy_END_ALLOW_THREADS; | |
6081 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); | |
6082 | _resultobj = Py_BuildValue("s",_ptemp); | |
6083 | return _resultobj; | |
6084 | } | |
6085 | ||
6086 | static wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,const wxTimeSpan & other) { return *self - other; } | |
6087 | static PyObject *_wrap_wxTimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6088 | PyObject * _resultobj; | |
6089 | wxTimeSpan * _result; | |
6090 | wxTimeSpan * _arg0; | |
6091 | wxTimeSpan * _arg1; | |
6092 | PyObject * _argo0 = 0; | |
6093 | PyObject * _argo1 = 0; | |
6094 | char *_kwnames[] = { "self","other", NULL }; | |
6095 | char _ptemp[128]; | |
6096 | ||
6097 | self = self; | |
6098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTimeSpan___sub__",_kwnames,&_argo0,&_argo1)) | |
6099 | return NULL; | |
6100 | if (_argo0) { | |
6101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan___sub__. Expected _wxTimeSpan_p."); | |
6104 | return NULL; | |
6105 | } | |
6106 | } | |
6107 | if (_argo1) { | |
6108 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6109 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) { | |
6110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTimeSpan___sub__. Expected _wxTimeSpan_p."); | |
6111 | return NULL; | |
6112 | } | |
6113 | } | |
6114 | { | |
6115 | wxPy_BEGIN_ALLOW_THREADS; | |
6116 | _result = new wxTimeSpan (wxTimeSpan___sub__(_arg0,*_arg1)); | |
6117 | ||
6118 | wxPy_END_ALLOW_THREADS; | |
6119 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); | |
6120 | _resultobj = Py_BuildValue("s",_ptemp); | |
6121 | return _resultobj; | |
6122 | } | |
6123 | ||
6124 | static wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n) { return *self * n; } | |
6125 | static PyObject *_wrap_wxTimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6126 | PyObject * _resultobj; | |
6127 | wxTimeSpan * _result; | |
6128 | wxTimeSpan * _arg0; | |
6129 | int _arg1; | |
6130 | PyObject * _argo0 = 0; | |
6131 | char *_kwnames[] = { "self","n", NULL }; | |
6132 | char _ptemp[128]; | |
6133 | ||
6134 | self = self; | |
6135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTimeSpan___mul__",_kwnames,&_argo0,&_arg1)) | |
6136 | return NULL; | |
6137 | if (_argo0) { | |
6138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan___mul__. Expected _wxTimeSpan_p."); | |
6141 | return NULL; | |
6142 | } | |
6143 | } | |
6144 | { | |
6145 | wxPy_BEGIN_ALLOW_THREADS; | |
6146 | _result = new wxTimeSpan (wxTimeSpan___mul__(_arg0,_arg1)); | |
6147 | ||
6148 | wxPy_END_ALLOW_THREADS; | |
6149 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); | |
6150 | _resultobj = Py_BuildValue("s",_ptemp); | |
6151 | return _resultobj; | |
6152 | } | |
6153 | ||
6154 | static wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n) { return n * *self; } | |
6155 | static PyObject *_wrap_wxTimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6156 | PyObject * _resultobj; | |
6157 | wxTimeSpan * _result; | |
6158 | wxTimeSpan * _arg0; | |
6159 | int _arg1; | |
6160 | PyObject * _argo0 = 0; | |
6161 | char *_kwnames[] = { "self","n", NULL }; | |
6162 | char _ptemp[128]; | |
6163 | ||
6164 | self = self; | |
6165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTimeSpan___rmul__",_kwnames,&_argo0,&_arg1)) | |
6166 | return NULL; | |
6167 | if (_argo0) { | |
6168 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6169 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan___rmul__. Expected _wxTimeSpan_p."); | |
6171 | return NULL; | |
6172 | } | |
6173 | } | |
6174 | { | |
6175 | wxPy_BEGIN_ALLOW_THREADS; | |
6176 | _result = new wxTimeSpan (wxTimeSpan___rmul__(_arg0,_arg1)); | |
6177 | ||
6178 | wxPy_END_ALLOW_THREADS; | |
6179 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); | |
6180 | _resultobj = Py_BuildValue("s",_ptemp); | |
6181 | return _resultobj; | |
6182 | } | |
6183 | ||
6184 | static wxTimeSpan wxTimeSpan___neg__(wxTimeSpan *self) { return self->Negate(); } | |
6185 | static PyObject *_wrap_wxTimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6186 | PyObject * _resultobj; | |
6187 | wxTimeSpan * _result; | |
6188 | wxTimeSpan * _arg0; | |
6189 | PyObject * _argo0 = 0; | |
6190 | char *_kwnames[] = { "self", NULL }; | |
6191 | char _ptemp[128]; | |
6192 | ||
6193 | self = self; | |
6194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan___neg__",_kwnames,&_argo0)) | |
6195 | return NULL; | |
6196 | if (_argo0) { | |
6197 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6198 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan___neg__. Expected _wxTimeSpan_p."); | |
6200 | return NULL; | |
6201 | } | |
6202 | } | |
6203 | { | |
6204 | wxPy_BEGIN_ALLOW_THREADS; | |
6205 | _result = new wxTimeSpan (wxTimeSpan___neg__(_arg0)); | |
6206 | ||
6207 | wxPy_END_ALLOW_THREADS; | |
6208 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); | |
6209 | _resultobj = Py_BuildValue("s",_ptemp); | |
6210 | return _resultobj; | |
6211 | } | |
6212 | ||
6213 | static int wxTimeSpan___cmp__(wxTimeSpan *self,const wxTimeSpan & other) { | |
6214 | if (*self < other) return -1; | |
6215 | if (*self == other) return 0; | |
6216 | return 1; | |
6217 | } | |
6218 | static PyObject *_wrap_wxTimeSpan___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6219 | PyObject * _resultobj; | |
6220 | int _result; | |
6221 | wxTimeSpan * _arg0; | |
6222 | wxTimeSpan * _arg1; | |
6223 | PyObject * _argo0 = 0; | |
6224 | PyObject * _argo1 = 0; | |
6225 | char *_kwnames[] = { "self","other", NULL }; | |
6226 | ||
6227 | self = self; | |
6228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTimeSpan___cmp__",_kwnames,&_argo0,&_argo1)) | |
6229 | return NULL; | |
6230 | if (_argo0) { | |
6231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan___cmp__. Expected _wxTimeSpan_p."); | |
6234 | return NULL; | |
6235 | } | |
6236 | } | |
6237 | if (_argo1) { | |
6238 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6239 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) { | |
6240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTimeSpan___cmp__. Expected _wxTimeSpan_p."); | |
6241 | return NULL; | |
6242 | } | |
6243 | } | |
6244 | { | |
6245 | wxPy_BEGIN_ALLOW_THREADS; | |
6246 | _result = (int )wxTimeSpan___cmp__(_arg0,*_arg1); | |
6247 | ||
6248 | wxPy_END_ALLOW_THREADS; | |
6249 | } _resultobj = Py_BuildValue("i",_result); | |
6250 | return _resultobj; | |
6251 | } | |
6252 | ||
6253 | #define wxTimeSpan_IsNull(_swigobj) (_swigobj->IsNull()) | |
6254 | static PyObject *_wrap_wxTimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6255 | PyObject * _resultobj; | |
6256 | bool _result; | |
6257 | wxTimeSpan * _arg0; | |
6258 | PyObject * _argo0 = 0; | |
6259 | char *_kwnames[] = { "self", NULL }; | |
6260 | ||
6261 | self = self; | |
6262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_IsNull",_kwnames,&_argo0)) | |
6263 | return NULL; | |
6264 | if (_argo0) { | |
6265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_IsNull. Expected _wxTimeSpan_p."); | |
6268 | return NULL; | |
6269 | } | |
6270 | } | |
6271 | { | |
6272 | wxPy_BEGIN_ALLOW_THREADS; | |
6273 | _result = (bool )wxTimeSpan_IsNull(_arg0); | |
6274 | ||
6275 | wxPy_END_ALLOW_THREADS; | |
6276 | } _resultobj = Py_BuildValue("i",_result); | |
6277 | return _resultobj; | |
6278 | } | |
6279 | ||
6280 | #define wxTimeSpan_IsPositive(_swigobj) (_swigobj->IsPositive()) | |
6281 | static PyObject *_wrap_wxTimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6282 | PyObject * _resultobj; | |
6283 | bool _result; | |
6284 | wxTimeSpan * _arg0; | |
6285 | PyObject * _argo0 = 0; | |
6286 | char *_kwnames[] = { "self", NULL }; | |
6287 | ||
6288 | self = self; | |
6289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_IsPositive",_kwnames,&_argo0)) | |
6290 | return NULL; | |
6291 | if (_argo0) { | |
6292 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6293 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_IsPositive. Expected _wxTimeSpan_p."); | |
6295 | return NULL; | |
6296 | } | |
6297 | } | |
6298 | { | |
6299 | wxPy_BEGIN_ALLOW_THREADS; | |
6300 | _result = (bool )wxTimeSpan_IsPositive(_arg0); | |
6301 | ||
6302 | wxPy_END_ALLOW_THREADS; | |
6303 | } _resultobj = Py_BuildValue("i",_result); | |
6304 | return _resultobj; | |
6305 | } | |
6306 | ||
6307 | #define wxTimeSpan_IsNegative(_swigobj) (_swigobj->IsNegative()) | |
6308 | static PyObject *_wrap_wxTimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6309 | PyObject * _resultobj; | |
6310 | bool _result; | |
6311 | wxTimeSpan * _arg0; | |
6312 | PyObject * _argo0 = 0; | |
6313 | char *_kwnames[] = { "self", NULL }; | |
6314 | ||
6315 | self = self; | |
6316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_IsNegative",_kwnames,&_argo0)) | |
6317 | return NULL; | |
6318 | if (_argo0) { | |
6319 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6320 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_IsNegative. Expected _wxTimeSpan_p."); | |
6322 | return NULL; | |
6323 | } | |
6324 | } | |
6325 | { | |
6326 | wxPy_BEGIN_ALLOW_THREADS; | |
6327 | _result = (bool )wxTimeSpan_IsNegative(_arg0); | |
6328 | ||
6329 | wxPy_END_ALLOW_THREADS; | |
6330 | } _resultobj = Py_BuildValue("i",_result); | |
6331 | return _resultobj; | |
6332 | } | |
6333 | ||
6334 | #define wxTimeSpan_IsEqualTo(_swigobj,_swigarg0) (_swigobj->IsEqualTo(_swigarg0)) | |
6335 | static PyObject *_wrap_wxTimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6336 | PyObject * _resultobj; | |
6337 | bool _result; | |
6338 | wxTimeSpan * _arg0; | |
6339 | wxTimeSpan * _arg1; | |
6340 | PyObject * _argo0 = 0; | |
6341 | PyObject * _argo1 = 0; | |
6342 | char *_kwnames[] = { "self","ts", NULL }; | |
6343 | ||
6344 | self = self; | |
6345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTimeSpan_IsEqualTo",_kwnames,&_argo0,&_argo1)) | |
6346 | return NULL; | |
6347 | if (_argo0) { | |
6348 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6349 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_IsEqualTo. Expected _wxTimeSpan_p."); | |
6351 | return NULL; | |
6352 | } | |
6353 | } | |
6354 | if (_argo1) { | |
6355 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6356 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) { | |
6357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTimeSpan_IsEqualTo. Expected _wxTimeSpan_p."); | |
6358 | return NULL; | |
6359 | } | |
6360 | } | |
6361 | { | |
6362 | wxPy_BEGIN_ALLOW_THREADS; | |
6363 | _result = (bool )wxTimeSpan_IsEqualTo(_arg0,*_arg1); | |
6364 | ||
6365 | wxPy_END_ALLOW_THREADS; | |
6366 | } _resultobj = Py_BuildValue("i",_result); | |
6367 | return _resultobj; | |
6368 | } | |
6369 | ||
6370 | #define wxTimeSpan_IsLongerThan(_swigobj,_swigarg0) (_swigobj->IsLongerThan(_swigarg0)) | |
6371 | static PyObject *_wrap_wxTimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6372 | PyObject * _resultobj; | |
6373 | bool _result; | |
6374 | wxTimeSpan * _arg0; | |
6375 | wxTimeSpan * _arg1; | |
6376 | PyObject * _argo0 = 0; | |
6377 | PyObject * _argo1 = 0; | |
6378 | char *_kwnames[] = { "self","ts", NULL }; | |
6379 | ||
6380 | self = self; | |
6381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTimeSpan_IsLongerThan",_kwnames,&_argo0,&_argo1)) | |
6382 | return NULL; | |
6383 | if (_argo0) { | |
6384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_IsLongerThan. Expected _wxTimeSpan_p."); | |
6387 | return NULL; | |
6388 | } | |
6389 | } | |
6390 | if (_argo1) { | |
6391 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6392 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) { | |
6393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTimeSpan_IsLongerThan. Expected _wxTimeSpan_p."); | |
6394 | return NULL; | |
6395 | } | |
6396 | } | |
6397 | { | |
6398 | wxPy_BEGIN_ALLOW_THREADS; | |
6399 | _result = (bool )wxTimeSpan_IsLongerThan(_arg0,*_arg1); | |
6400 | ||
6401 | wxPy_END_ALLOW_THREADS; | |
6402 | } _resultobj = Py_BuildValue("i",_result); | |
6403 | return _resultobj; | |
6404 | } | |
6405 | ||
6406 | #define wxTimeSpan_IsShorterThan(_swigobj,_swigarg0) (_swigobj->IsShorterThan(_swigarg0)) | |
6407 | static PyObject *_wrap_wxTimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6408 | PyObject * _resultobj; | |
6409 | bool _result; | |
6410 | wxTimeSpan * _arg0; | |
6411 | wxTimeSpan * _arg1; | |
6412 | PyObject * _argo0 = 0; | |
6413 | PyObject * _argo1 = 0; | |
6414 | char *_kwnames[] = { "self","t", NULL }; | |
6415 | ||
6416 | self = self; | |
6417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTimeSpan_IsShorterThan",_kwnames,&_argo0,&_argo1)) | |
6418 | return NULL; | |
6419 | if (_argo0) { | |
6420 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6421 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_IsShorterThan. Expected _wxTimeSpan_p."); | |
6423 | return NULL; | |
6424 | } | |
6425 | } | |
6426 | if (_argo1) { | |
6427 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6428 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) { | |
6429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTimeSpan_IsShorterThan. Expected _wxTimeSpan_p."); | |
6430 | return NULL; | |
6431 | } | |
6432 | } | |
6433 | { | |
6434 | wxPy_BEGIN_ALLOW_THREADS; | |
6435 | _result = (bool )wxTimeSpan_IsShorterThan(_arg0,*_arg1); | |
6436 | ||
6437 | wxPy_END_ALLOW_THREADS; | |
6438 | } _resultobj = Py_BuildValue("i",_result); | |
6439 | return _resultobj; | |
6440 | } | |
6441 | ||
6442 | #define wxTimeSpan_GetWeeks(_swigobj) (_swigobj->GetWeeks()) | |
6443 | static PyObject *_wrap_wxTimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6444 | PyObject * _resultobj; | |
6445 | int _result; | |
6446 | wxTimeSpan * _arg0; | |
6447 | PyObject * _argo0 = 0; | |
6448 | char *_kwnames[] = { "self", NULL }; | |
6449 | ||
6450 | self = self; | |
6451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_GetWeeks",_kwnames,&_argo0)) | |
6452 | return NULL; | |
6453 | if (_argo0) { | |
6454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_GetWeeks. Expected _wxTimeSpan_p."); | |
6457 | return NULL; | |
6458 | } | |
6459 | } | |
6460 | { | |
6461 | wxPy_BEGIN_ALLOW_THREADS; | |
6462 | _result = (int )wxTimeSpan_GetWeeks(_arg0); | |
6463 | ||
6464 | wxPy_END_ALLOW_THREADS; | |
6465 | } _resultobj = Py_BuildValue("i",_result); | |
6466 | return _resultobj; | |
6467 | } | |
6468 | ||
6469 | #define wxTimeSpan_GetDays(_swigobj) (_swigobj->GetDays()) | |
6470 | static PyObject *_wrap_wxTimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6471 | PyObject * _resultobj; | |
6472 | int _result; | |
6473 | wxTimeSpan * _arg0; | |
6474 | PyObject * _argo0 = 0; | |
6475 | char *_kwnames[] = { "self", NULL }; | |
6476 | ||
6477 | self = self; | |
6478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_GetDays",_kwnames,&_argo0)) | |
6479 | return NULL; | |
6480 | if (_argo0) { | |
6481 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6482 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_GetDays. Expected _wxTimeSpan_p."); | |
6484 | return NULL; | |
6485 | } | |
6486 | } | |
6487 | { | |
6488 | wxPy_BEGIN_ALLOW_THREADS; | |
6489 | _result = (int )wxTimeSpan_GetDays(_arg0); | |
6490 | ||
6491 | wxPy_END_ALLOW_THREADS; | |
6492 | } _resultobj = Py_BuildValue("i",_result); | |
6493 | return _resultobj; | |
6494 | } | |
6495 | ||
6496 | #define wxTimeSpan_GetHours(_swigobj) (_swigobj->GetHours()) | |
6497 | static PyObject *_wrap_wxTimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6498 | PyObject * _resultobj; | |
6499 | int _result; | |
6500 | wxTimeSpan * _arg0; | |
6501 | PyObject * _argo0 = 0; | |
6502 | char *_kwnames[] = { "self", NULL }; | |
6503 | ||
6504 | self = self; | |
6505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_GetHours",_kwnames,&_argo0)) | |
6506 | return NULL; | |
6507 | if (_argo0) { | |
6508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_GetHours. Expected _wxTimeSpan_p."); | |
6511 | return NULL; | |
6512 | } | |
6513 | } | |
6514 | { | |
6515 | wxPy_BEGIN_ALLOW_THREADS; | |
6516 | _result = (int )wxTimeSpan_GetHours(_arg0); | |
6517 | ||
6518 | wxPy_END_ALLOW_THREADS; | |
6519 | } _resultobj = Py_BuildValue("i",_result); | |
6520 | return _resultobj; | |
6521 | } | |
6522 | ||
6523 | #define wxTimeSpan_GetMinutes(_swigobj) (_swigobj->GetMinutes()) | |
6524 | static PyObject *_wrap_wxTimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6525 | PyObject * _resultobj; | |
6526 | int _result; | |
6527 | wxTimeSpan * _arg0; | |
6528 | PyObject * _argo0 = 0; | |
6529 | char *_kwnames[] = { "self", NULL }; | |
6530 | ||
6531 | self = self; | |
6532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_GetMinutes",_kwnames,&_argo0)) | |
6533 | return NULL; | |
6534 | if (_argo0) { | |
6535 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6536 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_GetMinutes. Expected _wxTimeSpan_p."); | |
6538 | return NULL; | |
6539 | } | |
6540 | } | |
6541 | { | |
6542 | wxPy_BEGIN_ALLOW_THREADS; | |
6543 | _result = (int )wxTimeSpan_GetMinutes(_arg0); | |
6544 | ||
6545 | wxPy_END_ALLOW_THREADS; | |
6546 | } _resultobj = Py_BuildValue("i",_result); | |
6547 | return _resultobj; | |
6548 | } | |
6549 | ||
6550 | #define wxTimeSpan_GetSeconds(_swigobj) (_swigobj->GetSeconds()) | |
6551 | static PyObject *_wrap_wxTimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6552 | PyObject * _resultobj; | |
6553 | wxLongLong * _result; | |
6554 | wxTimeSpan * _arg0; | |
6555 | PyObject * _argo0 = 0; | |
6556 | char *_kwnames[] = { "self", NULL }; | |
6557 | ||
6558 | self = self; | |
6559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_GetSeconds",_kwnames,&_argo0)) | |
6560 | return NULL; | |
6561 | if (_argo0) { | |
6562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_GetSeconds. Expected _wxTimeSpan_p."); | |
6565 | return NULL; | |
6566 | } | |
6567 | } | |
6568 | { | |
6569 | wxPy_BEGIN_ALLOW_THREADS; | |
6570 | _result = new wxLongLong (wxTimeSpan_GetSeconds(_arg0)); | |
6571 | ||
6572 | wxPy_END_ALLOW_THREADS; | |
6573 | }{ | |
6574 | PyObject *hi, *lo, *shifter, *shifted; | |
6575 | hi = PyLong_FromLong(_result->GetHi()); | |
6576 | lo = PyLong_FromLong(_result->GetLo()); | |
6577 | shifter = PyLong_FromLong(32); | |
6578 | shifted = PyNumber_Lshift(hi, shifter); | |
6579 | _resultobj = PyNumber_Or(shifted, lo); | |
6580 | Py_DECREF(hi); | |
6581 | Py_DECREF(lo); | |
6582 | Py_DECREF(shifter); | |
6583 | Py_DECREF(shifted); | |
6584 | } | |
6585 | return _resultobj; | |
6586 | } | |
6587 | ||
6588 | #define wxTimeSpan_GetMilliseconds(_swigobj) (_swigobj->GetMilliseconds()) | |
6589 | static PyObject *_wrap_wxTimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6590 | PyObject * _resultobj; | |
6591 | wxLongLong * _result; | |
6592 | wxTimeSpan * _arg0; | |
6593 | PyObject * _argo0 = 0; | |
6594 | char *_kwnames[] = { "self", NULL }; | |
6595 | ||
6596 | self = self; | |
6597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_GetMilliseconds",_kwnames,&_argo0)) | |
6598 | return NULL; | |
6599 | if (_argo0) { | |
6600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_GetMilliseconds. Expected _wxTimeSpan_p."); | |
6603 | return NULL; | |
6604 | } | |
6605 | } | |
6606 | { | |
6607 | wxPy_BEGIN_ALLOW_THREADS; | |
6608 | _result = new wxLongLong (wxTimeSpan_GetMilliseconds(_arg0)); | |
6609 | ||
6610 | wxPy_END_ALLOW_THREADS; | |
6611 | }{ | |
6612 | PyObject *hi, *lo, *shifter, *shifted; | |
6613 | hi = PyLong_FromLong(_result->GetHi()); | |
6614 | lo = PyLong_FromLong(_result->GetLo()); | |
6615 | shifter = PyLong_FromLong(32); | |
6616 | shifted = PyNumber_Lshift(hi, shifter); | |
6617 | _resultobj = PyNumber_Or(shifted, lo); | |
6618 | Py_DECREF(hi); | |
6619 | Py_DECREF(lo); | |
6620 | Py_DECREF(shifter); | |
6621 | Py_DECREF(shifted); | |
6622 | } | |
6623 | return _resultobj; | |
6624 | } | |
6625 | ||
6626 | #define wxTimeSpan_Format(_swigobj,_swigarg0) (_swigobj->Format(_swigarg0)) | |
6627 | static PyObject *_wrap_wxTimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6628 | PyObject * _resultobj; | |
6629 | wxString * _result; | |
6630 | wxTimeSpan * _arg0; | |
6631 | char * _arg1 = (char *) "%c"; | |
6632 | PyObject * _argo0 = 0; | |
6633 | char *_kwnames[] = { "self","format", NULL }; | |
6634 | ||
6635 | self = self; | |
6636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|s:wxTimeSpan_Format",_kwnames,&_argo0,&_arg1)) | |
6637 | return NULL; | |
6638 | if (_argo0) { | |
6639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_Format. Expected _wxTimeSpan_p."); | |
6642 | return NULL; | |
6643 | } | |
6644 | } | |
6645 | { | |
6646 | wxPy_BEGIN_ALLOW_THREADS; | |
6647 | _result = new wxString (wxTimeSpan_Format(_arg0,_arg1)); | |
6648 | ||
6649 | wxPy_END_ALLOW_THREADS; | |
6650 | }{ | |
6651 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6652 | } | |
6653 | { | |
6654 | delete _result; | |
6655 | } | |
6656 | return _resultobj; | |
6657 | } | |
6658 | ||
6659 | #define new_wxDateSpan(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxDateSpan(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6660 | static PyObject *_wrap_new_wxDateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6661 | PyObject * _resultobj; | |
6662 | wxDateSpan * _result; | |
6663 | int _arg0 = (int ) 0; | |
6664 | int _arg1 = (int ) 0; | |
6665 | int _arg2 = (int ) 0; | |
6666 | int _arg3 = (int ) 0; | |
6667 | char *_kwnames[] = { "years","months","weeks","days", NULL }; | |
6668 | char _ptemp[128]; | |
6669 | ||
6670 | self = self; | |
6671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iiii:new_wxDateSpan",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
6672 | return NULL; | |
6673 | { | |
6674 | wxPy_BEGIN_ALLOW_THREADS; | |
6675 | _result = (wxDateSpan *)new_wxDateSpan(_arg0,_arg1,_arg2,_arg3); | |
6676 | ||
6677 | wxPy_END_ALLOW_THREADS; | |
6678 | } if (_result) { | |
6679 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p"); | |
6680 | _resultobj = Py_BuildValue("s",_ptemp); | |
6681 | } else { | |
6682 | Py_INCREF(Py_None); | |
6683 | _resultobj = Py_None; | |
6684 | } | |
6685 | return _resultobj; | |
6686 | } | |
6687 | ||
6688 | #define delete_wxDateSpan(_swigobj) (delete _swigobj) | |
6689 | static PyObject *_wrap_delete_wxDateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6690 | PyObject * _resultobj; | |
6691 | wxDateSpan * _arg0; | |
6692 | PyObject * _argo0 = 0; | |
6693 | char *_kwnames[] = { "self", NULL }; | |
6694 | ||
6695 | self = self; | |
6696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDateSpan",_kwnames,&_argo0)) | |
6697 | return NULL; | |
6698 | if (_argo0) { | |
6699 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6700 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
6701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDateSpan. Expected _wxDateSpan_p."); | |
6702 | return NULL; | |
6703 | } | |
6704 | } | |
6705 | { | |
6706 | wxPy_BEGIN_ALLOW_THREADS; | |
6707 | delete_wxDateSpan(_arg0); | |
6708 | ||
6709 | wxPy_END_ALLOW_THREADS; | |
6710 | } Py_INCREF(Py_None); | |
6711 | _resultobj = Py_None; | |
6712 | return _resultobj; | |
6713 | } | |
6714 | ||
6715 | static PyObject *_wrap_wxDateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6716 | PyObject * _resultobj; | |
6717 | wxDateSpan * _result; | |
6718 | int _arg0; | |
6719 | char *_kwnames[] = { "days", NULL }; | |
6720 | char _ptemp[128]; | |
6721 | ||
6722 | self = self; | |
6723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxDateSpan_Days",_kwnames,&_arg0)) | |
6724 | return NULL; | |
6725 | { | |
6726 | wxPy_BEGIN_ALLOW_THREADS; | |
6727 | _result = new wxDateSpan (wxDateSpan::Days(_arg0)); | |
6728 | ||
6729 | wxPy_END_ALLOW_THREADS; | |
6730 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p"); | |
6731 | _resultobj = Py_BuildValue("s",_ptemp); | |
6732 | return _resultobj; | |
6733 | } | |
6734 | ||
6735 | static PyObject *_wrap_wxDateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6736 | PyObject * _resultobj; | |
6737 | wxDateSpan * _result; | |
6738 | char *_kwnames[] = { NULL }; | |
6739 | char _ptemp[128]; | |
6740 | ||
6741 | self = self; | |
6742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDateSpan_Day",_kwnames)) | |
6743 | return NULL; | |
6744 | { | |
6745 | wxPy_BEGIN_ALLOW_THREADS; | |
6746 | _result = new wxDateSpan (wxDateSpan::Day()); | |
6747 | ||
6748 | wxPy_END_ALLOW_THREADS; | |
6749 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p"); | |
6750 | _resultobj = Py_BuildValue("s",_ptemp); | |
6751 | return _resultobj; | |
6752 | } | |
6753 | ||
6754 | static PyObject *_wrap_wxDateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6755 | PyObject * _resultobj; | |
6756 | wxDateSpan * _result; | |
6757 | int _arg0; | |
6758 | char *_kwnames[] = { "weeks", NULL }; | |
6759 | char _ptemp[128]; | |
6760 | ||
6761 | self = self; | |
6762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxDateSpan_Weeks",_kwnames,&_arg0)) | |
6763 | return NULL; | |
6764 | { | |
6765 | wxPy_BEGIN_ALLOW_THREADS; | |
6766 | _result = new wxDateSpan (wxDateSpan::Weeks(_arg0)); | |
6767 | ||
6768 | wxPy_END_ALLOW_THREADS; | |
6769 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p"); | |
6770 | _resultobj = Py_BuildValue("s",_ptemp); | |
6771 | return _resultobj; | |
6772 | } | |
6773 | ||
6774 | static PyObject *_wrap_wxDateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6775 | PyObject * _resultobj; | |
6776 | wxDateSpan * _result; | |
6777 | char *_kwnames[] = { NULL }; | |
6778 | char _ptemp[128]; | |
6779 | ||
6780 | self = self; | |
6781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDateSpan_Week",_kwnames)) | |
6782 | return NULL; | |
6783 | { | |
6784 | wxPy_BEGIN_ALLOW_THREADS; | |
6785 | _result = new wxDateSpan (wxDateSpan::Week()); | |
6786 | ||
6787 | wxPy_END_ALLOW_THREADS; | |
6788 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p"); | |
6789 | _resultobj = Py_BuildValue("s",_ptemp); | |
6790 | return _resultobj; | |
6791 | } | |
6792 | ||
6793 | static PyObject *_wrap_wxDateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6794 | PyObject * _resultobj; | |
6795 | wxDateSpan * _result; | |
6796 | int _arg0; | |
6797 | char *_kwnames[] = { "mon", NULL }; | |
6798 | char _ptemp[128]; | |
6799 | ||
6800 | self = self; | |
6801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxDateSpan_Months",_kwnames,&_arg0)) | |
6802 | return NULL; | |
6803 | { | |
6804 | wxPy_BEGIN_ALLOW_THREADS; | |
6805 | _result = new wxDateSpan (wxDateSpan::Months(_arg0)); | |
6806 | ||
6807 | wxPy_END_ALLOW_THREADS; | |
6808 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p"); | |
6809 | _resultobj = Py_BuildValue("s",_ptemp); | |
6810 | return _resultobj; | |
6811 | } | |
6812 | ||
6813 | static PyObject *_wrap_wxDateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6814 | PyObject * _resultobj; | |
6815 | wxDateSpan * _result; | |
6816 | char *_kwnames[] = { NULL }; | |
6817 | char _ptemp[128]; | |
6818 | ||
6819 | self = self; | |
6820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDateSpan_Month",_kwnames)) | |
6821 | return NULL; | |
6822 | { | |
6823 | wxPy_BEGIN_ALLOW_THREADS; | |
6824 | _result = new wxDateSpan (wxDateSpan::Month()); | |
6825 | ||
6826 | wxPy_END_ALLOW_THREADS; | |
6827 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p"); | |
6828 | _resultobj = Py_BuildValue("s",_ptemp); | |
6829 | return _resultobj; | |
6830 | } | |
6831 | ||
6832 | static PyObject *_wrap_wxDateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6833 | PyObject * _resultobj; | |
6834 | wxDateSpan * _result; | |
6835 | int _arg0; | |
6836 | char *_kwnames[] = { "years", NULL }; | |
6837 | char _ptemp[128]; | |
6838 | ||
6839 | self = self; | |
6840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxDateSpan_Years",_kwnames,&_arg0)) | |
6841 | return NULL; | |
6842 | { | |
6843 | wxPy_BEGIN_ALLOW_THREADS; | |
6844 | _result = new wxDateSpan (wxDateSpan::Years(_arg0)); | |
6845 | ||
6846 | wxPy_END_ALLOW_THREADS; | |
6847 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p"); | |
6848 | _resultobj = Py_BuildValue("s",_ptemp); | |
6849 | return _resultobj; | |
6850 | } | |
6851 | ||
6852 | static PyObject *_wrap_wxDateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6853 | PyObject * _resultobj; | |
6854 | wxDateSpan * _result; | |
6855 | char *_kwnames[] = { NULL }; | |
6856 | char _ptemp[128]; | |
6857 | ||
6858 | self = self; | |
6859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDateSpan_Year",_kwnames)) | |
6860 | return NULL; | |
6861 | { | |
6862 | wxPy_BEGIN_ALLOW_THREADS; | |
6863 | _result = new wxDateSpan (wxDateSpan::Year()); | |
6864 | ||
6865 | wxPy_END_ALLOW_THREADS; | |
6866 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p"); | |
6867 | _resultobj = Py_BuildValue("s",_ptemp); | |
6868 | return _resultobj; | |
6869 | } | |
6870 | ||
6871 | #define wxDateSpan_SetYears(_swigobj,_swigarg0) (_swigobj->SetYears(_swigarg0)) | |
6872 | static PyObject *_wrap_wxDateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6873 | PyObject * _resultobj; | |
6874 | wxDateSpan * _result; | |
6875 | wxDateSpan * _arg0; | |
6876 | int _arg1; | |
6877 | PyObject * _argo0 = 0; | |
6878 | char *_kwnames[] = { "self","n", NULL }; | |
6879 | char _ptemp[128]; | |
6880 | ||
6881 | self = self; | |
6882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateSpan_SetYears",_kwnames,&_argo0,&_arg1)) | |
6883 | return NULL; | |
6884 | if (_argo0) { | |
6885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
6887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_SetYears. Expected _wxDateSpan_p."); | |
6888 | return NULL; | |
6889 | } | |
6890 | } | |
6891 | { | |
6892 | wxPy_BEGIN_ALLOW_THREADS; | |
6893 | wxDateSpan & _result_ref = wxDateSpan_SetYears(_arg0,_arg1); | |
6894 | _result = (wxDateSpan *) &_result_ref; | |
6895 | ||
6896 | wxPy_END_ALLOW_THREADS; | |
6897 | } if (_result) { | |
6898 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p"); | |
6899 | _resultobj = Py_BuildValue("s",_ptemp); | |
6900 | } else { | |
6901 | Py_INCREF(Py_None); | |
6902 | _resultobj = Py_None; | |
6903 | } | |
6904 | return _resultobj; | |
6905 | } | |
6906 | ||
6907 | #define wxDateSpan_SetMonths(_swigobj,_swigarg0) (_swigobj->SetMonths(_swigarg0)) | |
6908 | static PyObject *_wrap_wxDateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6909 | PyObject * _resultobj; | |
6910 | wxDateSpan * _result; | |
6911 | wxDateSpan * _arg0; | |
6912 | int _arg1; | |
6913 | PyObject * _argo0 = 0; | |
6914 | char *_kwnames[] = { "self","n", NULL }; | |
6915 | char _ptemp[128]; | |
6916 | ||
6917 | self = self; | |
6918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateSpan_SetMonths",_kwnames,&_argo0,&_arg1)) | |
6919 | return NULL; | |
6920 | if (_argo0) { | |
6921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
6923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_SetMonths. Expected _wxDateSpan_p."); | |
6924 | return NULL; | |
6925 | } | |
6926 | } | |
6927 | { | |
6928 | wxPy_BEGIN_ALLOW_THREADS; | |
6929 | wxDateSpan & _result_ref = wxDateSpan_SetMonths(_arg0,_arg1); | |
6930 | _result = (wxDateSpan *) &_result_ref; | |
6931 | ||
6932 | wxPy_END_ALLOW_THREADS; | |
6933 | } if (_result) { | |
6934 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p"); | |
6935 | _resultobj = Py_BuildValue("s",_ptemp); | |
6936 | } else { | |
6937 | Py_INCREF(Py_None); | |
6938 | _resultobj = Py_None; | |
6939 | } | |
6940 | return _resultobj; | |
6941 | } | |
6942 | ||
6943 | #define wxDateSpan_SetWeeks(_swigobj,_swigarg0) (_swigobj->SetWeeks(_swigarg0)) | |
6944 | static PyObject *_wrap_wxDateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6945 | PyObject * _resultobj; | |
6946 | wxDateSpan * _result; | |
6947 | wxDateSpan * _arg0; | |
6948 | int _arg1; | |
6949 | PyObject * _argo0 = 0; | |
6950 | char *_kwnames[] = { "self","n", NULL }; | |
6951 | char _ptemp[128]; | |
6952 | ||
6953 | self = self; | |
6954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateSpan_SetWeeks",_kwnames,&_argo0,&_arg1)) | |
6955 | return NULL; | |
6956 | if (_argo0) { | |
6957 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6958 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
6959 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_SetWeeks. Expected _wxDateSpan_p."); | |
6960 | return NULL; | |
6961 | } | |
6962 | } | |
6963 | { | |
6964 | wxPy_BEGIN_ALLOW_THREADS; | |
6965 | wxDateSpan & _result_ref = wxDateSpan_SetWeeks(_arg0,_arg1); | |
6966 | _result = (wxDateSpan *) &_result_ref; | |
6967 | ||
6968 | wxPy_END_ALLOW_THREADS; | |
6969 | } if (_result) { | |
6970 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p"); | |
6971 | _resultobj = Py_BuildValue("s",_ptemp); | |
6972 | } else { | |
6973 | Py_INCREF(Py_None); | |
6974 | _resultobj = Py_None; | |
6975 | } | |
6976 | return _resultobj; | |
6977 | } | |
6978 | ||
6979 | #define wxDateSpan_SetDays(_swigobj,_swigarg0) (_swigobj->SetDays(_swigarg0)) | |
6980 | static PyObject *_wrap_wxDateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6981 | PyObject * _resultobj; | |
6982 | wxDateSpan * _result; | |
6983 | wxDateSpan * _arg0; | |
6984 | int _arg1; | |
6985 | PyObject * _argo0 = 0; | |
6986 | char *_kwnames[] = { "self","n", NULL }; | |
6987 | char _ptemp[128]; | |
6988 | ||
6989 | self = self; | |
6990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateSpan_SetDays",_kwnames,&_argo0,&_arg1)) | |
6991 | return NULL; | |
6992 | if (_argo0) { | |
6993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
6995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_SetDays. Expected _wxDateSpan_p."); | |
6996 | return NULL; | |
6997 | } | |
6998 | } | |
6999 | { | |
7000 | wxPy_BEGIN_ALLOW_THREADS; | |
7001 | wxDateSpan & _result_ref = wxDateSpan_SetDays(_arg0,_arg1); | |
7002 | _result = (wxDateSpan *) &_result_ref; | |
7003 | ||
7004 | wxPy_END_ALLOW_THREADS; | |
7005 | } if (_result) { | |
7006 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p"); | |
7007 | _resultobj = Py_BuildValue("s",_ptemp); | |
7008 | } else { | |
7009 | Py_INCREF(Py_None); | |
7010 | _resultobj = Py_None; | |
7011 | } | |
7012 | return _resultobj; | |
7013 | } | |
7014 | ||
7015 | #define wxDateSpan_GetYears(_swigobj) (_swigobj->GetYears()) | |
7016 | static PyObject *_wrap_wxDateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7017 | PyObject * _resultobj; | |
7018 | int _result; | |
7019 | wxDateSpan * _arg0; | |
7020 | PyObject * _argo0 = 0; | |
7021 | char *_kwnames[] = { "self", NULL }; | |
7022 | ||
7023 | self = self; | |
7024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateSpan_GetYears",_kwnames,&_argo0)) | |
7025 | return NULL; | |
7026 | if (_argo0) { | |
7027 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7028 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_GetYears. Expected _wxDateSpan_p."); | |
7030 | return NULL; | |
7031 | } | |
7032 | } | |
7033 | { | |
7034 | wxPy_BEGIN_ALLOW_THREADS; | |
7035 | _result = (int )wxDateSpan_GetYears(_arg0); | |
7036 | ||
7037 | wxPy_END_ALLOW_THREADS; | |
7038 | } _resultobj = Py_BuildValue("i",_result); | |
7039 | return _resultobj; | |
7040 | } | |
7041 | ||
7042 | #define wxDateSpan_GetMonths(_swigobj) (_swigobj->GetMonths()) | |
7043 | static PyObject *_wrap_wxDateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7044 | PyObject * _resultobj; | |
7045 | int _result; | |
7046 | wxDateSpan * _arg0; | |
7047 | PyObject * _argo0 = 0; | |
7048 | char *_kwnames[] = { "self", NULL }; | |
7049 | ||
7050 | self = self; | |
7051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateSpan_GetMonths",_kwnames,&_argo0)) | |
7052 | return NULL; | |
7053 | if (_argo0) { | |
7054 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7055 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_GetMonths. Expected _wxDateSpan_p."); | |
7057 | return NULL; | |
7058 | } | |
7059 | } | |
7060 | { | |
7061 | wxPy_BEGIN_ALLOW_THREADS; | |
7062 | _result = (int )wxDateSpan_GetMonths(_arg0); | |
7063 | ||
7064 | wxPy_END_ALLOW_THREADS; | |
7065 | } _resultobj = Py_BuildValue("i",_result); | |
7066 | return _resultobj; | |
7067 | } | |
7068 | ||
7069 | #define wxDateSpan_GetWeeks(_swigobj) (_swigobj->GetWeeks()) | |
7070 | static PyObject *_wrap_wxDateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7071 | PyObject * _resultobj; | |
7072 | int _result; | |
7073 | wxDateSpan * _arg0; | |
7074 | PyObject * _argo0 = 0; | |
7075 | char *_kwnames[] = { "self", NULL }; | |
7076 | ||
7077 | self = self; | |
7078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateSpan_GetWeeks",_kwnames,&_argo0)) | |
7079 | return NULL; | |
7080 | if (_argo0) { | |
7081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_GetWeeks. Expected _wxDateSpan_p."); | |
7084 | return NULL; | |
7085 | } | |
7086 | } | |
7087 | { | |
7088 | wxPy_BEGIN_ALLOW_THREADS; | |
7089 | _result = (int )wxDateSpan_GetWeeks(_arg0); | |
7090 | ||
7091 | wxPy_END_ALLOW_THREADS; | |
7092 | } _resultobj = Py_BuildValue("i",_result); | |
7093 | return _resultobj; | |
7094 | } | |
7095 | ||
7096 | #define wxDateSpan_GetDays(_swigobj) (_swigobj->GetDays()) | |
7097 | static PyObject *_wrap_wxDateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7098 | PyObject * _resultobj; | |
7099 | int _result; | |
7100 | wxDateSpan * _arg0; | |
7101 | PyObject * _argo0 = 0; | |
7102 | char *_kwnames[] = { "self", NULL }; | |
7103 | ||
7104 | self = self; | |
7105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateSpan_GetDays",_kwnames,&_argo0)) | |
7106 | return NULL; | |
7107 | if (_argo0) { | |
7108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_GetDays. Expected _wxDateSpan_p."); | |
7111 | return NULL; | |
7112 | } | |
7113 | } | |
7114 | { | |
7115 | wxPy_BEGIN_ALLOW_THREADS; | |
7116 | _result = (int )wxDateSpan_GetDays(_arg0); | |
7117 | ||
7118 | wxPy_END_ALLOW_THREADS; | |
7119 | } _resultobj = Py_BuildValue("i",_result); | |
7120 | return _resultobj; | |
7121 | } | |
7122 | ||
7123 | #define wxDateSpan_GetTotalDays(_swigobj) (_swigobj->GetTotalDays()) | |
7124 | static PyObject *_wrap_wxDateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7125 | PyObject * _resultobj; | |
7126 | int _result; | |
7127 | wxDateSpan * _arg0; | |
7128 | PyObject * _argo0 = 0; | |
7129 | char *_kwnames[] = { "self", NULL }; | |
7130 | ||
7131 | self = self; | |
7132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateSpan_GetTotalDays",_kwnames,&_argo0)) | |
7133 | return NULL; | |
7134 | if (_argo0) { | |
7135 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7136 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_GetTotalDays. Expected _wxDateSpan_p."); | |
7138 | return NULL; | |
7139 | } | |
7140 | } | |
7141 | { | |
7142 | wxPy_BEGIN_ALLOW_THREADS; | |
7143 | _result = (int )wxDateSpan_GetTotalDays(_arg0); | |
7144 | ||
7145 | wxPy_END_ALLOW_THREADS; | |
7146 | } _resultobj = Py_BuildValue("i",_result); | |
7147 | return _resultobj; | |
7148 | } | |
7149 | ||
7150 | #define wxDateSpan_Add(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
7151 | static PyObject *_wrap_wxDateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7152 | PyObject * _resultobj; | |
7153 | wxDateSpan * _result; | |
7154 | wxDateSpan * _arg0; | |
7155 | wxDateSpan * _arg1; | |
7156 | PyObject * _argo0 = 0; | |
7157 | PyObject * _argo1 = 0; | |
7158 | char *_kwnames[] = { "self","other", NULL }; | |
7159 | char _ptemp[128]; | |
7160 | ||
7161 | self = self; | |
7162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateSpan_Add",_kwnames,&_argo0,&_argo1)) | |
7163 | return NULL; | |
7164 | if (_argo0) { | |
7165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_Add. Expected _wxDateSpan_p."); | |
7168 | return NULL; | |
7169 | } | |
7170 | } | |
7171 | if (_argo1) { | |
7172 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7173 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateSpan_p")) { | |
7174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateSpan_Add. Expected _wxDateSpan_p."); | |
7175 | return NULL; | |
7176 | } | |
7177 | } | |
7178 | { | |
7179 | wxPy_BEGIN_ALLOW_THREADS; | |
7180 | wxDateSpan & _result_ref = wxDateSpan_Add(_arg0,*_arg1); | |
7181 | _result = (wxDateSpan *) &_result_ref; | |
7182 | ||
7183 | wxPy_END_ALLOW_THREADS; | |
7184 | } if (_result) { | |
7185 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p"); | |
7186 | _resultobj = Py_BuildValue("s",_ptemp); | |
7187 | } else { | |
7188 | Py_INCREF(Py_None); | |
7189 | _resultobj = Py_None; | |
7190 | } | |
7191 | return _resultobj; | |
7192 | } | |
7193 | ||
7194 | #define wxDateSpan_Subtract(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
7195 | static PyObject *_wrap_wxDateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7196 | PyObject * _resultobj; | |
7197 | wxDateSpan * _result; | |
7198 | wxDateSpan * _arg0; | |
7199 | wxDateSpan * _arg1; | |
7200 | PyObject * _argo0 = 0; | |
7201 | PyObject * _argo1 = 0; | |
7202 | char *_kwnames[] = { "self","other", NULL }; | |
7203 | char _ptemp[128]; | |
7204 | ||
7205 | self = self; | |
7206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateSpan_Subtract",_kwnames,&_argo0,&_argo1)) | |
7207 | return NULL; | |
7208 | if (_argo0) { | |
7209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_Subtract. Expected _wxDateSpan_p."); | |
7212 | return NULL; | |
7213 | } | |
7214 | } | |
7215 | if (_argo1) { | |
7216 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7217 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateSpan_p")) { | |
7218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateSpan_Subtract. Expected _wxDateSpan_p."); | |
7219 | return NULL; | |
7220 | } | |
7221 | } | |
7222 | { | |
7223 | wxPy_BEGIN_ALLOW_THREADS; | |
7224 | wxDateSpan & _result_ref = wxDateSpan_Subtract(_arg0,*_arg1); | |
7225 | _result = (wxDateSpan *) &_result_ref; | |
7226 | ||
7227 | wxPy_END_ALLOW_THREADS; | |
7228 | } if (_result) { | |
7229 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p"); | |
7230 | _resultobj = Py_BuildValue("s",_ptemp); | |
7231 | } else { | |
7232 | Py_INCREF(Py_None); | |
7233 | _resultobj = Py_None; | |
7234 | } | |
7235 | return _resultobj; | |
7236 | } | |
7237 | ||
7238 | #define wxDateSpan_Neg(_swigobj) (_swigobj->Neg()) | |
7239 | static PyObject *_wrap_wxDateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7240 | PyObject * _resultobj; | |
7241 | wxDateSpan * _result; | |
7242 | wxDateSpan * _arg0; | |
7243 | PyObject * _argo0 = 0; | |
7244 | char *_kwnames[] = { "self", NULL }; | |
7245 | char _ptemp[128]; | |
7246 | ||
7247 | self = self; | |
7248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateSpan_Neg",_kwnames,&_argo0)) | |
7249 | return NULL; | |
7250 | if (_argo0) { | |
7251 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7252 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_Neg. Expected _wxDateSpan_p."); | |
7254 | return NULL; | |
7255 | } | |
7256 | } | |
7257 | { | |
7258 | wxPy_BEGIN_ALLOW_THREADS; | |
7259 | wxDateSpan & _result_ref = wxDateSpan_Neg(_arg0); | |
7260 | _result = (wxDateSpan *) &_result_ref; | |
7261 | ||
7262 | wxPy_END_ALLOW_THREADS; | |
7263 | } if (_result) { | |
7264 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p"); | |
7265 | _resultobj = Py_BuildValue("s",_ptemp); | |
7266 | } else { | |
7267 | Py_INCREF(Py_None); | |
7268 | _resultobj = Py_None; | |
7269 | } | |
7270 | return _resultobj; | |
7271 | } | |
7272 | ||
7273 | #define wxDateSpan_Multiply(_swigobj,_swigarg0) (_swigobj->Multiply(_swigarg0)) | |
7274 | static PyObject *_wrap_wxDateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7275 | PyObject * _resultobj; | |
7276 | wxDateSpan * _result; | |
7277 | wxDateSpan * _arg0; | |
7278 | int _arg1; | |
7279 | PyObject * _argo0 = 0; | |
7280 | char *_kwnames[] = { "self","factor", NULL }; | |
7281 | char _ptemp[128]; | |
7282 | ||
7283 | self = self; | |
7284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateSpan_Multiply",_kwnames,&_argo0,&_arg1)) | |
7285 | return NULL; | |
7286 | if (_argo0) { | |
7287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_Multiply. Expected _wxDateSpan_p."); | |
7290 | return NULL; | |
7291 | } | |
7292 | } | |
7293 | { | |
7294 | wxPy_BEGIN_ALLOW_THREADS; | |
7295 | wxDateSpan & _result_ref = wxDateSpan_Multiply(_arg0,_arg1); | |
7296 | _result = (wxDateSpan *) &_result_ref; | |
7297 | ||
7298 | wxPy_END_ALLOW_THREADS; | |
7299 | } if (_result) { | |
7300 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p"); | |
7301 | _resultobj = Py_BuildValue("s",_ptemp); | |
7302 | } else { | |
7303 | Py_INCREF(Py_None); | |
7304 | _resultobj = Py_None; | |
7305 | } | |
7306 | return _resultobj; | |
7307 | } | |
7308 | ||
7309 | static wxDateSpan wxDateSpan___add__(wxDateSpan *self,const wxDateSpan & other) { return *self + other; } | |
7310 | static PyObject *_wrap_wxDateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7311 | PyObject * _resultobj; | |
7312 | wxDateSpan * _result; | |
7313 | wxDateSpan * _arg0; | |
7314 | wxDateSpan * _arg1; | |
7315 | PyObject * _argo0 = 0; | |
7316 | PyObject * _argo1 = 0; | |
7317 | char *_kwnames[] = { "self","other", NULL }; | |
7318 | char _ptemp[128]; | |
7319 | ||
7320 | self = self; | |
7321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateSpan___add__",_kwnames,&_argo0,&_argo1)) | |
7322 | return NULL; | |
7323 | if (_argo0) { | |
7324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan___add__. Expected _wxDateSpan_p."); | |
7327 | return NULL; | |
7328 | } | |
7329 | } | |
7330 | if (_argo1) { | |
7331 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7332 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateSpan_p")) { | |
7333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateSpan___add__. Expected _wxDateSpan_p."); | |
7334 | return NULL; | |
7335 | } | |
7336 | } | |
7337 | { | |
7338 | wxPy_BEGIN_ALLOW_THREADS; | |
7339 | _result = new wxDateSpan (wxDateSpan___add__(_arg0,*_arg1)); | |
7340 | ||
7341 | wxPy_END_ALLOW_THREADS; | |
7342 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p"); | |
7343 | _resultobj = Py_BuildValue("s",_ptemp); | |
7344 | return _resultobj; | |
7345 | } | |
7346 | ||
7347 | static wxDateSpan wxDateSpan___sub__(wxDateSpan *self,const wxDateSpan & other) { return *self - other; } | |
7348 | static PyObject *_wrap_wxDateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7349 | PyObject * _resultobj; | |
7350 | wxDateSpan * _result; | |
7351 | wxDateSpan * _arg0; | |
7352 | wxDateSpan * _arg1; | |
7353 | PyObject * _argo0 = 0; | |
7354 | PyObject * _argo1 = 0; | |
7355 | char *_kwnames[] = { "self","other", NULL }; | |
7356 | char _ptemp[128]; | |
7357 | ||
7358 | self = self; | |
7359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateSpan___sub__",_kwnames,&_argo0,&_argo1)) | |
7360 | return NULL; | |
7361 | if (_argo0) { | |
7362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan___sub__. Expected _wxDateSpan_p."); | |
7365 | return NULL; | |
7366 | } | |
7367 | } | |
7368 | if (_argo1) { | |
7369 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7370 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateSpan_p")) { | |
7371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateSpan___sub__. Expected _wxDateSpan_p."); | |
7372 | return NULL; | |
7373 | } | |
7374 | } | |
7375 | { | |
7376 | wxPy_BEGIN_ALLOW_THREADS; | |
7377 | _result = new wxDateSpan (wxDateSpan___sub__(_arg0,*_arg1)); | |
7378 | ||
7379 | wxPy_END_ALLOW_THREADS; | |
7380 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p"); | |
7381 | _resultobj = Py_BuildValue("s",_ptemp); | |
7382 | return _resultobj; | |
7383 | } | |
7384 | ||
7385 | static wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n) { return *self * n; } | |
7386 | static PyObject *_wrap_wxDateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7387 | PyObject * _resultobj; | |
7388 | wxDateSpan * _result; | |
7389 | wxDateSpan * _arg0; | |
7390 | int _arg1; | |
7391 | PyObject * _argo0 = 0; | |
7392 | char *_kwnames[] = { "self","n", NULL }; | |
7393 | char _ptemp[128]; | |
7394 | ||
7395 | self = self; | |
7396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateSpan___mul__",_kwnames,&_argo0,&_arg1)) | |
7397 | return NULL; | |
7398 | if (_argo0) { | |
7399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan___mul__. Expected _wxDateSpan_p."); | |
7402 | return NULL; | |
7403 | } | |
7404 | } | |
7405 | { | |
7406 | wxPy_BEGIN_ALLOW_THREADS; | |
7407 | _result = new wxDateSpan (wxDateSpan___mul__(_arg0,_arg1)); | |
7408 | ||
7409 | wxPy_END_ALLOW_THREADS; | |
7410 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p"); | |
7411 | _resultobj = Py_BuildValue("s",_ptemp); | |
7412 | return _resultobj; | |
7413 | } | |
7414 | ||
7415 | static wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n) { return n * *self; } | |
7416 | static PyObject *_wrap_wxDateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7417 | PyObject * _resultobj; | |
7418 | wxDateSpan * _result; | |
7419 | wxDateSpan * _arg0; | |
7420 | int _arg1; | |
7421 | PyObject * _argo0 = 0; | |
7422 | char *_kwnames[] = { "self","n", NULL }; | |
7423 | char _ptemp[128]; | |
7424 | ||
7425 | self = self; | |
7426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateSpan___rmul__",_kwnames,&_argo0,&_arg1)) | |
7427 | return NULL; | |
7428 | if (_argo0) { | |
7429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan___rmul__. Expected _wxDateSpan_p."); | |
7432 | return NULL; | |
7433 | } | |
7434 | } | |
7435 | { | |
7436 | wxPy_BEGIN_ALLOW_THREADS; | |
7437 | _result = new wxDateSpan (wxDateSpan___rmul__(_arg0,_arg1)); | |
7438 | ||
7439 | wxPy_END_ALLOW_THREADS; | |
7440 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p"); | |
7441 | _resultobj = Py_BuildValue("s",_ptemp); | |
7442 | return _resultobj; | |
7443 | } | |
7444 | ||
7445 | static wxDateSpan wxDateSpan___neg__(wxDateSpan *self) { return self->Negate(); } | |
7446 | static PyObject *_wrap_wxDateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7447 | PyObject * _resultobj; | |
7448 | wxDateSpan * _result; | |
7449 | wxDateSpan * _arg0; | |
7450 | PyObject * _argo0 = 0; | |
7451 | char *_kwnames[] = { "self", NULL }; | |
7452 | char _ptemp[128]; | |
7453 | ||
7454 | self = self; | |
7455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateSpan___neg__",_kwnames,&_argo0)) | |
7456 | return NULL; | |
7457 | if (_argo0) { | |
7458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan___neg__. Expected _wxDateSpan_p."); | |
7461 | return NULL; | |
7462 | } | |
7463 | } | |
7464 | { | |
7465 | wxPy_BEGIN_ALLOW_THREADS; | |
7466 | _result = new wxDateSpan (wxDateSpan___neg__(_arg0)); | |
7467 | ||
7468 | wxPy_END_ALLOW_THREADS; | |
7469 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p"); | |
7470 | _resultobj = Py_BuildValue("s",_ptemp); | |
7471 | return _resultobj; | |
7472 | } | |
7473 | ||
7474 | static PyMethodDef utilscMethods[] = { | |
7475 | { "wxDateSpan___neg__", (PyCFunction) _wrap_wxDateSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
7476 | { "wxDateSpan___rmul__", (PyCFunction) _wrap_wxDateSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
7477 | { "wxDateSpan___mul__", (PyCFunction) _wrap_wxDateSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
7478 | { "wxDateSpan___sub__", (PyCFunction) _wrap_wxDateSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
7479 | { "wxDateSpan___add__", (PyCFunction) _wrap_wxDateSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
7480 | { "wxDateSpan_Multiply", (PyCFunction) _wrap_wxDateSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
7481 | { "wxDateSpan_Neg", (PyCFunction) _wrap_wxDateSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
7482 | { "wxDateSpan_Subtract", (PyCFunction) _wrap_wxDateSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
7483 | { "wxDateSpan_Add", (PyCFunction) _wrap_wxDateSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
7484 | { "wxDateSpan_GetTotalDays", (PyCFunction) _wrap_wxDateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS }, | |
7485 | { "wxDateSpan_GetDays", (PyCFunction) _wrap_wxDateSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
7486 | { "wxDateSpan_GetWeeks", (PyCFunction) _wrap_wxDateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
7487 | { "wxDateSpan_GetMonths", (PyCFunction) _wrap_wxDateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS }, | |
7488 | { "wxDateSpan_GetYears", (PyCFunction) _wrap_wxDateSpan_GetYears, METH_VARARGS | METH_KEYWORDS }, | |
7489 | { "wxDateSpan_SetDays", (PyCFunction) _wrap_wxDateSpan_SetDays, METH_VARARGS | METH_KEYWORDS }, | |
7490 | { "wxDateSpan_SetWeeks", (PyCFunction) _wrap_wxDateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
7491 | { "wxDateSpan_SetMonths", (PyCFunction) _wrap_wxDateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS }, | |
7492 | { "wxDateSpan_SetYears", (PyCFunction) _wrap_wxDateSpan_SetYears, METH_VARARGS | METH_KEYWORDS }, | |
7493 | { "wxDateSpan_Year", (PyCFunction) _wrap_wxDateSpan_Year, METH_VARARGS | METH_KEYWORDS }, | |
7494 | { "wxDateSpan_Years", (PyCFunction) _wrap_wxDateSpan_Years, METH_VARARGS | METH_KEYWORDS }, | |
7495 | { "wxDateSpan_Month", (PyCFunction) _wrap_wxDateSpan_Month, METH_VARARGS | METH_KEYWORDS }, | |
7496 | { "wxDateSpan_Months", (PyCFunction) _wrap_wxDateSpan_Months, METH_VARARGS | METH_KEYWORDS }, | |
7497 | { "wxDateSpan_Week", (PyCFunction) _wrap_wxDateSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
7498 | { "wxDateSpan_Weeks", (PyCFunction) _wrap_wxDateSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
7499 | { "wxDateSpan_Day", (PyCFunction) _wrap_wxDateSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
7500 | { "wxDateSpan_Days", (PyCFunction) _wrap_wxDateSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
7501 | { "delete_wxDateSpan", (PyCFunction) _wrap_delete_wxDateSpan, METH_VARARGS | METH_KEYWORDS }, | |
7502 | { "new_wxDateSpan", (PyCFunction) _wrap_new_wxDateSpan, METH_VARARGS | METH_KEYWORDS }, | |
7503 | { "wxTimeSpan_Format", (PyCFunction) _wrap_wxTimeSpan_Format, METH_VARARGS | METH_KEYWORDS }, | |
7504 | { "wxTimeSpan_GetMilliseconds", (PyCFunction) _wrap_wxTimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS }, | |
7505 | { "wxTimeSpan_GetSeconds", (PyCFunction) _wrap_wxTimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS }, | |
7506 | { "wxTimeSpan_GetMinutes", (PyCFunction) _wrap_wxTimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS }, | |
7507 | { "wxTimeSpan_GetHours", (PyCFunction) _wrap_wxTimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS }, | |
7508 | { "wxTimeSpan_GetDays", (PyCFunction) _wrap_wxTimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
7509 | { "wxTimeSpan_GetWeeks", (PyCFunction) _wrap_wxTimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
7510 | { "wxTimeSpan_IsShorterThan", (PyCFunction) _wrap_wxTimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS }, | |
7511 | { "wxTimeSpan_IsLongerThan", (PyCFunction) _wrap_wxTimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS }, | |
7512 | { "wxTimeSpan_IsEqualTo", (PyCFunction) _wrap_wxTimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
7513 | { "wxTimeSpan_IsNegative", (PyCFunction) _wrap_wxTimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS }, | |
7514 | { "wxTimeSpan_IsPositive", (PyCFunction) _wrap_wxTimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS }, | |
7515 | { "wxTimeSpan_IsNull", (PyCFunction) _wrap_wxTimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
7516 | { "wxTimeSpan___cmp__", (PyCFunction) _wrap_wxTimeSpan___cmp__, METH_VARARGS | METH_KEYWORDS }, | |
7517 | { "wxTimeSpan___neg__", (PyCFunction) _wrap_wxTimeSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
7518 | { "wxTimeSpan___rmul__", (PyCFunction) _wrap_wxTimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
7519 | { "wxTimeSpan___mul__", (PyCFunction) _wrap_wxTimeSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
7520 | { "wxTimeSpan___sub__", (PyCFunction) _wrap_wxTimeSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
7521 | { "wxTimeSpan___add__", (PyCFunction) _wrap_wxTimeSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
7522 | { "wxTimeSpan_Abs", (PyCFunction) _wrap_wxTimeSpan_Abs, METH_VARARGS | METH_KEYWORDS }, | |
7523 | { "wxTimeSpan_Neg", (PyCFunction) _wrap_wxTimeSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
7524 | { "wxTimeSpan_Multiply", (PyCFunction) _wrap_wxTimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
7525 | { "wxTimeSpan_Subtract", (PyCFunction) _wrap_wxTimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
7526 | { "wxTimeSpan_Add", (PyCFunction) _wrap_wxTimeSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
7527 | { "delete_wxTimeSpan", (PyCFunction) _wrap_delete_wxTimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
7528 | { "new_wxTimeSpan", (PyCFunction) _wrap_new_wxTimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
7529 | { "wxTimeSpan_Week", (PyCFunction) _wrap_wxTimeSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
7530 | { "wxTimeSpan_Weeks", (PyCFunction) _wrap_wxTimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
7531 | { "wxTimeSpan_Day", (PyCFunction) _wrap_wxTimeSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
7532 | { "wxTimeSpan_Days", (PyCFunction) _wrap_wxTimeSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
7533 | { "wxTimeSpan_Hour", (PyCFunction) _wrap_wxTimeSpan_Hour, METH_VARARGS | METH_KEYWORDS }, | |
7534 | { "wxTimeSpan_Hours", (PyCFunction) _wrap_wxTimeSpan_Hours, METH_VARARGS | METH_KEYWORDS }, | |
7535 | { "wxTimeSpan_Minute", (PyCFunction) _wrap_wxTimeSpan_Minute, METH_VARARGS | METH_KEYWORDS }, | |
7536 | { "wxTimeSpan_Minutes", (PyCFunction) _wrap_wxTimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS }, | |
7537 | { "wxTimeSpan_Second", (PyCFunction) _wrap_wxTimeSpan_Second, METH_VARARGS | METH_KEYWORDS }, | |
7538 | { "wxTimeSpan_Seconds", (PyCFunction) _wrap_wxTimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS }, | |
7539 | { "wxDateTime_FormatISOTime", (PyCFunction) _wrap_wxDateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS }, | |
7540 | { "wxDateTime_FormatISODate", (PyCFunction) _wrap_wxDateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS }, | |
7541 | { "wxDateTime_FormatTime", (PyCFunction) _wrap_wxDateTime_FormatTime, METH_VARARGS | METH_KEYWORDS }, | |
7542 | { "wxDateTime_FormatDate", (PyCFunction) _wrap_wxDateTime_FormatDate, METH_VARARGS | METH_KEYWORDS }, | |
7543 | { "wxDateTime_Format", (PyCFunction) _wrap_wxDateTime_Format, METH_VARARGS | METH_KEYWORDS }, | |
7544 | { "wxDateTime_ParseTime", (PyCFunction) _wrap_wxDateTime_ParseTime, METH_VARARGS | METH_KEYWORDS }, | |
7545 | { "wxDateTime_ParseDate", (PyCFunction) _wrap_wxDateTime_ParseDate, METH_VARARGS | METH_KEYWORDS }, | |
7546 | { "wxDateTime_ParseDateTime", (PyCFunction) _wrap_wxDateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS }, | |
7547 | { "wxDateTime_ParseFormat", (PyCFunction) _wrap_wxDateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS }, | |
7548 | { "wxDateTime_ParseRfc822Date", (PyCFunction) _wrap_wxDateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS }, | |
7549 | { "wxDateTime___cmp__", (PyCFunction) _wrap_wxDateTime___cmp__, METH_VARARGS | METH_KEYWORDS }, | |
7550 | { "wxDateTime___sub__DS", (PyCFunction) _wrap_wxDateTime___sub__DS, METH_VARARGS | METH_KEYWORDS }, | |
7551 | { "wxDateTime___sub__TS", (PyCFunction) _wrap_wxDateTime___sub__TS, METH_VARARGS | METH_KEYWORDS }, | |
7552 | { "wxDateTime___sub__DT", (PyCFunction) _wrap_wxDateTime___sub__DT, METH_VARARGS | METH_KEYWORDS }, | |
7553 | { "wxDateTime___add__DS", (PyCFunction) _wrap_wxDateTime___add__DS, METH_VARARGS | METH_KEYWORDS }, | |
7554 | { "wxDateTime___add__TS", (PyCFunction) _wrap_wxDateTime___add__TS, METH_VARARGS | METH_KEYWORDS }, | |
7555 | { "wxDateTime_Subtract", (PyCFunction) _wrap_wxDateTime_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
7556 | { "wxDateTime_SubtractDS", (PyCFunction) _wrap_wxDateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS }, | |
7557 | { "wxDateTime_SubtractTS", (PyCFunction) _wrap_wxDateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS }, | |
7558 | { "wxDateTime_AddDS", (PyCFunction) _wrap_wxDateTime_AddDS, METH_VARARGS | METH_KEYWORDS }, | |
7559 | { "wxDateTime_AddTS", (PyCFunction) _wrap_wxDateTime_AddTS, METH_VARARGS | METH_KEYWORDS }, | |
7560 | { "wxDateTime_IsEqualUpTo", (PyCFunction) _wrap_wxDateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS }, | |
7561 | { "wxDateTime_IsSameTime", (PyCFunction) _wrap_wxDateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS }, | |
7562 | { "wxDateTime_IsSameDate", (PyCFunction) _wrap_wxDateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS }, | |
7563 | { "wxDateTime_IsBetween", (PyCFunction) _wrap_wxDateTime_IsBetween, METH_VARARGS | METH_KEYWORDS }, | |
7564 | { "wxDateTime_IsStrictlyBetween", (PyCFunction) _wrap_wxDateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS }, | |
7565 | { "wxDateTime_IsLaterThan", (PyCFunction) _wrap_wxDateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS }, | |
7566 | { "wxDateTime_IsEarlierThan", (PyCFunction) _wrap_wxDateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS }, | |
7567 | { "wxDateTime_IsEqualTo", (PyCFunction) _wrap_wxDateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
7568 | { "wxDateTime_IsWorkDay", (PyCFunction) _wrap_wxDateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS }, | |
7569 | { "wxDateTime_GetWeekOfMonth", (PyCFunction) _wrap_wxDateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS }, | |
7570 | { "wxDateTime_GetWeekOfYear", (PyCFunction) _wrap_wxDateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS }, | |
7571 | { "wxDateTime_GetDayOfYear", (PyCFunction) _wrap_wxDateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS }, | |
7572 | { "wxDateTime_GetMillisecond", (PyCFunction) _wrap_wxDateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
7573 | { "wxDateTime_GetSecond", (PyCFunction) _wrap_wxDateTime_GetSecond, METH_VARARGS | METH_KEYWORDS }, | |
7574 | { "wxDateTime_GetMinute", (PyCFunction) _wrap_wxDateTime_GetMinute, METH_VARARGS | METH_KEYWORDS }, | |
7575 | { "wxDateTime_GetHour", (PyCFunction) _wrap_wxDateTime_GetHour, METH_VARARGS | METH_KEYWORDS }, | |
7576 | { "wxDateTime_GetDay", (PyCFunction) _wrap_wxDateTime_GetDay, METH_VARARGS | METH_KEYWORDS }, | |
7577 | { "wxDateTime_GetMonth", (PyCFunction) _wrap_wxDateTime_GetMonth, METH_VARARGS | METH_KEYWORDS }, | |
7578 | { "wxDateTime_GetYear", (PyCFunction) _wrap_wxDateTime_GetYear, METH_VARARGS | METH_KEYWORDS }, | |
7579 | { "wxDateTime_GetTicks", (PyCFunction) _wrap_wxDateTime_GetTicks, METH_VARARGS | METH_KEYWORDS }, | |
7580 | { "wxDateTime_IsValid", (PyCFunction) _wrap_wxDateTime_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
7581 | { "wxDateTime_IsDST", (PyCFunction) _wrap_wxDateTime_IsDST, METH_VARARGS | METH_KEYWORDS }, | |
7582 | { "wxDateTime_MakeGMT", (PyCFunction) _wrap_wxDateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS }, | |
7583 | { "wxDateTime_ToGMT", (PyCFunction) _wrap_wxDateTime_ToGMT, METH_VARARGS | METH_KEYWORDS }, | |
7584 | { "wxDateTime_MakeTimezone", (PyCFunction) _wrap_wxDateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS }, | |
7585 | { "wxDateTime_ToTimezone", (PyCFunction) _wrap_wxDateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS }, | |
7586 | { "wxDateTime_GetRataDie", (PyCFunction) _wrap_wxDateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS }, | |
7587 | { "wxDateTime_GetMJD", (PyCFunction) _wrap_wxDateTime_GetMJD, METH_VARARGS | METH_KEYWORDS }, | |
7588 | { "wxDateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_wxDateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
7589 | { "wxDateTime_GetJDN", (PyCFunction) _wrap_wxDateTime_GetJDN, METH_VARARGS | METH_KEYWORDS }, | |
7590 | { "wxDateTime_GetJulianDayNumber", (PyCFunction) _wrap_wxDateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
7591 | { "wxDateTime_GetYearDay", (PyCFunction) _wrap_wxDateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS }, | |
7592 | { "wxDateTime_SetToYearDay", (PyCFunction) _wrap_wxDateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS }, | |
7593 | { "wxDateTime_GetLastMonthDay", (PyCFunction) _wrap_wxDateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
7594 | { "wxDateTime_SetToLastMonthDay", (PyCFunction) _wrap_wxDateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
7595 | { "wxDateTime_GetWeek", (PyCFunction) _wrap_wxDateTime_GetWeek, METH_VARARGS | METH_KEYWORDS }, | |
7596 | { "wxDateTime_SetToTheWeek", (PyCFunction) _wrap_wxDateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS }, | |
7597 | { "wxDateTime_GetLastWeekDay", (PyCFunction) _wrap_wxDateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
7598 | { "wxDateTime_SetToLastWeekDay", (PyCFunction) _wrap_wxDateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
7599 | { "wxDateTime_GetWeekDay", (PyCFunction) _wrap_wxDateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
7600 | { "wxDateTime_SetToWeekDay", (PyCFunction) _wrap_wxDateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
7601 | { "wxDateTime_GetPrevWeekDay", (PyCFunction) _wrap_wxDateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
7602 | { "wxDateTime_SetToPrevWeekDay", (PyCFunction) _wrap_wxDateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
7603 | { "wxDateTime_GetNextWeekDay", (PyCFunction) _wrap_wxDateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
7604 | { "wxDateTime_SetToNextWeekDay", (PyCFunction) _wrap_wxDateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
7605 | { "wxDateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_wxDateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
7606 | { "wxDateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_wxDateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
7607 | { "wxDateTime_SetMillisecond", (PyCFunction) _wrap_wxDateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
7608 | { "wxDateTime_SetSecond", (PyCFunction) _wrap_wxDateTime_SetSecond, METH_VARARGS | METH_KEYWORDS }, | |
7609 | { "wxDateTime_SetMinute", (PyCFunction) _wrap_wxDateTime_SetMinute, METH_VARARGS | METH_KEYWORDS }, | |
7610 | { "wxDateTime_SetHour", (PyCFunction) _wrap_wxDateTime_SetHour, METH_VARARGS | METH_KEYWORDS }, | |
7611 | { "wxDateTime_SetDay", (PyCFunction) _wrap_wxDateTime_SetDay, METH_VARARGS | METH_KEYWORDS }, | |
7612 | { "wxDateTime_SetMonth", (PyCFunction) _wrap_wxDateTime_SetMonth, METH_VARARGS | METH_KEYWORDS }, | |
7613 | { "wxDateTime_SetYear", (PyCFunction) _wrap_wxDateTime_SetYear, METH_VARARGS | METH_KEYWORDS }, | |
7614 | { "wxDateTime_ResetTime", (PyCFunction) _wrap_wxDateTime_ResetTime, METH_VARARGS | METH_KEYWORDS }, | |
7615 | { "wxDateTime_Set", (PyCFunction) _wrap_wxDateTime_Set, METH_VARARGS | METH_KEYWORDS }, | |
7616 | { "wxDateTime_SetHMS", (PyCFunction) _wrap_wxDateTime_SetHMS, METH_VARARGS | METH_KEYWORDS }, | |
7617 | { "wxDateTime_SetJDN", (PyCFunction) _wrap_wxDateTime_SetJDN, METH_VARARGS | METH_KEYWORDS }, | |
7618 | { "wxDateTime_SetTimeT", (PyCFunction) _wrap_wxDateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS }, | |
7619 | { "wxDateTime_SetToCurrent", (PyCFunction) _wrap_wxDateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS }, | |
7620 | { "delete_wxDateTime", (PyCFunction) _wrap_delete_wxDateTime, METH_VARARGS | METH_KEYWORDS }, | |
7621 | { "new_wxDateTimeFromDMY", (PyCFunction) _wrap_new_wxDateTimeFromDMY, METH_VARARGS | METH_KEYWORDS }, | |
7622 | { "new_wxDateTimeFromHMS", (PyCFunction) _wrap_new_wxDateTimeFromHMS, METH_VARARGS | METH_KEYWORDS }, | |
7623 | { "new_wxDateTimeFromJDN", (PyCFunction) _wrap_new_wxDateTimeFromJDN, METH_VARARGS | METH_KEYWORDS }, | |
7624 | { "new_wxDateTimeFromTimeT", (PyCFunction) _wrap_new_wxDateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS }, | |
7625 | { "new_wxDateTime", (PyCFunction) _wrap_new_wxDateTime, METH_VARARGS | METH_KEYWORDS }, | |
7626 | { "wxDateTime_Today", (PyCFunction) _wrap_wxDateTime_Today, METH_VARARGS | METH_KEYWORDS }, | |
7627 | { "wxDateTime_Now", (PyCFunction) _wrap_wxDateTime_Now, METH_VARARGS | METH_KEYWORDS }, | |
7628 | { "wxDateTime_GetEndDST", (PyCFunction) _wrap_wxDateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS }, | |
7629 | { "wxDateTime_GetBeginDST", (PyCFunction) _wrap_wxDateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS }, | |
7630 | { "wxDateTime_IsDSTApplicable", (PyCFunction) _wrap_wxDateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS }, | |
7631 | { "wxDateTime_GetAmPmStrings", (PyCFunction) _wrap_wxDateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS }, | |
7632 | { "wxDateTime_GetWeekDayName", (PyCFunction) _wrap_wxDateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS }, | |
7633 | { "wxDateTime_GetMonthName", (PyCFunction) _wrap_wxDateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS }, | |
7634 | { "wxDateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_wxDateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS }, | |
7635 | { "wxDateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_wxDateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS }, | |
7636 | { "wxDateTime_GetCentury", (PyCFunction) _wrap_wxDateTime_GetCentury, METH_VARARGS | METH_KEYWORDS }, | |
7637 | { "wxDateTime_IsLeapYear", (PyCFunction) _wrap_wxDateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS }, | |
7638 | { "wxDateTime_GetCurrentMonth", (PyCFunction) _wrap_wxDateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS }, | |
7639 | { "wxDateTime_ConvertYearToBC", (PyCFunction) _wrap_wxDateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS }, | |
7640 | { "wxDateTime_GetCurrentYear", (PyCFunction) _wrap_wxDateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS }, | |
7641 | { "wxDateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_wxDateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS }, | |
7642 | { "wxDateTime_GetCountry", (PyCFunction) _wrap_wxDateTime_GetCountry, METH_VARARGS | METH_KEYWORDS }, | |
7643 | { "wxDateTime_SetCountry", (PyCFunction) _wrap_wxDateTime_SetCountry, METH_VARARGS | METH_KEYWORDS }, | |
7644 | { "delete_wxFileConfig", (PyCFunction) _wrap_delete_wxFileConfig, METH_VARARGS | METH_KEYWORDS }, | |
7645 | { "new_wxFileConfig", (PyCFunction) _wrap_new_wxFileConfig, METH_VARARGS | METH_KEYWORDS }, | |
7646 | { "delete_wxConfig", (PyCFunction) _wrap_delete_wxConfig, METH_VARARGS | METH_KEYWORDS }, | |
7647 | { "new_wxConfig", (PyCFunction) _wrap_new_wxConfig, METH_VARARGS | METH_KEYWORDS }, | |
7648 | { "wxConfigBase_ExpandEnvVars", (PyCFunction) _wrap_wxConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
7649 | { "wxConfigBase_RenameGroup", (PyCFunction) _wrap_wxConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS }, | |
7650 | { "wxConfigBase_RenameEntry", (PyCFunction) _wrap_wxConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS }, | |
7651 | { "wxConfigBase_GetEntryType", (PyCFunction) _wrap_wxConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS }, | |
7652 | { "wxConfigBase_WriteFloat", (PyCFunction) _wrap_wxConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS }, | |
7653 | { "wxConfigBase_WriteInt", (PyCFunction) _wrap_wxConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS }, | |
7654 | { "wxConfigBase_Write", (PyCFunction) _wrap_wxConfigBase_Write, METH_VARARGS | METH_KEYWORDS }, | |
7655 | { "wxConfigBase_GetStyle", (PyCFunction) _wrap_wxConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
7656 | { "wxConfigBase_SetStyle", (PyCFunction) _wrap_wxConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
7657 | { "wxConfigBase_SetVendorName", (PyCFunction) _wrap_wxConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
7658 | { "wxConfigBase_SetAppName", (PyCFunction) _wrap_wxConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
7659 | { "wxConfigBase_SetRecordDefaults", (PyCFunction) _wrap_wxConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS }, | |
7660 | { "wxConfigBase_SetPath", (PyCFunction) _wrap_wxConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
7661 | { "wxConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_wxConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
7662 | { "wxConfigBase_ReadFloat", (PyCFunction) _wrap_wxConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS }, | |
7663 | { "wxConfigBase_ReadInt", (PyCFunction) _wrap_wxConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS }, | |
7664 | { "wxConfigBase_Read", (PyCFunction) _wrap_wxConfigBase_Read, METH_VARARGS | METH_KEYWORDS }, | |
7665 | { "wxConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_wxConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS }, | |
7666 | { "wxConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_wxConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
7667 | { "wxConfigBase_HasGroup", (PyCFunction) _wrap_wxConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS }, | |
7668 | { "wxConfigBase_HasEntry", (PyCFunction) _wrap_wxConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS }, | |
7669 | { "wxConfigBase_GetVendorName", (PyCFunction) _wrap_wxConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
7670 | { "wxConfigBase_GetPath", (PyCFunction) _wrap_wxConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
7671 | { "wxConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_wxConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS }, | |
7672 | { "wxConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_wxConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS }, | |
7673 | { "wxConfigBase_GetNextEntry", (PyCFunction) _wrap_wxConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS }, | |
7674 | { "wxConfigBase_GetNextGroup", (PyCFunction) _wrap_wxConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS }, | |
7675 | { "wxConfigBase_GetFirstEntry", (PyCFunction) _wrap_wxConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS }, | |
7676 | { "wxConfigBase_GetFirstGroup", (PyCFunction) _wrap_wxConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS }, | |
7677 | { "wxConfigBase_GetAppName", (PyCFunction) _wrap_wxConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
7678 | { "wxConfigBase_Flush", (PyCFunction) _wrap_wxConfigBase_Flush, METH_VARARGS | METH_KEYWORDS }, | |
7679 | { "wxConfigBase_Exists", (PyCFunction) _wrap_wxConfigBase_Exists, METH_VARARGS | METH_KEYWORDS }, | |
7680 | { "wxConfigBase_DeleteGroup", (PyCFunction) _wrap_wxConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS }, | |
7681 | { "wxConfigBase_DeleteEntry", (PyCFunction) _wrap_wxConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS }, | |
7682 | { "wxConfigBase_DeleteAll", (PyCFunction) _wrap_wxConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS }, | |
7683 | { "wxConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_wxConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
7684 | { "wxConfigBase_Create", (PyCFunction) _wrap_wxConfigBase_Create, METH_VARARGS | METH_KEYWORDS }, | |
7685 | { "wxConfigBase_Get", (PyCFunction) _wrap_wxConfigBase_Get, METH_VARARGS | METH_KEYWORDS }, | |
7686 | { "wxConfigBase_Set", (PyCFunction) _wrap_wxConfigBase_Set, METH_VARARGS | METH_KEYWORDS }, | |
7687 | { "delete_wxConfigBase", (PyCFunction) _wrap_delete_wxConfigBase, METH_VARARGS | METH_KEYWORDS }, | |
7688 | { "wxGetLocalTimeMillis", (PyCFunction) _wrap_wxGetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS }, | |
7689 | { "wxGetCurrentTime", (PyCFunction) _wrap_wxGetCurrentTime, METH_VARARGS | METH_KEYWORDS }, | |
7690 | { "wxGetUTCTime", (PyCFunction) _wrap_wxGetUTCTime, METH_VARARGS | METH_KEYWORDS }, | |
7691 | { "wxGetLocalTime", (PyCFunction) _wrap_wxGetLocalTime, METH_VARARGS | METH_KEYWORDS }, | |
7692 | { NULL, NULL } | |
7693 | }; | |
7694 | #ifdef __cplusplus | |
7695 | } | |
7696 | #endif | |
7697 | /* | |
7698 | * This table is used by the pointer type-checker | |
7699 | */ | |
7700 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
7701 | { "_signed_long","_long",0}, | |
7702 | { "_class_wxDateTime","_wxDateTime",0}, | |
c368d904 RD |
7703 | { "_wxPrintQuality","_wxCoord",0}, |
7704 | { "_wxPrintQuality","_int",0}, | |
7705 | { "_wxPrintQuality","_signed_int",0}, | |
7706 | { "_wxPrintQuality","_unsigned_int",0}, | |
7707 | { "_wxPrintQuality","_wxWindowID",0}, | |
7708 | { "_wxPrintQuality","_uint",0}, | |
7709 | { "_wxPrintQuality","_EBool",0}, | |
7710 | { "_wxPrintQuality","_size_t",0}, | |
7711 | { "_wxPrintQuality","_time_t",0}, | |
7712 | { "_byte","_unsigned_char",0}, | |
f6bcfd97 BP |
7713 | { "_long","_unsigned_long",0}, |
7714 | { "_long","_signed_long",0}, | |
c368d904 RD |
7715 | { "_size_t","_wxCoord",0}, |
7716 | { "_size_t","_wxPrintQuality",0}, | |
7717 | { "_size_t","_time_t",0}, | |
7718 | { "_size_t","_unsigned_int",0}, | |
7719 | { "_size_t","_int",0}, | |
7720 | { "_size_t","_wxWindowID",0}, | |
7721 | { "_size_t","_uint",0}, | |
f6bcfd97 | 7722 | { "_wxFileConfig","_class_wxFileConfig",0}, |
c368d904 RD |
7723 | { "_uint","_wxCoord",0}, |
7724 | { "_uint","_wxPrintQuality",0}, | |
7725 | { "_uint","_time_t",0}, | |
7726 | { "_uint","_size_t",0}, | |
7727 | { "_uint","_unsigned_int",0}, | |
7728 | { "_uint","_int",0}, | |
7729 | { "_uint","_wxWindowID",0}, | |
7730 | { "_wxChar","_char",0}, | |
7731 | { "_char","_wxChar",0}, | |
f6bcfd97 BP |
7732 | { "_wxConfig","_class_wxConfig",0}, |
7733 | { "_class_wxFileConfig","_wxFileConfig",0}, | |
c368d904 RD |
7734 | { "_EBool","_wxCoord",0}, |
7735 | { "_EBool","_wxPrintQuality",0}, | |
7736 | { "_EBool","_signed_int",0}, | |
7737 | { "_EBool","_int",0}, | |
7738 | { "_EBool","_wxWindowID",0}, | |
f6bcfd97 BP |
7739 | { "_unsigned_long","_long",0}, |
7740 | { "_wxTimeSpan","_class_wxTimeSpan",0}, | |
c368d904 RD |
7741 | { "_signed_int","_wxCoord",0}, |
7742 | { "_signed_int","_wxPrintQuality",0}, | |
7743 | { "_signed_int","_EBool",0}, | |
7744 | { "_signed_int","_wxWindowID",0}, | |
f6bcfd97 | 7745 | { "_signed_int","_int",0}, |
c368d904 RD |
7746 | { "_WXTYPE","_wxDateTime_t",0}, |
7747 | { "_WXTYPE","_short",0}, | |
7748 | { "_WXTYPE","_signed_short",0}, | |
7749 | { "_WXTYPE","_unsigned_short",0}, | |
f6bcfd97 | 7750 | { "_unsigned_short","_wxDateTime_t",0}, |
c368d904 | 7751 | { "_unsigned_short","_WXTYPE",0}, |
f6bcfd97 BP |
7752 | { "_unsigned_short","_short",0}, |
7753 | { "_wxDateSpan","_class_wxDateSpan",0}, | |
c368d904 | 7754 | { "_signed_short","_WXTYPE",0}, |
f6bcfd97 | 7755 | { "_signed_short","_short",0}, |
c368d904 RD |
7756 | { "_unsigned_char","_byte",0}, |
7757 | { "_unsigned_int","_wxCoord",0}, | |
7758 | { "_unsigned_int","_wxPrintQuality",0}, | |
7759 | { "_unsigned_int","_time_t",0}, | |
7760 | { "_unsigned_int","_size_t",0}, | |
7761 | { "_unsigned_int","_uint",0}, | |
7762 | { "_unsigned_int","_wxWindowID",0}, | |
f6bcfd97 BP |
7763 | { "_unsigned_int","_int",0}, |
7764 | { "_wxConfigBase","_class_wxFileConfig",SwigwxFileConfigTowxConfigBase}, | |
7765 | { "_wxConfigBase","_wxFileConfig",SwigwxFileConfigTowxConfigBase}, | |
7766 | { "_wxConfigBase","_class_wxConfig",SwigwxConfigTowxConfigBase}, | |
7767 | { "_wxConfigBase","_wxConfig",SwigwxConfigTowxConfigBase}, | |
7768 | { "_wxConfigBase","_class_wxConfigBase",0}, | |
7769 | { "_short","_wxDateTime_t",0}, | |
c368d904 | 7770 | { "_short","_WXTYPE",0}, |
f6bcfd97 BP |
7771 | { "_short","_unsigned_short",0}, |
7772 | { "_short","_signed_short",0}, | |
c368d904 RD |
7773 | { "_wxWindowID","_wxCoord",0}, |
7774 | { "_wxWindowID","_wxPrintQuality",0}, | |
7775 | { "_wxWindowID","_time_t",0}, | |
7776 | { "_wxWindowID","_size_t",0}, | |
7777 | { "_wxWindowID","_EBool",0}, | |
7778 | { "_wxWindowID","_uint",0}, | |
7779 | { "_wxWindowID","_int",0}, | |
7780 | { "_wxWindowID","_signed_int",0}, | |
7781 | { "_wxWindowID","_unsigned_int",0}, | |
7782 | { "_int","_wxCoord",0}, | |
7783 | { "_int","_wxPrintQuality",0}, | |
7784 | { "_int","_time_t",0}, | |
7785 | { "_int","_size_t",0}, | |
7786 | { "_int","_EBool",0}, | |
7787 | { "_int","_uint",0}, | |
7788 | { "_int","_wxWindowID",0}, | |
f6bcfd97 BP |
7789 | { "_int","_unsigned_int",0}, |
7790 | { "_int","_signed_int",0}, | |
7791 | { "_wxDateTime_t","_unsigned_short",0}, | |
7792 | { "_wxDateTime_t","_short",0}, | |
c368d904 | 7793 | { "_wxDateTime_t","_WXTYPE",0}, |
f6bcfd97 | 7794 | { "_wxDateTime","_class_wxDateTime",0}, |
c368d904 RD |
7795 | { "_time_t","_wxCoord",0}, |
7796 | { "_time_t","_wxPrintQuality",0}, | |
7797 | { "_time_t","_unsigned_int",0}, | |
7798 | { "_time_t","_int",0}, | |
7799 | { "_time_t","_wxWindowID",0}, | |
7800 | { "_time_t","_uint",0}, | |
7801 | { "_time_t","_size_t",0}, | |
f6bcfd97 BP |
7802 | { "_class_wxTimeSpan","_wxTimeSpan",0}, |
7803 | { "_class_wxConfigBase","_class_wxFileConfig",SwigwxFileConfigTowxConfigBase}, | |
7804 | { "_class_wxConfigBase","_wxFileConfig",SwigwxFileConfigTowxConfigBase}, | |
7805 | { "_class_wxConfigBase","_class_wxConfig",SwigwxConfigTowxConfigBase}, | |
7806 | { "_class_wxConfigBase","_wxConfig",SwigwxConfigTowxConfigBase}, | |
7807 | { "_class_wxConfigBase","_wxConfigBase",0}, | |
c368d904 RD |
7808 | { "_wxCoord","_int",0}, |
7809 | { "_wxCoord","_signed_int",0}, | |
7810 | { "_wxCoord","_unsigned_int",0}, | |
7811 | { "_wxCoord","_wxWindowID",0}, | |
7812 | { "_wxCoord","_uint",0}, | |
7813 | { "_wxCoord","_EBool",0}, | |
7814 | { "_wxCoord","_size_t",0}, | |
7815 | { "_wxCoord","_time_t",0}, | |
7816 | { "_wxCoord","_wxPrintQuality",0}, | |
f6bcfd97 BP |
7817 | { "_class_wxDateSpan","_wxDateSpan",0}, |
7818 | { "_class_wxConfig","_wxConfig",0}, | |
7819 | {0,0,0}}; | |
7820 | ||
7821 | static PyObject *SWIG_globals; | |
7822 | #ifdef __cplusplus | |
7823 | extern "C" | |
7824 | #endif | |
7825 | SWIGEXPORT(void) initutilsc() { | |
7826 | PyObject *m, *d; | |
7827 | SWIG_globals = SWIG_newvarlink(); | |
7828 | m = Py_InitModule("utilsc", utilscMethods); | |
7829 | d = PyModule_GetDict(m); | |
7830 | PyDict_SetItemString(d,"wxCONFIG_USE_LOCAL_FILE", PyInt_FromLong((long) wxCONFIG_USE_LOCAL_FILE)); | |
7831 | PyDict_SetItemString(d,"wxCONFIG_USE_GLOBAL_FILE", PyInt_FromLong((long) wxCONFIG_USE_GLOBAL_FILE)); | |
7832 | PyDict_SetItemString(d,"wxCONFIG_USE_RELATIVE_PATH", PyInt_FromLong((long) wxCONFIG_USE_RELATIVE_PATH)); | |
7833 | ||
3a70a282 RD |
7834 | wxClassInfo::CleanUpClasses(); |
7835 | wxClassInfo::InitializeClasses(); | |
f6bcfd97 BP |
7836 | PyDict_SetItemString(d,"wxConfigBase_Type_Unknown", PyInt_FromLong((long) wxConfigBase::Type_Unknown)); |
7837 | PyDict_SetItemString(d,"wxConfigBase_Type_String", PyInt_FromLong((long) wxConfigBase::Type_String)); | |
7838 | PyDict_SetItemString(d,"wxConfigBase_Type_Boolean", PyInt_FromLong((long) wxConfigBase::Type_Boolean)); | |
7839 | PyDict_SetItemString(d,"wxConfigBase_Type_Integer", PyInt_FromLong((long) wxConfigBase::Type_Integer)); | |
7840 | PyDict_SetItemString(d,"wxConfigBase_Type_Float", PyInt_FromLong((long) wxConfigBase::Type_Float)); | |
7841 | PyDict_SetItemString(d,"wxDateTime_Local", PyInt_FromLong((long) wxDateTime::Local)); | |
7842 | PyDict_SetItemString(d,"wxDateTime_GMT_12", PyInt_FromLong((long) wxDateTime::GMT_12)); | |
7843 | PyDict_SetItemString(d,"wxDateTime_GMT_11", PyInt_FromLong((long) wxDateTime::GMT_11)); | |
7844 | PyDict_SetItemString(d,"wxDateTime_GMT_10", PyInt_FromLong((long) wxDateTime::GMT_10)); | |
7845 | PyDict_SetItemString(d,"wxDateTime_GMT_9", PyInt_FromLong((long) wxDateTime::GMT_9)); | |
7846 | PyDict_SetItemString(d,"wxDateTime_GMT_8", PyInt_FromLong((long) wxDateTime::GMT_8)); | |
7847 | PyDict_SetItemString(d,"wxDateTime_GMT_7", PyInt_FromLong((long) wxDateTime::GMT_7)); | |
7848 | PyDict_SetItemString(d,"wxDateTime_GMT_6", PyInt_FromLong((long) wxDateTime::GMT_6)); | |
7849 | PyDict_SetItemString(d,"wxDateTime_GMT_5", PyInt_FromLong((long) wxDateTime::GMT_5)); | |
7850 | PyDict_SetItemString(d,"wxDateTime_GMT_4", PyInt_FromLong((long) wxDateTime::GMT_4)); | |
7851 | PyDict_SetItemString(d,"wxDateTime_GMT_3", PyInt_FromLong((long) wxDateTime::GMT_3)); | |
7852 | PyDict_SetItemString(d,"wxDateTime_GMT_2", PyInt_FromLong((long) wxDateTime::GMT_2)); | |
7853 | PyDict_SetItemString(d,"wxDateTime_GMT_1", PyInt_FromLong((long) wxDateTime::GMT_1)); | |
7854 | PyDict_SetItemString(d,"wxDateTime_GMT0", PyInt_FromLong((long) wxDateTime::GMT0)); | |
7855 | PyDict_SetItemString(d,"wxDateTime_GMT1", PyInt_FromLong((long) wxDateTime::GMT1)); | |
7856 | PyDict_SetItemString(d,"wxDateTime_GMT2", PyInt_FromLong((long) wxDateTime::GMT2)); | |
7857 | PyDict_SetItemString(d,"wxDateTime_GMT3", PyInt_FromLong((long) wxDateTime::GMT3)); | |
7858 | PyDict_SetItemString(d,"wxDateTime_GMT4", PyInt_FromLong((long) wxDateTime::GMT4)); | |
7859 | PyDict_SetItemString(d,"wxDateTime_GMT5", PyInt_FromLong((long) wxDateTime::GMT5)); | |
7860 | PyDict_SetItemString(d,"wxDateTime_GMT6", PyInt_FromLong((long) wxDateTime::GMT6)); | |
7861 | PyDict_SetItemString(d,"wxDateTime_GMT7", PyInt_FromLong((long) wxDateTime::GMT7)); | |
7862 | PyDict_SetItemString(d,"wxDateTime_GMT8", PyInt_FromLong((long) wxDateTime::GMT8)); | |
7863 | PyDict_SetItemString(d,"wxDateTime_GMT9", PyInt_FromLong((long) wxDateTime::GMT9)); | |
7864 | PyDict_SetItemString(d,"wxDateTime_GMT10", PyInt_FromLong((long) wxDateTime::GMT10)); | |
7865 | PyDict_SetItemString(d,"wxDateTime_GMT11", PyInt_FromLong((long) wxDateTime::GMT11)); | |
7866 | PyDict_SetItemString(d,"wxDateTime_GMT12", PyInt_FromLong((long) wxDateTime::GMT12)); | |
7867 | PyDict_SetItemString(d,"wxDateTime_WET", PyInt_FromLong((long) wxDateTime::WET)); | |
7868 | PyDict_SetItemString(d,"wxDateTime_WEST", PyInt_FromLong((long) wxDateTime::WEST)); | |
7869 | PyDict_SetItemString(d,"wxDateTime_CET", PyInt_FromLong((long) wxDateTime::CET)); | |
7870 | PyDict_SetItemString(d,"wxDateTime_CEST", PyInt_FromLong((long) wxDateTime::CEST)); | |
7871 | PyDict_SetItemString(d,"wxDateTime_EET", PyInt_FromLong((long) wxDateTime::EET)); | |
7872 | PyDict_SetItemString(d,"wxDateTime_EEST", PyInt_FromLong((long) wxDateTime::EEST)); | |
7873 | PyDict_SetItemString(d,"wxDateTime_MSK", PyInt_FromLong((long) wxDateTime::MSK)); | |
7874 | PyDict_SetItemString(d,"wxDateTime_MSD", PyInt_FromLong((long) wxDateTime::MSD)); | |
7875 | PyDict_SetItemString(d,"wxDateTime_AST", PyInt_FromLong((long) wxDateTime::AST)); | |
7876 | PyDict_SetItemString(d,"wxDateTime_ADT", PyInt_FromLong((long) wxDateTime::ADT)); | |
7877 | PyDict_SetItemString(d,"wxDateTime_EST", PyInt_FromLong((long) wxDateTime::EST)); | |
7878 | PyDict_SetItemString(d,"wxDateTime_EDT", PyInt_FromLong((long) wxDateTime::EDT)); | |
7879 | PyDict_SetItemString(d,"wxDateTime_CST", PyInt_FromLong((long) wxDateTime::CST)); | |
7880 | PyDict_SetItemString(d,"wxDateTime_CDT", PyInt_FromLong((long) wxDateTime::CDT)); | |
7881 | PyDict_SetItemString(d,"wxDateTime_MST", PyInt_FromLong((long) wxDateTime::MST)); | |
7882 | PyDict_SetItemString(d,"wxDateTime_MDT", PyInt_FromLong((long) wxDateTime::MDT)); | |
7883 | PyDict_SetItemString(d,"wxDateTime_PST", PyInt_FromLong((long) wxDateTime::PST)); | |
7884 | PyDict_SetItemString(d,"wxDateTime_PDT", PyInt_FromLong((long) wxDateTime::PDT)); | |
7885 | PyDict_SetItemString(d,"wxDateTime_HST", PyInt_FromLong((long) wxDateTime::HST)); | |
7886 | PyDict_SetItemString(d,"wxDateTime_AKST", PyInt_FromLong((long) wxDateTime::AKST)); | |
7887 | PyDict_SetItemString(d,"wxDateTime_AKDT", PyInt_FromLong((long) wxDateTime::AKDT)); | |
7888 | PyDict_SetItemString(d,"wxDateTime_A_WST", PyInt_FromLong((long) wxDateTime::A_WST)); | |
7889 | PyDict_SetItemString(d,"wxDateTime_A_CST", PyInt_FromLong((long) wxDateTime::A_CST)); | |
7890 | PyDict_SetItemString(d,"wxDateTime_A_EST", PyInt_FromLong((long) wxDateTime::A_EST)); | |
7891 | PyDict_SetItemString(d,"wxDateTime_A_ESST", PyInt_FromLong((long) wxDateTime::A_ESST)); | |
7892 | PyDict_SetItemString(d,"wxDateTime_UTC", PyInt_FromLong((long) wxDateTime::UTC)); | |
7893 | PyDict_SetItemString(d,"wxDateTime_Gregorian", PyInt_FromLong((long) wxDateTime::Gregorian)); | |
7894 | PyDict_SetItemString(d,"wxDateTime_Julian", PyInt_FromLong((long) wxDateTime::Julian)); | |
7895 | PyDict_SetItemString(d,"wxDateTime_Country_Unknown", PyInt_FromLong((long) wxDateTime::Country_Unknown)); | |
7896 | PyDict_SetItemString(d,"wxDateTime_Country_Default", PyInt_FromLong((long) wxDateTime::Country_Default)); | |
7897 | PyDict_SetItemString(d,"wxDateTime_Country_WesternEurope_Start", PyInt_FromLong((long) wxDateTime::Country_WesternEurope_Start)); | |
7898 | PyDict_SetItemString(d,"wxDateTime_Country_EEC", PyInt_FromLong((long) wxDateTime::Country_EEC)); | |
7899 | PyDict_SetItemString(d,"wxDateTime_France", PyInt_FromLong((long) wxDateTime::France)); | |
7900 | PyDict_SetItemString(d,"wxDateTime_Germany", PyInt_FromLong((long) wxDateTime::Germany)); | |
7901 | PyDict_SetItemString(d,"wxDateTime_UK", PyInt_FromLong((long) wxDateTime::UK)); | |
7902 | PyDict_SetItemString(d,"wxDateTime_Country_WesternEurope_End", PyInt_FromLong((long) wxDateTime::Country_WesternEurope_End)); | |
7903 | PyDict_SetItemString(d,"wxDateTime_Russia", PyInt_FromLong((long) wxDateTime::Russia)); | |
7904 | PyDict_SetItemString(d,"wxDateTime_USA", PyInt_FromLong((long) wxDateTime::USA)); | |
7905 | PyDict_SetItemString(d,"wxDateTime_Jan", PyInt_FromLong((long) wxDateTime::Jan)); | |
7906 | PyDict_SetItemString(d,"wxDateTime_Feb", PyInt_FromLong((long) wxDateTime::Feb)); | |
7907 | PyDict_SetItemString(d,"wxDateTime_Mar", PyInt_FromLong((long) wxDateTime::Mar)); | |
7908 | PyDict_SetItemString(d,"wxDateTime_Apr", PyInt_FromLong((long) wxDateTime::Apr)); | |
7909 | PyDict_SetItemString(d,"wxDateTime_May", PyInt_FromLong((long) wxDateTime::May)); | |
7910 | PyDict_SetItemString(d,"wxDateTime_Jun", PyInt_FromLong((long) wxDateTime::Jun)); | |
7911 | PyDict_SetItemString(d,"wxDateTime_Jul", PyInt_FromLong((long) wxDateTime::Jul)); | |
7912 | PyDict_SetItemString(d,"wxDateTime_Aug", PyInt_FromLong((long) wxDateTime::Aug)); | |
7913 | PyDict_SetItemString(d,"wxDateTime_Sep", PyInt_FromLong((long) wxDateTime::Sep)); | |
7914 | PyDict_SetItemString(d,"wxDateTime_Oct", PyInt_FromLong((long) wxDateTime::Oct)); | |
7915 | PyDict_SetItemString(d,"wxDateTime_Nov", PyInt_FromLong((long) wxDateTime::Nov)); | |
7916 | PyDict_SetItemString(d,"wxDateTime_Dec", PyInt_FromLong((long) wxDateTime::Dec)); | |
7917 | PyDict_SetItemString(d,"wxDateTime_Inv_Month", PyInt_FromLong((long) wxDateTime::Inv_Month)); | |
7918 | PyDict_SetItemString(d,"wxDateTime_Sun", PyInt_FromLong((long) wxDateTime::Sun)); | |
7919 | PyDict_SetItemString(d,"wxDateTime_Mon", PyInt_FromLong((long) wxDateTime::Mon)); | |
7920 | PyDict_SetItemString(d,"wxDateTime_Tue", PyInt_FromLong((long) wxDateTime::Tue)); | |
7921 | PyDict_SetItemString(d,"wxDateTime_Wed", PyInt_FromLong((long) wxDateTime::Wed)); | |
7922 | PyDict_SetItemString(d,"wxDateTime_Thu", PyInt_FromLong((long) wxDateTime::Thu)); | |
7923 | PyDict_SetItemString(d,"wxDateTime_Fri", PyInt_FromLong((long) wxDateTime::Fri)); | |
7924 | PyDict_SetItemString(d,"wxDateTime_Sat", PyInt_FromLong((long) wxDateTime::Sat)); | |
7925 | PyDict_SetItemString(d,"wxDateTime_Inv_WeekDay", PyInt_FromLong((long) wxDateTime::Inv_WeekDay)); | |
7926 | PyDict_SetItemString(d,"wxDateTime_Inv_Year", PyInt_FromLong((long) wxDateTime::Inv_Year)); | |
7927 | PyDict_SetItemString(d,"wxDateTime_Name_Full", PyInt_FromLong((long) wxDateTime::Name_Full)); | |
7928 | PyDict_SetItemString(d,"wxDateTime_Name_Abbr", PyInt_FromLong((long) wxDateTime::Name_Abbr)); | |
7929 | PyDict_SetItemString(d,"wxDateTime_Default_First", PyInt_FromLong((long) wxDateTime::Default_First)); | |
7930 | PyDict_SetItemString(d,"wxDateTime_Monday_First", PyInt_FromLong((long) wxDateTime::Monday_First)); | |
7931 | PyDict_SetItemString(d,"wxDateTime_Sunday_First", PyInt_FromLong((long) wxDateTime::Sunday_First)); | |
7932 | { | |
7933 | int i; | |
7934 | for (i = 0; _swig_mapping[i].n1; i++) | |
7935 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
7936 | } | |
7937 | } |