add ability to remove list and config from a wizard
[enigma2.git] / lib / python / Components / LanguageList.py
index 82b13eeb64008c176e07b6b56829e7e36386f7a6..def29c93c7614041aa79d74cc3c38c318a993df6 100644 (file)
@@ -3,6 +3,8 @@ from GUIComponent import *
 
 from MenuList import MenuList
 
+from Tools.Directories import *
+
 from enigma import *
 
 RT_HALIGN_LEFT = 0
@@ -16,11 +18,11 @@ RT_VALIGN_BOTTOM = 16
 
 def LanguageEntryComponent(file, name):
        res = [ None ]
-       res.append((70, 0, 400, 30, 0, RT_HALIGN_LEFT, name))
-       png = loadPNG("/usr/share/enigma2/countries/" + file + ".png")
+       res.append((80, 10, 200, 50, 0, RT_HALIGN_LEFT , name))
+       png = loadPNG(resolveFilename(SCOPE_SKIN_IMAGE, "/countries/" + file + ".png"))
        if png == None:
-               png = loadPNG("/usr/share/enigma2/countries/missing.png")
-       res.append((0, 5, 60, 40, png))
+               png = loadPNG(resolveFilename(SCOPE_SKIN_IMAGE, "/countries/missing.png"))
+       res.append((10, 5, 60, 40, png))
        
        return res
 
@@ -31,7 +33,7 @@ class LanguageList(HTMLComponent, GUIComponent, MenuList):
                self.l = eListboxPythonMultiContent()
                self.list = list
                self.l.setList(list)
-               self.l.setFont(0, gFont("Arial", 25))
+               self.l.setFont(0, gFont("Arial", 20))
        
        def GUIcreate(self, parent):
                self.instance = eListbox(parent)