gui/menu.py
def IsEnabled(self, *args, **kwargs):
        "check if all menu items are enabled"
        for i in range(self.GetMenuItemCount()):
            it = self.FindItemByPosition(i) 
            if not it.IsEnabled():
                return False
        return True
def IsEnabled(self, *args, **kwargs):
        "check if all menu items are enabled"
        for i in range(self.GetMenuItemCount()):
            it = self.FindItemByPosition(i) 
            if not it.IsEnabled():
                return False
        return True
def IsEnabled ( self , * args , * * kwargs ) : for i in range ( self . GetMenuItemCount ( ) ) : it = self . FindItemByPosition ( i ) if not it . IsEnabled ( ) : return False return True
check if all menu items are enabled
check if all menu items are enabled