def handle_merge_files(self): filenames = QFileDialog.getOpenFileNames(self, 'Select 3 files') if not filenames: return files = [str(f) for f in filenames] if len(files) == 3: imagemerge.merge_to_file(files[0], files[1], files[2], 'tmp/foo.tiff') self.render_in_scene(self.load_and_resize_pixmap('tmp/foo.tiff')) else: QMessageBox.information(self, 'Error', 'Please select exactly 3 pictures', QMessageBox.Ok)
def merge_in_new_thread(self): img = self.args.merge_images Thread(target = lambda: imagemerge.merge_to_file(\ img[0], img[1], img[2], self.args.output_image)).start()
def _(self, images, filePath): imagemerge.merge_to_file(images[0], images[1], images[2], filePath) ok (open(filePath)).is_a(file)
def _(self, images, filePath): imagemerge.merge_to_file(images[0], images[1], images[2], filePath) ok(open(filePath)).is_a(file)