WebBrowser/GreaseMonkey/GreaseMonkeyManager.py

changeset 4917
682750cc7bd5
parent 4913
e16573640cb8
child 5389
9b1c800daff3
equal deleted inserted replaced
4915:8081031061a2 4917:682750cc7bd5
74 self, "doDownloadScript", Qt.QueuedConnection, 74 self, "doDownloadScript", Qt.QueuedConnection,
75 Q_ARG(QUrl, url)) 75 Q_ARG(QUrl, url))
76 76
77 @pyqtSlot(QUrl) 77 @pyqtSlot(QUrl)
78 def doDownloadScript(self, url): 78 def doDownloadScript(self, url):
79 """
80 Public slot to download a GreaseMonkey script.
81
82 Note: The download needed to be separated in the invoking part
83 (s.a.) and the one doing the real download because the invoking
84 part runs in a different thread (i.e. the web engine thread).
85
86 @param url URL to download script from
87 @type QUrl
88 """
79 from .GreaseMonkeyDownloader import GreaseMonkeyDownloader 89 from .GreaseMonkeyDownloader import GreaseMonkeyDownloader
80 downloader = GreaseMonkeyDownloader(url, self) 90 downloader = GreaseMonkeyDownloader(url, self)
81 downloader.finished.connect(self.__downloaderFinished) 91 downloader.finished.connect(self.__downloaderFinished)
82 self.__downloaders.append(downloader) 92 self.__downloaders.append(downloader)
83 93

eric ide

mercurial