1 from Screen import Screen
3 from Components.ActionMap import ActionMap
4 from Components.HelpMenuList import HelpMenuList
6 class HelpMenu(Screen):
7 def __init__(self, session, list):
8 Screen.__init__(self, session)
10 self["list"] = HelpMenuList(list, self.close)
11 self["actions"] = ActionMap(["OkCancelActions"],
14 "ok": self["list"].ok,
19 self["helpActions"] = ActionMap( [ "HelpActions" ],
21 "displayHelp": self.showHelp,
25 self.session.openWithCallback(self.callHelpAction, HelpMenu, self.helpList)
27 def callHelpAction(self, *args):
29 (actionmap, context, action) = args
30 actionmap.action(context, action)