def IsEnabled(self, *args, **kwargs):
for i in range(self.GetMenuCount()):<EOL><INDENT>if not self.IsEnabledTop(i):<EOL><INDENT>return False<EOL><DEDENT><DEDENT>return True<EOL>
check if all top menus are enabled