X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=skin.py;h=d11cce02f5ee6101cdf93547795ced9694a67675;hb=738b4b576eee308b08d3769f6139f989f970a62d;hp=a756db8ab1b384145e9a85f236641601b7884ac1;hpb=93cd5e0cb29c3257c4cf34c296e5adc6b8b7580f;p=vuplus_dvbapp diff --git a/skin.py b/skin.py index a756db8..d11cce0 100644 --- a/skin.py +++ b/skin.py @@ -66,11 +66,13 @@ def applySingleAttribute(guiObject, desktop, attrib, value): elif attrib == 'size': guiObject.resize(parseSize(value)) elif attrib == 'title': - guiObject.setTitle(value) + guiObject.setTitle(_(value)) elif attrib == 'text': 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: