// turn off this typemap
%typemap(out) wxMenuItem*;
- wxMenuItem(wxMenu* parentMenu=NULL, int id=wxID_ANY,
+ wxMenuItem(wxMenu* parentMenu=NULL, int id=wxID_SEPARATOR,
const wxString& text = wxPyEmptyString,
const wxString& help = wxPyEmptyString,
wxItemKind kind = wxITEM_NORMAL,
// Turn it back on again
%typemap(out) wxEvtHandler* { $result = wxPyMake_wxObject($1, $owner); }
+ // Make Destroy a NOP. The destruction will be handled by SWIG.
+ %pythoncode { def Destroy(self): pass }
+
// the menu we're in
wxMenu *GetMenu() const;