SCRIPTS MEETINGS TTF2017_guiΒΆ

# -*-Python-*-
# Created by meneghini at 12 Apr 2017  12:08

OMFITx.TitleGUI('TTF 2017 workshop')

OMFITx.ShotTimeDevice(multiTimes=True, showSingleTime=True)
OMFITx.Separator()

steps = root['SCRIPTS']['MEETINGS']['TTF2017'].runNoGUI(speaker='all')['steps']

OMFITx.ComboBox("scratch['speaker']", list(steps.keys()), 'Speaker', default=list(steps.keys())[0], updateGUI=True)
OMFITx.ComboBox(
    "scratch['%s_step']" % scratch['speaker'],
    ['-: all'] + steps[scratch['speaker']],
    'Step',
    default=steps[scratch['speaker']][0],
    width=60,
)

OMFITx.Button(
    'Run tutorial step',
    lambda: root['SCRIPTS']['MEETINGS']['TTF2017'].run(speaker=scratch['speaker'], step=scratch[scratch['speaker'] + '_step']),
)