mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-14 15:57:06 +01:00
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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user