示例#1
0
    def run(self, funcs):
        UISequencer.funcs = funcs
        aliases = {
            'run%d' % i: Code(UISequencer.runner)
            for i in range(0, len(UISequencer.funcs))
        }

        sequence = {
            'run%d' % i: {
                Symbol('abort'):
                Symbol('abort'),
                Symbol('next'):
                'run%d' % (i + 1) if
                (i + 1) < len(UISequencer.funcs) else Symbol('abort')
            }
            for i in range(0, len(UISequencer.funcs))
        }
        sequence['ws_start'] = 'run0'

        Wizard.CreateDialog()

        ret = Sequencer.Run(aliases, sequence)

        UI.CloseDialog()
        return ret
示例#2
0
 def CloseDialog():
     UI.CloseDialog()