eric6/WebBrowser/WebBrowserWindow.py

changeset 7937
181d1160f617
parent 7923
91e843545d9a
child 7945
76daafe10009
equal deleted inserted replaced
7936:f9f85cf6d102 7937:181d1160f617
8 """ 8 """
9 9
10 import os 10 import os
11 import shutil 11 import shutil
12 import sys 12 import sys
13 import functools
13 14
14 from PyQt5.QtCore import ( 15 from PyQt5.QtCore import (
15 pyqtSlot, pyqtSignal, Qt, QByteArray, QSize, QTimer, QUrl, QProcess, 16 pyqtSlot, pyqtSignal, Qt, QByteArray, QSize, QTimer, QUrl, QProcess,
16 QEvent, QFileInfo 17 QEvent, QFileInfo
17 ) 18 )
2739 2740
2740 script = Scripts.getAllMetaAttributes() 2741 script = Scripts.getAllMetaAttributes()
2741 view.page().runJavaScript( 2742 view.page().runJavaScript(
2742 script, 2743 script,
2743 WebBrowserPage.SafeJsWorld, 2744 WebBrowserPage.SafeJsWorld,
2744 lambda res: self.__bookmarkAllCallback(folder, urlStr, 2745 functools.partial(self.__bookmarkAllCallback,
2745 title, res)) 2746 folder, urlStr, title))
2746 2747
2747 def __bookmarkAllCallback(self, folder, url, title, res): 2748 def __bookmarkAllCallback(self, folder, url, title, res):
2748 """ 2749 """
2749 Private callback method of __addBookmark(). 2750 Private callback method of __addBookmark().
2750 2751

eric ide

mercurial