1 from Screen import Screen
3 from Components.MenuList import MenuList
4 from Components.ActionMap import ActionMap
5 from Components.PluginComponent import plugins
6 from Components.PluginList import *
7 from Components.config import config
10 class PluginBrowser(Screen):
11 def __init__(self, session):
12 Screen.__init__(self, session)
15 self["list"] = PluginList(self.list)
18 self["actions"] = ActionMap(["WizardActions"],
31 plugin = self.pluginlist[self["list"].l.getCurrentSelectionIndex()]
32 plugins.runPlugin(plugin, self.session)
36 self.pluginlist = plugins.getPluginList()
37 for x in self.pluginlist:
38 self.list.append(PluginEntryComponent(x[0], x[1]))
40 self["list"].l.setList(self.list)
43 self["list"].instance.moveSelection(self["list"].instance.moveUp)
46 self["list"].instance.moveSelection(self["list"].instance.moveDown)