X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/383562174efd81f3f6046dc9d45c5b3242c25b76..3e3b7e75561ddcad61f12b914ecbc9ad06938789:/wxPython/src/_menu.i?ds=sidebyside diff --git a/wxPython/src/_menu.i b/wxPython/src/_menu.i index 8144d66ace..af7a940d08 100644 --- a/wxPython/src/_menu.i +++ b/wxPython/src/_menu.i @@ -20,7 +20,7 @@ class wxMenu : public wxEvtHandler { public: - %addtofunc wxMenu "self._setOORInfo(self)" + %pythonAppend wxMenu "self._setOORInfo(self)" wxMenu(const wxString& title = wxPyEmptyString, long style = 0); @@ -206,7 +206,7 @@ public: class wxMenuBar : public wxWindow { public: - %addtofunc wxMenuBar "self._setOORInfo(self)" + %pythonAppend wxMenuBar "self._setOORInfo(self)" wxMenuBar(long style = 0); @@ -292,7 +292,7 @@ public: class wxMenuItem : public wxObject { public: - wxMenuItem(wxMenu* parentMenu=NULL, int id=wxID_SEPARATOR, + wxMenuItem(wxMenu* parentMenu=NULL, int id=wxID_ANY, const wxString& text = wxPyEmptyString, const wxString& help = wxPyEmptyString, wxItemKind kind = wxITEM_NORMAL, @@ -322,6 +322,7 @@ public: // what kind of menu item we are wxItemKind GetKind() const; + void SetKind(wxItemKind kind); virtual void SetCheckable(bool checkable); bool IsCheckable() const;