menu/lcdmenu.py
def execute_command(self, command):
        """Process a command from the keyboard"""
        if command in ["^", "u", "6"]:
            self.pop()
        elif command in ["<", "p", ","]:
            self.do_prev()
        elif command in [">", "n", "."]:
            self.do_next()
        elif command in ["*", "x", " "]:
            self.do_action()
        elif command in ["q", "quit"]:
            self.quit()
            return True
        elif command == "":
            self.display()
        else:
            print("\n\n\n\n"
                  "^ 6 : go (U)p the menu tree to the parent menu item\n"
                  "> . : (N)ext menu item\n"
                  "< , : (P)revious menu item\n"
                  "*   : e(X)ecute menu item or drill down into an item\n"
                  "<cr>: update the display\n"
                  "q   : (Q)uit\n")
            self.display()
        return False
Process a command from the keyboard
Process a command from the keyboard
Process a command from the keyboard
def execute_command(self, command):
        if command in ["^", "u", "6"]:
            self.pop()
        elif command in ["<", "p", ","]:
            self.do_prev()
        elif command in [">", "n", "."]:
            self.do_next()
        elif command in ["*", "x", " "]:
            self.do_action()
        elif command in ["q", "quit"]:
            self.quit()
            return True
        elif command == "":
            self.display()
        else:
            print("\n\n\n\n"
                  "^ 6 : go (U)p the menu tree to the parent menu item\n"
                  "> . : (N)ext menu item\n"
                  "< , : (P)revious menu item\n"
                  "*   : e(X)ecute menu item or drill down into an item\n"
                  "<cr>: update the display\n"
                  "q   : (Q)uit\n")
            self.display()
        return False
def execute_command ( self , command ) : if command in [ "^" , "u" , "6" ] : self . pop ( ) elif command in [ "<" , "p" , "," ] : self . do_prev ( ) elif command in [ ">" , "n" , "." ] : self . do_next ( ) elif command in [ "*" , "x" , " " ] : self . do_action ( ) elif command in [ "q" , "quit" ] : self . quit ( ) return True elif command == "" : self . display ( ) else : print ( "\n\n\n\n" "^ 6 : go (U)p the menu tree to the parent menu item\n" "> . : (N)ext menu item\n" "< , : (P)revious menu item\n" "*   : e(X)ecute menu item or drill down into an item\n" "<cr>: update the display\n" "q   : (Q)uit\n" ) self . display ( ) return False
Process a command from the keyboard
Process a command from the keyboard
"""Process a command from the keyboard"""
self
command