src/eric7/Project/ProjectResourcesBrowser.py

branch
eric7
changeset 9413
80c06d472826
parent 9221
bf71ee032bb4
child 9462
e65379fdbd97
diff -r 45e7bb09c120 -r 80c06d472826 src/eric7/Project/ProjectResourcesBrowser.py
--- a/src/eric7/Project/ProjectResourcesBrowser.py	Tue Oct 18 16:05:20 2022 +0200
+++ b/src/eric7/Project/ProjectResourcesBrowser.py	Tue Oct 18 16:06:21 2022 +0200
@@ -14,9 +14,9 @@
 from PyQt6.QtCore import QThread, pyqtSignal, QProcess
 from PyQt6.QtWidgets import QDialog, QApplication, QMenu
 
-from EricWidgets.EricApplication import ericApp
-from EricWidgets import EricMessageBox, EricFileDialog
-from EricWidgets.EricProgressDialog import EricProgressDialog
+from eric7.EricWidgets.EricApplication import ericApp
+from eric7.EricWidgets import EricMessageBox, EricFileDialog
+from eric7.EricWidgets.EricProgressDialog import EricProgressDialog
 
 from .ProjectBrowserModel import (
     ProjectBrowserFileItem,
@@ -26,11 +26,10 @@
 )
 from .ProjectBaseBrowser import ProjectBaseBrowser
 
-import UI.PixmapCache
-from UI.NotificationWidget import NotificationTypes
+from eric7.EricGui import EricPixmapCache
+from eric7.UI.NotificationWidget import NotificationTypes
 
-import Preferences
-import Utilities
+from eric7 import Preferences, Utilities
 
 
 class ProjectResourcesBrowser(ProjectBaseBrowser):
@@ -558,7 +557,7 @@
             fn = self.project.getRelativePath(fn2)
             files.append(fn)
 
-        from UI.DeleteFilesConfirmationDialog import DeleteFilesConfirmationDialog
+        from eric7.UI.DeleteFilesConfirmationDialog import DeleteFilesConfirmationDialog
 
         dlg = DeleteFilesConfirmationDialog(
             self.parent(),
@@ -633,7 +632,7 @@
                 if self.compiledFile not in self.project.pdata["SOURCES"]:
                     self.project.appendFile(ofn)
                 ui.showNotification(
-                    UI.PixmapCache.getPixmap("resourcesCompiler48"),
+                    EricPixmapCache.getPixmap("resourcesCompiler48"),
                     self.tr("Resource Compilation"),
                     self.tr("The compilation of the resource file" " was successful."),
                 )
@@ -649,7 +648,7 @@
                     )
         else:
             ui.showNotification(
-                UI.PixmapCache.getPixmap("resourcesCompiler48"),
+                EricPixmapCache.getPixmap("resourcesCompiler48"),
                 self.tr("Resource Compilation"),
                 self.tr("The compilation of the resource file failed."),
                 kind=NotificationTypes.CRITICAL,

eric ide

mercurial