X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/98c4b5bb004e9297bffa8e1c3572572741fda933..0877ce3b6f6cee972818a8c0a2d1bc862c8482be:/skin.py
diff --git a/skin.py b/skin.py
index 57065076..67b461f1 100644
--- a/skin.py
+++ b/skin.py
@@ -81,18 +81,19 @@ dom = xml.dom.minidom.parseString(
-
-
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
@@ -100,6 +101,9 @@ dom = xml.dom.minidom.parseString(
+
+
+
@@ -170,7 +174,7 @@ def collectAttributes(skinAttributes, node):
# TODO: localization? as in e1?
value = str(a.value)
- skinAttributes[attrib] = value
+ skinAttributes.append((attrib, value))
def applySingleAttribute(guiObject, desktop, attrib, value):
# and set attributes
@@ -232,7 +236,7 @@ def applySingleAttribute(guiObject, desktop, attrib, value):
print "widget %s (%s) doesn't support attribute %s!" % ("", guiObject.__class__.__name__, attrib)
def applyAllAttributes(guiObject, desktop, attributes):
- for (attrib, value) in attributes.items():
+ for (attrib, value) in attributes:
applySingleAttribute(guiObject, desktop, attrib, value)
def loadSkin(desktop):
@@ -298,7 +302,7 @@ def readSkin(screen, skin, name, desktop):
assert myscreen != None, "no skin for screen '" + name + "' found!"
- screen.skinAttributes = { }
+ screen.skinAttributes = [ ]
collectAttributes(screen.skinAttributes, myscreen)
screen.additionalWidgets = [ ]
@@ -312,7 +316,7 @@ def readSkin(screen, skin, name, desktop):
# get corresponding gui object
try:
- attributes = screen[wname].skinAttributes = { }
+ attributes = screen[wname].skinAttributes = [ ]
except:
raise str("component with name '" + wname + "' was not found in skin of screen '" + name + "'!")
@@ -345,7 +349,7 @@ def readSkin(screen, skin, name, desktop):
else:
raise str("unsupported stuff : %s" % widget.tagName)
- w.skinAttributes = { }
+ w.skinAttributes = [ ]
collectAttributes(w.skinAttributes, widget)
# applyAttributes(guiObject, widget, desktop)