X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=skin.py;h=d11cce02f5ee6101cdf93547795ced9694a67675;hb=1806c7b99229f67aba07d971863f9ed5a725ffbe;hp=dc78c1980b952c8e83baa9ee2b0c53916eb12ace;hpb=52f9ca652c2371b06715265ff74b5b6a680f30b2;p=vuplus_dvbapp diff --git a/skin.py b/skin.py index dc78c19..d11cce0 100644 --- a/skin.py +++ b/skin.py @@ -82,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( @@ -121,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: