| 1 | from auto import AUTOCommands |
| 2 | |
| 3 | |
| 4 | class randy(AUTOCommands.commandQueryDiagnostic): |
| 5 | def __init__(self,num): |
| 6 | self.num = num |
| 7 | |
| 8 | def __call__(self): |
| 9 | for i in range(self.num): |
| 10 | print("Randy is a bonehead") |
| 11 | |
| 12 | def start(name=None): |
| 13 | global plotter |
| 14 | handle=AUTOCommands.commandPlotter(name)() |
| 15 | plotter = handle.data |
| 16 | |
| 17 | return AUTOCommands.valueString("Created plotter\n") |
| 18 | |
| 19 | def run(frames): |
| 20 | global plotter |
| 21 | for i in range(frames): |
| 22 | plotter.config(mark_t=i/float(self.frames)) |
| 23 | return AUTOCommands.valueString("Running animation") |