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)
        response = SaveFile.run()
        filename = SaveFile.get_filename()
        return [None, filename][response == gtk.RESPONSE_REJECT]

Generated by  Doxygen 1.6.0   Back to index