1 from Screen import Screen
3 from Components.Pixmap import *
4 from Components.Pixmap import Pixmap
5 from Components.Pixmap import MovingPixmap
6 from Components.Label import Label
7 from Components.Slider import Slider
8 from Components.ActionMap import ActionMap
9 from Components.HelpMenuList import HelpMenuList
11 from xml.sax import make_parser
12 from xml.sax.handler import ContentHandler
13 from Components.MenuList import MenuList
15 class HelpMenu(Screen):
16 def __init__(self, session, list):
17 Screen.__init__(self, session)
18 self.onSelChanged = [ ]
20 self["list"] = HelpMenuList(list, self.close)
21 self["list"].onSelChanged.append(self.SelectionChanged)
24 self["arrowup"] = MovingPixmap()
26 self["actions"] = ActionMap(["WizardActions"],
28 "ok": self["list"].ok,
32 def SelectionChanged(self):
33 selection = self["list"].getCurrent()[3]
35 self["arrowup"].instance.hide()
37 self["arrowup"].moveTo(selection[1], selection[2], 1)
38 self["arrowup"].startMoving()
39 self["arrowup"].instance.show()
43 self["helpActions"] = ActionMap( [ "HelpActions" ],
45 "displayHelp": self.showHelp,
48 self.session.openWithCallback(self.callHelpAction, HelpMenu, self.helpList)
49 def callHelpAction(self, *args):
51 (actionmap, context, action) = args
52 actionmap.action(context, action)