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
def DisableNextButton(): Wizard.DisableNextButton()
def DisableBackButton(): Wizard.DisableBackButton()
def SetContentsButtons(title, contents, help_txt, back_txt, next_txt): Wizard.SetContentsButtons(gettext.gettext(title), contents, help_txt, back_txt, next_txt)
def EnableBackButton(): Wizard.EnableBackButton()
def EnableNextButton(): Wizard.EnableNextButton()
def EnableAbortButton(): Wizard.EnableAbortButton()
def DisableAbortButton(): Wizard.DisableAbortButton()