From 2e7756545fac96085253c4f669d12e5665cecae3 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Fri, 24 Feb 2006 22:31:00 +0000 Subject: turn magic into python --- lib/python/Components/MultiContent.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lib/python/Components/MultiContent.py (limited to 'lib/python/Components/MultiContent.py') diff --git a/lib/python/Components/MultiContent.py b/lib/python/Components/MultiContent.py new file mode 100644 index 00000000..a7283419 --- /dev/null +++ b/lib/python/Components/MultiContent.py @@ -0,0 +1,15 @@ +RT_HALIGN_LEFT = 0 +RT_HALIGN_RIGHT = 1 +RT_HALIGN_CENTER = 2 +RT_HALIGN_BLOCK = 4 + +RT_VALIGN_TOP = 0 +RT_VALIGN_CENTER = 8 +RT_VALIGN_BOTTOM = 16 + +RT_WRAP = 32 + +from enigma import eListboxPythonMultiContent + +def MultiContentEntryText(pos = (0, 0), size = (0, 0), font = 0, flags = 0, text = "", private = ()): + return (eListboxPythonMultiContent.TYPE_TEXT, pos[0], pos[1], size[0], size[1], font, flags, text) + private -- cgit v1.2.3