class ThreadHolder(object): def __init__(self, *args, **kw): self.thread = ALProxyThread(*args, **kw) self.thread.start() self.cleaner = None self.busy = False # When True don't give any more motions def makeBusy(self, cleaner): self.cleaner = cleaner self.busy = True return self
def __init__(self, *args, **kw): self.thread = ALProxyThread(*args, **kw) self.thread.start() self.cleaner = None self.busy = False # When True don't give any more motions