12 |
12 |
13 from eric7 import Preferences |
13 from eric7 import Preferences |
14 from eric7.EricGui import EricPixmapCache |
14 from eric7.EricGui import EricPixmapCache |
15 from eric7.EricGui.EricOverrideCursor import EricOverrideCursor |
15 from eric7.EricGui.EricOverrideCursor import EricOverrideCursor |
16 from eric7.EricWidgets import EricMessageBox |
16 from eric7.EricWidgets import EricMessageBox |
|
17 from eric7.EricWidgets.EricSimpleHelpDialog import EricSimpleHelpDialog |
17 |
18 |
18 from .Ui_SafeBrowsingDialog import Ui_SafeBrowsingDialog |
19 from .Ui_SafeBrowsingDialog import Ui_SafeBrowsingDialog |
19 |
20 |
20 |
21 |
21 class SafeBrowsingDialog(QDialog, Ui_SafeBrowsingDialog): |
22 class SafeBrowsingDialog(QDialog, Ui_SafeBrowsingDialog): |
73 def on_gsbHelpButton_clicked(self): |
74 def on_gsbHelpButton_clicked(self): |
74 """ |
75 """ |
75 Private slot to show some help text "How to create a safe |
76 Private slot to show some help text "How to create a safe |
76 browsing API key.". |
77 browsing API key.". |
77 """ |
78 """ |
|
79 from . import SafeBrowsingHelp |
|
80 |
78 if self.__gsbHelpDialog is None: |
81 if self.__gsbHelpDialog is None: |
79 from eric7.EricWidgets.EricSimpleHelpDialog import EricSimpleHelpDialog |
|
80 |
|
81 from . import SafeBrowsingHelp |
|
82 |
|
83 helpStr = SafeBrowsingHelp() |
82 helpStr = SafeBrowsingHelp() |
84 self.__gsbHelpDialog = EricSimpleHelpDialog( |
83 self.__gsbHelpDialog = EricSimpleHelpDialog( |
85 title=self.tr("Google Safe Browsing API Help"), |
84 title=self.tr("Google Safe Browsing API Help"), |
86 helpStr=helpStr, |
85 helpStr=helpStr, |
87 parent=self, |
86 parent=self, |