X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/c0b2f8915fe21e99215dc97b4483f3e8a993a7ff..737d231c90d1e7ca5971346a4acddad5a6a58a1c:/skin.py diff --git a/skin.py b/skin.py index dd107905..03fe96bb 100644 --- a/skin.py +++ b/skin.py @@ -147,11 +147,11 @@ def applySingleAttribute(guiObject, desktop, attrib, value, scale = ((1,1),(1,1) try: guiObject.setOrientation(* { "orVertical": (guiObject.orVertical, False), - "orTopToBottom": (guiObject.olVertical, False), + "orTopToBottom": (guiObject.orVertical, False), "orBottomToTop": (guiObject.orVertical, True), "orHorizontal": (guiObject.orHorizontal, False), "orLeftToRight": (guiObject.orHorizontal, False), - "orRightToRight": (guiObject.orHorizontal, True), + "orRightToLeft": (guiObject.orHorizontal, True), }[value]) except KeyError: print "oprientation must be either orVertical or orHorizontal!" @@ -274,7 +274,7 @@ def loadSingleSkinData(desktop, skin, path_prefix): colorNames[name] = parseColor(color) #print "Color:", name, color else: - raise ("need color and name, got %s %s" % (name, color)) + raise SkinError("need color and name, got %s %s" % (name, color)) for c in skin.findall("fonts"): for font in c.findall("font"): @@ -335,7 +335,7 @@ def loadSingleSkinData(desktop, skin, path_prefix): try: style.setColor(eWindowStyleSkinned.__dict__["col" + type], color) except: - raise ("Unknown color %s" % (type)) + raise SkinError("Unknown color %s" % (type)) #pass #print " color:", type, color