menu/lcdmenu.py
def pop(self):
        """
        Removes the current menu item and displays its parent
        :return: the previous menu item
        """
        item = self._stack[-1]
        if not self.is_root_menu():
            # Do not pop the last item on the menu
            self._stack = self._stack[:-1]
            self.display()
        return item

        Removes the current menu item and displays its parent
        :return: the previous menu item
        
Removes the current menu item and displays its parent
Removes the current menu item and displays its parent
def pop(self):
        item = self._stack[-1]
        if not self.is_root_menu():
            self._stack = self._stack[:-1]
            self.display()
        return item
def pop ( self ) : item = self . _stack [ - 1 ] if not self . is_root_menu ( ) : self . _stack = self . _stack [ : - 1 ] self . display ( ) return item
Removes the current menu item and displays its parent
Removes the current menu item and displays its parent
"""
        Removes the current menu item and displays its parent
        :return: the previous menu item
        """ # Do not pop the last item on the menu
the previous menu item
the previous menu item
self