4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Patch 5)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a,b) __declspec(dllexport) a b
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a,b) a _export b
32 # define SWIGEXPORT(a,b) a b
36 # define SWIGEXPORT(a,b) a b
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 void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
47 extern PyObject
*SWIG_newvarlink(void);
52 #define SWIG_init initutilsc
54 #define SWIG_name "utilsc"
57 #include <wx/config.h>
59 static PyObject
* l_output_helper(PyObject
* target
, PyObject
* o
) {
64 } else if (target
== Py_None
) {
68 if (!PyList_Check(target
)) {
70 target
= PyList_New(0);
71 PyList_Append(target
, o2
);
74 PyList_Append(target
,o
);
80 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
86 } else if (target
== Py_None
) {
90 if (!PyTuple_Check(target
)) {
92 target
= PyTuple_New(1);
93 PyTuple_SetItem(target
, 0, o2
);
96 PyTuple_SetItem(o3
, 0, o
);
99 target
= PySequence_Concat(o2
, o3
);
107 extern byte
* byte_LIST_helper(PyObject
* source
);
108 extern int* int_LIST_helper(PyObject
* source
);
109 extern long* long_LIST_helper(PyObject
* source
);
110 extern char** string_LIST_helper(PyObject
* source
);
111 extern wxPoint
* wxPoint_LIST_helper(PyObject
* source
);
112 extern wxBitmap
** wxBitmap_LIST_helper(PyObject
* source
);
113 extern wxString
* wxString_LIST_helper(PyObject
* source
);
114 extern wxAcceleratorEntry
* wxAcceleratorEntry_LIST_helper(PyObject
* source
);
117 static char* wxStringErrorMsg
= "string type is required for parameter";
119 static PyObject
* __EnumerationHelper(bool flag
, wxString
& str
, long index
) {
120 PyObject
* ret
= PyTuple_New(3);
122 PyTuple_SET_ITEM(ret
, 0, PyInt_FromLong(flag
));
123 PyTuple_SET_ITEM(ret
, 1, PyString_FromString(str
));
124 PyTuple_SET_ITEM(ret
, 2, PyInt_FromLong(index
));
128 #define new_wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
129 static PyObject
*_wrap_new_wxConfig(PyObject
*self
, PyObject
*args
) {
130 PyObject
* _resultobj
;
132 wxString
* _arg0
= &wxPyEmptyStr
;
133 wxString
* _arg1
= &wxPyEmptyStr
;
134 wxString
* _arg2
= &wxPyEmptyStr
;
135 wxString
* _arg3
= &wxPyEmptyStr
;
137 PyObject
* _obj0
= 0;
138 PyObject
* _obj1
= 0;
139 PyObject
* _obj2
= 0;
140 PyObject
* _obj3
= 0;
144 if(!PyArg_ParseTuple(args
,"|OOOOl:new_wxConfig",&_obj0
,&_obj1
,&_obj2
,&_obj3
,&_arg4
))
148 if (!PyString_Check(_obj0
)) {
149 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
152 _arg0
= new wxString(PyString_AsString(_obj0
));
156 if (!PyString_Check(_obj1
)) {
157 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
160 _arg1
= new wxString(PyString_AsString(_obj1
));
164 if (!PyString_Check(_obj2
)) {
165 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
168 _arg2
= new wxString(PyString_AsString(_obj2
));
172 if (!PyString_Check(_obj3
)) {
173 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
176 _arg3
= new wxString(PyString_AsString(_obj3
));
178 _result
= (wxConfig
*)new_wxConfig(*_arg0
,*_arg1
,*_arg2
,*_arg3
,_arg4
);
179 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxConfig_p");
180 _resultobj
= Py_BuildValue("s",_ptemp
);
200 #define delete_wxConfig(_swigobj) (delete _swigobj)
201 static PyObject
*_wrap_delete_wxConfig(PyObject
*self
, PyObject
*args
) {
202 PyObject
* _resultobj
;
207 if(!PyArg_ParseTuple(args
,"s:delete_wxConfig",&_argc0
))
210 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
211 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxConfig. Expected _wxConfig_p.");
215 delete_wxConfig(_arg0
);
217 _resultobj
= Py_None
;
221 #define wxConfig_DontCreateOnDemand(_swigobj) (_swigobj->DontCreateOnDemand())
222 static PyObject
*_wrap_wxConfig_DontCreateOnDemand(PyObject
*self
, PyObject
*args
) {
223 PyObject
* _resultobj
;
228 if(!PyArg_ParseTuple(args
,"s:wxConfig_DontCreateOnDemand",&_argc0
))
231 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
232 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DontCreateOnDemand. Expected _wxConfig_p.");
236 wxConfig_DontCreateOnDemand(_arg0
);
238 _resultobj
= Py_None
;
242 #define wxConfig_DeleteEntry(_swigobj,_swigarg0,_swigarg1) (_swigobj->DeleteEntry(_swigarg0,_swigarg1))
243 static PyObject
*_wrap_wxConfig_DeleteEntry(PyObject
*self
, PyObject
*args
) {
244 PyObject
* _resultobj
;
250 PyObject
* _obj1
= 0;
254 if(!PyArg_ParseTuple(args
,"sO|i:wxConfig_DeleteEntry",&_argc0
,&_obj1
,&tempbool2
))
257 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
258 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteEntry. Expected _wxConfig_p.");
263 if (!PyString_Check(_obj1
)) {
264 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
267 _arg1
= new wxString(PyString_AsString(_obj1
));
269 _arg2
= (bool ) tempbool2
;
270 _result
= (bool )wxConfig_DeleteEntry(_arg0
,*_arg1
,_arg2
);
271 _resultobj
= Py_BuildValue("i",_result
);
279 #define wxConfig_DeleteGroup(_swigobj,_swigarg0) (_swigobj->DeleteGroup(_swigarg0))
280 static PyObject
*_wrap_wxConfig_DeleteGroup(PyObject
*self
, PyObject
*args
) {
281 PyObject
* _resultobj
;
286 PyObject
* _obj1
= 0;
289 if(!PyArg_ParseTuple(args
,"sO:wxConfig_DeleteGroup",&_argc0
,&_obj1
))
292 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
293 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteGroup. Expected _wxConfig_p.");
298 if (!PyString_Check(_obj1
)) {
299 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
302 _arg1
= new wxString(PyString_AsString(_obj1
));
304 _result
= (bool )wxConfig_DeleteGroup(_arg0
,*_arg1
);
305 _resultobj
= Py_BuildValue("i",_result
);
313 #define wxConfig_Exists(_swigobj,_swigarg0) (_swigobj->Exists(_swigarg0))
314 static PyObject
*_wrap_wxConfig_Exists(PyObject
*self
, PyObject
*args
) {
315 PyObject
* _resultobj
;
320 PyObject
* _obj1
= 0;
323 if(!PyArg_ParseTuple(args
,"sO:wxConfig_Exists",&_argc0
,&_obj1
))
326 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
327 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Exists. Expected _wxConfig_p.");
332 if (!PyString_Check(_obj1
)) {
333 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
336 _arg1
= new wxString(PyString_AsString(_obj1
));
338 _result
= (bool )wxConfig_Exists(_arg0
,*_arg1
);
339 _resultobj
= Py_BuildValue("i",_result
);
347 #define wxConfig_Flush(_swigobj,_swigarg0) (_swigobj->Flush(_swigarg0))
348 static PyObject
*_wrap_wxConfig_Flush(PyObject
*self
, PyObject
*args
) {
349 PyObject
* _resultobj
;
357 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_Flush",&_argc0
,&tempbool1
))
360 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
361 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Flush. Expected _wxConfig_p.");
365 _arg1
= (bool ) tempbool1
;
366 _result
= (bool )wxConfig_Flush(_arg0
,_arg1
);
367 _resultobj
= Py_BuildValue("i",_result
);
371 #define wxConfig_GetAppName(_swigobj) (_swigobj->GetAppName())
372 static PyObject
*_wrap_wxConfig_GetAppName(PyObject
*self
, PyObject
*args
) {
373 PyObject
* _resultobj
;
379 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetAppName",&_argc0
))
382 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
383 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetAppName. Expected _wxConfig_p.");
387 _result
= new wxString (wxConfig_GetAppName(_arg0
));
389 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
397 static PyObject
* wxConfig_GetFirstGroup(wxConfig
*self
) {
402 cont
= self
->GetFirstGroup(value
, index
);
403 return __EnumerationHelper(cont
, value
, index
);
405 static PyObject
*_wrap_wxConfig_GetFirstGroup(PyObject
*self
, PyObject
*args
) {
406 PyObject
* _resultobj
;
412 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetFirstGroup",&_argc0
))
415 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
416 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetFirstGroup. Expected _wxConfig_p.");
420 _result
= (PyObject
*)wxConfig_GetFirstGroup(_arg0
);
422 _resultobj
= _result
;
427 static PyObject
* wxConfig_GetFirstEntry(wxConfig
*self
) {
432 cont
= self
->GetFirstEntry(value
, index
);
433 return __EnumerationHelper(cont
, value
, index
);
435 static PyObject
*_wrap_wxConfig_GetFirstEntry(PyObject
*self
, PyObject
*args
) {
436 PyObject
* _resultobj
;
442 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetFirstEntry",&_argc0
))
445 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
446 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetFirstEntry. Expected _wxConfig_p.");
450 _result
= (PyObject
*)wxConfig_GetFirstEntry(_arg0
);
452 _resultobj
= _result
;
457 static PyObject
* wxConfig_GetNextGroup(wxConfig
*self
,long index
) {
461 cont
= self
->GetNextGroup(value
, index
);
462 return __EnumerationHelper(cont
, value
, index
);
464 static PyObject
*_wrap_wxConfig_GetNextGroup(PyObject
*self
, PyObject
*args
) {
465 PyObject
* _resultobj
;
472 if(!PyArg_ParseTuple(args
,"sl:wxConfig_GetNextGroup",&_argc0
,&_arg1
))
475 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
476 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNextGroup. Expected _wxConfig_p.");
480 _result
= (PyObject
*)wxConfig_GetNextGroup(_arg0
,_arg1
);
482 _resultobj
= _result
;
487 static PyObject
* wxConfig_GetNextEntry(wxConfig
*self
,long index
) {
491 cont
= self
->GetNextEntry(value
, index
);
492 return __EnumerationHelper(cont
, value
, index
);
494 static PyObject
*_wrap_wxConfig_GetNextEntry(PyObject
*self
, PyObject
*args
) {
495 PyObject
* _resultobj
;
502 if(!PyArg_ParseTuple(args
,"sl:wxConfig_GetNextEntry",&_argc0
,&_arg1
))
505 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
506 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNextEntry. Expected _wxConfig_p.");
510 _result
= (PyObject
*)wxConfig_GetNextEntry(_arg0
,_arg1
);
512 _resultobj
= _result
;
517 #define wxConfig_GetNumberOfEntries(_swigobj,_swigarg0) (_swigobj->GetNumberOfEntries(_swigarg0))
518 static PyObject
*_wrap_wxConfig_GetNumberOfEntries(PyObject
*self
, PyObject
*args
) {
519 PyObject
* _resultobj
;
527 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_GetNumberOfEntries",&_argc0
,&tempbool1
))
530 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
531 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNumberOfEntries. Expected _wxConfig_p.");
535 _arg1
= (bool ) tempbool1
;
536 _result
= (int )wxConfig_GetNumberOfEntries(_arg0
,_arg1
);
537 _resultobj
= Py_BuildValue("i",_result
);
541 #define wxConfig_GetNumberOfGroups(_swigobj,_swigarg0) (_swigobj->GetNumberOfGroups(_swigarg0))
542 static PyObject
*_wrap_wxConfig_GetNumberOfGroups(PyObject
*self
, PyObject
*args
) {
543 PyObject
* _resultobj
;
551 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_GetNumberOfGroups",&_argc0
,&tempbool1
))
554 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
555 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNumberOfGroups. Expected _wxConfig_p.");
559 _arg1
= (bool ) tempbool1
;
560 _result
= (int )wxConfig_GetNumberOfGroups(_arg0
,_arg1
);
561 _resultobj
= Py_BuildValue("i",_result
);
565 #define wxConfig_GetPath(_swigobj) (_swigobj->GetPath())
566 static PyObject
*_wrap_wxConfig_GetPath(PyObject
*self
, PyObject
*args
) {
567 PyObject
* _resultobj
;
573 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetPath",&_argc0
))
576 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
577 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetPath. Expected _wxConfig_p.");
581 _result
= new wxString (wxConfig_GetPath(_arg0
));
583 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
591 #define wxConfig_GetVendorName(_swigobj) (_swigobj->GetVendorName())
592 static PyObject
*_wrap_wxConfig_GetVendorName(PyObject
*self
, PyObject
*args
) {
593 PyObject
* _resultobj
;
599 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetVendorName",&_argc0
))
602 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetVendorName. Expected _wxConfig_p.");
607 _result
= new wxString (wxConfig_GetVendorName(_arg0
));
609 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
617 #define wxConfig_HasEntry(_swigobj,_swigarg0) (_swigobj->HasEntry(_swigarg0))
618 static PyObject
*_wrap_wxConfig_HasEntry(PyObject
*self
, PyObject
*args
) {
619 PyObject
* _resultobj
;
624 PyObject
* _obj1
= 0;
627 if(!PyArg_ParseTuple(args
,"sO:wxConfig_HasEntry",&_argc0
,&_obj1
))
630 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
631 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_HasEntry. Expected _wxConfig_p.");
636 if (!PyString_Check(_obj1
)) {
637 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
640 _arg1
= new wxString(PyString_AsString(_obj1
));
642 _result
= (bool )wxConfig_HasEntry(_arg0
,*_arg1
);
643 _resultobj
= Py_BuildValue("i",_result
);
651 #define wxConfig_HasGroup(_swigobj,_swigarg0) (_swigobj->HasGroup(_swigarg0))
652 static PyObject
*_wrap_wxConfig_HasGroup(PyObject
*self
, PyObject
*args
) {
653 PyObject
* _resultobj
;
658 PyObject
* _obj1
= 0;
661 if(!PyArg_ParseTuple(args
,"sO:wxConfig_HasGroup",&_argc0
,&_obj1
))
664 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
665 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_HasGroup. Expected _wxConfig_p.");
670 if (!PyString_Check(_obj1
)) {
671 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
674 _arg1
= new wxString(PyString_AsString(_obj1
));
676 _result
= (bool )wxConfig_HasGroup(_arg0
,*_arg1
);
677 _resultobj
= Py_BuildValue("i",_result
);
685 #define wxConfig_IsExpandingEnvVars(_swigobj) (_swigobj->IsExpandingEnvVars())
686 static PyObject
*_wrap_wxConfig_IsExpandingEnvVars(PyObject
*self
, PyObject
*args
) {
687 PyObject
* _resultobj
;
693 if(!PyArg_ParseTuple(args
,"s:wxConfig_IsExpandingEnvVars",&_argc0
))
696 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
697 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_IsExpandingEnvVars. Expected _wxConfig_p.");
701 _result
= (bool )wxConfig_IsExpandingEnvVars(_arg0
);
702 _resultobj
= Py_BuildValue("i",_result
);
706 #define wxConfig_IsRecordingDefaults(_swigobj) (_swigobj->IsRecordingDefaults())
707 static PyObject
*_wrap_wxConfig_IsRecordingDefaults(PyObject
*self
, PyObject
*args
) {
708 PyObject
* _resultobj
;
714 if(!PyArg_ParseTuple(args
,"s:wxConfig_IsRecordingDefaults",&_argc0
))
717 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
718 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_IsRecordingDefaults. Expected _wxConfig_p.");
722 _result
= (bool )wxConfig_IsRecordingDefaults(_arg0
);
723 _resultobj
= Py_BuildValue("i",_result
);
727 #define wxConfig_Read(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
728 static PyObject
*_wrap_wxConfig_Read(PyObject
*self
, PyObject
*args
) {
729 PyObject
* _resultobj
;
733 wxString
* _arg2
= &wxPyEmptyStr
;
735 PyObject
* _obj1
= 0;
736 PyObject
* _obj2
= 0;
739 if(!PyArg_ParseTuple(args
,"sO|O:wxConfig_Read",&_argc0
,&_obj1
,&_obj2
))
742 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
743 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Read. Expected _wxConfig_p.");
748 if (!PyString_Check(_obj1
)) {
749 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
752 _arg1
= new wxString(PyString_AsString(_obj1
));
756 if (!PyString_Check(_obj2
)) {
757 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
760 _arg2
= new wxString(PyString_AsString(_obj2
));
762 _result
= new wxString (wxConfig_Read(_arg0
,*_arg1
,*_arg2
));
764 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
780 #define wxConfig_ReadInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
781 static PyObject
*_wrap_wxConfig_ReadInt(PyObject
*self
, PyObject
*args
) {
782 PyObject
* _resultobj
;
788 PyObject
* _obj1
= 0;
791 if(!PyArg_ParseTuple(args
,"sO|l:wxConfig_ReadInt",&_argc0
,&_obj1
,&_arg2
))
794 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
795 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_ReadInt. Expected _wxConfig_p.");
800 if (!PyString_Check(_obj1
)) {
801 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
804 _arg1
= new wxString(PyString_AsString(_obj1
));
806 _result
= (long )wxConfig_ReadInt(_arg0
,*_arg1
,_arg2
);
807 _resultobj
= Py_BuildValue("l",_result
);
815 #define wxConfig_ReadFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
816 static PyObject
*_wrap_wxConfig_ReadFloat(PyObject
*self
, PyObject
*args
) {
817 PyObject
* _resultobj
;
823 PyObject
* _obj1
= 0;
826 if(!PyArg_ParseTuple(args
,"sO|d:wxConfig_ReadFloat",&_argc0
,&_obj1
,&_arg2
))
829 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
830 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_ReadFloat. Expected _wxConfig_p.");
835 if (!PyString_Check(_obj1
)) {
836 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
839 _arg1
= new wxString(PyString_AsString(_obj1
));
841 _result
= (double )wxConfig_ReadFloat(_arg0
,*_arg1
,_arg2
);
842 _resultobj
= Py_BuildValue("d",_result
);
850 #define wxConfig_SetAppName(_swigobj,_swigarg0) (_swigobj->SetAppName(_swigarg0))
851 static PyObject
*_wrap_wxConfig_SetAppName(PyObject
*self
, PyObject
*args
) {
852 PyObject
* _resultobj
;
856 PyObject
* _obj1
= 0;
859 if(!PyArg_ParseTuple(args
,"sO:wxConfig_SetAppName",&_argc0
,&_obj1
))
862 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
863 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetAppName. Expected _wxConfig_p.");
868 if (!PyString_Check(_obj1
)) {
869 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
872 _arg1
= new wxString(PyString_AsString(_obj1
));
874 wxConfig_SetAppName(_arg0
,*_arg1
);
876 _resultobj
= Py_None
;
884 #define wxConfig_SetExpandEnvVars(_swigobj,_swigarg0) (_swigobj->SetExpandEnvVars(_swigarg0))
885 static PyObject
*_wrap_wxConfig_SetExpandEnvVars(PyObject
*self
, PyObject
*args
) {
886 PyObject
* _resultobj
;
893 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_SetExpandEnvVars",&_argc0
,&tempbool1
))
896 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
897 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetExpandEnvVars. Expected _wxConfig_p.");
901 _arg1
= (bool ) tempbool1
;
902 wxConfig_SetExpandEnvVars(_arg0
,_arg1
);
904 _resultobj
= Py_None
;
908 #define wxConfig_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0))
909 static PyObject
*_wrap_wxConfig_SetPath(PyObject
*self
, PyObject
*args
) {
910 PyObject
* _resultobj
;
914 PyObject
* _obj1
= 0;
917 if(!PyArg_ParseTuple(args
,"sO:wxConfig_SetPath",&_argc0
,&_obj1
))
920 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
921 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetPath. Expected _wxConfig_p.");
926 if (!PyString_Check(_obj1
)) {
927 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
930 _arg1
= new wxString(PyString_AsString(_obj1
));
932 wxConfig_SetPath(_arg0
,*_arg1
);
934 _resultobj
= Py_None
;
942 #define wxConfig_SetRecordDefaults(_swigobj,_swigarg0) (_swigobj->SetRecordDefaults(_swigarg0))
943 static PyObject
*_wrap_wxConfig_SetRecordDefaults(PyObject
*self
, PyObject
*args
) {
944 PyObject
* _resultobj
;
951 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_SetRecordDefaults",&_argc0
,&tempbool1
))
954 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
955 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetRecordDefaults. Expected _wxConfig_p.");
959 _arg1
= (bool ) tempbool1
;
960 wxConfig_SetRecordDefaults(_arg0
,_arg1
);
962 _resultobj
= Py_None
;
966 #define wxConfig_SetVendorName(_swigobj,_swigarg0) (_swigobj->SetVendorName(_swigarg0))
967 static PyObject
*_wrap_wxConfig_SetVendorName(PyObject
*self
, PyObject
*args
) {
968 PyObject
* _resultobj
;
972 PyObject
* _obj1
= 0;
975 if(!PyArg_ParseTuple(args
,"sO:wxConfig_SetVendorName",&_argc0
,&_obj1
))
978 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
979 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetVendorName. Expected _wxConfig_p.");
984 if (!PyString_Check(_obj1
)) {
985 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
988 _arg1
= new wxString(PyString_AsString(_obj1
));
990 wxConfig_SetVendorName(_arg0
,*_arg1
);
992 _resultobj
= Py_None
;
1000 #define wxConfig_Write(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1001 static PyObject
*_wrap_wxConfig_Write(PyObject
*self
, PyObject
*args
) {
1002 PyObject
* _resultobj
;
1008 PyObject
* _obj1
= 0;
1009 PyObject
* _obj2
= 0;
1012 if(!PyArg_ParseTuple(args
,"sOO:wxConfig_Write",&_argc0
,&_obj1
,&_obj2
))
1015 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1016 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Write. Expected _wxConfig_p.");
1021 if (!PyString_Check(_obj1
)) {
1022 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1025 _arg1
= new wxString(PyString_AsString(_obj1
));
1028 if (!PyString_Check(_obj2
)) {
1029 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1032 _arg2
= new wxString(PyString_AsString(_obj2
));
1034 _result
= (bool )wxConfig_Write(_arg0
,*_arg1
,*_arg2
);
1035 _resultobj
= Py_BuildValue("i",_result
);
1047 #define wxConfig_WriteInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1048 static PyObject
*_wrap_wxConfig_WriteInt(PyObject
*self
, PyObject
*args
) {
1049 PyObject
* _resultobj
;
1055 PyObject
* _obj1
= 0;
1058 if(!PyArg_ParseTuple(args
,"sOl:wxConfig_WriteInt",&_argc0
,&_obj1
,&_arg2
))
1061 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1062 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_WriteInt. Expected _wxConfig_p.");
1067 if (!PyString_Check(_obj1
)) {
1068 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1071 _arg1
= new wxString(PyString_AsString(_obj1
));
1073 _result
= (bool )wxConfig_WriteInt(_arg0
,*_arg1
,_arg2
);
1074 _resultobj
= Py_BuildValue("i",_result
);
1082 #define wxConfig_WriteFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1083 static PyObject
*_wrap_wxConfig_WriteFloat(PyObject
*self
, PyObject
*args
) {
1084 PyObject
* _resultobj
;
1090 PyObject
* _obj1
= 0;
1093 if(!PyArg_ParseTuple(args
,"sOd:wxConfig_WriteFloat",&_argc0
,&_obj1
,&_arg2
))
1096 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1097 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_WriteFloat. Expected _wxConfig_p.");
1102 if (!PyString_Check(_obj1
)) {
1103 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1106 _arg1
= new wxString(PyString_AsString(_obj1
));
1108 _result
= (bool )wxConfig_WriteFloat(_arg0
,*_arg1
,_arg2
);
1109 _resultobj
= Py_BuildValue("i",_result
);
1117 static PyMethodDef utilscMethods
[] = {
1118 { "wxConfig_WriteFloat", _wrap_wxConfig_WriteFloat
, 1 },
1119 { "wxConfig_WriteInt", _wrap_wxConfig_WriteInt
, 1 },
1120 { "wxConfig_Write", _wrap_wxConfig_Write
, 1 },
1121 { "wxConfig_SetVendorName", _wrap_wxConfig_SetVendorName
, 1 },
1122 { "wxConfig_SetRecordDefaults", _wrap_wxConfig_SetRecordDefaults
, 1 },
1123 { "wxConfig_SetPath", _wrap_wxConfig_SetPath
, 1 },
1124 { "wxConfig_SetExpandEnvVars", _wrap_wxConfig_SetExpandEnvVars
, 1 },
1125 { "wxConfig_SetAppName", _wrap_wxConfig_SetAppName
, 1 },
1126 { "wxConfig_ReadFloat", _wrap_wxConfig_ReadFloat
, 1 },
1127 { "wxConfig_ReadInt", _wrap_wxConfig_ReadInt
, 1 },
1128 { "wxConfig_Read", _wrap_wxConfig_Read
, 1 },
1129 { "wxConfig_IsRecordingDefaults", _wrap_wxConfig_IsRecordingDefaults
, 1 },
1130 { "wxConfig_IsExpandingEnvVars", _wrap_wxConfig_IsExpandingEnvVars
, 1 },
1131 { "wxConfig_HasGroup", _wrap_wxConfig_HasGroup
, 1 },
1132 { "wxConfig_HasEntry", _wrap_wxConfig_HasEntry
, 1 },
1133 { "wxConfig_GetVendorName", _wrap_wxConfig_GetVendorName
, 1 },
1134 { "wxConfig_GetPath", _wrap_wxConfig_GetPath
, 1 },
1135 { "wxConfig_GetNumberOfGroups", _wrap_wxConfig_GetNumberOfGroups
, 1 },
1136 { "wxConfig_GetNumberOfEntries", _wrap_wxConfig_GetNumberOfEntries
, 1 },
1137 { "wxConfig_GetNextEntry", _wrap_wxConfig_GetNextEntry
, 1 },
1138 { "wxConfig_GetNextGroup", _wrap_wxConfig_GetNextGroup
, 1 },
1139 { "wxConfig_GetFirstEntry", _wrap_wxConfig_GetFirstEntry
, 1 },
1140 { "wxConfig_GetFirstGroup", _wrap_wxConfig_GetFirstGroup
, 1 },
1141 { "wxConfig_GetAppName", _wrap_wxConfig_GetAppName
, 1 },
1142 { "wxConfig_Flush", _wrap_wxConfig_Flush
, 1 },
1143 { "wxConfig_Exists", _wrap_wxConfig_Exists
, 1 },
1144 { "wxConfig_DeleteGroup", _wrap_wxConfig_DeleteGroup
, 1 },
1145 { "wxConfig_DeleteEntry", _wrap_wxConfig_DeleteEntry
, 1 },
1146 { "wxConfig_DontCreateOnDemand", _wrap_wxConfig_DontCreateOnDemand
, 1 },
1147 { "delete_wxConfig", _wrap_delete_wxConfig
, 1 },
1148 { "new_wxConfig", _wrap_new_wxConfig
, 1 },
1151 static PyObject
*SWIG_globals
;
1155 SWIGEXPORT(void,initutilsc
)() {
1157 SWIG_globals
= SWIG_newvarlink();
1158 m
= Py_InitModule("utilsc", utilscMethods
);
1159 d
= PyModule_GetDict(m
);
1161 * These are the pointer type-equivalency mappings.
1162 * (Used by the SWIG pointer type-checker).
1164 SWIG_RegisterMapping("_signed_long","_long",0);
1165 SWIG_RegisterMapping("_long","_unsigned_long",0);
1166 SWIG_RegisterMapping("_long","_signed_long",0);
1167 SWIG_RegisterMapping("_wxConfig","_class_wxConfig",0);
1168 SWIG_RegisterMapping("_unsigned_long","_long",0);
1169 SWIG_RegisterMapping("_signed_int","_int",0);
1170 SWIG_RegisterMapping("_unsigned_short","_short",0);
1171 SWIG_RegisterMapping("_signed_short","_short",0);
1172 SWIG_RegisterMapping("_unsigned_int","_int",0);
1173 SWIG_RegisterMapping("_short","_unsigned_short",0);
1174 SWIG_RegisterMapping("_short","_signed_short",0);
1175 SWIG_RegisterMapping("_int","_unsigned_int",0);
1176 SWIG_RegisterMapping("_int","_signed_int",0);
1177 SWIG_RegisterMapping("_class_wxConfig","_wxConfig",0);