self.message = message
def __str__(self):
- return self.message
+ return "{%s}: %s" % (config.skin.primary_skin, self.message)
dom_skins = [ ]
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!"
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"):
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