示例#1
0
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()
示例#2
0
 def __init__(self, task):
     self.textint = TextInt()
     self.task = task