def unpaperTool(self): current_reviewer = self.__getCurrentReviewer() unpaper_dialog = UnpaperDialog( current_reviewer, self.configuration_manager.getUnpaper(), self.configuration_manager.getTemporaryDir()) if unpaper_dialog.run() == gtk.RESPONSE_ACCEPT: unpapered_image = unpaper_dialog.getUnpaperedImage() current_reviewer.updateBackgroundImage(unpapered_image) unpaper_dialog.destroy() else: unpaper_dialog.destroy()
def unpaperTool(self): current_reviewer = self.__getCurrentReviewer() unpaper_dialog = UnpaperDialog( self.main_window, current_reviewer, self.configuration_manager.unpaper, self.configuration_manager.TEMPORARY_FOLDER) if unpaper_dialog.run() == Gtk.ResponseType.ACCEPT: unpapered_image = unpaper_dialog.getUnpaperedImage() current_reviewer.updateBackgroundImage(unpapered_image) unpaper_dialog.destroy() else: unpaper_dialog.destroy()