projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
711ea79
)
allow strings to be used for skin_name
author
Felix Domke
<tmbinc@elitedvb.net>
Sun, 22 Mar 2009 23:31:40 +0000
(
00:31
+0100)
committer
Felix Domke
<tmbinc@elitedvb.net>
Sun, 22 Mar 2009 23:31:40 +0000
(
00:31
+0100)
lib/python/Screens/ChoiceBox.py
patch
|
blob
|
history
diff --git
a/lib/python/Screens/ChoiceBox.py
b/lib/python/Screens/ChoiceBox.py
index
f33ab0e
..
7c8b142
100644
(file)
--- a/
lib/python/Screens/ChoiceBox.py
+++ b/
lib/python/Screens/ChoiceBox.py
@@
-7,8
+7,10
@@
from Components.Sources.StaticText import StaticText
class ChoiceBox(Screen):
def __init__(self, session, title = "", list = [], keys = None, selection = 0, skin_name = []):
Screen.__init__(self, session)
-
- self.skinName = ["ChoiceBox"] + skin_name
+
+ if isinstance(skin_name, str):
+ skin_name = [skin_name]
+ self.skinName = skin_name + ["ChoiceBox"]
self["text"] = Label(title)
self.list = []