eric7/Plugins/UiExtensionPlugins/Translator/Translator.py

branch
eric7
changeset 9148
b31f0d894b55
parent 8881
54e42bc2437a
equal deleted inserted replaced
9147:bbf3af40c223 9148:b31f0d894b55
93 93
94 def getAppIcon(self, name): 94 def getAppIcon(self, name):
95 """ 95 """
96 Public method to get an icon. 96 Public method to get an icon.
97 97
98 @param name name of the icon file (string) 98 @param name name of the icon file
99 @return icon (QIcon) 99 @type str
100 @return icon
101 @rtype QIcon
100 """ 102 """
101 return UI.PixmapCache.getIcon(os.path.join( 103 return UI.PixmapCache.getIcon(os.path.join(
102 os.path.dirname(__file__), "icons", 104 os.path.dirname(__file__), "icons",
103 "{0}-{1}".format(name, self.__iconSuffix) 105 "{0}-{1}".format(name, self.__iconSuffix)
104 )) 106 ))

eric ide

mercurial