+
+class MenuUpdater:
+ def __init__(self):
+ self.updatedMenuItems = {}
+
+ def addMenuItem(self, id, pos, text, module, screen, weight):
+ if not self.updatedMenuAvailable(id):
+ self.updatedMenuItems[id] = []
+ self.updatedMenuItems[id].append([text, pos, module, screen, weight])
+
+ def delMenuItem(self, id, pos, text, module, screen, weight):
+ self.updatedMenuItems[id].remove([text, pos, module, screen, weight])
+
+ def updatedMenuAvailable(self, id):
+ return self.updatedMenuItems.has_key(id)
+
+ def getUpdatedMenu(self, id):
+ return self.updatedMenuItems[id]
+
+menuupdater = MenuUpdater()
+
+class MenuSummary(Screen):
+ skin = """
+ <screen position="0,0" size="132,64">
+ <widget source="parent.title" render="Label" position="6,4" size="120,21" font="Regular;18" />
+ <widget source="parent.menu" render="Label" position="6,25" size="120,21" font="Regular;16">
+ <convert type="StringListSelection" />
+ </widget>
+ <widget source="global.CurrentTime" render="Label" position="56,46" size="82,18" font="Regular;16" >
+ <convert type="ClockToText">WithSeconds</convert>
+ </widget>
+ </screen>"""