from Components.ProgressBar import ProgressBar
from Components.config import configfile
from Components.Sources.Clock import Clock
+from Components.PluginComponent import plugins
from Tools.Directories import resolveFilename, SCOPE_SKIN
class MenuSummary(Screen):
skin = """
<screen position="0,0" size="132,64">
- <widget name="MenuTitle" position="0,4" size="132,21" font="Regular;18" />
- <widget name="MenuEntry" position="0,25" size="132,21" font="Regular;16" />
- <widget source="CurrentTime" render="Label" position="50,46" size="82,18" font="Regular;16" >
+ <widget name="MenuTitle" position="6,4" size="120,21" font="Regular;18" />
+ <widget name="MenuEntry" position="6,25" size="120,21" font="Regular;16" />
+ <widget source="CurrentTime" render="Label" position="56,46" size="82,18" font="Regular;16" >
<convert type="ClockToText">WithSeconds</convert>
</widget>
</screen>"""
# FIXME. somehow
if arg[0] != "":
exec "from " + arg[0] + " import *"
-
+
self.openDialog(*eval(arg[1]))
def nothing(self): #dummy
Screen.__init__(self, session)
list = []
- menuID = ""
-
- menuID = -1
+
+ menuID = None
for x in childNode: #walk through the actual nodelist
if x.nodeType != xml.dom.minidom.Element.nodeType:
continue
elif x.tagName == "id":
menuID = x.getAttribute("val")
count = 0
- if menuID != -1:
+
+ if menuID is not None:
+ # menuupdater?
if menuupdater.updatedMenuAvailable(menuID):
for x in menuupdater.getUpdatedMenu(menuID):
if x[1] == count:
list.append((x[0], boundFunction(self.runScreen, (x[2], x[3] + ", "))))
count += 1
+ if menuID is not None:
+ # plugins
+ for l in plugins.getPluginsForMenu(menuID):
+ list.append((l[0], boundFunction(l[1], self.session)))
self["menu"] = MenuList(list)