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,