src/eric7/WebBrowser/SafeBrowsing/SafeBrowsingDialog.py

branch
eric7
changeset 9473
3f23dbf37dbe
parent 9413
80c06d472826
child 9482
a2bc06a54d9d
equal deleted inserted replaced
9472:5798ee4a8807 9473:3f23dbf37dbe
5 5
6 """ 6 """
7 Module implementing a dialog to configure safe browsing support. 7 Module implementing a dialog to configure safe browsing support.
8 """ 8 """
9 9
10 from PyQt6.QtCore import pyqtSlot, Qt, QUrl, QDateTime 10 from PyQt6.QtCore import QDateTime, Qt, QUrl, pyqtSlot
11 from PyQt6.QtWidgets import QDialog, QDialogButtonBox, QAbstractButton 11 from PyQt6.QtWidgets import QAbstractButton, QDialog, QDialogButtonBox
12 12
13 from eric7 import Preferences
14 from eric7.EricGui import EricPixmapCache
15 from eric7.EricGui.EricOverrideCursor import EricOverrideCursor
13 from eric7.EricWidgets import EricMessageBox 16 from eric7.EricWidgets import EricMessageBox
14 from eric7.EricGui.EricOverrideCursor import EricOverrideCursor
15 17
16 from .Ui_SafeBrowsingDialog import Ui_SafeBrowsingDialog 18 from .Ui_SafeBrowsingDialog import Ui_SafeBrowsingDialog
17
18 from eric7.EricGui import EricPixmapCache
19 from eric7 import Preferences
20 19
21 20
22 class SafeBrowsingDialog(QDialog, Ui_SafeBrowsingDialog): 21 class SafeBrowsingDialog(QDialog, Ui_SafeBrowsingDialog):
23 """ 22 """
24 Class implementing a dialog to configure safe browsing support. 23 Class implementing a dialog to configure safe browsing support.
76 Private slot to show some help text "How to create a safe 75 Private slot to show some help text "How to create a safe
77 browsing API key.". 76 browsing API key.".
78 """ 77 """
79 if self.__gsbHelpDialog is None: 78 if self.__gsbHelpDialog is None:
80 from eric7.EricWidgets.EricSimpleHelpDialog import EricSimpleHelpDialog 79 from eric7.EricWidgets.EricSimpleHelpDialog import EricSimpleHelpDialog
80
81 from . import SafeBrowsingHelp 81 from . import SafeBrowsingHelp
82 82
83 helpStr = SafeBrowsingHelp() 83 helpStr = SafeBrowsingHelp()
84 self.__gsbHelpDialog = EricSimpleHelpDialog( 84 self.__gsbHelpDialog = EricSimpleHelpDialog(
85 title=self.tr("Google Safe Browsing API Help"), 85 title=self.tr("Google Safe Browsing API Help"),

eric ide

mercurial