git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
small fix
[enigma2.git]
/
skin.py
diff --git
a/skin.py
b/skin.py
index cf22967f42bb8a2fbf588a05845727b9a630204e..d11cce02f5ee6101cdf93547795ced9694a67675 100644
(file)
--- a/
skin.py
+++ b/
skin.py
@@
-72,7
+72,7
@@
def applySingleAttribute(guiObject, desktop, attrib, value):
elif attrib == 'font':
guiObject.setFont(parseFont(value))
elif attrib == 'zPosition':
elif attrib == 'font':
guiObject.setFont(parseFont(value))
elif attrib == 'zPosition':
- guiObject.setZPosition(
value
)
+ guiObject.setZPosition(
int(value)
)
elif attrib == "pixmap":
ptr = gPixmapPtr()
if loadPNG(ptr, value):
elif attrib == "pixmap":
ptr = gPixmapPtr()
if loadPNG(ptr, value):
@@
-82,6
+82,11
@@
def applySingleAttribute(guiObject, desktop, attrib, value):
desktop.makeCompatiblePixmap(ptr)
guiObject.setPixmap(ptr)
# guiObject.setPixmapFromFile(value)
desktop.makeCompatiblePixmap(ptr)
guiObject.setPixmap(ptr)
# guiObject.setPixmapFromFile(value)
+ elif attrib == "alphatest": # used by ePixmap
+ guiObject.setAlphatest(
+ { "on": True,
+ "off": False
+ }[value])
elif attrib == "orientation": # used by eSlider
try:
guiObject.setOrientation(
elif attrib == "orientation": # used by eSlider
try:
guiObject.setOrientation(
@@
-121,6
+126,10
@@
def applySingleAttribute(guiObject, desktop, attrib, value):
guiObject.setBackgroundColor(parseColor(value))
elif attrib == "foregroundColor":
guiObject.setForegroundColor(parseColor(value))
guiObject.setBackgroundColor(parseColor(value))
elif attrib == "foregroundColor":
guiObject.setForegroundColor(parseColor(value))
+ elif attrib == "selectionDisabled":
+ guiObject.setSelectionEnable(0)
+ elif attrib == "transparent":
+ guiObject.setTransparent(int(value))
elif attrib != 'name':
print "unsupported attribute " + attrib + "=" + value
except int:
elif attrib != 'name':
print "unsupported attribute " + attrib + "=" + value
except int: