diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-02-21 02:18:26 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-02-21 02:18:26 +0000 |
| commit | e8964009640203424b6180a0e93857062c01c166 (patch) | |
| tree | a94c9aa53617b5d7edabe28b24d40af50ee1cfa6 /skin.py | |
| parent | 2aff0c546cf7dca130f5d68f0110704e6f08109d (diff) | |
| download | enigma2-e8964009640203424b6180a0e93857062c01c166.tar.gz enigma2-e8964009640203424b6180a0e93857062c01c166.zip | |
'pointer' attribute for position gauge
Diffstat (limited to 'skin.py')
| -rw-r--r-- | skin.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -72,6 +72,7 @@ def applySingleAttribute(guiObject, desktop, attrib, value): guiObject.setZPosition(int(value)) elif attrib == "pixmap": ptr = loadPNG(value) + # that __deref__ still scares me! desktop.makeCompatiblePixmap(ptr.__deref__()) guiObject.setPixmap(ptr.__deref__()) # guiObject.setPixmapFromFile(value) @@ -135,6 +136,12 @@ def applySingleAttribute(guiObject, desktop, attrib, value): }[value]) elif attrib == "enableWrapAround": guiObject.setWrapAround(True) + elif attrib == "pointer": + (name, pos) = value.split(':') + pos = parsePosition(pos) + ptr = loadPNG(name) + desktop.makeCompatiblePixmap(ptr.__deref__()) + guiObject.setPointer(ptr.__deref__(), pos) elif attrib != 'name': print "unsupported attribute " + attrib + "=" + value except int: |
