Added a specific icon for the PyPI related menu and config entry.

Thu, 14 Feb 2019 18:57:31 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 14 Feb 2019 18:57:31 +0100
changeset 6744
f5249a9927c9
parent 6743
833eebe73909
child 6745
f6f00daebdca
child 6754
1177e27b0276

Added a specific icon for the PyPI related menu and config entry.

Plugins/PluginPipInterface.py file | annotate | diff | comparison | revisions
Plugins/UiExtensionPlugins/PipInterface/Pip.py file | annotate | diff | comparison | revisions
icons/default/pypi.png file | annotate | diff | comparison | revisions
--- a/Plugins/PluginPipInterface.py	Thu Feb 14 18:48:32 2019 +0100
+++ b/Plugins/PluginPipInterface.py	Thu Feb 14 18:57:31 2019 +0100
@@ -93,7 +93,7 @@
         "pipPage": [
             QCoreApplication.translate(
                 "PipInterfacePlugin", "Python Package Management"),
-            "preferences-python.png",
+            "pypi.png",
             createPipPage, None, None
         ],
     }
--- a/Plugins/UiExtensionPlugins/PipInterface/Pip.py	Thu Feb 14 18:48:32 2019 +0100
+++ b/Plugins/UiExtensionPlugins/PipInterface/Pip.py	Thu Feb 14 18:57:31 2019 +0100
@@ -29,6 +29,8 @@
 import Preferences
 import Globals
 
+import UI.PixmapCache
+
 
 class Pip(QObject):
     """
@@ -367,6 +369,8 @@
         
         menu = QMenu(self.tr('P&ython Package Management'), self.__ui)
         menu.setTearOffEnabled(True)
+        menu.setIcon(UI.PixmapCache.getIcon("pypi.png"),
+                                      )
         
         menu.addAction(self.selectEnvironmentAct)
         menu.addSeparator()
Binary file icons/default/pypi.png has changed

eric ide

mercurial