diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-06-10 21:30:38 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-06-10 21:30:38 +0000 |
| commit | 0a7e2ed8d31048eee98bf2ffd794743d30d9b953 (patch) | |
| tree | b41525cb446b50cda1c0c6f60a5f67670760bbf7 /lib/python/Components/ChoiceList.py | |
| parent | 429a3845dc97b7f26634a889518214fc86a3366a (diff) | |
| download | enigma2-0a7e2ed8d31048eee98bf2ffd794743d30d9b953.tar.gz enigma2-0a7e2ed8d31048eee98bf2ffd794743d30d9b953.zip | |
- add separation lines to the ChoiceList component
- selection of left/right/stereo added to the audio channel menu
Diffstat (limited to 'lib/python/Components/ChoiceList.py')
| -rw-r--r-- | lib/python/Components/ChoiceList.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/python/Components/ChoiceList.py b/lib/python/Components/ChoiceList.py index fe3e6008..a0fbde54 100644 --- a/lib/python/Components/ChoiceList.py +++ b/lib/python/Components/ChoiceList.py @@ -18,11 +18,14 @@ RT_VALIGN_BOTTOM = 16 def ChoiceEntryComponent(key, text): res = [ text ] - res.append((eListboxPythonMultiContent.TYPE_TEXT, 32, 00, 800, 25, 0, RT_HALIGN_LEFT, text[0])) - - png = loadPNG(resolveFilename(SCOPE_SKIN_IMAGE, "key_" + key + "-fs8.png")) - if png is not None: - res.append((eListboxPythonMultiContent.TYPE_PIXMAP_ALPHATEST, 0, 0, 30, 20, png)) + if text[0] == "--": + res.append((eListboxPythonMultiContent.TYPE_TEXT, 0, 00, 800, 25, 0, RT_HALIGN_LEFT, "-"*200)) + else: + res.append((eListboxPythonMultiContent.TYPE_TEXT, 32, 00, 800, 25, 0, RT_HALIGN_LEFT, text[0])) + + png = loadPNG(resolveFilename(SCOPE_SKIN_IMAGE, "key_" + key + "-fs8.png")) + if png is not None: + res.append((eListboxPythonMultiContent.TYPE_PIXMAP_ALPHATEST, 0, 0, 30, 20, png)) return res |
