Add RemoveItem and RemoveMenu aliases for Classic code compatibility.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2013-12-29 03:44:22 +00:00
parent c49eec2401
commit bcaf5ebcbf

View File

@@ -73,6 +73,10 @@ def run():
c.addPyMethod('PrependItem', '(self, menuItem)', deprecated='Use Prepend instead.',
body='return self.Prepend(menuItem)')
c.addPyMethod('RemoveMenu', '(self, id, item, subMenu, help="")', deprecated='Use Remove instead.',
body='return self.Remove(id, item, subMenu, help)')
c.addPyMethod('RemoveItem', '(self, menuItem)', deprecated='Use Remove instead.',
body='return self.Remove(menuItem)')
# Don't hide the Destroy inherited from wxObject
c.find('Destroy').findOverload('int').pyName = 'DestroyItem'