def __init__(self, options, parent=None): self.title = "Export ... " self.options = options self.exportFunction = None if self.options["fileType"] == "STATA": self.steps = ["Prepare Data", "Writing", "Saving"] self.exportFunction = exportStata elif self.options["fileType"] == "EXCEL": self.steps = ["Prepare Data", "Sorting", "Writing", "Saving"] self.exportFunction = exportExcel Worker.__init__(self, parent)
def __init__(self, parent = None): Worker.__init__(self, parent)