# read the skin
try:
- skinfile = file('/usr/share/enigma2/skin.xml', 'r')
- dom = xml.dom.minidom.parseString(skinfile.read())
- skinfile.close()
+ # first we search in the current path
+ skinfile = file('data/skin.xml', 'r')
except:
- print "Error opening skin.xml"
+ # if not found in the current path, we use the global datadir-path
+ skinfile = file('/usr/share/enigma2/skin.xml', 'r')
+dom = xml.dom.minidom.parseString(skinfile.read())
+skinfile.close()
+
def parsePosition(str):
x, y = str.split(',')
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(
for windowstyle in elementsWithTag(skin.childNodes, "windowstyle"):
style = eWindowStyleSkinned()
+ style.setTitleFont(gFont("Arial", 20));
+ style.setTitleOffset(eSize(20, 5));
+
for borderset in elementsWithTag(windowstyle.childNodes, "borderset"):
bsName = str(borderset.getAttribute("name"))
for pixmap in elementsWithTag(borderset.childNodes, "pixmap"):
# applyAttributes(guiObject, widget, desktop)
# guiObject.thisown = 0
- print screen.additionalWidgets
screen.additionalWidgets.append(w)