fix typo and resize text in image upgrade wizard
[enigma2.git] / lib / python / Screens / ChoiceBox.py
index 533e78d075d6da9d29bc6a1602b00b741acf4530..7192a229c596721b14f6d73e02fb7888c3f1527c 100644 (file)
@@ -9,16 +9,17 @@ from Components.GUIComponent import *
 import os
 
 class ChoiceBox(Screen):
-       def __init__(self, session, title = "", **kwargs):
+       def __init__(self, session, title = "", list = []):
                Screen.__init__(self, session)
 
                self["text"] = Label(title)
-               self["list"] = MenuList(**kwargs)
+               self.list = list
+               self["list"] = MenuList(list)
                                
                self["actions"] = NumberActionMap(["WizardActions", "InputActions"], 
                {
                        "ok": self.go,
-                       "back": self.close,
+                       "back": self.cancel,
                        "1": self.keyNumberGlobal,
                        "2": self.keyNumberGlobal,
                        "3": self.keyNumberGlobal,