updates of some SWIG generated stuff
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		| @@ -3,7 +3,7 @@ | ||||
|  *  | ||||
|  * This file was automatically generated by : | ||||
|  * Simplified Wrapper and Interface Generator (SWIG) | ||||
|  * Version 1.1 (Patch 6) | ||||
|  * Version 1.1 (Build 810) | ||||
|  *  | ||||
|  * Portions Copyright (c) 1995-1998 | ||||
|  * The University of Utah and The Regents of the University of California. | ||||
| @@ -104,14 +104,14 @@ static PyObject* t_output_helper(PyObject* target, PyObject* o) { | ||||
| } | ||||
|  | ||||
|  | ||||
| extern byte* byte_LIST_helper(PyObject* source); | ||||
| extern int* int_LIST_helper(PyObject* source); | ||||
| extern long* long_LIST_helper(PyObject* source); | ||||
| extern char** string_LIST_helper(PyObject* source); | ||||
| extern wxPoint* wxPoint_LIST_helper(PyObject* source); | ||||
| extern wxBitmap** wxBitmap_LIST_helper(PyObject* source); | ||||
| extern wxString* wxString_LIST_helper(PyObject* source); | ||||
| extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source); | ||||
| HELPEREXPORT byte* byte_LIST_helper(PyObject* source); | ||||
| HELPEREXPORT int* int_LIST_helper(PyObject* source); | ||||
| HELPEREXPORT long* long_LIST_helper(PyObject* source); | ||||
| HELPEREXPORT char** string_LIST_helper(PyObject* source); | ||||
| HELPEREXPORT wxPoint* wxPoint_LIST_helper(PyObject* source); | ||||
| HELPEREXPORT wxBitmap** wxBitmap_LIST_helper(PyObject* source); | ||||
| HELPEREXPORT wxString* wxString_LIST_helper(PyObject* source); | ||||
| HELPEREXPORT wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source); | ||||
|  | ||||
|  | ||||
| static char* wxStringErrorMsg = "string type is required for parameter"; | ||||
| @@ -736,6 +736,38 @@ static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *ar | ||||
|     return _resultobj; | ||||
| } | ||||
|  | ||||
| static PyObject * wxWindow_GetChildren(wxWindow *self) { | ||||
|             wxWindowList& list = self->GetChildren(); | ||||
|             return wxPy_ConvertList(&list, "wxWindow"); | ||||
|         } | ||||
| static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | ||||
|     PyObject * _resultobj; | ||||
|     PyObject * _result; | ||||
|     wxWindow * _arg0; | ||||
|     PyObject * _argo0 = 0; | ||||
|     char *_kwnames[] = { "self", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         _result = (PyObject *)wxWindow_GetChildren(_arg0); | ||||
|  | ||||
|     wxPy_END_ALLOW_THREADS; | ||||
| }{ | ||||
|   _resultobj = _result; | ||||
| } | ||||
|     return _resultobj; | ||||
| } | ||||
|  | ||||
| #define wxWindow_GetCharHeight(_swigobj)  (_swigobj->GetCharHeight()) | ||||
| static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | ||||
|     PyObject * _resultobj; | ||||
| @@ -900,6 +932,40 @@ static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, P | ||||
|     return _resultobj; | ||||
| } | ||||
|  | ||||
| #define wxWindow_GetEventHandler(_swigobj)  (_swigobj->GetEventHandler()) | ||||
| static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | ||||
|     PyObject * _resultobj; | ||||
|     wxEvtHandler * _result; | ||||
|     wxWindow * _arg0; | ||||
|     PyObject * _argo0 = 0; | ||||
|     char *_kwnames[] = { "self", NULL }; | ||||
|     char _ptemp[128]; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); | ||||
|  | ||||
|     wxPy_END_ALLOW_THREADS; | ||||
| }    if (_result) { | ||||
|         SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | ||||
|         _resultobj = Py_BuildValue("s",_ptemp); | ||||
|     } else { | ||||
|         Py_INCREF(Py_None); | ||||
|         _resultobj = Py_None; | ||||
|     } | ||||
|     return _resultobj; | ||||
| } | ||||
|  | ||||
| #define wxWindow_GetFont(_swigobj)  (_swigobj->GetFont()) | ||||
| static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | ||||
|     PyObject * _resultobj; | ||||
| @@ -2034,6 +2100,79 @@ static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *k | ||||
|     return _resultobj; | ||||
| } | ||||
|  | ||||
| #define wxWindow_PopEventHandler(_swigobj,_swigarg0)  (_swigobj->PopEventHandler(_swigarg0)) | ||||
| static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | ||||
|     PyObject * _resultobj; | ||||
|     wxEvtHandler * _result; | ||||
|     wxWindow * _arg0; | ||||
|     bool  _arg1 = (bool ) FALSE; | ||||
|     PyObject * _argo0 = 0; | ||||
|     int tempbool1 = (int) FALSE; | ||||
|     char *_kwnames[] = { "self","deleteHandler", NULL }; | ||||
|     char _ptemp[128]; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     _arg1 = (bool ) tempbool1; | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); | ||||
|  | ||||
|     wxPy_END_ALLOW_THREADS; | ||||
| }    if (_result) { | ||||
|         SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | ||||
|         _resultobj = Py_BuildValue("s",_ptemp); | ||||
|     } else { | ||||
|         Py_INCREF(Py_None); | ||||
|         _resultobj = Py_None; | ||||
|     } | ||||
|     return _resultobj; | ||||
| } | ||||
|  | ||||
| #define wxWindow_PushEventHandler(_swigobj,_swigarg0)  (_swigobj->PushEventHandler(_swigarg0)) | ||||
| static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | ||||
|     PyObject * _resultobj; | ||||
|     wxWindow * _arg0; | ||||
|     wxEvtHandler * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     char *_kwnames[] = { "self","handler", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxWindow_PushEventHandler(_arg0,_arg1); | ||||
|  | ||||
|     wxPy_END_ALLOW_THREADS; | ||||
| }    Py_INCREF(Py_None); | ||||
|     _resultobj = Py_None; | ||||
|     return _resultobj; | ||||
| } | ||||
|  | ||||
| #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2)  (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) | ||||
| static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { | ||||
|     PyObject * _resultobj; | ||||
| @@ -2986,6 +3125,42 @@ static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObje | ||||
|     return _resultobj; | ||||
| } | ||||
|  | ||||
| #define wxWindow_SetEventHandler(_swigobj,_swigarg0)  (_swigobj->SetEventHandler(_swigarg0)) | ||||
| static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | ||||
|     PyObject * _resultobj; | ||||
|     wxWindow * _arg0; | ||||
|     wxEvtHandler * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     char *_kwnames[] = { "self","handler", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxWindow_SetEventHandler(_arg0,_arg1); | ||||
|  | ||||
|     wxPy_END_ALLOW_THREADS; | ||||
| }    Py_INCREF(Py_None); | ||||
|     _resultobj = Py_None; | ||||
|     return _resultobj; | ||||
| } | ||||
|  | ||||
| #define wxWindow_SetTitle(_swigobj,_swigarg0)  (_swigobj->SetTitle(_swigarg0)) | ||||
| static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | ||||
|     PyObject * _resultobj; | ||||
| @@ -4588,6 +4763,42 @@ static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObjec | ||||
|     return _resultobj; | ||||
| } | ||||
|  | ||||
| #define wxMenu_AppendItem(_swigobj,_swigarg0)  (_swigobj->Append(_swigarg0)) | ||||
| static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | ||||
|     PyObject * _resultobj; | ||||
|     wxMenu * _arg0; | ||||
|     wxMenuItem * _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _argo1 = 0; | ||||
|     char *_kwnames[] = { "self","item", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     if (_argo1) { | ||||
|         if (_argo1 == Py_None) { _arg1 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxMenu_AppendItem(_arg0,_arg1); | ||||
|  | ||||
|     wxPy_END_ALLOW_THREADS; | ||||
| }    Py_INCREF(Py_None); | ||||
|     _resultobj = Py_None; | ||||
|     return _resultobj; | ||||
| } | ||||
|  | ||||
| #define wxMenu_AppendSeparator(_swigobj)  (_swigobj->AppendSeparator()) | ||||
| static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | ||||
|     PyObject * _resultobj; | ||||
| @@ -5408,6 +5619,259 @@ static PyObject *_wrap_wxMenuBar_FindItemForId(PyObject *self, PyObject *args, P | ||||
|     return _resultobj; | ||||
| } | ||||
|  | ||||
| #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1)  (_swigobj->SetLabel(_swigarg0,_swigarg1)) | ||||
| static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | ||||
|     PyObject * _resultobj; | ||||
|     wxMenuBar * _arg0; | ||||
|     int  _arg1; | ||||
|     wxString * _arg2; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _obj2 = 0; | ||||
|     char *_kwnames[] = { "self","id","label", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| { | ||||
|     if (!PyString_Check(_obj2)) { | ||||
|         PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | ||||
|         return NULL; | ||||
|     } | ||||
|     _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); | ||||
|  | ||||
|     wxPy_END_ALLOW_THREADS; | ||||
| }    Py_INCREF(Py_None); | ||||
|     _resultobj = Py_None; | ||||
| { | ||||
|     if (_obj2) | ||||
|         delete _arg2; | ||||
| } | ||||
|     return _resultobj; | ||||
| } | ||||
|  | ||||
| #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1)  (_swigobj->EnableTop(_swigarg0,_swigarg1)) | ||||
| static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | ||||
|     PyObject * _resultobj; | ||||
|     wxMenuBar * _arg0; | ||||
|     int  _arg1; | ||||
|     bool  _arg2; | ||||
|     PyObject * _argo0 = 0; | ||||
|     int tempbool2; | ||||
|     char *_kwnames[] = { "self","pos","enable", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
|     _arg2 = (bool ) tempbool2; | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxMenuBar_EnableTop(_arg0,_arg1,_arg2); | ||||
|  | ||||
|     wxPy_END_ALLOW_THREADS; | ||||
| }    Py_INCREF(Py_None); | ||||
|     _resultobj = Py_None; | ||||
|     return _resultobj; | ||||
| } | ||||
|  | ||||
| #define wxMenuBar_GetHelpString(_swigobj,_swigarg0)  (_swigobj->GetHelpString(_swigarg0)) | ||||
| static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | ||||
|     PyObject * _resultobj; | ||||
|     wxString * _result; | ||||
|     wxMenuBar * _arg0; | ||||
|     int  _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     char *_kwnames[] = { "self","id", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); | ||||
|  | ||||
|     wxPy_END_ALLOW_THREADS; | ||||
| }{ | ||||
|     _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | ||||
| } | ||||
| { | ||||
|     delete _result; | ||||
| } | ||||
|     return _resultobj; | ||||
| } | ||||
|  | ||||
| #define wxMenuBar_GetLabel(_swigobj,_swigarg0)  (_swigobj->GetLabel(_swigarg0)) | ||||
| static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | ||||
|     PyObject * _resultobj; | ||||
|     wxString * _result; | ||||
|     wxMenuBar * _arg0; | ||||
|     int  _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     char *_kwnames[] = { "self","id", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); | ||||
|  | ||||
|     wxPy_END_ALLOW_THREADS; | ||||
| }{ | ||||
|     _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | ||||
| } | ||||
| { | ||||
|     delete _result; | ||||
| } | ||||
|     return _resultobj; | ||||
| } | ||||
|  | ||||
| #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1)  (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | ||||
| static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | ||||
|     PyObject * _resultobj; | ||||
|     wxMenuBar * _arg0; | ||||
|     int  _arg1; | ||||
|     wxString * _arg2; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _obj2 = 0; | ||||
|     char *_kwnames[] = { "self","id","helpString", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| { | ||||
|     if (!PyString_Check(_obj2)) { | ||||
|         PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | ||||
|         return NULL; | ||||
|     } | ||||
|     _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); | ||||
|  | ||||
|     wxPy_END_ALLOW_THREADS; | ||||
| }    Py_INCREF(Py_None); | ||||
|     _resultobj = Py_None; | ||||
| { | ||||
|     if (_obj2) | ||||
|         delete _arg2; | ||||
| } | ||||
|     return _resultobj; | ||||
| } | ||||
|  | ||||
| #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0)  (_swigobj->GetLabelTop(_swigarg0)) | ||||
| static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | ||||
|     PyObject * _resultobj; | ||||
|     wxString * _result; | ||||
|     wxMenuBar * _arg0; | ||||
|     int  _arg1; | ||||
|     PyObject * _argo0 = 0; | ||||
|     char *_kwnames[] = { "self","pos", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); | ||||
|  | ||||
|     wxPy_END_ALLOW_THREADS; | ||||
| }{ | ||||
|     _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | ||||
| } | ||||
| { | ||||
|     delete _result; | ||||
| } | ||||
|     return _resultobj; | ||||
| } | ||||
|  | ||||
| #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1)  (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | ||||
| static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | ||||
|     PyObject * _resultobj; | ||||
|     wxMenuBar * _arg0; | ||||
|     int  _arg1; | ||||
|     wxString * _arg2; | ||||
|     PyObject * _argo0 = 0; | ||||
|     PyObject * _obj2 = 0; | ||||
|     char *_kwnames[] = { "self","pos","label", NULL }; | ||||
|  | ||||
|     self = self; | ||||
|     if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2))  | ||||
|         return NULL; | ||||
|     if (_argo0) { | ||||
|         if (_argo0 == Py_None) { _arg0 = NULL; } | ||||
|         else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | ||||
|             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | ||||
|         return NULL; | ||||
|         } | ||||
|     } | ||||
| { | ||||
|     if (!PyString_Check(_obj2)) { | ||||
|         PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | ||||
|         return NULL; | ||||
|     } | ||||
|     _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | ||||
| } | ||||
| { | ||||
|     wxPy_BEGIN_ALLOW_THREADS; | ||||
|         wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); | ||||
|  | ||||
|     wxPy_END_ALLOW_THREADS; | ||||
| }    Py_INCREF(Py_None); | ||||
|     _resultobj = Py_None; | ||||
| { | ||||
|     if (_obj2) | ||||
|         delete _arg2; | ||||
| } | ||||
|     return _resultobj; | ||||
| } | ||||
|  | ||||
| #define wxMenuBar_GetMenuCount(_swigobj)  (_swigobj->GetMenuCount()) | ||||
| static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | ||||
|     PyObject * _resultobj; | ||||
| @@ -5884,6 +6348,13 @@ static PyMethodDef windowscMethods[] = { | ||||
| 	 { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxMenuBar_FindItemForId", (PyCFunction) _wrap_wxMenuBar_FindItemForId, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxMenuBar_Enabled", (PyCFunction) _wrap_wxMenuBar_Enabled, METH_VARARGS | METH_KEYWORDS }, | ||||
| @@ -5908,6 +6379,7 @@ static PyMethodDef windowscMethods[] = { | ||||
| 	 { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | ||||
| @@ -5952,6 +6424,7 @@ static PyMethodDef windowscMethods[] = { | ||||
| 	 { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | ||||
| @@ -5979,6 +6452,8 @@ static PyMethodDef windowscMethods[] = { | ||||
| 	 { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | ||||
| @@ -6012,11 +6487,13 @@ static PyMethodDef windowscMethods[] = { | ||||
| 	 { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | ||||
| 	 { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user