Don't hide the base class Destroy method.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@78206 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2014-11-28 04:48:25 +00:00
parent 5c12e8a4d3
commit 5e3f4f0cd1

View File

@@ -6657,7 +6657,7 @@ class FlatMenu(FlatMenuBase):
del item
def Destroy(self, item):
def DestroyItem(self, item):
"""
Deletes the menu item from the menu. If the item is a submenu, it will be
deleted. Use :meth:`~FlatMenu.Remove` if you want to keep the submenu (for example, to reuse
@@ -7064,7 +7064,7 @@ class FlatMenu(FlatMenuBase):
lenItems = len(self._itemsArr)
for ii in range(lenItems):
self.Destroy(self._itemsArr[0].GetId())
self.DestroyItem(self._itemsArr[0].GetId())
# Now we can resize the menu
self._resizeMenu = True