1 from HTMLComponent import *
2 from GUIComponent import *
4 from MenuList import MenuList
6 from Tools.Directories import *
19 def LanguageEntryComponent(file, name):
21 res.append((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((10, 5, 60, 40, png))
30 class LanguageList(HTMLComponent, GUIComponent, MenuList):
31 def __init__(self, list):
32 GUIComponent.__init__(self)
33 self.l = eListboxPythonMultiContent()
36 self.l.setFont(0, gFont("Arial", 20))
38 def GUIcreate(self, parent):
39 self.instance = eListbox(parent)
40 self.instance.setContent(self.l)
41 self.instance.setItemHeight(50)