ProjectPyramid/Project.py

changeset 133
8f183975895d
parent 132
c0d53fb9a0e0
child 138
72ebb74aa42d
equal deleted inserted replaced
132:c0d53fb9a0e0 133:8f183975895d
94 94
95 class Project(QObject): 95 class Project(QObject):
96 """ 96 """
97 Class implementing the Pyramid project support. 97 Class implementing the Pyramid project support.
98 """ 98 """
99 def __init__(self, plugin, parent=None): 99 def __init__(self, plugin, iconSuffix, parent=None):
100 """ 100 """
101 Constructor 101 Constructor
102 102
103 @param plugin reference to the plugin object 103 @param plugin reference to the plugin object
104 @param parent parent (QObject) 104 @type ProjectPyramidPlugin
105 @param iconSuffix suffix for the icons
106 @type str
107 @param parent parent
108 @type QObject
105 """ 109 """
106 super(Project, self).__init__(parent) 110 super(Project, self).__init__(parent)
107 111
108 self.__plugin = plugin 112 self.__plugin = plugin
113 self.__iconSuffix = iconSuffix
109 self.__ui = parent 114 self.__ui = parent
110 self.__e5project = e5App().getObject("Project") 115 self.__e5project = e5App().getObject("Project")
111 try: 116 try:
112 self.__virtualEnvManager = e5App().getObject("VirtualEnvManager") 117 self.__virtualEnvManager = e5App().getObject("VirtualEnvManager")
113 except KeyError: 118 except KeyError:
894 "</table></p>" 899 "</table></p>"
895 ).format(version, url), 900 ).format(version, url),
896 modal=True, 901 modal=True,
897 buttons=E5MessageBox.Ok) 902 buttons=E5MessageBox.Ok)
898 msgBox.setIconPixmap(UI.PixmapCache.getPixmap( 903 msgBox.setIconPixmap(UI.PixmapCache.getPixmap(
899 os.path.join("ProjectPyramid", "icons", "pyramid64.png"))) 904 os.path.join("ProjectPyramid", "icons",
905 "pyramid64-{0}".format(self.__iconSuffix))
906 ))
900 msgBox.exec_() 907 msgBox.exec_()
901 908
902 def getPyramidVersionString(self): 909 def getPyramidVersionString(self):
903 """ 910 """
904 Public method to get the Pyramid version as a string. 911 Public method to get the Pyramid version as a string.

eric ide

mercurial