14 pyqtSignal, pyqtSlot, Qt, QObject, QTimer, QFile, QFileInfo, QDir, |
14 pyqtSignal, pyqtSlot, Qt, QObject, QTimer, QFile, QFileInfo, QDir, |
15 QSettings, QMetaObject, QUrl, Q_ARG, QCoreApplication |
15 QSettings, QMetaObject, QUrl, Q_ARG, QCoreApplication |
16 ) |
16 ) |
17 from PyQt6.QtWidgets import QDialog |
17 from PyQt6.QtWidgets import QDialog |
18 |
18 |
19 from E5Gui import E5MessageBox |
19 from E5Gui import EricMessageBox |
20 |
20 |
21 import Utilities |
21 import Utilities |
22 import Preferences |
22 import Preferences |
23 |
23 |
24 from WebBrowser.WebBrowserWindow import WebBrowserWindow |
24 from WebBrowser.WebBrowserWindow import WebBrowserWindow |
115 GreaseMonkeyAddScriptDialog |
115 GreaseMonkeyAddScriptDialog |
116 ) |
116 ) |
117 dlg = GreaseMonkeyAddScriptDialog(self, script) |
117 dlg = GreaseMonkeyAddScriptDialog(self, script) |
118 deleteScript = dlg.exec() != QDialog.DialogCode.Accepted |
118 deleteScript = dlg.exec() != QDialog.DialogCode.Accepted |
119 else: |
119 else: |
120 E5MessageBox.information( |
120 EricMessageBox.information( |
121 None, |
121 None, |
122 QCoreApplication.translate( |
122 QCoreApplication.translate( |
123 "GreaseMonkeyManager", |
123 "GreaseMonkeyManager", |
124 "Install GreaseMonkey Script"), |
124 "Install GreaseMonkey Script"), |
125 QCoreApplication.translate( |
125 QCoreApplication.translate( |