X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/667ffa105dcfede126338406c48fb5094b1191c1..a56c1726adef67d68f66ea3e27e2fa7d4bf0978d:/skin.py diff --git a/skin.py b/skin.py index aa5965bd..d11cce02 100644 --- a/skin.py +++ b/skin.py @@ -71,6 +71,8 @@ def applySingleAttribute(guiObject, desktop, attrib, value): guiObject.setText(value) elif attrib == 'font': guiObject.setFont(parseFont(value)) + elif attrib == 'zPosition': + guiObject.setZPosition(int(value)) elif attrib == "pixmap": ptr = gPixmapPtr() if loadPNG(ptr, value): @@ -80,6 +82,11 @@ def applySingleAttribute(guiObject, desktop, attrib, value): desktop.makeCompatiblePixmap(ptr) guiObject.setPixmap(ptr) # guiObject.setPixmapFromFile(value) + elif attrib == "alphatest": # used by ePixmap + guiObject.setAlphatest( + { "on": True, + "off": False + }[value]) elif attrib == "orientation": # used by eSlider try: guiObject.setOrientation( @@ -119,6 +126,10 @@ def applySingleAttribute(guiObject, desktop, attrib, value): guiObject.setBackgroundColor(parseColor(value)) elif attrib == "foregroundColor": guiObject.setForegroundColor(parseColor(value)) + elif attrib == "selectionDisabled": + guiObject.setSelectionEnable(0) + elif attrib == "transparent": + guiObject.setTransparent(int(value)) elif attrib != 'name': print "unsupported attribute " + attrib + "=" + value except int: