cursesmenu/curses_menu.py
def add_exit(self):
        """
        Add the exit item if necessary. Used to make sure there aren't multiple exit items

        :return: True if item needed to be added, False otherwise
        :rtype: bool
        """
        if self.items:
            if self.items[-1] is not self.exit_item:
                self.items.append(self.exit_item)
                return True
        return False
def add_exit(self):
        if self.items:
            if self.items[-1] is not self.exit_item:
                self.items.append(self.exit_item)
                return True
        return False
def add_exit ( self ) : if self . items : if self . items [ - 1 ] is not self . exit_item : self . items . append ( self . exit_item ) return True return False
Add the exit item if necessary. Used to make sure there aren't multiple exit items

        :return: True if item needed to be added, False otherwise
        :rtype: bool
Add the exit item if necessary . Used to make sure there aren t multiple exit items