-
- for borderset in elementsWithTag(windowstyle.childNodes, "borderset"):
- bsName = str(borderset.getAttribute("name"))
- for pixmap in elementsWithTag(borderset.childNodes, "pixmap"):
- bpName = str(pixmap.getAttribute("pos"))
- filename = str(pixmap.getAttribute("filename"))
-
- png = loadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, filename, path_prefix=path_prefix), desktop)
- style.setPixmap(eWindowStyleSkinned.__dict__[bsName], eWindowStyleSkinned.__dict__[bpName], png)
-
- for color in elementsWithTag(windowstyle.childNodes, "color"):
- type = str(color.getAttribute("name"))
- color = parseColor(color.getAttribute("color"))
-
+ #print " ", font, offset
+
+ for borderset in windowstyle.findall("borderset"):
+ bsName = str(borderset.attrib.get("name"))
+ for pixmap in borderset.findall("pixmap"):
+ get_attr = pixmap.attrib.get
+ bpName = get_attr("pos")
+ filename = get_attr("filename")
+ if filename and bpName:
+ png = loadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, filename, path_prefix=path_prefix), desktop)
+ style.setPixmap(eWindowStyleSkinned.__dict__[bsName], eWindowStyleSkinned.__dict__[bpName], png)
+ #print " borderset:", bpName, filename
+
+ for color in windowstyle.findall("color"):
+ get_attr = color.attrib.get
+ type = get_attr("name")
+ color = parseColor(get_attr("color"))