-
-
- wxColour wxSystemSettings_GetSystemColour(int index) {
- return wxSystemSettings::GetSystemColour(index);
- }
-
- wxFont wxSystemSettings_GetSystemFont(int index) {
- return wxSystemSettings::GetSystemFont(index);
- }
-
- int wxSystemSettings_GetSystemMetric(int index) {
- return wxSystemSettings::GetSystemMetric(index);
- }
-#ifdef __cplusplus
-extern "C" {
-#endif
-static PyObject *_wrap_wxFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxString * _result;
- char * _arg0;
- char * _arg1 = (char *) NULL;
- char * _arg2 = (char *) NULL;
- char * _arg3 = (char *) NULL;
- char * _arg4 = (char *) "*.*";
- int _arg5 = (int ) 0;
- wxWindow * _arg6 = (wxWindow *) NULL;
- int _arg7 = (int ) -1;
- int _arg8 = (int ) -1;
- PyObject * _argo6 = 0;
- char *_kwnames[] = { "message","default_path","default_filename","default_extension","wildcard","flags","parent","x","y", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|ssssiOii:wxFileSelector",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_argo6,&_arg7,&_arg8))
- return NULL;
- if (_argo6) {
- if (_argo6 == Py_None) { _arg6 = NULL; }
- else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxFileSelector. Expected _wxWindow_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = new wxString (wxFileSelector(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8));
-
- wxPy_END_ALLOW_THREADS;
-}{
- _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
-}
-{
- delete _result;
-}
- return _resultobj;
-}
-
-static PyObject *_wrap_wxGetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxString * _result;
- wxString * _arg0;
- wxString * _arg1 = (wxString *) &wxPyEmptyStr;
- wxString * _arg2 = (wxString *) &wxPyEmptyStr;
- wxWindow * _arg3 = (wxWindow *) NULL;
- int _arg4 = (int ) -1;
- int _arg5 = (int ) -1;
- bool _arg6 = (bool ) TRUE;
- PyObject * _obj0 = 0;
- PyObject * _obj1 = 0;
- PyObject * _obj2 = 0;
- PyObject * _argo3 = 0;
- int tempbool6 = (int) TRUE;
- char *_kwnames[] = { "message","caption","default_value","parent","x","y","centre", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOOiii:wxGetTextFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3,&_arg4,&_arg5,&tempbool6))
- return NULL;
-{
- if (!PyString_Check(_obj0)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0));
-}
- if (_obj1)
-{
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
-}
- if (_obj2)
-{
- if (!PyString_Check(_obj2)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
-}
- if (_argo3) {
- if (_argo3 == Py_None) { _arg3 = NULL; }
- else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetTextFromUser. Expected _wxWindow_p.");
- return NULL;
- }
- }
- _arg6 = (bool ) tempbool6;
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = new wxString (wxGetTextFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6));
-
- wxPy_END_ALLOW_THREADS;
-}{
- _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
-}
-{
- if (_obj0)
- delete _arg0;
-}
-{
- if (_obj1)
- delete _arg1;
-}
-{
- if (_obj2)
- delete _arg2;
-}
-{
- delete _result;
-}
- return _resultobj;
-}
-
-static PyObject *_wrap_wxGetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxString * _result;
- wxString * _arg0;
- wxString * _arg1;
- int _arg2;
- wxString * _arg3;
- wxWindow * _arg4 = (wxWindow *) NULL;
- int _arg5 = (int ) -1;
- int _arg6 = (int ) -1;
- bool _arg7 = (bool ) TRUE;
- int _arg8 = (int ) 150;
- int _arg9 = (int ) 200;
- PyObject * _obj0 = 0;
- PyObject * _obj1 = 0;
- PyObject * _obj3 = 0;
- PyObject * _argo4 = 0;
- int tempbool7 = (int) TRUE;
- char *_kwnames[] = { "message","caption","LIST","parent","x","y","centre","width","height", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoice",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9))
- return NULL;
-{
- if (!PyString_Check(_obj0)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0));
-}
-{
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
-}
- if (_obj3)
-{
- _arg3 = wxString_LIST_helper(_obj3);
- if (_arg3 == NULL) {
- return NULL;
- }
-}
- if (_argo4) {
- if (_argo4 == Py_None) { _arg4 = NULL; }
- else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoice. Expected _wxWindow_p.");
- return NULL;
- }
- }
- _arg7 = (bool ) tempbool7;
-{
- if (_obj3) {
- _arg2 = PyList_Size(_obj3);
- }
- else {
- _arg2 = 0;
- }
-}
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = new wxString (wxGetSingleChoice(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9));
-
- wxPy_END_ALLOW_THREADS;
-}{
- _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
-}
-{
- if (_obj0)
- delete _arg0;
-}
-{
- if (_obj1)
- delete _arg1;
-}
-{
- delete [] _arg3;
-}
-{
- delete _result;
-}
- return _resultobj;
-}
-
-static PyObject *_wrap_wxGetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- int _result;
- wxString * _arg0;
- wxString * _arg1;
- int _arg2;
- wxString * _arg3;
- wxWindow * _arg4 = (wxWindow *) NULL;
- int _arg5 = (int ) -1;
- int _arg6 = (int ) -1;
- bool _arg7 = (bool ) TRUE;
- int _arg8 = (int ) 150;
- int _arg9 = (int ) 200;
- PyObject * _obj0 = 0;
- PyObject * _obj1 = 0;
- PyObject * _obj3 = 0;
- PyObject * _argo4 = 0;
- int tempbool7 = (int) TRUE;
- char *_kwnames[] = { "message","caption","LIST","parent","x","y","centre","width","height", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoiceIndex",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9))
- return NULL;
-{
- if (!PyString_Check(_obj0)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0));
-}
-{
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
-}
- if (_obj3)
-{
- _arg3 = wxString_LIST_helper(_obj3);
- if (_arg3 == NULL) {
- return NULL;
- }
-}
- if (_argo4) {
- if (_argo4 == Py_None) { _arg4 = NULL; }
- else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoiceIndex. Expected _wxWindow_p.");
- return NULL;
- }
- }
- _arg7 = (bool ) tempbool7;
-{
- if (_obj3) {
- _arg2 = PyList_Size(_obj3);
- }
- else {
- _arg2 = 0;
- }
-}
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxGetSingleChoiceIndex(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
-{
- if (_obj0)
- delete _arg0;
-}
-{
- if (_obj1)
- delete _arg1;
-}
-{
- delete [] _arg3;
-}
- return _resultobj;
-}
-
-static PyObject *_wrap_wxMessageBox(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- int _result;
- wxString * _arg0;
- wxString * _arg1 = (wxString *) &wxPyEmptyStr;
- int _arg2 = (int ) wxOK|wxCENTRE;
- wxWindow * _arg3 = (wxWindow *) NULL;
- int _arg4 = (int ) -1;
- int _arg5 = (int ) -1;
- PyObject * _obj0 = 0;
- PyObject * _obj1 = 0;
- PyObject * _argo3 = 0;
- char *_kwnames[] = { "message","caption","style","parent","x","y", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OiOii:wxMessageBox",_kwnames,&_obj0,&_obj1,&_arg2,&_argo3,&_arg4,&_arg5))
- return NULL;
-{
- if (!PyString_Check(_obj0)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0));
-}
- if (_obj1)
-{
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
-}
- if (_argo3) {
- if (_argo3 == Py_None) { _arg3 = NULL; }
- else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMessageBox. Expected _wxWindow_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxMessageBox(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5);
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
-{
- if (_obj0)
- delete _arg0;
-}
-{
- if (_obj1)
- delete _arg1;
-}
- return _resultobj;
-}
-
-static PyObject *_wrap_wxGetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- long _result;
- wxString * _arg0;
- wxString * _arg1;
- wxString * _arg2;
- long _arg3;
- long _arg4 = (long ) 0;
- long _arg5 = (long ) 100;
- wxWindow * _arg6 = (wxWindow *) NULL;
- wxPoint * _arg7 = (wxPoint *) &wxPyDefaultPosition;
- PyObject * _obj0 = 0;
- PyObject * _obj1 = 0;
- PyObject * _obj2 = 0;
- PyObject * _argo6 = 0;
- wxPoint temp;
- PyObject * _obj7 = 0;
- char *_kwnames[] = { "message","prompt","caption","value","min","max","parent","pos", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOl|llOO:wxGetNumberFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_arg3,&_arg4,&_arg5,&_argo6,&_obj7))
- return NULL;
-{
- if (!PyString_Check(_obj0)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0));
-}
-{
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
-}
-{
- if (!PyString_Check(_obj2)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
-}
- if (_argo6) {
- if (_argo6 == Py_None) { _arg6 = NULL; }
- else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxGetNumberFromUser. Expected _wxWindow_p.");
- return NULL;
- }
- }
- if (_obj7)
-{
- _arg7 = &temp;
- if (! wxPoint_helper(_obj7, &_arg7))
- return NULL;
-}
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (long )wxGetNumberFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6,*_arg7);
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("l",_result);
-{
- if (_obj0)
- delete _arg0;
-}
-{
- if (_obj1)
- delete _arg1;
-}
-{
- if (_obj2)
- delete _arg2;
-}
- return _resultobj;
-}
-
-static PyObject *_wrap_wxColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- bool _result;
- char *_kwnames[] = { NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxColourDisplay",_kwnames))
- return NULL;
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxColourDisplay();
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
- return _resultobj;
-}
-
-static PyObject *_wrap_wxDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- int _result;
- char *_kwnames[] = { NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplayDepth",_kwnames))
- return NULL;
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxDisplayDepth();
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
- return _resultobj;
-}
-
-static PyObject *_wrap_wxSetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxCursor * _arg0;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "cursor", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSetCursor",_kwnames,&_argo0))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSetCursor. Expected _wxCursor_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- wxSetCursor(*_arg0);
-
- wxPy_END_ALLOW_THREADS;
-} Py_INCREF(Py_None);
- _resultobj = Py_None;
- return _resultobj;
-}
-