X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/51370b06a53f4c14e890ea5b570d871067b5ef91..ff90cba66b3ebe6adf9b436fa8ae9ac440a0c70c:/skin.py diff --git a/skin.py b/skin.py index 9d4b7571..5744855c 100644 --- a/skin.py +++ b/skin.py @@ -80,6 +80,14 @@ def applySingleAttribute(guiObject, desktop, attrib, value): desktop.makeCompatiblePixmap(ptr) guiObject.setPixmap(ptr) # guiObject.setPixmapFromFile(value) + elif attrib == "orientation": # used by eSlider + try: + guiObject.setOrientation( + { "orVertical": guiObject.orVertical, + "orHorizontal": guiObject.orHorizontal + }[value]) + except KeyError: + print "oprientation must be either orVertical or orHorizontal!" elif attrib == "valign": try: guiObject.setVAlign( @@ -236,5 +244,4 @@ def readSkin(screen, skin, name, desktop): # applyAttributes(guiObject, widget, desktop) # guiObject.thisown = 0 - print screen.additionalWidgets screen.additionalWidgets.append(w)