X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/383562174efd81f3f6046dc9d45c5b3242c25b76..05e00ac5ef410707da86d98786cbb268100a7337:/wxPython/src/_menu.i diff --git a/wxPython/src/_menu.i b/wxPython/src/_menu.i index 8144d66ace..59fb473645 100644 --- a/wxPython/src/_menu.i +++ b/wxPython/src/_menu.i @@ -17,10 +17,12 @@ %newgroup +MustHaveApp(wxMenu); + class wxMenu : public wxEvtHandler { public: - %addtofunc wxMenu "self._setOORInfo(self)" + %pythonAppend wxMenu "self._setOORInfo(self)" wxMenu(const wxString& title = wxPyEmptyString, long style = 0); @@ -203,10 +205,12 @@ public: //--------------------------------------------------------------------------- %newgroup +MustHaveApp(wxMenuBar); + class wxMenuBar : public wxWindow { public: - %addtofunc wxMenuBar "self._setOORInfo(self)" + %pythonAppend wxMenuBar "self._setOORInfo(self)" wxMenuBar(long style = 0); @@ -292,7 +296,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 +326,7 @@ public: // what kind of menu item we are wxItemKind GetKind() const; + void SetKind(wxItemKind kind); virtual void SetCheckable(bool checkable); bool IsCheckable() const;