make ChoiceBox skinnable
authorFelix Domke <tmbinc@elitedvb.net>
Thu, 19 Mar 2009 00:08:00 +0000 (01:08 +0100)
committerFelix Domke <tmbinc@elitedvb.net>
Thu, 19 Mar 2009 00:08:00 +0000 (01:08 +0100)
lib/python/Screens/ChoiceBox.py

index 4739b7e..f33ab0e 100644 (file)
@@ -5,8 +5,10 @@ from Components.ChoiceList import ChoiceEntryComponent, ChoiceList
 from Components.Sources.StaticText import StaticText
 
 class ChoiceBox(Screen):
-       def __init__(self, session, title = "", list = [], keys = None, selection = 0):
+       def __init__(self, session, title = "", list = [], keys = None, selection = 0, skin_name = []):
                Screen.__init__(self, session)
+               
+               self.skinName = ["ChoiceBox"] + skin_name
 
                self["text"] = Label(title)
                self.list = []