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