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)
예제 #2
0
    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)
예제 #3
0
	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()
예제 #4
0
 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)
예제 #6
0
 def _(self, images, filePath):
     imagemerge.merge_to_file(images[0], images[1], images[2], filePath)
     ok(open(filePath)).is_a(file)