aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/MultiContent.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2009-02-10 22:29:43 +0100
committerFelix Domke <tmbinc@elitedvb.net>2009-02-10 22:29:43 +0100
commit90d04613d81ad20728dea5ff9795569bc14df03c (patch)
treeaf5b35e0e866694ebfaab764e79a53522c266867 /lib/python/Components/MultiContent.py
parenteb6da808cc048f7a2e78c200094d290c5b3f2579 (diff)
downloadenigma2-90d04613d81ad20728dea5ff9795569bc14df03c.tar.gz
enigma2-90d04613d81ad20728dea5ff9795569bc14df03c.zip
Add MultoContentTemplateColor, which takes the color out of a templated argument
Diffstat (limited to 'lib/python/Components/MultiContent.py')
-rw-r--r--lib/python/Components/MultiContent.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/python/Components/MultiContent.py b/lib/python/Components/MultiContent.py
index 71096df8..ff0219ff 100644
--- a/lib/python/Components/MultiContent.py
+++ b/lib/python/Components/MultiContent.py
@@ -1,5 +1,7 @@
from enigma import eListboxPythonMultiContent, RT_HALIGN_LEFT, RT_VALIGN_TOP
+def MultiContentTemplateColor(n): return 0xff000000 | n
+
def MultiContentEntryText(pos = (0, 0), size = (0, 0), font = 0, flags = RT_HALIGN_LEFT | RT_VALIGN_TOP, text = "", color = None, color_sel = None, backcolor = None, backcolor_sel = None, border_width = None, border_color = None):
return (eListboxPythonMultiContent.TYPE_TEXT, pos[0], pos[1], size[0], size[1], font, flags, text, color, color_sel, backcolor, backcolor_sel, border_width, border_color)