from cursesmenu import *
from cursesmenu.items import *
import sys
import os

# '1': Example
# '2': Matrix A
# '3': Rest
# '4': Show Config

if sys.platform == 'darwin':
    python = 'python2.7'
else:
    python = 'python'

# Create the menu
menu = CursesMenu("Declarative Task - Day One", 'Subject: ' + sys.argv[1])

dayOneExample = CommandItem(text='Example',
                            command=python + " src" + os.path.sep + "ld_example.py",
                            arguments='Example, ' + sys.argv[1],
                            menu=menu,
                            should_exit=False)

soundVolumeAdjustment = CommandItem(text='sound Volume Adjustment',
                            command=python + " src" + os.path.sep + "ld_calibrateSoundVolumeSubprocess.py",
                            arguments=sys.argv[1],
                            menu=menu,
                            should_exit=False)

dayOnePreLearning = CommandItem(text="PreLearning",
                                command=python + " src" + os.path.sep + "ld_declarativeTask.py ",
                                arguments="DayOne-PreLearning, " + sys.argv[1],
                                menu=menu,
                                should_exit=False)

dayOneLearning = CommandItem(text="Matrix A",
                             command=python + " src" + os.path.sep + "ld_declarativeTask_relauncher.py ",
                             arguments="DayOne-Learning, " + sys.argv[1],
                             menu=menu,
                             should_exit=False)

dayOneTestMatrixA = CommandItem(text="Test Matrix A",
                                command=python + " src" + os.path.sep + "ld_declarativeTask.py ",
                                arguments="Day One - Test Learning, " + sys.argv[1],
                                menu=menu,
                                should_exit=False)

dayOneConsolidationMatrixA = CommandItem(text="Consolidation Matrix A",
                                command=python + " src" + os.path.sep + "ld_declarativeTask.py ",
                                arguments="Day One - Test Consolidation, " + sys.argv[1],
                                menu=menu,
                                should_exit=False)

dayOneRecognition = CommandItem(text="Recognition",
                                  command=python + " src" + os.path.sep + "ld_recognition.py ",
                                  arguments="Day One - Recognition, " + sys.argv[1],
                                  menu=menu,
                                  should_exit=False)

dayOneConfig = CommandItem(text='Show config file',
                           command=python + " src" + os.path.sep + "ld_showConfigFile.py",
                           menu=menu,
                           should_exit=False)

menu.append_item(dayOneExample)
menu.append_item(dayOnePreLearning)
menu.append_item(soundVolumeAdjustment)
menu.append_item(dayOneLearning)
menu.append_item(dayOneTestMatrixA)
menu.append_item(dayOneConsolidationMatrixA)
menu.append_item(dayOneRecognition)
menu.append_item(dayOneConfig)

menu.show()

1761783aa65dbc12111b59ea25b9cb7ad8cc9a20
<mask token>

<mask token>
if sys.platform == 'darwin':
    python = 'python2.7'
else:
    python = 'python'
<mask token>
menu.append_item(dayOneExample)
menu.append_item(dayOnePreLearning)
menu.append_item(soundVolumeAdjustment)
menu.append_item(dayOneLearning)
menu.append_item(dayOneTestMatrixA)
menu.append_item(dayOneConsolidationMatrixA)
menu.append_item(dayOneRecognition)
menu.append_item(dayOneConfig)
menu.show()

<mask token>
if sys.platform == 'darwin':
    python = 'python2.7'
else:
    python = 'python'
menu = CursesMenu('Declarative Task - Day One', 'Subject: ' + sys.argv[1])
dayOneExample = CommandItem(text='Example', command=python + ' src' + os.
    path.sep + 'ld_example.py', arguments='Example, ' + sys.argv[1], menu=
    menu, should_exit=False)
soundVolumeAdjustment = CommandItem(text='sound Volume Adjustment', command
    =python + ' src' + os.path.sep + 'ld_calibrateSoundVolumeSubprocess.py',
    arguments=sys.argv[1], menu=menu, should_exit=False)
dayOnePreLearning = CommandItem(text='PreLearning', command=python + ' src' +
    os.path.sep + 'ld_declarativeTask.py ', arguments=
    'DayOne-PreLearning, ' + sys.argv[1], menu=menu, should_exit=False)
dayOneLearning = CommandItem(text='Matrix A', command=python + ' src' + os.
    path.sep + 'ld_declarativeTask_relauncher.py ', arguments=
    'DayOne-Learning, ' + sys.argv[1], menu=menu, should_exit=False)
dayOneTestMatrixA = CommandItem(text='Test Matrix A', command=python +
    ' src' + os.path.sep + 'ld_declarativeTask.py ', arguments=
    'Day One - Test Learning, ' + sys.argv[1], menu=menu, should_exit=False)
dayOneConsolidationMatrixA = CommandItem(text='Consolidation Matrix A',
    command=python + ' src' + os.path.sep + 'ld_declarativeTask.py ',
    arguments='Day One - Test Consolidation, ' + sys.argv[1], menu=menu,
    should_exit=False)
dayOneRecognition = CommandItem(text='Recognition', command=python + ' src' +
    os.path.sep + 'ld_recognition.py ', arguments='Day One - Recognition, ' +
    sys.argv[1], menu=menu, should_exit=False)
dayOneConfig = CommandItem(text='Show config file', command=python + ' src' +
    os.path.sep + 'ld_showConfigFile.py', menu=menu, should_exit=False)
menu.append_item(dayOneExample)
menu.append_item(dayOnePreLearning)
menu.append_item(soundVolumeAdjustment)
menu.append_item(dayOneLearning)
menu.append_item(dayOneTestMatrixA)
menu.append_item(dayOneConsolidationMatrixA)
menu.append_item(dayOneRecognition)
menu.append_item(dayOneConfig)
menu.show()

from cursesmenu import *
from cursesmenu.items import *
import sys
import os
if sys.platform == 'darwin':
    python = 'python2.7'
else:
    python = 'python'
menu = CursesMenu('Declarative Task - Day One', 'Subject: ' + sys.argv[1])
dayOneExample = CommandItem(text='Example', command=python + ' src' + os.
    path.sep + 'ld_example.py', arguments='Example, ' + sys.argv[1], menu=
    menu, should_exit=False)
soundVolumeAdjustment = CommandItem(text='sound Volume Adjustment', command
    =python + ' src' + os.path.sep + 'ld_calibrateSoundVolumeSubprocess.py',
    arguments=sys.argv[1], menu=menu, should_exit=False)
dayOnePreLearning = CommandItem(text='PreLearning', command=python + ' src' +
    os.path.sep + 'ld_declarativeTask.py ', arguments=
    'DayOne-PreLearning, ' + sys.argv[1], menu=menu, should_exit=False)
dayOneLearning = CommandItem(text='Matrix A', command=python + ' src' + os.
    path.sep + 'ld_declarativeTask_relauncher.py ', arguments=
    'DayOne-Learning, ' + sys.argv[1], menu=menu, should_exit=False)
dayOneTestMatrixA = CommandItem(text='Test Matrix A', command=python +
    ' src' + os.path.sep + 'ld_declarativeTask.py ', arguments=
    'Day One - Test Learning, ' + sys.argv[1], menu=menu, should_exit=False)
dayOneConsolidationMatrixA = CommandItem(text='Consolidation Matrix A',
    command=python + ' src' + os.path.sep + 'ld_declarativeTask.py ',
    arguments='Day One - Test Consolidation, ' + sys.argv[1], menu=menu,
    should_exit=False)
dayOneRecognition = CommandItem(text='Recognition', command=python + ' src' +
    os.path.sep + 'ld_recognition.py ', arguments='Day One - Recognition, ' +
    sys.argv[1], menu=menu, should_exit=False)
dayOneConfig = CommandItem(text='Show config file', command=python + ' src' +
    os.path.sep + 'ld_showConfigFile.py', menu=menu, should_exit=False)
menu.append_item(dayOneExample)
menu.append_item(dayOnePreLearning)
menu.append_item(soundVolumeAdjustment)
menu.append_item(dayOneLearning)
menu.append_item(dayOneTestMatrixA)
menu.append_item(dayOneConsolidationMatrixA)
menu.append_item(dayOneRecognition)
menu.append_item(dayOneConfig)
menu.show()

from cursesmenu import *
from cursesmenu.items import *
import sys
import os

# '1': Example
# '2': Matrix A
# '3': Rest
# '4': Show Config

if sys.platform == 'darwin':
    python = 'python2.7'
else:
    python = 'python'

# Create the menu
menu = CursesMenu("Declarative Task - Day One", 'Subject: ' + sys.argv[1])

dayOneExample = CommandItem(text='Example',
                            command=python + " src" + os.path.sep + "ld_example.py",
                            arguments='Example, ' + sys.argv[1],
                            menu=menu,
                            should_exit=False)

soundVolumeAdjustment = CommandItem(text='sound Volume Adjustment',
                            command=python + " src" + os.path.sep + "ld_calibrateSoundVolumeSubprocess.py",
                            arguments=sys.argv[1],
                            menu=menu,
                            should_exit=False)

dayOnePreLearning = CommandItem(text="PreLearning",
                                command=python + " src" + os.path.sep + "ld_declarativeTask.py ",
                                arguments="DayOne-PreLearning, " + sys.argv[1],
                                menu=menu,
                                should_exit=False)

dayOneLearning = CommandItem(text="Matrix A",
                             command=python + " src" + os.path.sep + "ld_declarativeTask_relauncher.py ",
                             arguments="DayOne-Learning, " + sys.argv[1],
                             menu=menu,
                             should_exit=False)

dayOneTestMatrixA = CommandItem(text="Test Matrix A",
                                command=python + " src" + os.path.sep + "ld_declarativeTask.py ",
                                arguments="Day One - Test Learning, " + sys.argv[1],
                                menu=menu,
                                should_exit=False)

dayOneConsolidationMatrixA = CommandItem(text="Consolidation Matrix A",
                                command=python + " src" + os.path.sep + "ld_declarativeTask.py ",
                                arguments="Day One - Test Consolidation, " + sys.argv[1],
                                menu=menu,
                                should_exit=False)

dayOneRecognition = CommandItem(text="Recognition",
                                  command=python + " src" + os.path.sep + "ld_recognition.py ",
                                  arguments="Day One - Recognition, " + sys.argv[1],
                                  menu=menu,
                                  should_exit=False)

dayOneConfig = CommandItem(text='Show config file',
                           command=python + " src" + os.path.sep + "ld_showConfigFile.py",
                           menu=menu,
                           should_exit=False)

menu.append_item(dayOneExample)
menu.append_item(dayOnePreLearning)
menu.append_item(soundVolumeAdjustment)
menu.append_item(dayOneLearning)
menu.append_item(dayOneTestMatrixA)
menu.append_item(dayOneConsolidationMatrixA)
menu.append_item(dayOneRecognition)
menu.append_item(dayOneConfig)

menu.show()
