diff --git a/wx/lib/agw/flatmenu.py b/wx/lib/agw/flatmenu.py index 6af36e35..607b840c 100644 --- a/wx/lib/agw/flatmenu.py +++ b/wx/lib/agw/flatmenu.py @@ -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