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 /***********************************************************************
26 * swig_lib/python/python.cfg
28 * This file contains coded needed to add variable linking to the
29 * Python interpreter. C variables are added as a new kind of Python
32 * Also contains supporting code for building python under Windows
33 * and things like that.
36 * Revision 1.6 1999/06/22 07:03:28 RD
37 * wxPython 2.1b1 for wxMSW (wxGTK coming soon)
38 * Lots of changes, see the README.txt for details...
40 ************************************************************************/
50 /* Definitions for Windows/Unix exporting */
51 #if defined(__WIN32__)
52 # if defined(_MSC_VER)
53 # define SWIGEXPORT(a,b) __declspec(dllexport) a b
55 # if defined(__BORLANDC__)
56 # define SWIGEXPORT(a,b) a _export b
58 # define SWIGEXPORT(a,b) a b
62 # define SWIGEXPORT(a,b) a b
67 #define SWIGSTATIC extern "C"
74 #define SWIGSTATIC static
79 PyObject
*(*get_attr
)(void);
80 int (*set_attr
)(PyObject
*);
83 typedef struct swig_varlinkobject
{
85 swig_globalvar
**vars
;
90 /* ----------------------------------------------------------------------
93 Function for python repr method
94 ---------------------------------------------------------------------- */
97 swig_varlink_repr(swig_varlinkobject
*v
)
100 return PyString_FromString("<Global variables>");
103 /* ---------------------------------------------------------------------
106 Print out all of the global variable names
107 --------------------------------------------------------------------- */
110 swig_varlink_print(swig_varlinkobject
*v
, FILE *fp
, int flags
)
115 fprintf(fp
,"Global variables { ");
117 fprintf(fp
,"%s", v
->vars
[i
]->name
);
119 if (v
->vars
[i
]) fprintf(fp
,", ");
125 /* --------------------------------------------------------------------
128 This function gets the value of a variable and returns it as a
129 PyObject. In our case, we'll be looking at the datatype and
130 converting into a number or string
131 -------------------------------------------------------------------- */
134 swig_varlink_getattr(swig_varlinkobject
*v
, char *n
)
140 if (strcmp(v
->vars
[i
]->name
,n
) == 0) {
141 return (*v
->vars
[i
]->get_attr
)();
145 sprintf(temp
,"C global variable %s not found.", n
);
146 PyErr_SetString(PyExc_NameError
,temp
);
150 /* -------------------------------------------------------------------
151 swig_varlink_setattr()
153 This function sets the value of a variable.
154 ------------------------------------------------------------------- */
157 swig_varlink_setattr(swig_varlinkobject
*v
, char *n
, PyObject
*p
)
162 if (strcmp(v
->vars
[i
]->name
,n
) == 0) {
163 return (*v
->vars
[i
]->set_attr
)(p
);
167 sprintf(temp
,"C global variable %s not found.", n
);
168 PyErr_SetString(PyExc_NameError
,temp
);
172 statichere PyTypeObject varlinktype
= {
173 /* PyObject_HEAD_INIT(&PyType_Type) Note : This doesn't work on some machines */
174 PyObject_HEAD_INIT(0)
176 "varlink", /* Type name */
177 sizeof(swig_varlinkobject
), /* Basic size */
180 (printfunc
) swig_varlink_print
, /* Print */
181 (getattrfunc
) swig_varlink_getattr
, /* get attr */
182 (setattrfunc
) swig_varlink_setattr
, /* Set attr */
184 (reprfunc
) swig_varlink_repr
, /* tp_repr */
185 0, /* tp_as_number */
186 0, /* tp_as_mapping*/
190 /* Create a variable linking object for use later */
192 SWIGSTATIC PyObject
*
193 SWIG_newvarlink(void)
195 swig_varlinkobject
*result
= 0;
196 result
= PyMem_NEW(swig_varlinkobject
,1);
197 varlinktype
.ob_type
= &PyType_Type
; /* Patch varlinktype into a PyType */
198 result
->ob_type
= &varlinktype
;
199 /* _Py_NewReference(result); Does not seem to be necessary */
201 result
->maxvars
= 64;
202 result
->vars
= (swig_globalvar
**) malloc(64*sizeof(swig_globalvar
*));
204 result
->ob_refcnt
= 0;
205 Py_XINCREF((PyObject
*) result
);
206 return ((PyObject
*) result
);
210 SWIG_addvarlink(PyObject
*p
, char *name
,
211 PyObject
*(*get_attr
)(void), int (*set_attr
)(PyObject
*p
))
213 swig_varlinkobject
*v
;
214 v
= (swig_varlinkobject
*) p
;
216 if (v
->nvars
>= v
->maxvars
-1) {
217 v
->maxvars
= 2*v
->maxvars
;
218 v
->vars
= (swig_globalvar
**) realloc(v
->vars
,v
->maxvars
*sizeof(swig_globalvar
*));
219 if (v
->vars
== NULL
) {
220 fprintf(stderr
,"SWIG : Fatal error in initializing Python module.\n");
224 v
->vars
[v
->nvars
] = (swig_globalvar
*) malloc(sizeof(swig_globalvar
));
225 v
->vars
[v
->nvars
]->name
= (char *) malloc(strlen(name
)+1);
226 strcpy(v
->vars
[v
->nvars
]->name
,name
);
227 v
->vars
[v
->nvars
]->get_attr
= get_attr
;
228 v
->vars
[v
->nvars
]->set_attr
= set_attr
;
230 v
->vars
[v
->nvars
] = 0;
235 /*****************************************************************************
240 * This file contains supporting code for the SWIG run-time type checking
241 * mechanism. The following functions are available :
243 * SWIG_RegisterMapping(char *origtype, char *newtype, void *(*cast)(void *));
245 * Registers a new type-mapping with the type-checker. origtype is the
246 * original datatype and newtype is an equivalent type. cast is optional
247 * pointer to a function to cast pointer values between types (this
248 * is typically used to cast pointers from derived classes to base classes in C++)
250 * SWIG_MakePtr(char *buffer, void *ptr, char *typestring);
252 * Makes a pointer string from a pointer and typestring. The result is returned
253 * in buffer which is assumed to hold enough space for the result.
255 * char * SWIG_GetPtr(char *buffer, void **ptr, char *type)
257 * Gets a pointer value from a string. If there is a type-mismatch, returns
258 * a character string to the received type. On success, returns NULL.
261 * You can remap these functions by making a file called "swigptr.swg" in
262 * your the same directory as the interface file you are wrapping.
264 * These functions are normally declared static, but this file can be
265 * can be used in a multi-module environment by redefining the symbol
267 *****************************************************************************/
273 #define SWIGSTATIC extern "C"
280 #define SWIGSTATIC static
284 /* SWIG pointer structure */
286 typedef struct SwigPtrType
{
287 char *name
; /* Datatype name */
288 int len
; /* Length (used for optimization) */
289 void *(*cast
)(void *); /* Pointer casting function */
290 struct SwigPtrType
*next
; /* Linked list pointer */
293 /* Pointer cache structure */
296 int stat
; /* Status (valid) bit */
297 SwigPtrType
*tp
; /* Pointer to type structure */
298 char name
[256]; /* Given datatype name */
299 char mapped
[256]; /* Equivalent name */
304 static int SwigPtrMax
= 64; /* Max entries that can be currently held */
305 /* This value may be adjusted dynamically */
306 static int SwigPtrN
= 0; /* Current number of entries */
307 static int SwigPtrSort
= 0; /* Status flag indicating sort */
308 static int SwigStart
[256]; /* Starting positions of types */
311 static SwigPtrType
*SwigPtrTable
= 0; /* Table containing pointer equivalences */
315 #define SWIG_CACHESIZE 8
316 #define SWIG_CACHEMASK 0x7
317 static SwigCacheType SwigCache
[SWIG_CACHESIZE
];
318 static int SwigCacheIndex
= 0;
319 static int SwigLastCache
= 0;
321 /* Sort comparison function */
322 static int swigsort(const void *data1
, const void *data2
) {
323 SwigPtrType
*d1
= (SwigPtrType
*) data1
;
324 SwigPtrType
*d2
= (SwigPtrType
*) data2
;
325 return strcmp(d1
->name
,d2
->name
);
328 /* Binary Search function */
329 static int swigcmp(const void *key
, const void *data
) {
330 char *k
= (char *) key
;
331 SwigPtrType
*d
= (SwigPtrType
*) data
;
332 return strncmp(k
,d
->name
,d
->len
);
335 /* Register a new datatype with the type-checker */
338 void SWIG_RegisterMapping(char *origtype
, char *newtype
, void *(*cast
)(void *)) {
341 SwigPtrType
*t
= 0,*t1
;
343 /* Allocate the pointer table if necessary */
346 SwigPtrTable
= (SwigPtrType
*) malloc(SwigPtrMax
*sizeof(SwigPtrType
));
350 if (SwigPtrN
>= SwigPtrMax
) {
351 SwigPtrMax
= 2*SwigPtrMax
;
352 SwigPtrTable
= (SwigPtrType
*) realloc((char *) SwigPtrTable
,SwigPtrMax
*sizeof(SwigPtrType
));
354 for (i
= 0; i
< SwigPtrN
; i
++)
355 if (strcmp(SwigPtrTable
[i
].name
,origtype
) == 0) {
356 t
= &SwigPtrTable
[i
];
360 t
= &SwigPtrTable
[SwigPtrN
];
362 t
->len
= strlen(t
->name
);
368 /* Check for existing entry */
371 if ((strcmp(t
->name
,newtype
) == 0)) {
372 if (cast
) t
->cast
= cast
;
378 /* Now place entry (in sorted order) */
380 t1
= (SwigPtrType
*) malloc(sizeof(SwigPtrType
));
382 t1
->len
= strlen(t1
->name
);
389 /* Make a pointer value string */
392 void SWIG_MakePtr(char *_c
, const void *_ptr
, char *type
) {
393 static char _hex
[16] =
394 {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
395 'a', 'b', 'c', 'd', 'e', 'f'};
396 unsigned long _p
, _s
;
397 char _result
[20], *_r
; /* Note : a 64-bit hex number = 16 digits */
399 _p
= (unsigned long) _ptr
;
407 while (_r
>= _result
)
416 /* Define for backwards compatibility */
418 #define _swig_make_hex SWIG_MakePtr
420 /* Function for getting a pointer value */
423 char *SWIG_GetPtr(char *_c
, void **ptr
, char *_t
)
430 SwigCacheType
*cache
;
434 /* Pointer values must start with leading underscore */
437 /* Extract hex value from pointer */
439 if ((*_c
>= '0') && (*_c
<= '9'))
440 _p
= (_p
<< 4) + (*_c
- '0');
441 else if ((*_c
>= 'a') && (*_c
<= 'f'))
442 _p
= (_p
<< 4) + ((*_c
- 'a') + 10);
451 qsort((void *) SwigPtrTable
, SwigPtrN
, sizeof(SwigPtrType
), swigsort
);
452 for (i
= 0; i
< 256; i
++) {
453 SwigStart
[i
] = SwigPtrN
;
455 for (i
= SwigPtrN
-1; i
>= 0; i
--) {
456 SwigStart
[(int) (SwigPtrTable
[i
].name
[1])] = i
;
458 for (i
= 255; i
>= 1; i
--) {
459 if (SwigStart
[i
-1] > SwigStart
[i
])
460 SwigStart
[i
-1] = SwigStart
[i
];
463 for (i
= 0; i
< SWIG_CACHESIZE
; i
++)
464 SwigCache
[i
].stat
= 0;
467 /* First check cache for matches. Uses last cache value as starting point */
468 cache
= &SwigCache
[SwigLastCache
];
469 for (i
= 0; i
< SWIG_CACHESIZE
; i
++) {
471 if (strcmp(_t
,cache
->name
) == 0) {
472 if (strcmp(_c
,cache
->mapped
) == 0) {
475 if (cache
->tp
->cast
) *ptr
= (*(cache
->tp
->cast
))(*ptr
);
480 SwigLastCache
= (SwigLastCache
+1) & SWIG_CACHEMASK
;
481 if (!SwigLastCache
) cache
= SwigCache
;
484 /* We have a type mismatch. Will have to look through our type
485 mapping table to figure out whether or not we can accept this datatype */
487 start
= SwigStart
[(int) _t
[1]];
488 end
= SwigStart
[(int) _t
[1]+1];
489 sp
= &SwigPtrTable
[start
];
490 while (start
< end
) {
491 if (swigcmp(_t
,sp
) == 0) break;
495 if (start
>= end
) sp
= 0;
496 /* Try to find a match for this */
498 while (swigcmp(_t
,sp
) == 0) {
502 /* Try to find entry for our given datatype */
504 if (tp
->len
>= 255) {
507 strcpy(temp_type
,tp
->name
);
508 strncat(temp_type
,_t
+len
,255-tp
->len
);
509 if (strcmp(_c
,temp_type
) == 0) {
511 strcpy(SwigCache
[SwigCacheIndex
].mapped
,_c
);
512 strcpy(SwigCache
[SwigCacheIndex
].name
,_t
);
513 SwigCache
[SwigCacheIndex
].stat
= 1;
514 SwigCache
[SwigCacheIndex
].tp
= tp
;
515 SwigCacheIndex
= SwigCacheIndex
& SWIG_CACHEMASK
;
517 /* Get pointer value */
519 if (tp
->cast
) *ptr
= (*(tp
->cast
))(*ptr
);
525 /* Hmmm. Didn't find it this time */
528 /* Didn't find any sort of match for this data.
529 Get the pointer value and return the received type */
533 /* Found a match on the first try. Return pointer value */
538 /* No type specified. Good luck */
543 if (strcmp (_c
, "NULL") == 0) {
552 /* Compatibility mode */
554 #define _swig_get_hex SWIG_GetPtr
556 #define SWIG_init initutilsc
558 #define SWIG_name "utilsc"
561 #include <wx/config.h>
563 static PyObject
* l_output_helper(PyObject
* target
, PyObject
* o
) {
567 } else if (target
== Py_None
) {
571 if (!PyList_Check(target
)) {
573 target
= PyList_New(0);
574 PyList_Append(target
, o2
);
577 PyList_Append(target
,o
);
583 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
589 } else if (target
== Py_None
) {
593 if (!PyTuple_Check(target
)) {
595 target
= PyTuple_New(1);
596 PyTuple_SetItem(target
, 0, o2
);
599 PyTuple_SetItem(o3
, 0, o
);
602 target
= PySequence_Concat(o2
, o3
);
610 extern byte
* byte_LIST_helper(PyObject
* source
);
611 extern int* int_LIST_helper(PyObject
* source
);
612 extern long* long_LIST_helper(PyObject
* source
);
613 extern char** string_LIST_helper(PyObject
* source
);
614 extern wxPoint
* wxPoint_LIST_helper(PyObject
* source
);
615 extern wxBitmap
** wxBitmap_LIST_helper(PyObject
* source
);
616 extern wxString
* wxString_LIST_helper(PyObject
* source
);
617 extern wxAcceleratorEntry
* wxAcceleratorEntry_LIST_helper(PyObject
* source
);
620 static char* wxStringErrorMsg
= "string type is required for parameter";
623 wxString
wxPyEmptyStr("");
626 static PyObject
* __EnumerationHelper(bool flag
, wxString
& str
, long index
) {
627 PyObject
* ret
= PyTuple_New(3);
629 PyTuple_SET_ITEM(ret
, 0, PyInt_FromLong(flag
));
630 PyTuple_SET_ITEM(ret
, 1, PyString_FromString(str
));
631 PyTuple_SET_ITEM(ret
, 2, PyInt_FromLong(index
));
635 #define new_wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
636 static PyObject
*_wrap_new_wxConfig(PyObject
*self
, PyObject
*args
) {
637 PyObject
* _resultobj
;
639 wxString
* _arg0
= &wxPyEmptyStr
;
640 wxString
* _arg1
= &wxPyEmptyStr
;
641 wxString
* _arg2
= &wxPyEmptyStr
;
642 wxString
* _arg3
= &wxPyEmptyStr
;
644 PyObject
* _obj0
= 0;
645 PyObject
* _obj1
= 0;
646 PyObject
* _obj2
= 0;
647 PyObject
* _obj3
= 0;
651 if(!PyArg_ParseTuple(args
,"|OOOOl:new_wxConfig",&_obj0
,&_obj1
,&_obj2
,&_obj3
,&_arg4
))
655 if (!PyString_Check(_obj0
)) {
656 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
659 _arg0
= new wxString(PyString_AsString(_obj0
), PyString_Size(_obj0
));
663 if (!PyString_Check(_obj1
)) {
664 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
667 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
671 if (!PyString_Check(_obj2
)) {
672 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
675 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
679 if (!PyString_Check(_obj3
)) {
680 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
683 _arg3
= new wxString(PyString_AsString(_obj3
), PyString_Size(_obj3
));
686 wxPy_BEGIN_ALLOW_THREADS
;
687 _result
= (wxConfig
*)new_wxConfig(*_arg0
,*_arg1
,*_arg2
,*_arg3
,_arg4
);
689 wxPy_END_ALLOW_THREADS
;
690 } SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxConfig_p");
691 _resultobj
= Py_BuildValue("s",_ptemp
);
711 #define delete_wxConfig(_swigobj) (delete _swigobj)
712 static PyObject
*_wrap_delete_wxConfig(PyObject
*self
, PyObject
*args
) {
713 PyObject
* _resultobj
;
718 if(!PyArg_ParseTuple(args
,"s:delete_wxConfig",&_argc0
))
721 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
722 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxConfig. Expected _wxConfig_p.");
727 wxPy_BEGIN_ALLOW_THREADS
;
728 delete_wxConfig(_arg0
);
730 wxPy_END_ALLOW_THREADS
;
731 } Py_INCREF(Py_None
);
732 _resultobj
= Py_None
;
736 #define wxConfig_DontCreateOnDemand(_swigobj) (_swigobj->DontCreateOnDemand())
737 static PyObject
*_wrap_wxConfig_DontCreateOnDemand(PyObject
*self
, PyObject
*args
) {
738 PyObject
* _resultobj
;
743 if(!PyArg_ParseTuple(args
,"s:wxConfig_DontCreateOnDemand",&_argc0
))
746 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
747 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DontCreateOnDemand. Expected _wxConfig_p.");
752 wxPy_BEGIN_ALLOW_THREADS
;
753 wxConfig_DontCreateOnDemand(_arg0
);
755 wxPy_END_ALLOW_THREADS
;
756 } Py_INCREF(Py_None
);
757 _resultobj
= Py_None
;
761 #define wxConfig_DeleteAll(_swigobj) (_swigobj->DeleteAll())
762 static PyObject
*_wrap_wxConfig_DeleteAll(PyObject
*self
, PyObject
*args
) {
763 PyObject
* _resultobj
;
769 if(!PyArg_ParseTuple(args
,"s:wxConfig_DeleteAll",&_argc0
))
772 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
773 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteAll. Expected _wxConfig_p.");
778 wxPy_BEGIN_ALLOW_THREADS
;
779 _result
= (bool )wxConfig_DeleteAll(_arg0
);
781 wxPy_END_ALLOW_THREADS
;
782 } _resultobj
= Py_BuildValue("i",_result
);
786 #define wxConfig_DeleteEntry(_swigobj,_swigarg0,_swigarg1) (_swigobj->DeleteEntry(_swigarg0,_swigarg1))
787 static PyObject
*_wrap_wxConfig_DeleteEntry(PyObject
*self
, PyObject
*args
) {
788 PyObject
* _resultobj
;
794 PyObject
* _obj1
= 0;
798 if(!PyArg_ParseTuple(args
,"sO|i:wxConfig_DeleteEntry",&_argc0
,&_obj1
,&tempbool2
))
801 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
802 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteEntry. Expected _wxConfig_p.");
807 if (!PyString_Check(_obj1
)) {
808 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
811 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
813 _arg2
= (bool ) tempbool2
;
815 wxPy_BEGIN_ALLOW_THREADS
;
816 _result
= (bool )wxConfig_DeleteEntry(_arg0
,*_arg1
,_arg2
);
818 wxPy_END_ALLOW_THREADS
;
819 } _resultobj
= Py_BuildValue("i",_result
);
827 #define wxConfig_DeleteGroup(_swigobj,_swigarg0) (_swigobj->DeleteGroup(_swigarg0))
828 static PyObject
*_wrap_wxConfig_DeleteGroup(PyObject
*self
, PyObject
*args
) {
829 PyObject
* _resultobj
;
834 PyObject
* _obj1
= 0;
837 if(!PyArg_ParseTuple(args
,"sO:wxConfig_DeleteGroup",&_argc0
,&_obj1
))
840 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
841 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteGroup. Expected _wxConfig_p.");
846 if (!PyString_Check(_obj1
)) {
847 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
850 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
853 wxPy_BEGIN_ALLOW_THREADS
;
854 _result
= (bool )wxConfig_DeleteGroup(_arg0
,*_arg1
);
856 wxPy_END_ALLOW_THREADS
;
857 } _resultobj
= Py_BuildValue("i",_result
);
865 #define wxConfig_Exists(_swigobj,_swigarg0) (_swigobj->Exists(_swigarg0))
866 static PyObject
*_wrap_wxConfig_Exists(PyObject
*self
, PyObject
*args
) {
867 PyObject
* _resultobj
;
872 PyObject
* _obj1
= 0;
875 if(!PyArg_ParseTuple(args
,"sO:wxConfig_Exists",&_argc0
,&_obj1
))
878 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
879 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Exists. Expected _wxConfig_p.");
884 if (!PyString_Check(_obj1
)) {
885 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
888 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
891 wxPy_BEGIN_ALLOW_THREADS
;
892 _result
= (bool )wxConfig_Exists(_arg0
,*_arg1
);
894 wxPy_END_ALLOW_THREADS
;
895 } _resultobj
= Py_BuildValue("i",_result
);
903 #define wxConfig_Flush(_swigobj,_swigarg0) (_swigobj->Flush(_swigarg0))
904 static PyObject
*_wrap_wxConfig_Flush(PyObject
*self
, PyObject
*args
) {
905 PyObject
* _resultobj
;
913 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_Flush",&_argc0
,&tempbool1
))
916 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
917 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Flush. Expected _wxConfig_p.");
921 _arg1
= (bool ) tempbool1
;
923 wxPy_BEGIN_ALLOW_THREADS
;
924 _result
= (bool )wxConfig_Flush(_arg0
,_arg1
);
926 wxPy_END_ALLOW_THREADS
;
927 } _resultobj
= Py_BuildValue("i",_result
);
931 #define wxConfig_GetAppName(_swigobj) (_swigobj->GetAppName())
932 static PyObject
*_wrap_wxConfig_GetAppName(PyObject
*self
, PyObject
*args
) {
933 PyObject
* _resultobj
;
939 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetAppName",&_argc0
))
942 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
943 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetAppName. Expected _wxConfig_p.");
948 wxPy_BEGIN_ALLOW_THREADS
;
949 _result
= new wxString (wxConfig_GetAppName(_arg0
));
951 wxPy_END_ALLOW_THREADS
;
953 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
961 static PyObject
* wxConfig_GetFirstGroup(wxConfig
*self
) {
966 cont
= self
->GetFirstGroup(value
, index
);
967 return __EnumerationHelper(cont
, value
, index
);
969 static PyObject
*_wrap_wxConfig_GetFirstGroup(PyObject
*self
, PyObject
*args
) {
970 PyObject
* _resultobj
;
976 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetFirstGroup",&_argc0
))
979 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetFirstGroup. Expected _wxConfig_p.");
985 wxPy_BEGIN_ALLOW_THREADS
;
986 _result
= (PyObject
*)wxConfig_GetFirstGroup(_arg0
);
988 wxPy_END_ALLOW_THREADS
;
990 _resultobj
= _result
;
995 static PyObject
* wxConfig_GetFirstEntry(wxConfig
*self
) {
1000 cont
= self
->GetFirstEntry(value
, index
);
1001 return __EnumerationHelper(cont
, value
, index
);
1003 static PyObject
*_wrap_wxConfig_GetFirstEntry(PyObject
*self
, PyObject
*args
) {
1004 PyObject
* _resultobj
;
1010 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetFirstEntry",&_argc0
))
1013 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1014 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetFirstEntry. Expected _wxConfig_p.");
1019 wxPy_BEGIN_ALLOW_THREADS
;
1020 _result
= (PyObject
*)wxConfig_GetFirstEntry(_arg0
);
1022 wxPy_END_ALLOW_THREADS
;
1024 _resultobj
= _result
;
1029 static PyObject
* wxConfig_GetNextGroup(wxConfig
*self
,long index
) {
1033 cont
= self
->GetNextGroup(value
, index
);
1034 return __EnumerationHelper(cont
, value
, index
);
1036 static PyObject
*_wrap_wxConfig_GetNextGroup(PyObject
*self
, PyObject
*args
) {
1037 PyObject
* _resultobj
;
1044 if(!PyArg_ParseTuple(args
,"sl:wxConfig_GetNextGroup",&_argc0
,&_arg1
))
1047 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1048 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNextGroup. Expected _wxConfig_p.");
1053 wxPy_BEGIN_ALLOW_THREADS
;
1054 _result
= (PyObject
*)wxConfig_GetNextGroup(_arg0
,_arg1
);
1056 wxPy_END_ALLOW_THREADS
;
1058 _resultobj
= _result
;
1063 static PyObject
* wxConfig_GetNextEntry(wxConfig
*self
,long index
) {
1067 cont
= self
->GetNextEntry(value
, index
);
1068 return __EnumerationHelper(cont
, value
, index
);
1070 static PyObject
*_wrap_wxConfig_GetNextEntry(PyObject
*self
, PyObject
*args
) {
1071 PyObject
* _resultobj
;
1078 if(!PyArg_ParseTuple(args
,"sl:wxConfig_GetNextEntry",&_argc0
,&_arg1
))
1081 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1082 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNextEntry. Expected _wxConfig_p.");
1087 wxPy_BEGIN_ALLOW_THREADS
;
1088 _result
= (PyObject
*)wxConfig_GetNextEntry(_arg0
,_arg1
);
1090 wxPy_END_ALLOW_THREADS
;
1092 _resultobj
= _result
;
1097 #define wxConfig_GetNumberOfEntries(_swigobj,_swigarg0) (_swigobj->GetNumberOfEntries(_swigarg0))
1098 static PyObject
*_wrap_wxConfig_GetNumberOfEntries(PyObject
*self
, PyObject
*args
) {
1099 PyObject
* _resultobj
;
1107 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_GetNumberOfEntries",&_argc0
,&tempbool1
))
1110 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1111 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNumberOfEntries. Expected _wxConfig_p.");
1115 _arg1
= (bool ) tempbool1
;
1117 wxPy_BEGIN_ALLOW_THREADS
;
1118 _result
= (int )wxConfig_GetNumberOfEntries(_arg0
,_arg1
);
1120 wxPy_END_ALLOW_THREADS
;
1121 } _resultobj
= Py_BuildValue("i",_result
);
1125 #define wxConfig_GetNumberOfGroups(_swigobj,_swigarg0) (_swigobj->GetNumberOfGroups(_swigarg0))
1126 static PyObject
*_wrap_wxConfig_GetNumberOfGroups(PyObject
*self
, PyObject
*args
) {
1127 PyObject
* _resultobj
;
1135 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_GetNumberOfGroups",&_argc0
,&tempbool1
))
1138 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1139 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNumberOfGroups. Expected _wxConfig_p.");
1143 _arg1
= (bool ) tempbool1
;
1145 wxPy_BEGIN_ALLOW_THREADS
;
1146 _result
= (int )wxConfig_GetNumberOfGroups(_arg0
,_arg1
);
1148 wxPy_END_ALLOW_THREADS
;
1149 } _resultobj
= Py_BuildValue("i",_result
);
1153 #define wxConfig_GetPath(_swigobj) (_swigobj->GetPath())
1154 static PyObject
*_wrap_wxConfig_GetPath(PyObject
*self
, PyObject
*args
) {
1155 PyObject
* _resultobj
;
1161 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetPath",&_argc0
))
1164 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1165 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetPath. Expected _wxConfig_p.");
1170 wxPy_BEGIN_ALLOW_THREADS
;
1171 _result
= new wxString (wxConfig_GetPath(_arg0
));
1173 wxPy_END_ALLOW_THREADS
;
1175 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
1183 #define wxConfig_GetVendorName(_swigobj) (_swigobj->GetVendorName())
1184 static PyObject
*_wrap_wxConfig_GetVendorName(PyObject
*self
, PyObject
*args
) {
1185 PyObject
* _resultobj
;
1191 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetVendorName",&_argc0
))
1194 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1195 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetVendorName. Expected _wxConfig_p.");
1200 wxPy_BEGIN_ALLOW_THREADS
;
1201 _result
= new wxString (wxConfig_GetVendorName(_arg0
));
1203 wxPy_END_ALLOW_THREADS
;
1205 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
1213 #define wxConfig_HasEntry(_swigobj,_swigarg0) (_swigobj->HasEntry(_swigarg0))
1214 static PyObject
*_wrap_wxConfig_HasEntry(PyObject
*self
, PyObject
*args
) {
1215 PyObject
* _resultobj
;
1220 PyObject
* _obj1
= 0;
1223 if(!PyArg_ParseTuple(args
,"sO:wxConfig_HasEntry",&_argc0
,&_obj1
))
1226 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1227 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_HasEntry. Expected _wxConfig_p.");
1232 if (!PyString_Check(_obj1
)) {
1233 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1236 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1239 wxPy_BEGIN_ALLOW_THREADS
;
1240 _result
= (bool )wxConfig_HasEntry(_arg0
,*_arg1
);
1242 wxPy_END_ALLOW_THREADS
;
1243 } _resultobj
= Py_BuildValue("i",_result
);
1251 #define wxConfig_HasGroup(_swigobj,_swigarg0) (_swigobj->HasGroup(_swigarg0))
1252 static PyObject
*_wrap_wxConfig_HasGroup(PyObject
*self
, PyObject
*args
) {
1253 PyObject
* _resultobj
;
1258 PyObject
* _obj1
= 0;
1261 if(!PyArg_ParseTuple(args
,"sO:wxConfig_HasGroup",&_argc0
,&_obj1
))
1264 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_HasGroup. Expected _wxConfig_p.");
1270 if (!PyString_Check(_obj1
)) {
1271 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1274 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1277 wxPy_BEGIN_ALLOW_THREADS
;
1278 _result
= (bool )wxConfig_HasGroup(_arg0
,*_arg1
);
1280 wxPy_END_ALLOW_THREADS
;
1281 } _resultobj
= Py_BuildValue("i",_result
);
1289 #define wxConfig_IsExpandingEnvVars(_swigobj) (_swigobj->IsExpandingEnvVars())
1290 static PyObject
*_wrap_wxConfig_IsExpandingEnvVars(PyObject
*self
, PyObject
*args
) {
1291 PyObject
* _resultobj
;
1297 if(!PyArg_ParseTuple(args
,"s:wxConfig_IsExpandingEnvVars",&_argc0
))
1300 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1301 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_IsExpandingEnvVars. Expected _wxConfig_p.");
1306 wxPy_BEGIN_ALLOW_THREADS
;
1307 _result
= (bool )wxConfig_IsExpandingEnvVars(_arg0
);
1309 wxPy_END_ALLOW_THREADS
;
1310 } _resultobj
= Py_BuildValue("i",_result
);
1314 #define wxConfig_IsRecordingDefaults(_swigobj) (_swigobj->IsRecordingDefaults())
1315 static PyObject
*_wrap_wxConfig_IsRecordingDefaults(PyObject
*self
, PyObject
*args
) {
1316 PyObject
* _resultobj
;
1322 if(!PyArg_ParseTuple(args
,"s:wxConfig_IsRecordingDefaults",&_argc0
))
1325 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1326 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_IsRecordingDefaults. Expected _wxConfig_p.");
1331 wxPy_BEGIN_ALLOW_THREADS
;
1332 _result
= (bool )wxConfig_IsRecordingDefaults(_arg0
);
1334 wxPy_END_ALLOW_THREADS
;
1335 } _resultobj
= Py_BuildValue("i",_result
);
1339 #define wxConfig_Read(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
1340 static PyObject
*_wrap_wxConfig_Read(PyObject
*self
, PyObject
*args
) {
1341 PyObject
* _resultobj
;
1345 wxString
* _arg2
= &wxPyEmptyStr
;
1347 PyObject
* _obj1
= 0;
1348 PyObject
* _obj2
= 0;
1351 if(!PyArg_ParseTuple(args
,"sO|O:wxConfig_Read",&_argc0
,&_obj1
,&_obj2
))
1354 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1355 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Read. Expected _wxConfig_p.");
1360 if (!PyString_Check(_obj1
)) {
1361 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1364 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1368 if (!PyString_Check(_obj2
)) {
1369 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1372 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
1375 wxPy_BEGIN_ALLOW_THREADS
;
1376 _result
= new wxString (wxConfig_Read(_arg0
,*_arg1
,*_arg2
));
1378 wxPy_END_ALLOW_THREADS
;
1380 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
1396 #define wxConfig_ReadInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
1397 static PyObject
*_wrap_wxConfig_ReadInt(PyObject
*self
, PyObject
*args
) {
1398 PyObject
* _resultobj
;
1404 PyObject
* _obj1
= 0;
1407 if(!PyArg_ParseTuple(args
,"sO|l:wxConfig_ReadInt",&_argc0
,&_obj1
,&_arg2
))
1410 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1411 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_ReadInt. Expected _wxConfig_p.");
1416 if (!PyString_Check(_obj1
)) {
1417 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1420 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1423 wxPy_BEGIN_ALLOW_THREADS
;
1424 _result
= (long )wxConfig_ReadInt(_arg0
,*_arg1
,_arg2
);
1426 wxPy_END_ALLOW_THREADS
;
1427 } _resultobj
= Py_BuildValue("l",_result
);
1435 #define wxConfig_ReadFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
1436 static PyObject
*_wrap_wxConfig_ReadFloat(PyObject
*self
, PyObject
*args
) {
1437 PyObject
* _resultobj
;
1443 PyObject
* _obj1
= 0;
1446 if(!PyArg_ParseTuple(args
,"sO|d:wxConfig_ReadFloat",&_argc0
,&_obj1
,&_arg2
))
1449 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1450 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_ReadFloat. Expected _wxConfig_p.");
1455 if (!PyString_Check(_obj1
)) {
1456 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1459 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1462 wxPy_BEGIN_ALLOW_THREADS
;
1463 _result
= (double )wxConfig_ReadFloat(_arg0
,*_arg1
,_arg2
);
1465 wxPy_END_ALLOW_THREADS
;
1466 } _resultobj
= Py_BuildValue("d",_result
);
1474 #define wxConfig_SetExpandEnvVars(_swigobj,_swigarg0) (_swigobj->SetExpandEnvVars(_swigarg0))
1475 static PyObject
*_wrap_wxConfig_SetExpandEnvVars(PyObject
*self
, PyObject
*args
) {
1476 PyObject
* _resultobj
;
1483 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_SetExpandEnvVars",&_argc0
,&tempbool1
))
1486 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1487 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetExpandEnvVars. Expected _wxConfig_p.");
1491 _arg1
= (bool ) tempbool1
;
1493 wxPy_BEGIN_ALLOW_THREADS
;
1494 wxConfig_SetExpandEnvVars(_arg0
,_arg1
);
1496 wxPy_END_ALLOW_THREADS
;
1497 } Py_INCREF(Py_None
);
1498 _resultobj
= Py_None
;
1502 #define wxConfig_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0))
1503 static PyObject
*_wrap_wxConfig_SetPath(PyObject
*self
, PyObject
*args
) {
1504 PyObject
* _resultobj
;
1508 PyObject
* _obj1
= 0;
1511 if(!PyArg_ParseTuple(args
,"sO:wxConfig_SetPath",&_argc0
,&_obj1
))
1514 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1515 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetPath. Expected _wxConfig_p.");
1520 if (!PyString_Check(_obj1
)) {
1521 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1524 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1527 wxPy_BEGIN_ALLOW_THREADS
;
1528 wxConfig_SetPath(_arg0
,*_arg1
);
1530 wxPy_END_ALLOW_THREADS
;
1531 } Py_INCREF(Py_None
);
1532 _resultobj
= Py_None
;
1540 #define wxConfig_SetRecordDefaults(_swigobj,_swigarg0) (_swigobj->SetRecordDefaults(_swigarg0))
1541 static PyObject
*_wrap_wxConfig_SetRecordDefaults(PyObject
*self
, PyObject
*args
) {
1542 PyObject
* _resultobj
;
1549 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_SetRecordDefaults",&_argc0
,&tempbool1
))
1552 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1553 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetRecordDefaults. Expected _wxConfig_p.");
1557 _arg1
= (bool ) tempbool1
;
1559 wxPy_BEGIN_ALLOW_THREADS
;
1560 wxConfig_SetRecordDefaults(_arg0
,_arg1
);
1562 wxPy_END_ALLOW_THREADS
;
1563 } Py_INCREF(Py_None
);
1564 _resultobj
= Py_None
;
1568 #define wxConfig_Write(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1569 static PyObject
*_wrap_wxConfig_Write(PyObject
*self
, PyObject
*args
) {
1570 PyObject
* _resultobj
;
1576 PyObject
* _obj1
= 0;
1577 PyObject
* _obj2
= 0;
1580 if(!PyArg_ParseTuple(args
,"sOO:wxConfig_Write",&_argc0
,&_obj1
,&_obj2
))
1583 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1584 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Write. Expected _wxConfig_p.");
1589 if (!PyString_Check(_obj1
)) {
1590 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1593 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1596 if (!PyString_Check(_obj2
)) {
1597 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1600 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
1603 wxPy_BEGIN_ALLOW_THREADS
;
1604 _result
= (bool )wxConfig_Write(_arg0
,*_arg1
,*_arg2
);
1606 wxPy_END_ALLOW_THREADS
;
1607 } _resultobj
= Py_BuildValue("i",_result
);
1619 #define wxConfig_WriteInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1620 static PyObject
*_wrap_wxConfig_WriteInt(PyObject
*self
, PyObject
*args
) {
1621 PyObject
* _resultobj
;
1627 PyObject
* _obj1
= 0;
1630 if(!PyArg_ParseTuple(args
,"sOl:wxConfig_WriteInt",&_argc0
,&_obj1
,&_arg2
))
1633 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1634 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_WriteInt. Expected _wxConfig_p.");
1639 if (!PyString_Check(_obj1
)) {
1640 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1643 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1646 wxPy_BEGIN_ALLOW_THREADS
;
1647 _result
= (bool )wxConfig_WriteInt(_arg0
,*_arg1
,_arg2
);
1649 wxPy_END_ALLOW_THREADS
;
1650 } _resultobj
= Py_BuildValue("i",_result
);
1658 #define wxConfig_WriteFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1659 static PyObject
*_wrap_wxConfig_WriteFloat(PyObject
*self
, PyObject
*args
) {
1660 PyObject
* _resultobj
;
1666 PyObject
* _obj1
= 0;
1669 if(!PyArg_ParseTuple(args
,"sOd:wxConfig_WriteFloat",&_argc0
,&_obj1
,&_arg2
))
1672 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1673 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_WriteFloat. Expected _wxConfig_p.");
1678 if (!PyString_Check(_obj1
)) {
1679 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1682 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1685 wxPy_BEGIN_ALLOW_THREADS
;
1686 _result
= (bool )wxConfig_WriteFloat(_arg0
,*_arg1
,_arg2
);
1688 wxPy_END_ALLOW_THREADS
;
1689 } _resultobj
= Py_BuildValue("i",_result
);
1697 static PyMethodDef utilscMethods
[] = {
1698 { "wxConfig_WriteFloat", _wrap_wxConfig_WriteFloat
, 1 },
1699 { "wxConfig_WriteInt", _wrap_wxConfig_WriteInt
, 1 },
1700 { "wxConfig_Write", _wrap_wxConfig_Write
, 1 },
1701 { "wxConfig_SetRecordDefaults", _wrap_wxConfig_SetRecordDefaults
, 1 },
1702 { "wxConfig_SetPath", _wrap_wxConfig_SetPath
, 1 },
1703 { "wxConfig_SetExpandEnvVars", _wrap_wxConfig_SetExpandEnvVars
, 1 },
1704 { "wxConfig_ReadFloat", _wrap_wxConfig_ReadFloat
, 1 },
1705 { "wxConfig_ReadInt", _wrap_wxConfig_ReadInt
, 1 },
1706 { "wxConfig_Read", _wrap_wxConfig_Read
, 1 },
1707 { "wxConfig_IsRecordingDefaults", _wrap_wxConfig_IsRecordingDefaults
, 1 },
1708 { "wxConfig_IsExpandingEnvVars", _wrap_wxConfig_IsExpandingEnvVars
, 1 },
1709 { "wxConfig_HasGroup", _wrap_wxConfig_HasGroup
, 1 },
1710 { "wxConfig_HasEntry", _wrap_wxConfig_HasEntry
, 1 },
1711 { "wxConfig_GetVendorName", _wrap_wxConfig_GetVendorName
, 1 },
1712 { "wxConfig_GetPath", _wrap_wxConfig_GetPath
, 1 },
1713 { "wxConfig_GetNumberOfGroups", _wrap_wxConfig_GetNumberOfGroups
, 1 },
1714 { "wxConfig_GetNumberOfEntries", _wrap_wxConfig_GetNumberOfEntries
, 1 },
1715 { "wxConfig_GetNextEntry", _wrap_wxConfig_GetNextEntry
, 1 },
1716 { "wxConfig_GetNextGroup", _wrap_wxConfig_GetNextGroup
, 1 },
1717 { "wxConfig_GetFirstEntry", _wrap_wxConfig_GetFirstEntry
, 1 },
1718 { "wxConfig_GetFirstGroup", _wrap_wxConfig_GetFirstGroup
, 1 },
1719 { "wxConfig_GetAppName", _wrap_wxConfig_GetAppName
, 1 },
1720 { "wxConfig_Flush", _wrap_wxConfig_Flush
, 1 },
1721 { "wxConfig_Exists", _wrap_wxConfig_Exists
, 1 },
1722 { "wxConfig_DeleteGroup", _wrap_wxConfig_DeleteGroup
, 1 },
1723 { "wxConfig_DeleteEntry", _wrap_wxConfig_DeleteEntry
, 1 },
1724 { "wxConfig_DeleteAll", _wrap_wxConfig_DeleteAll
, 1 },
1725 { "wxConfig_DontCreateOnDemand", _wrap_wxConfig_DontCreateOnDemand
, 1 },
1726 { "delete_wxConfig", _wrap_delete_wxConfig
, 1 },
1727 { "new_wxConfig", _wrap_new_wxConfig
, 1 },
1730 static PyObject
*SWIG_globals
;
1734 SWIGEXPORT(void,initutilsc
)() {
1736 SWIG_globals
= SWIG_newvarlink();
1737 m
= Py_InitModule("utilsc", utilscMethods
);
1738 d
= PyModule_GetDict(m
);
1741 wxClassInfo::CleanUpClasses();
1742 wxClassInfo::InitializeClasses();
1745 * These are the pointer type-equivalency mappings.
1746 * (Used by the SWIG pointer type-checker).
1748 SWIG_RegisterMapping("_signed_long","_long",0);
1749 SWIG_RegisterMapping("_long","_unsigned_long",0);
1750 SWIG_RegisterMapping("_long","_signed_long",0);
1751 SWIG_RegisterMapping("_wxConfig","_class_wxConfig",0);
1752 SWIG_RegisterMapping("_unsigned_long","_long",0);
1753 SWIG_RegisterMapping("_signed_int","_int",0);
1754 SWIG_RegisterMapping("_unsigned_short","_short",0);
1755 SWIG_RegisterMapping("_signed_short","_short",0);
1756 SWIG_RegisterMapping("_unsigned_int","_int",0);
1757 SWIG_RegisterMapping("_short","_unsigned_short",0);
1758 SWIG_RegisterMapping("_short","_signed_short",0);
1759 SWIG_RegisterMapping("_int","_unsigned_int",0);
1760 SWIG_RegisterMapping("_int","_signed_int",0);
1761 SWIG_RegisterMapping("_class_wxConfig","_wxConfig",0);