Logo Search packages:      
Sourcecode: catfish version File versions  Download package

def catfish::catfish::get_save_dialog (   self,
  parent = None 
)
Display save dialog and return filename or None.

Definition at line 434 of file catfish.py.

                                          :
        """Display save dialog and return filename or None."""

        buttons = (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,
            gtk.STOCK_SAVE, gtk.RESPONSE_REJECT)
        SaveFile = gtk.FileChooserDialog(_('Save to file'), parent,
            gtk.FILE_CHOOSER_ACTION_SAVE, buttons)
        SaveFile.set_default_response(gtk.RESPONSE_REJECT);
        response = SaveFile.run()
        filename = SaveFile.get_filename()
        SaveFile.destroy()
        return [None, filename][response == gtk.RESPONSE_REJECT]


Generated by  Doxygen 1.6.0   Back to index