Add MultoContentTemplateColor, which takes the color out of a templated argument
authorFelix Domke <tmbinc@elitedvb.net>
Tue, 10 Feb 2009 21:29:43 +0000 (22:29 +0100)
committerFelix Domke <tmbinc@elitedvb.net>
Tue, 10 Feb 2009 21:29:43 +0000 (22:29 +0100)
lib/python/Components/MultiContent.py

index 71096df..ff0219f 100644 (file)
@@ -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)