src/eric7/WebBrowser/GreaseMonkey/GreaseMonkeyAddScriptDialog.py

branch
eric7
changeset 9413
80c06d472826
parent 9221
bf71ee032bb4
child 9473
3f23dbf37dbe
--- a/src/eric7/WebBrowser/GreaseMonkey/GreaseMonkeyAddScriptDialog.py	Tue Oct 18 16:05:20 2022 +0200
+++ b/src/eric7/WebBrowser/GreaseMonkey/GreaseMonkeyAddScriptDialog.py	Tue Oct 18 16:06:21 2022 +0200
@@ -16,8 +16,8 @@
 
 from .Ui_GreaseMonkeyAddScriptDialog import Ui_GreaseMonkeyAddScriptDialog
 
-import UI.PixmapCache
-from UI.NotificationWidget import NotificationTypes
+from eric7.EricGui import EricPixmapCache
+from eric7.UI.NotificationWidget import NotificationTypes
 
 
 class GreaseMonkeyAddScriptDialog(QDialog, Ui_GreaseMonkeyAddScriptDialog):
@@ -37,7 +37,7 @@
         super().__init__(parent)
         self.setupUi(self)
 
-        self.iconLabel.setPixmap(UI.PixmapCache.getPixmap("greaseMonkey48"))
+        self.iconLabel.setPixmap(EricPixmapCache.getPixmap("greaseMonkey48"))
 
         self.__manager = manager
         self.__script = script
@@ -70,13 +70,13 @@
         """
         Private slot to show an editor window with the source code.
         """
-        from WebBrowser.Tools import WebBrowserTools
+        from eric7.WebBrowser.Tools import WebBrowserTools
 
         tmpFileName = WebBrowserTools.ensureUniqueFilename(
             os.path.join(QDir.tempPath(), "tmp-userscript.js")
         )
         if shutil.copy(self.__script.fileName(), tmpFileName):
-            from QScintilla.MiniEditor import MiniEditor
+            from eric7.QScintilla.MiniEditor import MiniEditor
 
             editor = MiniEditor(tmpFileName, "JavaScript", self)
             editor.show()
@@ -94,17 +94,17 @@
             msg = self.tr("<p>Cannot install script.</p>")
             success = False
 
-        from WebBrowser.WebBrowserWindow import WebBrowserWindow
+        from eric7.WebBrowser.WebBrowserWindow import WebBrowserWindow
 
         if success:
             WebBrowserWindow.showNotification(
-                UI.PixmapCache.getPixmap("greaseMonkey48"),
+                EricPixmapCache.getPixmap("greaseMonkey48"),
                 self.tr("GreaseMonkey Script Installation"),
                 msg,
             )
         else:
             WebBrowserWindow.showNotification(
-                UI.PixmapCache.getPixmap("greaseMonkey48"),
+                EricPixmapCache.getPixmap("greaseMonkey48"),
                 self.tr("GreaseMonkey Script Installation"),
                 msg,
                 kind=NotificationTypes.CRITICAL,

eric ide

mercurial