X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=skin.py;h=a76f7942c0897e8dd1de8d19d6db5196bd6bedca;hp=d44e5033606301dc306a4024cabec78823661022;hb=ddd3b54bd32d9bbf0768856093fcf2329525832e;hpb=ae59e9cff74f8b5c36203b43ab5be0ead370b096 diff --git a/skin.py b/skin.py index d44e503..a76f794 100644 --- a/skin.py +++ b/skin.py @@ -145,6 +145,8 @@ def applySingleAttribute(guiObject, desktop, attrib, value, scale = ((1,1),(1,1) "off": 0, "blend": 2, }[value]) + elif attrib == "scale": + guiObject.setScale(1) elif attrib == "orientation": # used by eSlider try: guiObject.setOrientation(* @@ -316,7 +318,7 @@ def loadSingleSkinData(desktop, skin, path_prefix): else: shadowColor = gRGB(0) shadowOffset = parsePosition(get_attr("shadowOffset"), scale) - face = eval("eSubtitleWidget.%s" % get_attr("name")) + face = eSubtitleWidget.__dict__[get_attr("name")] eSubtitleWidget.setFontStyle(face, font, haveColor, foregroundColor, shadowColor, shadowOffset) for windowstyle in skin.findall("windowstyle"):