add
authorRonny Strutz <ronny.strutz@multimedia-labs.de>
Sat, 12 Nov 2005 20:04:24 +0000 (20:04 +0000)
committerRonny Strutz <ronny.strutz@multimedia-labs.de>
Sat, 12 Nov 2005 20:04:24 +0000 (20:04 +0000)
-need an disable marker in List
-need to get all Infos

lib/python/Screens/ServiceInfo.py [new file with mode: 0644]

diff --git a/lib/python/Screens/ServiceInfo.py b/lib/python/Screens/ServiceInfo.py
new file mode 100644 (file)
index 0000000..03d03d8
--- /dev/null
@@ -0,0 +1,25 @@
+from Screen import Screen
+from Components.ActionMap import ActionMap
+from Components.Label import Label
+from Components.MenuList import MenuList
+
+class ServiceInfo(Screen):
+       def __init__(self, session):
+               Screen.__init__(self, session)
+
+               self["actions"] = ActionMap(["OkCancelActions"],
+               {
+                       "ok": self.close,
+                       "cancel": self.close
+               }, -1)
+       
+               Labels = ("Name", "Provider", "VideoPID", "AudioPID",
+                                                       "PCRPID", "PMTPID", "TXTPID", "Videoformat",
+                                                       "TSID", "ONID", "SID", "Namespace")
+       
+               tlist = [ ]
+
+               for item in Labels:
+                       tlist.append((item + ":",0))
+               
+               self["infolist"] = MenuList(tlist)