class TaskWrapper: def __init__(self, task): self.textint = TextInt() self.task = task def collect(self, key, order, value): self.textint.setString(key) self.textint.setInt(order) self.task.collect(self.textint, value) def getInputPath(self): return self.task.getInputPath() def progress(self): self.task.progress() def setStatus(self, message): self.task.setStatus()
def __init__(self, task): self.textint = TextInt() self.task = task