From 587d0f36148e7d0e77f1e4f6009dcf6785f2b7e4 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 1 Aug 2006 18:35:13 +0000 Subject: [PATCH] reSWIGged git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/gtk/_core.py | 4 ++++ wxPython/src/gtk/_core_wrap.cpp | 28 ++++++++++++++++++++++++++++ wxPython/src/mac/_core.py | 4 ++++ wxPython/src/mac/_core_wrap.cpp | 28 ++++++++++++++++++++++++++++ wxPython/src/msw/_core.py | 4 ++++ wxPython/src/msw/_core_wrap.cpp | 28 ++++++++++++++++++++++++++++ 6 files changed, 96 insertions(+) diff --git a/wxPython/src/gtk/_core.py b/wxPython/src/gtk/_core.py index c47529ceb6..b38ca48b0a 100644 --- a/wxPython/src/gtk/_core.py +++ b/wxPython/src/gtk/_core.py @@ -10182,6 +10182,10 @@ class MenuBar(Window): """Detach(self)""" return _core_.MenuBar_Detach(*args, **kwargs) + def UpdateMenus(*args, **kwargs): + """UpdateMenus(self)""" + return _core_.MenuBar_UpdateMenus(*args, **kwargs) + def SetAutoWindowMenu(*args, **kwargs): """SetAutoWindowMenu(bool enable)""" return _core_.MenuBar_SetAutoWindowMenu(*args, **kwargs) diff --git a/wxPython/src/gtk/_core_wrap.cpp b/wxPython/src/gtk/_core_wrap.cpp index 68d53a8a88..8d13831e2a 100644 --- a/wxPython/src/gtk/_core_wrap.cpp +++ b/wxPython/src/gtk/_core_wrap.cpp @@ -42150,6 +42150,33 @@ fail: } +SWIGINTERN PyObject *_wrap_MenuBar_UpdateMenus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wxMenuBar *arg1 = (wxMenuBar *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject *swig_obj[1] ; + + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_UpdateMenus" "', expected argument " "1"" of type '" "wxMenuBar *""'"); + } + arg1 = reinterpret_cast< wxMenuBar * >(argp1); + { + PyThreadState* __tstate = wxPyBeginAllowThreads(); + (arg1)->UpdateMenus(); + wxPyEndAllowThreads(__tstate); + if (PyErr_Occurred()) SWIG_fail; + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + SWIGINTERN PyObject *_wrap_MenuBar_SetAutoWindowMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; bool arg1 ; @@ -53958,6 +53985,7 @@ static PyMethodDef SwigMethods[] = { { (char *)"MenuBar_IsAttached", (PyCFunction)_wrap_MenuBar_IsAttached, METH_O, NULL}, { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"MenuBar_Detach", (PyCFunction)_wrap_MenuBar_Detach, METH_O, NULL}, + { (char *)"MenuBar_UpdateMenus", (PyCFunction)_wrap_MenuBar_UpdateMenus, METH_O, NULL}, { (char *)"MenuBar_SetAutoWindowMenu", (PyCFunction) _wrap_MenuBar_SetAutoWindowMenu, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"MenuBar_GetAutoWindowMenu", (PyCFunction)_wrap_MenuBar_GetAutoWindowMenu, METH_NOARGS, NULL}, { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS, NULL}, diff --git a/wxPython/src/mac/_core.py b/wxPython/src/mac/_core.py index c47529ceb6..b38ca48b0a 100644 --- a/wxPython/src/mac/_core.py +++ b/wxPython/src/mac/_core.py @@ -10182,6 +10182,10 @@ class MenuBar(Window): """Detach(self)""" return _core_.MenuBar_Detach(*args, **kwargs) + def UpdateMenus(*args, **kwargs): + """UpdateMenus(self)""" + return _core_.MenuBar_UpdateMenus(*args, **kwargs) + def SetAutoWindowMenu(*args, **kwargs): """SetAutoWindowMenu(bool enable)""" return _core_.MenuBar_SetAutoWindowMenu(*args, **kwargs) diff --git a/wxPython/src/mac/_core_wrap.cpp b/wxPython/src/mac/_core_wrap.cpp index b7650375d7..f5404e6310 100644 --- a/wxPython/src/mac/_core_wrap.cpp +++ b/wxPython/src/mac/_core_wrap.cpp @@ -42149,6 +42149,33 @@ fail: } +SWIGINTERN PyObject *_wrap_MenuBar_UpdateMenus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wxMenuBar *arg1 = (wxMenuBar *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject *swig_obj[1] ; + + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_UpdateMenus" "', expected argument " "1"" of type '" "wxMenuBar *""'"); + } + arg1 = reinterpret_cast< wxMenuBar * >(argp1); + { + PyThreadState* __tstate = wxPyBeginAllowThreads(); + (arg1)->UpdateMenus(); + wxPyEndAllowThreads(__tstate); + if (PyErr_Occurred()) SWIG_fail; + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + SWIGINTERN PyObject *_wrap_MenuBar_SetAutoWindowMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; bool arg1 ; @@ -53957,6 +53984,7 @@ static PyMethodDef SwigMethods[] = { { (char *)"MenuBar_IsAttached", (PyCFunction)_wrap_MenuBar_IsAttached, METH_O, NULL}, { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"MenuBar_Detach", (PyCFunction)_wrap_MenuBar_Detach, METH_O, NULL}, + { (char *)"MenuBar_UpdateMenus", (PyCFunction)_wrap_MenuBar_UpdateMenus, METH_O, NULL}, { (char *)"MenuBar_SetAutoWindowMenu", (PyCFunction) _wrap_MenuBar_SetAutoWindowMenu, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"MenuBar_GetAutoWindowMenu", (PyCFunction)_wrap_MenuBar_GetAutoWindowMenu, METH_NOARGS, NULL}, { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS, NULL}, diff --git a/wxPython/src/msw/_core.py b/wxPython/src/msw/_core.py index 2899233b33..2ee1bf24ac 100644 --- a/wxPython/src/msw/_core.py +++ b/wxPython/src/msw/_core.py @@ -10186,6 +10186,10 @@ class MenuBar(Window): """Detach(self)""" return _core_.MenuBar_Detach(*args, **kwargs) + def UpdateMenus(*args, **kwargs): + """UpdateMenus(self)""" + return _core_.MenuBar_UpdateMenus(*args, **kwargs) + def SetAutoWindowMenu(*args, **kwargs): """SetAutoWindowMenu(bool enable)""" return _core_.MenuBar_SetAutoWindowMenu(*args, **kwargs) diff --git a/wxPython/src/msw/_core_wrap.cpp b/wxPython/src/msw/_core_wrap.cpp index e08711f9bf..a7bd4c18ae 100644 --- a/wxPython/src/msw/_core_wrap.cpp +++ b/wxPython/src/msw/_core_wrap.cpp @@ -42175,6 +42175,33 @@ fail: } +SWIGINTERN PyObject *_wrap_MenuBar_UpdateMenus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wxMenuBar *arg1 = (wxMenuBar *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject *swig_obj[1] ; + + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_UpdateMenus" "', expected argument " "1"" of type '" "wxMenuBar *""'"); + } + arg1 = reinterpret_cast< wxMenuBar * >(argp1); + { + PyThreadState* __tstate = wxPyBeginAllowThreads(); + (arg1)->UpdateMenus(); + wxPyEndAllowThreads(__tstate); + if (PyErr_Occurred()) SWIG_fail; + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + SWIGINTERN PyObject *_wrap_MenuBar_SetAutoWindowMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; bool arg1 ; @@ -53984,6 +54011,7 @@ static PyMethodDef SwigMethods[] = { { (char *)"MenuBar_IsAttached", (PyCFunction)_wrap_MenuBar_IsAttached, METH_O, NULL}, { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"MenuBar_Detach", (PyCFunction)_wrap_MenuBar_Detach, METH_O, NULL}, + { (char *)"MenuBar_UpdateMenus", (PyCFunction)_wrap_MenuBar_UpdateMenus, METH_O, NULL}, { (char *)"MenuBar_SetAutoWindowMenu", (PyCFunction) _wrap_MenuBar_SetAutoWindowMenu, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"MenuBar_GetAutoWindowMenu", (PyCFunction)_wrap_MenuBar_GetAutoWindowMenu, METH_NOARGS, NULL}, { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS, NULL}, -- 2.45.2