src/eric7/Plugins/UiExtensionPlugins/Translator/TranslatorLanguagesDb.py

branch
eric7
changeset 9413
80c06d472826
parent 9221
bf71ee032bb4
child 9653
e67609152c5e
equal deleted inserted replaced
9412:45e7bb09c120 9413:80c06d472826
9 9
10 import os 10 import os
11 11
12 from PyQt6.QtCore import QObject 12 from PyQt6.QtCore import QObject
13 13
14 import UI.PixmapCache 14 from eric7.EricGui import EricPixmapCache
15 15
16 16
17 class TranslatorLanguagesDb(QObject): 17 class TranslatorLanguagesDb(QObject):
18 """ 18 """
19 Class implementing the translation languages database. 19 Class implementing the translation languages database.
143 @param code language code 143 @param code language code
144 @type str 144 @type str
145 @return language icon 145 @return language icon
146 @rtype QIcon 146 @rtype QIcon
147 """ 147 """
148 return UI.PixmapCache.getIcon( 148 return EricPixmapCache.getIcon(
149 os.path.join( 149 os.path.join(
150 os.path.dirname(__file__), "icons", "flags", "{0}".format(code) 150 os.path.dirname(__file__), "icons", "flags", "{0}".format(code)
151 ) 151 )
152 ) 152 )
153 153

eric ide

mercurial