+
+class MenuUpdater:
+ def __init__(self):
+ self.updatedMenuItems = {}
+
+ def addMenuItem(self, id, pos, text, module, screen):
+ if not self.updatedMenuAvailable(id):
+ self.updatedMenuItems[id] = []
+ self.updatedMenuItems[id].append([text, pos, module, screen])
+
+ def delMenuItem(self, id, pos, text, module, screen):
+ self.updatedMenuItems[id].remove([text, pos, module, screen])
+
+ 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>"""
+
+ def __init__(self, session, parent):
+ Screen.__init__(self, session, parent)