1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
from enigma import eListboxPythonMultiContent, RT_HALIGN_LEFT, RT_VALIGN_TOP
def MultiContentEntryText(pos = (0, 0), size = (0, 0), font = 0, flags = RT_HALIGN_LEFT | RT_VALIGN_TOP, text = "", color = None):
add = ()
if color is not None:
add = (color, )
return (eListboxPythonMultiContent.TYPE_TEXT, pos[0], pos[1], size[0], size[1], font, flags, text) + add
def MultiContentEntryPixmap(pos = (0, 0), size = (0, 0), png = None):
return (eListboxPythonMultiContent.TYPE_PIXMAP, pos[0], pos[1], size[0], size[1], png)
def MultiContentEntryPixmapAlphaTest(pos = (0, 0), size = (0, 0), png = None):
return (eListboxPythonMultiContent.TYPE_PIXMAP_ALPHATEST, pos[0], pos[1], size[0], size[1], png)
|