Beispiel #1
0
	def __init__(self, session, list):
		Screen.__init__(self, session)
		Rc.__init__(self)
		self.onSelChanged = []
		self["list"] = HelpMenuList(list, self.close, rcPos=self.getRcPositions())
		self["longshift_key0"] = Label("")
		self["longshift_key1"] = Label("")

		self["actions"] = ActionMap(["WizardActions"], {
			"ok": self["list"].ok,
			"back": self.close,
		}, -1)

		# Wildcard binding with slightly higher priority than
		# the wildcard bindings in
		# InfoBarGenerics.InfoBarUnhandledKey, but with a gap
		# so that other wildcards can be interposed if needed.

		self.onClose.append(self.doOnClose)
		eActionMap.getInstance().bindAction('', maxint - 100, self["list"].handleButton)

		# Ignore keypress breaks for the keys in the
		# ListboxActions context.

		self["listboxFilterActions"] = ActionMap(["ListboxHelpMenuActions"], {
			"ignore": lambda: 1,
		}, 1)

		self["helpActions"] = ActionMap(["HelpActions"], {
			"displayHelp": self.showHelp,
		})

		self.onLayoutFinish.append(self.doOnLayoutFinish)
Beispiel #2
0
 def __init__(self, session, list):
     Screen.__init__(self, session)
     Rc.__init__(self)
     self.setTitle(_("Help"))
     self["list"] = HelpMenuList(list,
                                 self.close,
                                 rcPos=self.getRcPositions())
     self["description"] = Label("")
     self["longshift_key0"] = Label("")
     self["longshift_key1"] = Label("")
     self["key_help"] = StaticText(_("HELP"))
     self["helpActions"] = ActionMap(
         ["HelpActions"], {
             "select": self["list"].ok,
             "cancel": self.close,
             "displayHelp": self.showHelp
         },
         prio=-1)
     # Wildcard binding with slightly higher priority than the
     # wildcard bindings in InfoBarGenerics.InfoBarUnhandledKey,
     # but with a gap so that other wildcards can be interposed
     # if needed.
     eActionMap.getInstance().bindAction("", maxsize - 100,
                                         self["list"].handleButton)
     # Ignore keypress breaks for the keys in the ListboxActions context.
     self["listboxFilterActions"] = ActionMap(["HelpMenuListboxActions"],
                                              {"ignore": lambda: 1},
                                              prio=1)
     self.onLayoutFinish.append(self.layoutFinished)
     self.onClose.append(self.closed)
Beispiel #3
0
 def __init__(self, session, list):
     Screen.__init__(self, session)
     Screen.setTitle(self, _('Help'))
     self.onSelChanged = []
     self['list'] = HelpMenuList(list, self.close)
     self['list'].onSelChanged.append(self.SelectionChanged)
     Rc.__init__(self)
     self['long_key'] = Label('')
     self['actions'] = ActionMap(['WizardActions'], {'ok': self['list'].ok,
      'back': self.close}, -1)
     self.onLayoutFinish.append(self.SelectionChanged)
Beispiel #4
0
    def __init__(self, session, list):
        Screen.__init__(self, session)
        self.onSelChanged = []
        self["list"] = HelpMenuList(list, self.close)
        self["list"].onSelChanged.append(self.SelectionChanged)
        Rc.__init__(self)
        self["long_key"] = Label("")

        self["actions"] = ActionMap(["WizardActions"], {
            "ok": self["list"].ok,
            "back": self.close,
        }, -1)

        self.onLayoutFinish.append(self.SelectionChanged)