Esempio n. 1
0
    def offer_import(self, parent=None):
        """Offer to import a file or group of files.

        Begin the import if we can in a separate dialog.
        """
        filenames = de.select_file(_("Open recipe..."), filters=self.get_filters(), parent=parent, select_multiple=True)
        if not filenames:
            return
        self.import_filenames(filenames)
Esempio n. 2
0
    def offer_import(self, parent=None):
        """Offer to import a file or group of files.

        Begin the import if we can in a separate dialog.
        """
        filenames = de.select_file(_('Open recipe...'),
                                   filters=self.get_filters(),
                                   parent=parent,
                                   select_multiple=True)
        if not filenames: return
        self.import_filenames(filenames)