X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/7e13c14fb5b2d6e36e62fdfcdc49c3e1fef0183f..72c8ba6c4d1cceadae9e12d79d3532258614a97e:/lib/python/Screens/ChoiceBox.py diff --git a/lib/python/Screens/ChoiceBox.py b/lib/python/Screens/ChoiceBox.py index 533e78d0..7192a229 100644 --- a/lib/python/Screens/ChoiceBox.py +++ b/lib/python/Screens/ChoiceBox.py @@ -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,