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
) {
63 } else if (target
== Py_None
) {
67 if (!PyList_Check(target
)) {
69 target
= PyList_New(0);
70 PyList_Append(target
, o2
);
73 PyList_Append(target
,o
);
79 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
85 } else if (target
== Py_None
) {
89 if (!PyTuple_Check(target
)) {
91 target
= PyTuple_New(1);
92 PyTuple_SetItem(target
, 0, o2
);
95 PyTuple_SetItem(o3
, 0, o
);
98 target
= PySequence_Concat(o2
, o3
);
106 extern byte
* byte_LIST_helper(PyObject
* source
);
107 extern int* int_LIST_helper(PyObject
* source
);
108 extern long* long_LIST_helper(PyObject
* source
);
109 extern char** string_LIST_helper(PyObject
* source
);
110 extern wxPoint
* wxPoint_LIST_helper(PyObject
* source
);
111 extern wxBitmap
** wxBitmap_LIST_helper(PyObject
* source
);
112 extern wxString
* wxString_LIST_helper(PyObject
* source
);
113 extern wxAcceleratorEntry
* wxAcceleratorEntry_LIST_helper(PyObject
* source
);
116 static char* wxStringErrorMsg
= "string type is required for parameter";
119 static wxString
wxPyEmptyStr("");
122 static PyObject
* __EnumerationHelper(bool flag
, wxString
& str
, long index
) {
123 PyObject
* ret
= PyTuple_New(3);
125 PyTuple_SET_ITEM(ret
, 0, PyInt_FromLong(flag
));
126 PyTuple_SET_ITEM(ret
, 1, PyString_FromString(str
));
127 PyTuple_SET_ITEM(ret
, 2, PyInt_FromLong(index
));
131 #define new_wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
132 static PyObject
*_wrap_new_wxConfig(PyObject
*self
, PyObject
*args
) {
133 PyObject
* _resultobj
;
135 wxString
* _arg0
= &wxPyEmptyStr
;
136 wxString
* _arg1
= &wxPyEmptyStr
;
137 wxString
* _arg2
= &wxPyEmptyStr
;
138 wxString
* _arg3
= &wxPyEmptyStr
;
140 PyObject
* _obj0
= 0;
141 PyObject
* _obj1
= 0;
142 PyObject
* _obj2
= 0;
143 PyObject
* _obj3
= 0;
147 if(!PyArg_ParseTuple(args
,"|OOOOl:new_wxConfig",&_obj0
,&_obj1
,&_obj2
,&_obj3
,&_arg4
))
151 if (!PyString_Check(_obj0
)) {
152 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
155 _arg0
= new wxString(PyString_AsString(_obj0
));
159 if (!PyString_Check(_obj1
)) {
160 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
163 _arg1
= new wxString(PyString_AsString(_obj1
));
167 if (!PyString_Check(_obj2
)) {
168 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
171 _arg2
= new wxString(PyString_AsString(_obj2
));
175 if (!PyString_Check(_obj3
)) {
176 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
179 _arg3
= new wxString(PyString_AsString(_obj3
));
181 _result
= (wxConfig
*)new_wxConfig(*_arg0
,*_arg1
,*_arg2
,*_arg3
,_arg4
);
182 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxConfig_p");
183 _resultobj
= Py_BuildValue("s",_ptemp
);
203 #define delete_wxConfig(_swigobj) (delete _swigobj)
204 static PyObject
*_wrap_delete_wxConfig(PyObject
*self
, PyObject
*args
) {
205 PyObject
* _resultobj
;
210 if(!PyArg_ParseTuple(args
,"s:delete_wxConfig",&_argc0
))
213 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
214 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxConfig. Expected _wxConfig_p.");
218 delete_wxConfig(_arg0
);
220 _resultobj
= Py_None
;
224 #define wxConfig_DontCreateOnDemand(_swigobj) (_swigobj->DontCreateOnDemand())
225 static PyObject
*_wrap_wxConfig_DontCreateOnDemand(PyObject
*self
, PyObject
*args
) {
226 PyObject
* _resultobj
;
231 if(!PyArg_ParseTuple(args
,"s:wxConfig_DontCreateOnDemand",&_argc0
))
234 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
235 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DontCreateOnDemand. Expected _wxConfig_p.");
239 wxConfig_DontCreateOnDemand(_arg0
);
241 _resultobj
= Py_None
;
245 #define wxConfig_DeleteAll(_swigobj) (_swigobj->DeleteAll())
246 static PyObject
*_wrap_wxConfig_DeleteAll(PyObject
*self
, PyObject
*args
) {
247 PyObject
* _resultobj
;
253 if(!PyArg_ParseTuple(args
,"s:wxConfig_DeleteAll",&_argc0
))
256 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
257 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteAll. Expected _wxConfig_p.");
261 _result
= (bool )wxConfig_DeleteAll(_arg0
);
262 _resultobj
= Py_BuildValue("i",_result
);
266 #define wxConfig_DeleteEntry(_swigobj,_swigarg0,_swigarg1) (_swigobj->DeleteEntry(_swigarg0,_swigarg1))
267 static PyObject
*_wrap_wxConfig_DeleteEntry(PyObject
*self
, PyObject
*args
) {
268 PyObject
* _resultobj
;
274 PyObject
* _obj1
= 0;
278 if(!PyArg_ParseTuple(args
,"sO|i:wxConfig_DeleteEntry",&_argc0
,&_obj1
,&tempbool2
))
281 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
282 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteEntry. Expected _wxConfig_p.");
287 if (!PyString_Check(_obj1
)) {
288 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
291 _arg1
= new wxString(PyString_AsString(_obj1
));
293 _arg2
= (bool ) tempbool2
;
294 _result
= (bool )wxConfig_DeleteEntry(_arg0
,*_arg1
,_arg2
);
295 _resultobj
= Py_BuildValue("i",_result
);
303 #define wxConfig_DeleteGroup(_swigobj,_swigarg0) (_swigobj->DeleteGroup(_swigarg0))
304 static PyObject
*_wrap_wxConfig_DeleteGroup(PyObject
*self
, PyObject
*args
) {
305 PyObject
* _resultobj
;
310 PyObject
* _obj1
= 0;
313 if(!PyArg_ParseTuple(args
,"sO:wxConfig_DeleteGroup",&_argc0
,&_obj1
))
316 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
317 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteGroup. Expected _wxConfig_p.");
322 if (!PyString_Check(_obj1
)) {
323 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
326 _arg1
= new wxString(PyString_AsString(_obj1
));
328 _result
= (bool )wxConfig_DeleteGroup(_arg0
,*_arg1
);
329 _resultobj
= Py_BuildValue("i",_result
);
337 #define wxConfig_Exists(_swigobj,_swigarg0) (_swigobj->Exists(_swigarg0))
338 static PyObject
*_wrap_wxConfig_Exists(PyObject
*self
, PyObject
*args
) {
339 PyObject
* _resultobj
;
344 PyObject
* _obj1
= 0;
347 if(!PyArg_ParseTuple(args
,"sO:wxConfig_Exists",&_argc0
,&_obj1
))
350 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
351 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Exists. Expected _wxConfig_p.");
356 if (!PyString_Check(_obj1
)) {
357 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
360 _arg1
= new wxString(PyString_AsString(_obj1
));
362 _result
= (bool )wxConfig_Exists(_arg0
,*_arg1
);
363 _resultobj
= Py_BuildValue("i",_result
);
371 #define wxConfig_Flush(_swigobj,_swigarg0) (_swigobj->Flush(_swigarg0))
372 static PyObject
*_wrap_wxConfig_Flush(PyObject
*self
, PyObject
*args
) {
373 PyObject
* _resultobj
;
381 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_Flush",&_argc0
,&tempbool1
))
384 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
385 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Flush. Expected _wxConfig_p.");
389 _arg1
= (bool ) tempbool1
;
390 _result
= (bool )wxConfig_Flush(_arg0
,_arg1
);
391 _resultobj
= Py_BuildValue("i",_result
);
395 #define wxConfig_GetAppName(_swigobj) (_swigobj->GetAppName())
396 static PyObject
*_wrap_wxConfig_GetAppName(PyObject
*self
, PyObject
*args
) {
397 PyObject
* _resultobj
;
403 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetAppName",&_argc0
))
406 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
407 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetAppName. Expected _wxConfig_p.");
411 _result
= new wxString (wxConfig_GetAppName(_arg0
));
413 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
421 static PyObject
* wxConfig_GetFirstGroup(wxConfig
*self
) {
426 cont
= self
->GetFirstGroup(value
, index
);
427 return __EnumerationHelper(cont
, value
, index
);
429 static PyObject
*_wrap_wxConfig_GetFirstGroup(PyObject
*self
, PyObject
*args
) {
430 PyObject
* _resultobj
;
436 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetFirstGroup",&_argc0
))
439 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
440 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetFirstGroup. Expected _wxConfig_p.");
444 _result
= (PyObject
*)wxConfig_GetFirstGroup(_arg0
);
446 _resultobj
= _result
;
451 static PyObject
* wxConfig_GetFirstEntry(wxConfig
*self
) {
456 cont
= self
->GetFirstEntry(value
, index
);
457 return __EnumerationHelper(cont
, value
, index
);
459 static PyObject
*_wrap_wxConfig_GetFirstEntry(PyObject
*self
, PyObject
*args
) {
460 PyObject
* _resultobj
;
466 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetFirstEntry",&_argc0
))
469 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
470 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetFirstEntry. Expected _wxConfig_p.");
474 _result
= (PyObject
*)wxConfig_GetFirstEntry(_arg0
);
476 _resultobj
= _result
;
481 static PyObject
* wxConfig_GetNextGroup(wxConfig
*self
,long index
) {
485 cont
= self
->GetNextGroup(value
, index
);
486 return __EnumerationHelper(cont
, value
, index
);
488 static PyObject
*_wrap_wxConfig_GetNextGroup(PyObject
*self
, PyObject
*args
) {
489 PyObject
* _resultobj
;
496 if(!PyArg_ParseTuple(args
,"sl:wxConfig_GetNextGroup",&_argc0
,&_arg1
))
499 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
500 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNextGroup. Expected _wxConfig_p.");
504 _result
= (PyObject
*)wxConfig_GetNextGroup(_arg0
,_arg1
);
506 _resultobj
= _result
;
511 static PyObject
* wxConfig_GetNextEntry(wxConfig
*self
,long index
) {
515 cont
= self
->GetNextEntry(value
, index
);
516 return __EnumerationHelper(cont
, value
, index
);
518 static PyObject
*_wrap_wxConfig_GetNextEntry(PyObject
*self
, PyObject
*args
) {
519 PyObject
* _resultobj
;
526 if(!PyArg_ParseTuple(args
,"sl:wxConfig_GetNextEntry",&_argc0
,&_arg1
))
529 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
530 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNextEntry. Expected _wxConfig_p.");
534 _result
= (PyObject
*)wxConfig_GetNextEntry(_arg0
,_arg1
);
536 _resultobj
= _result
;
541 #define wxConfig_GetNumberOfEntries(_swigobj,_swigarg0) (_swigobj->GetNumberOfEntries(_swigarg0))
542 static PyObject
*_wrap_wxConfig_GetNumberOfEntries(PyObject
*self
, PyObject
*args
) {
543 PyObject
* _resultobj
;
551 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_GetNumberOfEntries",&_argc0
,&tempbool1
))
554 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
555 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNumberOfEntries. Expected _wxConfig_p.");
559 _arg1
= (bool ) tempbool1
;
560 _result
= (int )wxConfig_GetNumberOfEntries(_arg0
,_arg1
);
561 _resultobj
= Py_BuildValue("i",_result
);
565 #define wxConfig_GetNumberOfGroups(_swigobj,_swigarg0) (_swigobj->GetNumberOfGroups(_swigarg0))
566 static PyObject
*_wrap_wxConfig_GetNumberOfGroups(PyObject
*self
, PyObject
*args
) {
567 PyObject
* _resultobj
;
575 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_GetNumberOfGroups",&_argc0
,&tempbool1
))
578 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
579 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNumberOfGroups. Expected _wxConfig_p.");
583 _arg1
= (bool ) tempbool1
;
584 _result
= (int )wxConfig_GetNumberOfGroups(_arg0
,_arg1
);
585 _resultobj
= Py_BuildValue("i",_result
);
589 #define wxConfig_GetPath(_swigobj) (_swigobj->GetPath())
590 static PyObject
*_wrap_wxConfig_GetPath(PyObject
*self
, PyObject
*args
) {
591 PyObject
* _resultobj
;
597 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetPath",&_argc0
))
600 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
601 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetPath. Expected _wxConfig_p.");
605 _result
= new wxString (wxConfig_GetPath(_arg0
));
607 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
615 #define wxConfig_GetVendorName(_swigobj) (_swigobj->GetVendorName())
616 static PyObject
*_wrap_wxConfig_GetVendorName(PyObject
*self
, PyObject
*args
) {
617 PyObject
* _resultobj
;
623 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetVendorName",&_argc0
))
626 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
627 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetVendorName. Expected _wxConfig_p.");
631 _result
= new wxString (wxConfig_GetVendorName(_arg0
));
633 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
641 #define wxConfig_HasEntry(_swigobj,_swigarg0) (_swigobj->HasEntry(_swigarg0))
642 static PyObject
*_wrap_wxConfig_HasEntry(PyObject
*self
, PyObject
*args
) {
643 PyObject
* _resultobj
;
648 PyObject
* _obj1
= 0;
651 if(!PyArg_ParseTuple(args
,"sO:wxConfig_HasEntry",&_argc0
,&_obj1
))
654 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
655 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_HasEntry. Expected _wxConfig_p.");
660 if (!PyString_Check(_obj1
)) {
661 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
664 _arg1
= new wxString(PyString_AsString(_obj1
));
666 _result
= (bool )wxConfig_HasEntry(_arg0
,*_arg1
);
667 _resultobj
= Py_BuildValue("i",_result
);
675 #define wxConfig_HasGroup(_swigobj,_swigarg0) (_swigobj->HasGroup(_swigarg0))
676 static PyObject
*_wrap_wxConfig_HasGroup(PyObject
*self
, PyObject
*args
) {
677 PyObject
* _resultobj
;
682 PyObject
* _obj1
= 0;
685 if(!PyArg_ParseTuple(args
,"sO:wxConfig_HasGroup",&_argc0
,&_obj1
))
688 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
689 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_HasGroup. Expected _wxConfig_p.");
694 if (!PyString_Check(_obj1
)) {
695 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
698 _arg1
= new wxString(PyString_AsString(_obj1
));
700 _result
= (bool )wxConfig_HasGroup(_arg0
,*_arg1
);
701 _resultobj
= Py_BuildValue("i",_result
);
709 #define wxConfig_IsExpandingEnvVars(_swigobj) (_swigobj->IsExpandingEnvVars())
710 static PyObject
*_wrap_wxConfig_IsExpandingEnvVars(PyObject
*self
, PyObject
*args
) {
711 PyObject
* _resultobj
;
717 if(!PyArg_ParseTuple(args
,"s:wxConfig_IsExpandingEnvVars",&_argc0
))
720 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
721 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_IsExpandingEnvVars. Expected _wxConfig_p.");
725 _result
= (bool )wxConfig_IsExpandingEnvVars(_arg0
);
726 _resultobj
= Py_BuildValue("i",_result
);
730 #define wxConfig_IsRecordingDefaults(_swigobj) (_swigobj->IsRecordingDefaults())
731 static PyObject
*_wrap_wxConfig_IsRecordingDefaults(PyObject
*self
, PyObject
*args
) {
732 PyObject
* _resultobj
;
738 if(!PyArg_ParseTuple(args
,"s:wxConfig_IsRecordingDefaults",&_argc0
))
741 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
742 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_IsRecordingDefaults. Expected _wxConfig_p.");
746 _result
= (bool )wxConfig_IsRecordingDefaults(_arg0
);
747 _resultobj
= Py_BuildValue("i",_result
);
751 #define wxConfig_Read(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
752 static PyObject
*_wrap_wxConfig_Read(PyObject
*self
, PyObject
*args
) {
753 PyObject
* _resultobj
;
757 wxString
* _arg2
= &wxPyEmptyStr
;
759 PyObject
* _obj1
= 0;
760 PyObject
* _obj2
= 0;
763 if(!PyArg_ParseTuple(args
,"sO|O:wxConfig_Read",&_argc0
,&_obj1
,&_obj2
))
766 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
767 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Read. Expected _wxConfig_p.");
772 if (!PyString_Check(_obj1
)) {
773 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
776 _arg1
= new wxString(PyString_AsString(_obj1
));
780 if (!PyString_Check(_obj2
)) {
781 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
784 _arg2
= new wxString(PyString_AsString(_obj2
));
786 _result
= new wxString (wxConfig_Read(_arg0
,*_arg1
,*_arg2
));
788 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
804 #define wxConfig_ReadInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
805 static PyObject
*_wrap_wxConfig_ReadInt(PyObject
*self
, PyObject
*args
) {
806 PyObject
* _resultobj
;
812 PyObject
* _obj1
= 0;
815 if(!PyArg_ParseTuple(args
,"sO|l:wxConfig_ReadInt",&_argc0
,&_obj1
,&_arg2
))
818 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
819 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_ReadInt. Expected _wxConfig_p.");
824 if (!PyString_Check(_obj1
)) {
825 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
828 _arg1
= new wxString(PyString_AsString(_obj1
));
830 _result
= (long )wxConfig_ReadInt(_arg0
,*_arg1
,_arg2
);
831 _resultobj
= Py_BuildValue("l",_result
);
839 #define wxConfig_ReadFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
840 static PyObject
*_wrap_wxConfig_ReadFloat(PyObject
*self
, PyObject
*args
) {
841 PyObject
* _resultobj
;
847 PyObject
* _obj1
= 0;
850 if(!PyArg_ParseTuple(args
,"sO|d:wxConfig_ReadFloat",&_argc0
,&_obj1
,&_arg2
))
853 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
854 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_ReadFloat. Expected _wxConfig_p.");
859 if (!PyString_Check(_obj1
)) {
860 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
863 _arg1
= new wxString(PyString_AsString(_obj1
));
865 _result
= (double )wxConfig_ReadFloat(_arg0
,*_arg1
,_arg2
);
866 _resultobj
= Py_BuildValue("d",_result
);
874 #define wxConfig_SetAppName(_swigobj,_swigarg0) (_swigobj->SetAppName(_swigarg0))
875 static PyObject
*_wrap_wxConfig_SetAppName(PyObject
*self
, PyObject
*args
) {
876 PyObject
* _resultobj
;
880 PyObject
* _obj1
= 0;
883 if(!PyArg_ParseTuple(args
,"sO:wxConfig_SetAppName",&_argc0
,&_obj1
))
886 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
887 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetAppName. Expected _wxConfig_p.");
892 if (!PyString_Check(_obj1
)) {
893 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
896 _arg1
= new wxString(PyString_AsString(_obj1
));
898 wxConfig_SetAppName(_arg0
,*_arg1
);
900 _resultobj
= Py_None
;
908 #define wxConfig_SetExpandEnvVars(_swigobj,_swigarg0) (_swigobj->SetExpandEnvVars(_swigarg0))
909 static PyObject
*_wrap_wxConfig_SetExpandEnvVars(PyObject
*self
, PyObject
*args
) {
910 PyObject
* _resultobj
;
917 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_SetExpandEnvVars",&_argc0
,&tempbool1
))
920 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
921 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetExpandEnvVars. Expected _wxConfig_p.");
925 _arg1
= (bool ) tempbool1
;
926 wxConfig_SetExpandEnvVars(_arg0
,_arg1
);
928 _resultobj
= Py_None
;
932 #define wxConfig_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0))
933 static PyObject
*_wrap_wxConfig_SetPath(PyObject
*self
, PyObject
*args
) {
934 PyObject
* _resultobj
;
938 PyObject
* _obj1
= 0;
941 if(!PyArg_ParseTuple(args
,"sO:wxConfig_SetPath",&_argc0
,&_obj1
))
944 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
945 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetPath. Expected _wxConfig_p.");
950 if (!PyString_Check(_obj1
)) {
951 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
954 _arg1
= new wxString(PyString_AsString(_obj1
));
956 wxConfig_SetPath(_arg0
,*_arg1
);
958 _resultobj
= Py_None
;
966 #define wxConfig_SetRecordDefaults(_swigobj,_swigarg0) (_swigobj->SetRecordDefaults(_swigarg0))
967 static PyObject
*_wrap_wxConfig_SetRecordDefaults(PyObject
*self
, PyObject
*args
) {
968 PyObject
* _resultobj
;
975 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_SetRecordDefaults",&_argc0
,&tempbool1
))
978 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
979 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetRecordDefaults. Expected _wxConfig_p.");
983 _arg1
= (bool ) tempbool1
;
984 wxConfig_SetRecordDefaults(_arg0
,_arg1
);
986 _resultobj
= Py_None
;
990 #define wxConfig_SetVendorName(_swigobj,_swigarg0) (_swigobj->SetVendorName(_swigarg0))
991 static PyObject
*_wrap_wxConfig_SetVendorName(PyObject
*self
, PyObject
*args
) {
992 PyObject
* _resultobj
;
996 PyObject
* _obj1
= 0;
999 if(!PyArg_ParseTuple(args
,"sO:wxConfig_SetVendorName",&_argc0
,&_obj1
))
1002 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1003 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetVendorName. Expected _wxConfig_p.");
1008 if (!PyString_Check(_obj1
)) {
1009 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1012 _arg1
= new wxString(PyString_AsString(_obj1
));
1014 wxConfig_SetVendorName(_arg0
,*_arg1
);
1016 _resultobj
= Py_None
;
1024 #define wxConfig_Write(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1025 static PyObject
*_wrap_wxConfig_Write(PyObject
*self
, PyObject
*args
) {
1026 PyObject
* _resultobj
;
1032 PyObject
* _obj1
= 0;
1033 PyObject
* _obj2
= 0;
1036 if(!PyArg_ParseTuple(args
,"sOO:wxConfig_Write",&_argc0
,&_obj1
,&_obj2
))
1039 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1040 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Write. Expected _wxConfig_p.");
1045 if (!PyString_Check(_obj1
)) {
1046 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1049 _arg1
= new wxString(PyString_AsString(_obj1
));
1052 if (!PyString_Check(_obj2
)) {
1053 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1056 _arg2
= new wxString(PyString_AsString(_obj2
));
1058 _result
= (bool )wxConfig_Write(_arg0
,*_arg1
,*_arg2
);
1059 _resultobj
= Py_BuildValue("i",_result
);
1071 #define wxConfig_WriteInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1072 static PyObject
*_wrap_wxConfig_WriteInt(PyObject
*self
, PyObject
*args
) {
1073 PyObject
* _resultobj
;
1079 PyObject
* _obj1
= 0;
1082 if(!PyArg_ParseTuple(args
,"sOl:wxConfig_WriteInt",&_argc0
,&_obj1
,&_arg2
))
1085 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1086 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_WriteInt. Expected _wxConfig_p.");
1091 if (!PyString_Check(_obj1
)) {
1092 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1095 _arg1
= new wxString(PyString_AsString(_obj1
));
1097 _result
= (bool )wxConfig_WriteInt(_arg0
,*_arg1
,_arg2
);
1098 _resultobj
= Py_BuildValue("i",_result
);
1106 #define wxConfig_WriteFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1107 static PyObject
*_wrap_wxConfig_WriteFloat(PyObject
*self
, PyObject
*args
) {
1108 PyObject
* _resultobj
;
1114 PyObject
* _obj1
= 0;
1117 if(!PyArg_ParseTuple(args
,"sOd:wxConfig_WriteFloat",&_argc0
,&_obj1
,&_arg2
))
1120 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1121 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_WriteFloat. Expected _wxConfig_p.");
1126 if (!PyString_Check(_obj1
)) {
1127 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1130 _arg1
= new wxString(PyString_AsString(_obj1
));
1132 _result
= (bool )wxConfig_WriteFloat(_arg0
,*_arg1
,_arg2
);
1133 _resultobj
= Py_BuildValue("i",_result
);
1141 static PyMethodDef utilscMethods
[] = {
1142 { "wxConfig_WriteFloat", _wrap_wxConfig_WriteFloat
, 1 },
1143 { "wxConfig_WriteInt", _wrap_wxConfig_WriteInt
, 1 },
1144 { "wxConfig_Write", _wrap_wxConfig_Write
, 1 },
1145 { "wxConfig_SetVendorName", _wrap_wxConfig_SetVendorName
, 1 },
1146 { "wxConfig_SetRecordDefaults", _wrap_wxConfig_SetRecordDefaults
, 1 },
1147 { "wxConfig_SetPath", _wrap_wxConfig_SetPath
, 1 },
1148 { "wxConfig_SetExpandEnvVars", _wrap_wxConfig_SetExpandEnvVars
, 1 },
1149 { "wxConfig_SetAppName", _wrap_wxConfig_SetAppName
, 1 },
1150 { "wxConfig_ReadFloat", _wrap_wxConfig_ReadFloat
, 1 },
1151 { "wxConfig_ReadInt", _wrap_wxConfig_ReadInt
, 1 },
1152 { "wxConfig_Read", _wrap_wxConfig_Read
, 1 },
1153 { "wxConfig_IsRecordingDefaults", _wrap_wxConfig_IsRecordingDefaults
, 1 },
1154 { "wxConfig_IsExpandingEnvVars", _wrap_wxConfig_IsExpandingEnvVars
, 1 },
1155 { "wxConfig_HasGroup", _wrap_wxConfig_HasGroup
, 1 },
1156 { "wxConfig_HasEntry", _wrap_wxConfig_HasEntry
, 1 },
1157 { "wxConfig_GetVendorName", _wrap_wxConfig_GetVendorName
, 1 },
1158 { "wxConfig_GetPath", _wrap_wxConfig_GetPath
, 1 },
1159 { "wxConfig_GetNumberOfGroups", _wrap_wxConfig_GetNumberOfGroups
, 1 },
1160 { "wxConfig_GetNumberOfEntries", _wrap_wxConfig_GetNumberOfEntries
, 1 },
1161 { "wxConfig_GetNextEntry", _wrap_wxConfig_GetNextEntry
, 1 },
1162 { "wxConfig_GetNextGroup", _wrap_wxConfig_GetNextGroup
, 1 },
1163 { "wxConfig_GetFirstEntry", _wrap_wxConfig_GetFirstEntry
, 1 },
1164 { "wxConfig_GetFirstGroup", _wrap_wxConfig_GetFirstGroup
, 1 },
1165 { "wxConfig_GetAppName", _wrap_wxConfig_GetAppName
, 1 },
1166 { "wxConfig_Flush", _wrap_wxConfig_Flush
, 1 },
1167 { "wxConfig_Exists", _wrap_wxConfig_Exists
, 1 },
1168 { "wxConfig_DeleteGroup", _wrap_wxConfig_DeleteGroup
, 1 },
1169 { "wxConfig_DeleteEntry", _wrap_wxConfig_DeleteEntry
, 1 },
1170 { "wxConfig_DeleteAll", _wrap_wxConfig_DeleteAll
, 1 },
1171 { "wxConfig_DontCreateOnDemand", _wrap_wxConfig_DontCreateOnDemand
, 1 },
1172 { "delete_wxConfig", _wrap_delete_wxConfig
, 1 },
1173 { "new_wxConfig", _wrap_new_wxConfig
, 1 },
1176 static PyObject
*SWIG_globals
;
1180 SWIGEXPORT(void,initutilsc
)() {
1182 SWIG_globals
= SWIG_newvarlink();
1183 m
= Py_InitModule("utilsc", utilscMethods
);
1184 d
= PyModule_GetDict(m
);
1186 * These are the pointer type-equivalency mappings.
1187 * (Used by the SWIG pointer type-checker).
1189 SWIG_RegisterMapping("_signed_long","_long",0);
1190 SWIG_RegisterMapping("_long","_unsigned_long",0);
1191 SWIG_RegisterMapping("_long","_signed_long",0);
1192 SWIG_RegisterMapping("_wxConfig","_class_wxConfig",0);
1193 SWIG_RegisterMapping("_unsigned_long","_long",0);
1194 SWIG_RegisterMapping("_signed_int","_int",0);
1195 SWIG_RegisterMapping("_unsigned_short","_short",0);
1196 SWIG_RegisterMapping("_signed_short","_short",0);
1197 SWIG_RegisterMapping("_unsigned_int","_int",0);
1198 SWIG_RegisterMapping("_short","_unsigned_short",0);
1199 SWIG_RegisterMapping("_short","_signed_short",0);
1200 SWIG_RegisterMapping("_int","_unsigned_int",0);
1201 SWIG_RegisterMapping("_int","_signed_int",0);
1202 SWIG_RegisterMapping("_class_wxConfig","_wxConfig",0);