diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2009-01-19 12:55:27 +0100 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2009-01-19 13:41:59 +0100 |
| commit | 4621e2ba14ebc9c955e3bf669a5c8799f65f46e1 (patch) | |
| tree | ada4a21b4a90650cd210c2d9a479cfd7cf706437 /skin.py | |
| parent | 1076e4717bcf0eb93d803f73b2b75a8ae192b143 (diff) | |
| download | enigma2-4621e2ba14ebc9c955e3bf669a5c8799f65f46e1.tar.gz enigma2-4621e2ba14ebc9c955e3bf669a5c8799f65f46e1.zip | |
make slider orientation configurable into 4 directions
Diffstat (limited to 'skin.py')
| -rw-r--r-- | skin.py | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -145,9 +145,13 @@ def applySingleAttribute(guiObject, desktop, attrib, value, scale = ((1,1),(1,1) }[value]) elif attrib == "orientation": # used by eSlider try: - guiObject.setOrientation( - { "orVertical": guiObject.orVertical, - "orHorizontal": guiObject.orHorizontal + guiObject.setOrientation(* + { "orVertical": (guiObject.orVertical, False), + "orTopToBottom": (guiObject.olVertical, False), + "orBottomToTop": (guiObject.orVertical, True), + "orHorizontal": (guiObject.orHorizontal, False), + "orLeftToRight": (guiObject.orHorizontal, False), + "orRightToRight": (guiObject.orHorizontal, True), }[value]) except KeyError: print "oprientation must be either orVertical or orHorizontal!" |
