store and restore pathes in channellist
[enigma2.git] / lib / python / Screens / About.py
1 from Screen import Screen
2 from Components.ActionMap import ActionMap
3 from Components.Label import Label
4 from Components.Harddisk import Harddisk
5 from Components.NimManager import nimmanager
6 from Components.MenuList import MenuList
7 from Components.About import about
8
9 class About(Screen):
10         def __init__(self, session):
11                 Screen.__init__(self, session)
12                 
13                 self["text"] = Label("Enigma v" + about.getVersionString())
14
15                 self["tuner"] = Label(_("Detected NIMs:"))
16                 
17                 nims = nimmanager.nimList()
18                 count = 0
19                 for i in nims:
20                         self["tuner" + str(count)] = Label(i[0])
21                         count += 1
22
23                 self["hdd"] = Label(_("Detected HDD:"))
24                 hdd = Harddisk(0)
25                 if hdd.model() != "":
26                         self["hddA"] = Label(_("%s (%s, %d MB free)") % (hdd.model(), hdd.capacity(),hdd.free()))
27                 else:                   
28                         self["hddA"] = Label(_("none"))
29
30                 self["actions"] = ActionMap(["SetupActions"], 
31                         {
32                                 "cancel": self.close,
33                                 "ok": self.close,
34                         })
35