Esempio n. 1
0
    def __init__(self):
        self.menu_targets = (
            ('jace', 'Jupiter Ace', util.cr, self.target_jace, None),
            ('tec1', 'Talking Electronics TEC-1', util.cr, self.target_tec1, None),
        )
        self.menu_root = (
            ('exit', 'exit the application', util.cr, self.exit, None),
            ('help', 'display general help', util.cr, self.general_help, None),
            ('target', 'select a target', None, None, self.menu_targets),
            ('version', 'display version information', util.cr, self.version, None),
        )

        # create the cli
        self.io = conio.console()
        self.cli = cli.cli(self)
        self.main_menu()
Esempio n. 2
0
    def __init__(self):
        self.menu_targets = (
            ('jace', 'Jupiter Ace', util.cr, self.target_jace, None),
            ('tec1', 'Talking Electronics TEC-1', util.cr, self.target_tec1,
             None),
        )
        self.menu_root = (
            ('exit', 'exit the application', util.cr, self.exit, None),
            ('help', 'display general help', util.cr, self.general_help, None),
            ('target', 'select a target', None, None, self.menu_targets),
            ('version', 'display version information', util.cr, self.version,
             None),
        )

        # create the cli
        self.io = conio.console()
        self.cli = cli.cli(self)
        self.main_menu()