Logo Search packages:      
Sourcecode: nautilus-image-manipulator version File versions  Download package

def nautilus_image_manipulator::NautilusImageManipulatorDialog::NautilusImageManipulatorDialog::error_resizing (   self,
  filename 
)
Displays an error message if ImageMagick returned an error while resizing one image.

Definition at line 311 of file NautilusImageManipulatorDialog.py.

                                      :
        """Displays an error message if ImageMagick returned an error while resizing one image."""
        (folder, image) = os.path.split(filename)
        label = gtk.Label(_('The image "%(image)s" could not be resized.\n\nCheck whether you have permission to write to this folder:\n%(folder)s' % {"image": image, "folder": folder}))
        label.set_padding(10, 5)
        dialog = gtk.Dialog(_("Could not resize image"),
                           self,
                           gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,
                           (_("_Skip"), 0,
                           gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,
                           _("_Retry"), 1))
        dialog.vbox.pack_start(label)
        label.show()
        response = dialog.run()
        dialog.destroy()
        # The values to be returned
        skip = (response == 0)
        self.processingCanceled = (response == gtk.RESPONSE_CANCEL)
        retry = (response == 1)
        return (skip, self.processingCanceled, retry)


Generated by  Doxygen 1.6.0   Back to index