def outputFiles(self): self.parseSettings() output_settings = self.processInputFiles() print('Found {0} files to process with the following settings:'.format( len(self.files))) settings = { "indir": self.indir, "outdir": self.outdir, "image_type:": self.image_type, "height:": self.height, "width": self.width, "depth": self.bit_depth } pp = pprint.PrettyPrinter(indent=4) pp.pprint(settings) # The following needs to happen in a separate thread from the main GUI thread. # The task will be I/O bound and will freeze the main GUI unless # execution happens in a separate QThread. if output_settings: self.thread = WorkerThread(task='GEN_DAT_FILES', path=self.indir, outpath=self.outdir, files=self.files, imht=self.height, imwd=self.width, bits=self.bytes_per_pixel, byte=self.byte_order) self.thread.done.connect(self.outputFinished) print("Beginning File Output ...") self.thread.start() else: print("Error Parsing Input Files ...") return """