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.8 1999/07/31 07:56:02 RD
39 * Added the missing wxWindow.GetUpdateRegion() method.
41 * Made a new change in SWIG (update your patches everybody) that
42 * provides a fix for global shadow objects that get an exception in
43 * their __del__ when their extension module has already been deleted.
44 * It was only a 1 line change in .../SWIG/Modules/pycpp.cxx at about
45 * line 496 if you want to do it by hand.
47 * It is now possible to run through MainLoop more than once in any one
48 * process. The cleanup that used to happen as MainLoop completed (and
49 * prevented it from running again) has been delayed until the wxc module
50 * is being unloaded by Python.
52 * wxWindow.PopupMenu() now takes a wxPoint instead of x,y. Added
53 * wxWindow.PopupMenuXY to be consistent with some other methods.
55 * Added wxGrid.SetEditInPlace and wxGrid.GetEditInPlace.
57 * You can now provide your own app.MainLoop method. See
58 * wxPython/demo/demoMainLoop.py for an example and some explaination.
60 * Got the in-place-edit for the wxTreeCtrl fixed and added some demo
61 * code to show how to use it.
63 * Put the wxIcon constructor back in for GTK as it now has one that
66 * Added wxGrid.GetCells
68 * Added wxSystemSettings static methods as functions with names like
69 * wxSystemSettings_GetSystemColour.
71 * Removed wxPyMenu since using menu callbacks have been depreciated in
72 * wxWindows. Use wxMenu and events instead.
74 * Added alternate wxBitmap constructor (for MSW only) as
75 * wxBitmapFromData(data, type, width, height, depth = 1)
77 * Added a helper function named wxPyTypeCast that can convert shadow
78 * objects of one type into shadow objects of another type. (Like doing
79 * a down-cast.) See the implementation in wx.py for some docs.
81 ************************************************************************/
91 /* Definitions for Windows/Unix exporting */
92 #if defined(__WIN32__)
93 # if defined(_MSC_VER)
94 # define SWIGEXPORT(a,b) __declspec(dllexport) a b
96 # if defined(__BORLANDC__)
97 # define SWIGEXPORT(a,b) a _export b
99 # define SWIGEXPORT(a,b) a b
103 # define SWIGEXPORT(a,b) a b
108 #define SWIGSTATIC extern "C"
115 #define SWIGSTATIC static
120 PyObject
*(*get_attr
)(void);
121 int (*set_attr
)(PyObject
*);
124 typedef struct swig_varlinkobject
{
126 swig_globalvar
**vars
;
129 } swig_varlinkobject
;
131 /* ----------------------------------------------------------------------
134 Function for python repr method
135 ---------------------------------------------------------------------- */
138 swig_varlink_repr(swig_varlinkobject
*v
)
141 return PyString_FromString("<Global variables>");
144 /* ---------------------------------------------------------------------
147 Print out all of the global variable names
148 --------------------------------------------------------------------- */
151 swig_varlink_print(swig_varlinkobject
*v
, FILE *fp
, int flags
)
156 fprintf(fp
,"Global variables { ");
158 fprintf(fp
,"%s", v
->vars
[i
]->name
);
160 if (v
->vars
[i
]) fprintf(fp
,", ");
166 /* --------------------------------------------------------------------
169 This function gets the value of a variable and returns it as a
170 PyObject. In our case, we'll be looking at the datatype and
171 converting into a number or string
172 -------------------------------------------------------------------- */
175 swig_varlink_getattr(swig_varlinkobject
*v
, char *n
)
181 if (strcmp(v
->vars
[i
]->name
,n
) == 0) {
182 return (*v
->vars
[i
]->get_attr
)();
186 sprintf(temp
,"C global variable %s not found.", n
);
187 PyErr_SetString(PyExc_NameError
,temp
);
191 /* -------------------------------------------------------------------
192 swig_varlink_setattr()
194 This function sets the value of a variable.
195 ------------------------------------------------------------------- */
198 swig_varlink_setattr(swig_varlinkobject
*v
, char *n
, PyObject
*p
)
203 if (strcmp(v
->vars
[i
]->name
,n
) == 0) {
204 return (*v
->vars
[i
]->set_attr
)(p
);
208 sprintf(temp
,"C global variable %s not found.", n
);
209 PyErr_SetString(PyExc_NameError
,temp
);
213 statichere PyTypeObject varlinktype
= {
214 /* PyObject_HEAD_INIT(&PyType_Type) Note : This doesn't work on some machines */
215 PyObject_HEAD_INIT(0)
217 "varlink", /* Type name */
218 sizeof(swig_varlinkobject
), /* Basic size */
221 (printfunc
) swig_varlink_print
, /* Print */
222 (getattrfunc
) swig_varlink_getattr
, /* get attr */
223 (setattrfunc
) swig_varlink_setattr
, /* Set attr */
225 (reprfunc
) swig_varlink_repr
, /* tp_repr */
226 0, /* tp_as_number */
227 0, /* tp_as_mapping*/
231 /* Create a variable linking object for use later */
233 SWIGSTATIC PyObject
*
234 SWIG_newvarlink(void)
236 swig_varlinkobject
*result
= 0;
237 result
= PyMem_NEW(swig_varlinkobject
,1);
238 varlinktype
.ob_type
= &PyType_Type
; /* Patch varlinktype into a PyType */
239 result
->ob_type
= &varlinktype
;
240 /* _Py_NewReference(result); Does not seem to be necessary */
242 result
->maxvars
= 64;
243 result
->vars
= (swig_globalvar
**) malloc(64*sizeof(swig_globalvar
*));
245 result
->ob_refcnt
= 0;
246 Py_XINCREF((PyObject
*) result
);
247 return ((PyObject
*) result
);
251 SWIG_addvarlink(PyObject
*p
, char *name
,
252 PyObject
*(*get_attr
)(void), int (*set_attr
)(PyObject
*p
))
254 swig_varlinkobject
*v
;
255 v
= (swig_varlinkobject
*) p
;
257 if (v
->nvars
>= v
->maxvars
-1) {
258 v
->maxvars
= 2*v
->maxvars
;
259 v
->vars
= (swig_globalvar
**) realloc(v
->vars
,v
->maxvars
*sizeof(swig_globalvar
*));
260 if (v
->vars
== NULL
) {
261 fprintf(stderr
,"SWIG : Fatal error in initializing Python module.\n");
265 v
->vars
[v
->nvars
] = (swig_globalvar
*) malloc(sizeof(swig_globalvar
));
266 v
->vars
[v
->nvars
]->name
= (char *) malloc(strlen(name
)+1);
267 strcpy(v
->vars
[v
->nvars
]->name
,name
);
268 v
->vars
[v
->nvars
]->get_attr
= get_attr
;
269 v
->vars
[v
->nvars
]->set_attr
= set_attr
;
271 v
->vars
[v
->nvars
] = 0;
276 /*****************************************************************************
281 * This file contains supporting code for the SWIG run-time type checking
282 * mechanism. The following functions are available :
284 * SWIG_RegisterMapping(char *origtype, char *newtype, void *(*cast)(void *));
286 * Registers a new type-mapping with the type-checker. origtype is the
287 * original datatype and newtype is an equivalent type. cast is optional
288 * pointer to a function to cast pointer values between types (this
289 * is typically used to cast pointers from derived classes to base classes in C++)
291 * SWIG_MakePtr(char *buffer, void *ptr, char *typestring);
293 * Makes a pointer string from a pointer and typestring. The result is returned
294 * in buffer which is assumed to hold enough space for the result.
296 * char * SWIG_GetPtr(char *buffer, void **ptr, char *type)
298 * Gets a pointer value from a string. If there is a type-mismatch, returns
299 * a character string to the received type. On success, returns NULL.
302 * You can remap these functions by making a file called "swigptr.swg" in
303 * your the same directory as the interface file you are wrapping.
305 * These functions are normally declared static, but this file can be
306 * can be used in a multi-module environment by redefining the symbol
308 *****************************************************************************/
314 #define SWIGSTATIC extern "C"
321 #define SWIGSTATIC static
325 /* SWIG pointer structure */
327 typedef struct SwigPtrType
{
328 char *name
; /* Datatype name */
329 int len
; /* Length (used for optimization) */
330 void *(*cast
)(void *); /* Pointer casting function */
331 struct SwigPtrType
*next
; /* Linked list pointer */
334 /* Pointer cache structure */
337 int stat
; /* Status (valid) bit */
338 SwigPtrType
*tp
; /* Pointer to type structure */
339 char name
[256]; /* Given datatype name */
340 char mapped
[256]; /* Equivalent name */
345 static int SwigPtrMax
= 64; /* Max entries that can be currently held */
346 /* This value may be adjusted dynamically */
347 static int SwigPtrN
= 0; /* Current number of entries */
348 static int SwigPtrSort
= 0; /* Status flag indicating sort */
349 static int SwigStart
[256]; /* Starting positions of types */
352 static SwigPtrType
*SwigPtrTable
= 0; /* Table containing pointer equivalences */
356 #define SWIG_CACHESIZE 8
357 #define SWIG_CACHEMASK 0x7
358 static SwigCacheType SwigCache
[SWIG_CACHESIZE
];
359 static int SwigCacheIndex
= 0;
360 static int SwigLastCache
= 0;
362 /* Sort comparison function */
363 static int swigsort(const void *data1
, const void *data2
) {
364 SwigPtrType
*d1
= (SwigPtrType
*) data1
;
365 SwigPtrType
*d2
= (SwigPtrType
*) data2
;
366 return strcmp(d1
->name
,d2
->name
);
369 /* Binary Search function */
370 static int swigcmp(const void *key
, const void *data
) {
371 char *k
= (char *) key
;
372 SwigPtrType
*d
= (SwigPtrType
*) data
;
373 return strncmp(k
,d
->name
,d
->len
);
376 /* Register a new datatype with the type-checker */
379 void SWIG_RegisterMapping(char *origtype
, char *newtype
, void *(*cast
)(void *)) {
382 SwigPtrType
*t
= 0,*t1
;
384 /* Allocate the pointer table if necessary */
387 SwigPtrTable
= (SwigPtrType
*) malloc(SwigPtrMax
*sizeof(SwigPtrType
));
391 if (SwigPtrN
>= SwigPtrMax
) {
392 SwigPtrMax
= 2*SwigPtrMax
;
393 SwigPtrTable
= (SwigPtrType
*) realloc((char *) SwigPtrTable
,SwigPtrMax
*sizeof(SwigPtrType
));
395 for (i
= 0; i
< SwigPtrN
; i
++)
396 if (strcmp(SwigPtrTable
[i
].name
,origtype
) == 0) {
397 t
= &SwigPtrTable
[i
];
401 t
= &SwigPtrTable
[SwigPtrN
];
403 t
->len
= strlen(t
->name
);
409 /* Check for existing entry */
412 if ((strcmp(t
->name
,newtype
) == 0)) {
413 if (cast
) t
->cast
= cast
;
419 /* Now place entry (in sorted order) */
421 t1
= (SwigPtrType
*) malloc(sizeof(SwigPtrType
));
423 t1
->len
= strlen(t1
->name
);
430 /* Make a pointer value string */
433 void SWIG_MakePtr(char *_c
, const void *_ptr
, char *type
) {
434 static char _hex
[16] =
435 {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
436 'a', 'b', 'c', 'd', 'e', 'f'};
437 unsigned long _p
, _s
;
438 char _result
[20], *_r
; /* Note : a 64-bit hex number = 16 digits */
440 _p
= (unsigned long) _ptr
;
448 while (_r
>= _result
)
457 /* Define for backwards compatibility */
459 #define _swig_make_hex SWIG_MakePtr
461 /* Function for getting a pointer value */
464 char *SWIG_GetPtr(char *_c
, void **ptr
, char *_t
)
471 SwigCacheType
*cache
;
475 /* Pointer values must start with leading underscore */
478 /* Extract hex value from pointer */
480 if ((*_c
>= '0') && (*_c
<= '9'))
481 _p
= (_p
<< 4) + (*_c
- '0');
482 else if ((*_c
>= 'a') && (*_c
<= 'f'))
483 _p
= (_p
<< 4) + ((*_c
- 'a') + 10);
492 qsort((void *) SwigPtrTable
, SwigPtrN
, sizeof(SwigPtrType
), swigsort
);
493 for (i
= 0; i
< 256; i
++) {
494 SwigStart
[i
] = SwigPtrN
;
496 for (i
= SwigPtrN
-1; i
>= 0; i
--) {
497 SwigStart
[(int) (SwigPtrTable
[i
].name
[1])] = i
;
499 for (i
= 255; i
>= 1; i
--) {
500 if (SwigStart
[i
-1] > SwigStart
[i
])
501 SwigStart
[i
-1] = SwigStart
[i
];
504 for (i
= 0; i
< SWIG_CACHESIZE
; i
++)
505 SwigCache
[i
].stat
= 0;
508 /* First check cache for matches. Uses last cache value as starting point */
509 cache
= &SwigCache
[SwigLastCache
];
510 for (i
= 0; i
< SWIG_CACHESIZE
; i
++) {
512 if (strcmp(_t
,cache
->name
) == 0) {
513 if (strcmp(_c
,cache
->mapped
) == 0) {
516 if (cache
->tp
->cast
) *ptr
= (*(cache
->tp
->cast
))(*ptr
);
521 SwigLastCache
= (SwigLastCache
+1) & SWIG_CACHEMASK
;
522 if (!SwigLastCache
) cache
= SwigCache
;
525 /* We have a type mismatch. Will have to look through our type
526 mapping table to figure out whether or not we can accept this datatype */
528 start
= SwigStart
[(int) _t
[1]];
529 end
= SwigStart
[(int) _t
[1]+1];
530 sp
= &SwigPtrTable
[start
];
531 while (start
< end
) {
532 if (swigcmp(_t
,sp
) == 0) break;
536 if (start
>= end
) sp
= 0;
537 /* Try to find a match for this */
539 while (swigcmp(_t
,sp
) == 0) {
543 /* Try to find entry for our given datatype */
545 if (tp
->len
>= 255) {
548 strcpy(temp_type
,tp
->name
);
549 strncat(temp_type
,_t
+len
,255-tp
->len
);
550 if (strcmp(_c
,temp_type
) == 0) {
552 strcpy(SwigCache
[SwigCacheIndex
].mapped
,_c
);
553 strcpy(SwigCache
[SwigCacheIndex
].name
,_t
);
554 SwigCache
[SwigCacheIndex
].stat
= 1;
555 SwigCache
[SwigCacheIndex
].tp
= tp
;
556 SwigCacheIndex
= SwigCacheIndex
& SWIG_CACHEMASK
;
558 /* Get pointer value */
560 if (tp
->cast
) *ptr
= (*(tp
->cast
))(*ptr
);
566 /* Hmmm. Didn't find it this time */
569 /* Didn't find any sort of match for this data.
570 Get the pointer value and return the received type */
574 /* Found a match on the first try. Return pointer value */
579 /* No type specified. Good luck */
584 if (strcmp (_c
, "NULL") == 0) {
593 /* Compatibility mode */
595 #define _swig_get_hex SWIG_GetPtr
597 #define SWIG_init initutilsc
599 #define SWIG_name "utilsc"
602 #include <wx/config.h>
604 static PyObject
* l_output_helper(PyObject
* target
, PyObject
* o
) {
608 } else if (target
== Py_None
) {
612 if (!PyList_Check(target
)) {
614 target
= PyList_New(0);
615 PyList_Append(target
, o2
);
618 PyList_Append(target
,o
);
624 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
630 } else if (target
== Py_None
) {
634 if (!PyTuple_Check(target
)) {
636 target
= PyTuple_New(1);
637 PyTuple_SetItem(target
, 0, o2
);
640 PyTuple_SetItem(o3
, 0, o
);
643 target
= PySequence_Concat(o2
, o3
);
651 extern byte
* byte_LIST_helper(PyObject
* source
);
652 extern int* int_LIST_helper(PyObject
* source
);
653 extern long* long_LIST_helper(PyObject
* source
);
654 extern char** string_LIST_helper(PyObject
* source
);
655 extern wxPoint
* wxPoint_LIST_helper(PyObject
* source
);
656 extern wxBitmap
** wxBitmap_LIST_helper(PyObject
* source
);
657 extern wxString
* wxString_LIST_helper(PyObject
* source
);
658 extern wxAcceleratorEntry
* wxAcceleratorEntry_LIST_helper(PyObject
* source
);
661 static char* wxStringErrorMsg
= "string type is required for parameter";
664 wxString
wxPyEmptyStr("");
667 static PyObject
* __EnumerationHelper(bool flag
, wxString
& str
, long index
) {
668 PyObject
* ret
= PyTuple_New(3);
670 PyTuple_SET_ITEM(ret
, 0, PyInt_FromLong(flag
));
671 PyTuple_SET_ITEM(ret
, 1, PyString_FromString(str
));
672 PyTuple_SET_ITEM(ret
, 2, PyInt_FromLong(index
));
676 #define new_wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
677 static PyObject
*_wrap_new_wxConfig(PyObject
*self
, PyObject
*args
) {
678 PyObject
* _resultobj
;
680 wxString
* _arg0
= &wxPyEmptyStr
;
681 wxString
* _arg1
= &wxPyEmptyStr
;
682 wxString
* _arg2
= &wxPyEmptyStr
;
683 wxString
* _arg3
= &wxPyEmptyStr
;
685 PyObject
* _obj0
= 0;
686 PyObject
* _obj1
= 0;
687 PyObject
* _obj2
= 0;
688 PyObject
* _obj3
= 0;
692 if(!PyArg_ParseTuple(args
,"|OOOOl:new_wxConfig",&_obj0
,&_obj1
,&_obj2
,&_obj3
,&_arg4
))
696 if (!PyString_Check(_obj0
)) {
697 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
700 _arg0
= new wxString(PyString_AsString(_obj0
), PyString_Size(_obj0
));
704 if (!PyString_Check(_obj1
)) {
705 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
708 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
712 if (!PyString_Check(_obj2
)) {
713 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
716 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
720 if (!PyString_Check(_obj3
)) {
721 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
724 _arg3
= new wxString(PyString_AsString(_obj3
), PyString_Size(_obj3
));
727 wxPy_BEGIN_ALLOW_THREADS
;
728 _result
= (wxConfig
*)new_wxConfig(*_arg0
,*_arg1
,*_arg2
,*_arg3
,_arg4
);
730 wxPy_END_ALLOW_THREADS
;
731 } SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxConfig_p");
732 _resultobj
= Py_BuildValue("s",_ptemp
);
752 #define delete_wxConfig(_swigobj) (delete _swigobj)
753 static PyObject
*_wrap_delete_wxConfig(PyObject
*self
, PyObject
*args
) {
754 PyObject
* _resultobj
;
759 if(!PyArg_ParseTuple(args
,"s:delete_wxConfig",&_argc0
))
762 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
763 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxConfig. Expected _wxConfig_p.");
768 wxPy_BEGIN_ALLOW_THREADS
;
769 delete_wxConfig(_arg0
);
771 wxPy_END_ALLOW_THREADS
;
772 } Py_INCREF(Py_None
);
773 _resultobj
= Py_None
;
777 #define wxConfig_DontCreateOnDemand(_swigobj) (_swigobj->DontCreateOnDemand())
778 static PyObject
*_wrap_wxConfig_DontCreateOnDemand(PyObject
*self
, PyObject
*args
) {
779 PyObject
* _resultobj
;
784 if(!PyArg_ParseTuple(args
,"s:wxConfig_DontCreateOnDemand",&_argc0
))
787 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
788 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DontCreateOnDemand. Expected _wxConfig_p.");
793 wxPy_BEGIN_ALLOW_THREADS
;
794 wxConfig_DontCreateOnDemand(_arg0
);
796 wxPy_END_ALLOW_THREADS
;
797 } Py_INCREF(Py_None
);
798 _resultobj
= Py_None
;
802 #define wxConfig_DeleteAll(_swigobj) (_swigobj->DeleteAll())
803 static PyObject
*_wrap_wxConfig_DeleteAll(PyObject
*self
, PyObject
*args
) {
804 PyObject
* _resultobj
;
810 if(!PyArg_ParseTuple(args
,"s:wxConfig_DeleteAll",&_argc0
))
813 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
814 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteAll. Expected _wxConfig_p.");
819 wxPy_BEGIN_ALLOW_THREADS
;
820 _result
= (bool )wxConfig_DeleteAll(_arg0
);
822 wxPy_END_ALLOW_THREADS
;
823 } _resultobj
= Py_BuildValue("i",_result
);
827 #define wxConfig_DeleteEntry(_swigobj,_swigarg0,_swigarg1) (_swigobj->DeleteEntry(_swigarg0,_swigarg1))
828 static PyObject
*_wrap_wxConfig_DeleteEntry(PyObject
*self
, PyObject
*args
) {
829 PyObject
* _resultobj
;
835 PyObject
* _obj1
= 0;
839 if(!PyArg_ParseTuple(args
,"sO|i:wxConfig_DeleteEntry",&_argc0
,&_obj1
,&tempbool2
))
842 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
843 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteEntry. Expected _wxConfig_p.");
848 if (!PyString_Check(_obj1
)) {
849 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
852 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
854 _arg2
= (bool ) tempbool2
;
856 wxPy_BEGIN_ALLOW_THREADS
;
857 _result
= (bool )wxConfig_DeleteEntry(_arg0
,*_arg1
,_arg2
);
859 wxPy_END_ALLOW_THREADS
;
860 } _resultobj
= Py_BuildValue("i",_result
);
868 #define wxConfig_DeleteGroup(_swigobj,_swigarg0) (_swigobj->DeleteGroup(_swigarg0))
869 static PyObject
*_wrap_wxConfig_DeleteGroup(PyObject
*self
, PyObject
*args
) {
870 PyObject
* _resultobj
;
875 PyObject
* _obj1
= 0;
878 if(!PyArg_ParseTuple(args
,"sO:wxConfig_DeleteGroup",&_argc0
,&_obj1
))
881 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
882 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteGroup. Expected _wxConfig_p.");
887 if (!PyString_Check(_obj1
)) {
888 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
891 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
894 wxPy_BEGIN_ALLOW_THREADS
;
895 _result
= (bool )wxConfig_DeleteGroup(_arg0
,*_arg1
);
897 wxPy_END_ALLOW_THREADS
;
898 } _resultobj
= Py_BuildValue("i",_result
);
906 #define wxConfig_Exists(_swigobj,_swigarg0) (_swigobj->Exists(_swigarg0))
907 static PyObject
*_wrap_wxConfig_Exists(PyObject
*self
, PyObject
*args
) {
908 PyObject
* _resultobj
;
913 PyObject
* _obj1
= 0;
916 if(!PyArg_ParseTuple(args
,"sO:wxConfig_Exists",&_argc0
,&_obj1
))
919 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
920 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Exists. Expected _wxConfig_p.");
925 if (!PyString_Check(_obj1
)) {
926 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
929 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
932 wxPy_BEGIN_ALLOW_THREADS
;
933 _result
= (bool )wxConfig_Exists(_arg0
,*_arg1
);
935 wxPy_END_ALLOW_THREADS
;
936 } _resultobj
= Py_BuildValue("i",_result
);
944 #define wxConfig_Flush(_swigobj,_swigarg0) (_swigobj->Flush(_swigarg0))
945 static PyObject
*_wrap_wxConfig_Flush(PyObject
*self
, PyObject
*args
) {
946 PyObject
* _resultobj
;
954 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_Flush",&_argc0
,&tempbool1
))
957 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
958 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Flush. Expected _wxConfig_p.");
962 _arg1
= (bool ) tempbool1
;
964 wxPy_BEGIN_ALLOW_THREADS
;
965 _result
= (bool )wxConfig_Flush(_arg0
,_arg1
);
967 wxPy_END_ALLOW_THREADS
;
968 } _resultobj
= Py_BuildValue("i",_result
);
972 #define wxConfig_GetAppName(_swigobj) (_swigobj->GetAppName())
973 static PyObject
*_wrap_wxConfig_GetAppName(PyObject
*self
, PyObject
*args
) {
974 PyObject
* _resultobj
;
980 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetAppName",&_argc0
))
983 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
984 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetAppName. Expected _wxConfig_p.");
989 wxPy_BEGIN_ALLOW_THREADS
;
990 _result
= new wxString (wxConfig_GetAppName(_arg0
));
992 wxPy_END_ALLOW_THREADS
;
994 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
1002 static PyObject
* wxConfig_GetFirstGroup(wxConfig
*self
) {
1007 cont
= self
->GetFirstGroup(value
, index
);
1008 return __EnumerationHelper(cont
, value
, index
);
1010 static PyObject
*_wrap_wxConfig_GetFirstGroup(PyObject
*self
, PyObject
*args
) {
1011 PyObject
* _resultobj
;
1017 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetFirstGroup",&_argc0
))
1020 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1021 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetFirstGroup. Expected _wxConfig_p.");
1026 wxPy_BEGIN_ALLOW_THREADS
;
1027 _result
= (PyObject
*)wxConfig_GetFirstGroup(_arg0
);
1029 wxPy_END_ALLOW_THREADS
;
1031 _resultobj
= _result
;
1036 static PyObject
* wxConfig_GetFirstEntry(wxConfig
*self
) {
1041 cont
= self
->GetFirstEntry(value
, index
);
1042 return __EnumerationHelper(cont
, value
, index
);
1044 static PyObject
*_wrap_wxConfig_GetFirstEntry(PyObject
*self
, PyObject
*args
) {
1045 PyObject
* _resultobj
;
1051 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetFirstEntry",&_argc0
))
1054 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1055 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetFirstEntry. Expected _wxConfig_p.");
1060 wxPy_BEGIN_ALLOW_THREADS
;
1061 _result
= (PyObject
*)wxConfig_GetFirstEntry(_arg0
);
1063 wxPy_END_ALLOW_THREADS
;
1065 _resultobj
= _result
;
1070 static PyObject
* wxConfig_GetNextGroup(wxConfig
*self
,long index
) {
1074 cont
= self
->GetNextGroup(value
, index
);
1075 return __EnumerationHelper(cont
, value
, index
);
1077 static PyObject
*_wrap_wxConfig_GetNextGroup(PyObject
*self
, PyObject
*args
) {
1078 PyObject
* _resultobj
;
1085 if(!PyArg_ParseTuple(args
,"sl:wxConfig_GetNextGroup",&_argc0
,&_arg1
))
1088 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1089 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNextGroup. Expected _wxConfig_p.");
1094 wxPy_BEGIN_ALLOW_THREADS
;
1095 _result
= (PyObject
*)wxConfig_GetNextGroup(_arg0
,_arg1
);
1097 wxPy_END_ALLOW_THREADS
;
1099 _resultobj
= _result
;
1104 static PyObject
* wxConfig_GetNextEntry(wxConfig
*self
,long index
) {
1108 cont
= self
->GetNextEntry(value
, index
);
1109 return __EnumerationHelper(cont
, value
, index
);
1111 static PyObject
*_wrap_wxConfig_GetNextEntry(PyObject
*self
, PyObject
*args
) {
1112 PyObject
* _resultobj
;
1119 if(!PyArg_ParseTuple(args
,"sl:wxConfig_GetNextEntry",&_argc0
,&_arg1
))
1122 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1123 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNextEntry. Expected _wxConfig_p.");
1128 wxPy_BEGIN_ALLOW_THREADS
;
1129 _result
= (PyObject
*)wxConfig_GetNextEntry(_arg0
,_arg1
);
1131 wxPy_END_ALLOW_THREADS
;
1133 _resultobj
= _result
;
1138 #define wxConfig_GetNumberOfEntries(_swigobj,_swigarg0) (_swigobj->GetNumberOfEntries(_swigarg0))
1139 static PyObject
*_wrap_wxConfig_GetNumberOfEntries(PyObject
*self
, PyObject
*args
) {
1140 PyObject
* _resultobj
;
1148 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_GetNumberOfEntries",&_argc0
,&tempbool1
))
1151 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1152 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNumberOfEntries. Expected _wxConfig_p.");
1156 _arg1
= (bool ) tempbool1
;
1158 wxPy_BEGIN_ALLOW_THREADS
;
1159 _result
= (int )wxConfig_GetNumberOfEntries(_arg0
,_arg1
);
1161 wxPy_END_ALLOW_THREADS
;
1162 } _resultobj
= Py_BuildValue("i",_result
);
1166 #define wxConfig_GetNumberOfGroups(_swigobj,_swigarg0) (_swigobj->GetNumberOfGroups(_swigarg0))
1167 static PyObject
*_wrap_wxConfig_GetNumberOfGroups(PyObject
*self
, PyObject
*args
) {
1168 PyObject
* _resultobj
;
1176 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_GetNumberOfGroups",&_argc0
,&tempbool1
))
1179 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1180 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNumberOfGroups. Expected _wxConfig_p.");
1184 _arg1
= (bool ) tempbool1
;
1186 wxPy_BEGIN_ALLOW_THREADS
;
1187 _result
= (int )wxConfig_GetNumberOfGroups(_arg0
,_arg1
);
1189 wxPy_END_ALLOW_THREADS
;
1190 } _resultobj
= Py_BuildValue("i",_result
);
1194 #define wxConfig_GetPath(_swigobj) (_swigobj->GetPath())
1195 static PyObject
*_wrap_wxConfig_GetPath(PyObject
*self
, PyObject
*args
) {
1196 PyObject
* _resultobj
;
1202 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetPath",&_argc0
))
1205 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1206 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetPath. Expected _wxConfig_p.");
1211 wxPy_BEGIN_ALLOW_THREADS
;
1212 _result
= new wxString (wxConfig_GetPath(_arg0
));
1214 wxPy_END_ALLOW_THREADS
;
1216 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
1224 #define wxConfig_GetVendorName(_swigobj) (_swigobj->GetVendorName())
1225 static PyObject
*_wrap_wxConfig_GetVendorName(PyObject
*self
, PyObject
*args
) {
1226 PyObject
* _resultobj
;
1232 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetVendorName",&_argc0
))
1235 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1236 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetVendorName. Expected _wxConfig_p.");
1241 wxPy_BEGIN_ALLOW_THREADS
;
1242 _result
= new wxString (wxConfig_GetVendorName(_arg0
));
1244 wxPy_END_ALLOW_THREADS
;
1246 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
1254 #define wxConfig_HasEntry(_swigobj,_swigarg0) (_swigobj->HasEntry(_swigarg0))
1255 static PyObject
*_wrap_wxConfig_HasEntry(PyObject
*self
, PyObject
*args
) {
1256 PyObject
* _resultobj
;
1261 PyObject
* _obj1
= 0;
1264 if(!PyArg_ParseTuple(args
,"sO:wxConfig_HasEntry",&_argc0
,&_obj1
))
1267 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1268 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_HasEntry. Expected _wxConfig_p.");
1273 if (!PyString_Check(_obj1
)) {
1274 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1277 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1280 wxPy_BEGIN_ALLOW_THREADS
;
1281 _result
= (bool )wxConfig_HasEntry(_arg0
,*_arg1
);
1283 wxPy_END_ALLOW_THREADS
;
1284 } _resultobj
= Py_BuildValue("i",_result
);
1292 #define wxConfig_HasGroup(_swigobj,_swigarg0) (_swigobj->HasGroup(_swigarg0))
1293 static PyObject
*_wrap_wxConfig_HasGroup(PyObject
*self
, PyObject
*args
) {
1294 PyObject
* _resultobj
;
1299 PyObject
* _obj1
= 0;
1302 if(!PyArg_ParseTuple(args
,"sO:wxConfig_HasGroup",&_argc0
,&_obj1
))
1305 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1306 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_HasGroup. Expected _wxConfig_p.");
1311 if (!PyString_Check(_obj1
)) {
1312 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1315 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1318 wxPy_BEGIN_ALLOW_THREADS
;
1319 _result
= (bool )wxConfig_HasGroup(_arg0
,*_arg1
);
1321 wxPy_END_ALLOW_THREADS
;
1322 } _resultobj
= Py_BuildValue("i",_result
);
1330 #define wxConfig_IsExpandingEnvVars(_swigobj) (_swigobj->IsExpandingEnvVars())
1331 static PyObject
*_wrap_wxConfig_IsExpandingEnvVars(PyObject
*self
, PyObject
*args
) {
1332 PyObject
* _resultobj
;
1338 if(!PyArg_ParseTuple(args
,"s:wxConfig_IsExpandingEnvVars",&_argc0
))
1341 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1342 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_IsExpandingEnvVars. Expected _wxConfig_p.");
1347 wxPy_BEGIN_ALLOW_THREADS
;
1348 _result
= (bool )wxConfig_IsExpandingEnvVars(_arg0
);
1350 wxPy_END_ALLOW_THREADS
;
1351 } _resultobj
= Py_BuildValue("i",_result
);
1355 #define wxConfig_IsRecordingDefaults(_swigobj) (_swigobj->IsRecordingDefaults())
1356 static PyObject
*_wrap_wxConfig_IsRecordingDefaults(PyObject
*self
, PyObject
*args
) {
1357 PyObject
* _resultobj
;
1363 if(!PyArg_ParseTuple(args
,"s:wxConfig_IsRecordingDefaults",&_argc0
))
1366 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1367 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_IsRecordingDefaults. Expected _wxConfig_p.");
1372 wxPy_BEGIN_ALLOW_THREADS
;
1373 _result
= (bool )wxConfig_IsRecordingDefaults(_arg0
);
1375 wxPy_END_ALLOW_THREADS
;
1376 } _resultobj
= Py_BuildValue("i",_result
);
1380 #define wxConfig_Read(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
1381 static PyObject
*_wrap_wxConfig_Read(PyObject
*self
, PyObject
*args
) {
1382 PyObject
* _resultobj
;
1386 wxString
* _arg2
= &wxPyEmptyStr
;
1388 PyObject
* _obj1
= 0;
1389 PyObject
* _obj2
= 0;
1392 if(!PyArg_ParseTuple(args
,"sO|O:wxConfig_Read",&_argc0
,&_obj1
,&_obj2
))
1395 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1396 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Read. Expected _wxConfig_p.");
1401 if (!PyString_Check(_obj1
)) {
1402 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1405 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1409 if (!PyString_Check(_obj2
)) {
1410 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1413 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
1416 wxPy_BEGIN_ALLOW_THREADS
;
1417 _result
= new wxString (wxConfig_Read(_arg0
,*_arg1
,*_arg2
));
1419 wxPy_END_ALLOW_THREADS
;
1421 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
1437 #define wxConfig_ReadInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
1438 static PyObject
*_wrap_wxConfig_ReadInt(PyObject
*self
, PyObject
*args
) {
1439 PyObject
* _resultobj
;
1445 PyObject
* _obj1
= 0;
1448 if(!PyArg_ParseTuple(args
,"sO|l:wxConfig_ReadInt",&_argc0
,&_obj1
,&_arg2
))
1451 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1452 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_ReadInt. Expected _wxConfig_p.");
1457 if (!PyString_Check(_obj1
)) {
1458 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1461 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1464 wxPy_BEGIN_ALLOW_THREADS
;
1465 _result
= (long )wxConfig_ReadInt(_arg0
,*_arg1
,_arg2
);
1467 wxPy_END_ALLOW_THREADS
;
1468 } _resultobj
= Py_BuildValue("l",_result
);
1476 #define wxConfig_ReadFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
1477 static PyObject
*_wrap_wxConfig_ReadFloat(PyObject
*self
, PyObject
*args
) {
1478 PyObject
* _resultobj
;
1484 PyObject
* _obj1
= 0;
1487 if(!PyArg_ParseTuple(args
,"sO|d:wxConfig_ReadFloat",&_argc0
,&_obj1
,&_arg2
))
1490 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1491 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_ReadFloat. Expected _wxConfig_p.");
1496 if (!PyString_Check(_obj1
)) {
1497 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1500 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1503 wxPy_BEGIN_ALLOW_THREADS
;
1504 _result
= (double )wxConfig_ReadFloat(_arg0
,*_arg1
,_arg2
);
1506 wxPy_END_ALLOW_THREADS
;
1507 } _resultobj
= Py_BuildValue("d",_result
);
1515 #define wxConfig_SetExpandEnvVars(_swigobj,_swigarg0) (_swigobj->SetExpandEnvVars(_swigarg0))
1516 static PyObject
*_wrap_wxConfig_SetExpandEnvVars(PyObject
*self
, PyObject
*args
) {
1517 PyObject
* _resultobj
;
1524 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_SetExpandEnvVars",&_argc0
,&tempbool1
))
1527 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1528 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetExpandEnvVars. Expected _wxConfig_p.");
1532 _arg1
= (bool ) tempbool1
;
1534 wxPy_BEGIN_ALLOW_THREADS
;
1535 wxConfig_SetExpandEnvVars(_arg0
,_arg1
);
1537 wxPy_END_ALLOW_THREADS
;
1538 } Py_INCREF(Py_None
);
1539 _resultobj
= Py_None
;
1543 #define wxConfig_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0))
1544 static PyObject
*_wrap_wxConfig_SetPath(PyObject
*self
, PyObject
*args
) {
1545 PyObject
* _resultobj
;
1549 PyObject
* _obj1
= 0;
1552 if(!PyArg_ParseTuple(args
,"sO:wxConfig_SetPath",&_argc0
,&_obj1
))
1555 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1556 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetPath. Expected _wxConfig_p.");
1561 if (!PyString_Check(_obj1
)) {
1562 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1565 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1568 wxPy_BEGIN_ALLOW_THREADS
;
1569 wxConfig_SetPath(_arg0
,*_arg1
);
1571 wxPy_END_ALLOW_THREADS
;
1572 } Py_INCREF(Py_None
);
1573 _resultobj
= Py_None
;
1581 #define wxConfig_SetRecordDefaults(_swigobj,_swigarg0) (_swigobj->SetRecordDefaults(_swigarg0))
1582 static PyObject
*_wrap_wxConfig_SetRecordDefaults(PyObject
*self
, PyObject
*args
) {
1583 PyObject
* _resultobj
;
1590 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_SetRecordDefaults",&_argc0
,&tempbool1
))
1593 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1594 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetRecordDefaults. Expected _wxConfig_p.");
1598 _arg1
= (bool ) tempbool1
;
1600 wxPy_BEGIN_ALLOW_THREADS
;
1601 wxConfig_SetRecordDefaults(_arg0
,_arg1
);
1603 wxPy_END_ALLOW_THREADS
;
1604 } Py_INCREF(Py_None
);
1605 _resultobj
= Py_None
;
1609 #define wxConfig_Write(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1610 static PyObject
*_wrap_wxConfig_Write(PyObject
*self
, PyObject
*args
) {
1611 PyObject
* _resultobj
;
1617 PyObject
* _obj1
= 0;
1618 PyObject
* _obj2
= 0;
1621 if(!PyArg_ParseTuple(args
,"sOO:wxConfig_Write",&_argc0
,&_obj1
,&_obj2
))
1624 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Write. Expected _wxConfig_p.");
1630 if (!PyString_Check(_obj1
)) {
1631 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1634 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1637 if (!PyString_Check(_obj2
)) {
1638 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1641 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
1644 wxPy_BEGIN_ALLOW_THREADS
;
1645 _result
= (bool )wxConfig_Write(_arg0
,*_arg1
,*_arg2
);
1647 wxPy_END_ALLOW_THREADS
;
1648 } _resultobj
= Py_BuildValue("i",_result
);
1660 #define wxConfig_WriteInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1661 static PyObject
*_wrap_wxConfig_WriteInt(PyObject
*self
, PyObject
*args
) {
1662 PyObject
* _resultobj
;
1668 PyObject
* _obj1
= 0;
1671 if(!PyArg_ParseTuple(args
,"sOl:wxConfig_WriteInt",&_argc0
,&_obj1
,&_arg2
))
1674 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1675 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_WriteInt. Expected _wxConfig_p.");
1680 if (!PyString_Check(_obj1
)) {
1681 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1684 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1687 wxPy_BEGIN_ALLOW_THREADS
;
1688 _result
= (bool )wxConfig_WriteInt(_arg0
,*_arg1
,_arg2
);
1690 wxPy_END_ALLOW_THREADS
;
1691 } _resultobj
= Py_BuildValue("i",_result
);
1699 #define wxConfig_WriteFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1700 static PyObject
*_wrap_wxConfig_WriteFloat(PyObject
*self
, PyObject
*args
) {
1701 PyObject
* _resultobj
;
1707 PyObject
* _obj1
= 0;
1710 if(!PyArg_ParseTuple(args
,"sOd:wxConfig_WriteFloat",&_argc0
,&_obj1
,&_arg2
))
1713 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1714 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_WriteFloat. Expected _wxConfig_p.");
1719 if (!PyString_Check(_obj1
)) {
1720 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1723 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1726 wxPy_BEGIN_ALLOW_THREADS
;
1727 _result
= (bool )wxConfig_WriteFloat(_arg0
,*_arg1
,_arg2
);
1729 wxPy_END_ALLOW_THREADS
;
1730 } _resultobj
= Py_BuildValue("i",_result
);
1738 static PyMethodDef utilscMethods
[] = {
1739 { "wxConfig_WriteFloat", _wrap_wxConfig_WriteFloat
, 1 },
1740 { "wxConfig_WriteInt", _wrap_wxConfig_WriteInt
, 1 },
1741 { "wxConfig_Write", _wrap_wxConfig_Write
, 1 },
1742 { "wxConfig_SetRecordDefaults", _wrap_wxConfig_SetRecordDefaults
, 1 },
1743 { "wxConfig_SetPath", _wrap_wxConfig_SetPath
, 1 },
1744 { "wxConfig_SetExpandEnvVars", _wrap_wxConfig_SetExpandEnvVars
, 1 },
1745 { "wxConfig_ReadFloat", _wrap_wxConfig_ReadFloat
, 1 },
1746 { "wxConfig_ReadInt", _wrap_wxConfig_ReadInt
, 1 },
1747 { "wxConfig_Read", _wrap_wxConfig_Read
, 1 },
1748 { "wxConfig_IsRecordingDefaults", _wrap_wxConfig_IsRecordingDefaults
, 1 },
1749 { "wxConfig_IsExpandingEnvVars", _wrap_wxConfig_IsExpandingEnvVars
, 1 },
1750 { "wxConfig_HasGroup", _wrap_wxConfig_HasGroup
, 1 },
1751 { "wxConfig_HasEntry", _wrap_wxConfig_HasEntry
, 1 },
1752 { "wxConfig_GetVendorName", _wrap_wxConfig_GetVendorName
, 1 },
1753 { "wxConfig_GetPath", _wrap_wxConfig_GetPath
, 1 },
1754 { "wxConfig_GetNumberOfGroups", _wrap_wxConfig_GetNumberOfGroups
, 1 },
1755 { "wxConfig_GetNumberOfEntries", _wrap_wxConfig_GetNumberOfEntries
, 1 },
1756 { "wxConfig_GetNextEntry", _wrap_wxConfig_GetNextEntry
, 1 },
1757 { "wxConfig_GetNextGroup", _wrap_wxConfig_GetNextGroup
, 1 },
1758 { "wxConfig_GetFirstEntry", _wrap_wxConfig_GetFirstEntry
, 1 },
1759 { "wxConfig_GetFirstGroup", _wrap_wxConfig_GetFirstGroup
, 1 },
1760 { "wxConfig_GetAppName", _wrap_wxConfig_GetAppName
, 1 },
1761 { "wxConfig_Flush", _wrap_wxConfig_Flush
, 1 },
1762 { "wxConfig_Exists", _wrap_wxConfig_Exists
, 1 },
1763 { "wxConfig_DeleteGroup", _wrap_wxConfig_DeleteGroup
, 1 },
1764 { "wxConfig_DeleteEntry", _wrap_wxConfig_DeleteEntry
, 1 },
1765 { "wxConfig_DeleteAll", _wrap_wxConfig_DeleteAll
, 1 },
1766 { "wxConfig_DontCreateOnDemand", _wrap_wxConfig_DontCreateOnDemand
, 1 },
1767 { "delete_wxConfig", _wrap_delete_wxConfig
, 1 },
1768 { "new_wxConfig", _wrap_new_wxConfig
, 1 },
1771 static PyObject
*SWIG_globals
;
1775 SWIGEXPORT(void,initutilsc
)() {
1777 SWIG_globals
= SWIG_newvarlink();
1778 m
= Py_InitModule("utilsc", utilscMethods
);
1779 d
= PyModule_GetDict(m
);
1782 wxClassInfo::CleanUpClasses();
1783 wxClassInfo::InitializeClasses();
1786 * These are the pointer type-equivalency mappings.
1787 * (Used by the SWIG pointer type-checker).
1789 SWIG_RegisterMapping("_signed_long","_long",0);
1790 SWIG_RegisterMapping("_long","_unsigned_long",0);
1791 SWIG_RegisterMapping("_long","_signed_long",0);
1792 SWIG_RegisterMapping("_wxConfig","_class_wxConfig",0);
1793 SWIG_RegisterMapping("_unsigned_long","_long",0);
1794 SWIG_RegisterMapping("_signed_int","_int",0);
1795 SWIG_RegisterMapping("_unsigned_short","_short",0);
1796 SWIG_RegisterMapping("_signed_short","_short",0);
1797 SWIG_RegisterMapping("_unsigned_int","_int",0);
1798 SWIG_RegisterMapping("_short","_unsigned_short",0);
1799 SWIG_RegisterMapping("_short","_signed_short",0);
1800 SWIG_RegisterMapping("_int","_unsigned_int",0);
1801 SWIG_RegisterMapping("_int","_signed_int",0);
1802 SWIG_RegisterMapping("_class_wxConfig","_wxConfig",0);