def __call__(self): global plotter for i in range(self.frames): plotter.config(mark_t=i/float(self.frames)) return AUTOCommands.valueString("Running animation")
def __call__(self): global plotter handle=AUTOCommands.commandPlotter(self.name)() plotter = handle.data return AUTOCommands.valueString("Created plotter\n")
def start(name=None): global plotter handle=AUTOCommands.commandPlotter(name)() plotter = handle.data return AUTOCommands.valueString("Created plotter\n")
def run(frames): global plotter for i in range(frames): plotter.config(mark_t=i/float(self.frames)) return AUTOCommands.valueString("Running animation")
#! /usr/bin/env python import os import string import re import AUTOCommands clui_reference_string = "" def append(text): global clui_reference_string clui_reference_string = clui_reference_string + text commandList = [] append("\\begin{longtable}{|l|p{1.5in}|p{2in}|}\n") append("\\hline \n") command = AUTOCommands.commandHelp("") helpDict = command().data append("Command & Aliases & Description\\\ " ) append("\\hline \n") keys = helpDict.keys() keys.sort() for key in keys: aliases = "" for alias in helpDict[key]['aliases']: aliases = aliases + alias + " " append(key+" & "+aliases+" & "+helpDict[key]['description']+"\\\ " ) append("\\hline \n") commandList.append(key) append("\\end{longtable}\n")