def offer_web_import (self, parent=None): """Offer to import a URL. Once the file is downloaded, it can be treated by any of our normal plugins for acting on files, or by special web-aware plugins. """ sublabel = _('Enter the URL of a recipe archive or recipe website.') url = de.getEntry(label=_('Enter website address'), sublabel=sublabel, entryLabel=_('Enter URL:'), entryTip=_('Enter the address of a website or recipe archive.'), default_character_width=60, ) if not url: return else: return self.import_url(url)
def offer_web_import(self, parent: Gtk.Window = None): """Offer to import a URL. Once the file is downloaded, it can be treated by any of our normal plugins for acting on files, or by special web-aware plugins. """ sublabel = _('Enter the URL of a recipe archive or recipe website.') url = de.getEntry(label=_('Enter website address'), sublabel=sublabel, entryLabel=_('Enter URL:'), entryTip=_('Enter the address of a website or recipe archive.'), default_character_width=60, ) if url: return self.import_url(url)