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