dont allow any other mode then simple for slot A
[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
8 class About(Screen):
9         def __init__(self, session):
10                 Screen.__init__(self, session)
11                 
12                 self["text"] = Label("Enigma v2.0b")
13
14                 self["tuner"] = Label(_("Detected NIMs:"))
15                 
16                 nims = nimmanager.nimList()
17                 count = 0
18                 for i in nims:
19                         self["tuner" + str(count)] = Label(i[0])
20                         count += 1
21
22                 self["hdd"] = Label(_("Detected HDD:"))
23                 hdd = Harddisk(0)
24                 if hdd.model() != "":
25                         self["hddA"] = Label(_("%s (%s, %d MB free)") % (hdd.model(), hdd.capacity(),hdd.free()))
26                 else:                   
27                         self["hddA"] = Label(_("none"))
28
29                 self["actions"] = ActionMap(["SetupActions"], 
30                         {
31                                 "cancel": self.close,
32                                 "ok": self.close,
33                         })
34