1 from HTMLComponent import *
2 from GUIComponent import *
4 from MenuList import MenuList
6 from Tools.Directories import *
19 def LanguageEntryComponent(file, name, index):
21 res.append((eListboxPythonMultiContent.TYPE_TEXT, 80, 10, 200, 50, 0, RT_HALIGN_LEFT ,name))
22 png = loadPNG(resolveFilename(SCOPE_SKIN_IMAGE, "countries/" + file + ".png"))
24 png = loadPNG(resolveFilename(SCOPE_SKIN_IMAGE, "countries/missing.png"))
25 res.append((eListboxPythonMultiContent.TYPE_PIXMAP, 10, 5, 60, 40, png))
29 class LanguageList(MenuList, HTMLComponent, GUIComponent):
30 def __init__(self, list):
31 GUIComponent.__init__(self)
32 self.l = eListboxPythonMultiContent()
35 self.l.setFont(0, gFont("Regular", 20))
39 def postWidgetCreate(self, instance):
40 instance.setContent(self.l)
41 instance.setItemHeight(50)