eric6/Plugins/UiExtensionPlugins/Translator/Translator.py

changeset 7513
d8354f4d3dc7
parent 7505
7d3cfeeb5f4f
child 7780
41420f82c0ac
equal deleted inserted replaced
7512:170e64742ae7 7513:d8354f4d3dc7
24 """ 24 """
25 def __init__(self, plugin, usesDarkPalette, parent=None): 25 def __init__(self, plugin, usesDarkPalette, parent=None):
26 """ 26 """
27 Constructor 27 Constructor
28 28
29 @param plugin reference to the plugin object (TranslatorPlugin) 29 @param plugin reference to the plugin object
30 @param parent parent (QObject) 30 @type TranslatorPlugin
31 @param usesDarkPalette flag indicating that the platform uses a palette
32 with a dark background
33 @type bool
34 @param parent parent
35 @type QObject
31 """ 36 """
32 QObject.__init__(self, parent) 37 QObject.__init__(self, parent)
33 38
34 self.__plugin = plugin 39 self.__plugin = plugin
35 self.__ui = parent 40 self.__ui = parent
90 @param name name of the icon file (string) 95 @param name name of the icon file (string)
91 @return icon (QIcon) 96 @return icon (QIcon)
92 """ 97 """
93 return UI.PixmapCache.getIcon(os.path.join( 98 return UI.PixmapCache.getIcon(os.path.join(
94 os.path.dirname(__file__), "icons", 99 os.path.dirname(__file__), "icons",
95 "{0}-{1}".format(name, self.__iconSuffix) 100 "{0}-{1}".format(name, self.__iconSuffix)
96 )) 101 ))
97 102
98 def __activateWidget(self): 103 def __activateWidget(self):
99 """ 104 """
100 Private slot to handle the activation of the project browser. 105 Private slot to handle the activation of the project browser.

eric ide

mercurial