def finish(self): participant = self.dataContainer.participants[self.idx] if self.formatCombobox.get() == '.pdf': FileGenerator.createPDF(self.idx, participant[0], participant[1], participant[-1].lower()) elif self.formatCombobox.get() == '.txt': FileGenerator.createTXT(self.idx, participant[0], participant[1], participant[-1].lower()) else: FileGenerator.createDOCX(self.idx, participant[0], participant[1], participant[-1].lower()) self.running = False
def finish(self): idx = str(self.dataContainer.participantNumber) participant = self.dataContainer.participants[idx] if self.formatCombobox.get() == '.pdf': FileGenerator.createPDF(idx, participant[0], participant[1], participant[-1].lower()) elif self.formatCombobox.get() == '.txt': FileGenerator.createTXT(idx, participant[0], participant[1], participant[-1].lower()) else: FileGenerator.createDOCX(idx, participant[0], participant[1], participant[-1].lower()) self.destroy()