ProjectPyramid/Project.py

changeset 133
8f183975895d
parent 132
c0d53fb9a0e0
child 138
72ebb74aa42d
--- a/ProjectPyramid/Project.py	Wed Jan 01 11:58:58 2020 +0100
+++ b/ProjectPyramid/Project.py	Thu Apr 09 18:16:19 2020 +0200
@@ -96,16 +96,21 @@
     """
     Class implementing the Pyramid project support.
     """
-    def __init__(self, plugin, parent=None):
+    def __init__(self, plugin, iconSuffix, parent=None):
         """
         Constructor
         
         @param plugin reference to the plugin object
-        @param parent parent (QObject)
+        @type ProjectPyramidPlugin
+        @param iconSuffix suffix for the icons
+        @type str
+        @param parent parent
+        @type QObject
         """
         super(Project, self).__init__(parent)
         
         self.__plugin = plugin
+        self.__iconSuffix = iconSuffix
         self.__ui = parent
         self.__e5project = e5App().getObject("Project")
         try:
@@ -896,7 +901,9 @@
             modal=True,
             buttons=E5MessageBox.Ok)
         msgBox.setIconPixmap(UI.PixmapCache.getPixmap(
-            os.path.join("ProjectPyramid", "icons", "pyramid64.png")))
+            os.path.join("ProjectPyramid", "icons",
+                         "pyramid64-{0}".format(self.__iconSuffix))
+        ))
         msgBox.exec_()
     
     def getPyramidVersionString(self):

eric ide

mercurial