add very simple scan
[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                 self["hddA"] = Label("%s (%s, %d MB free)" % (hdd.model(), hdd.capacity(),hdd.free()))
25                 #self["hddA"] = Label("Seagate 398 GByte (323 GByte free)")
26
27                 self["actions"] = ActionMap(["SetupActions"], 
28                         {
29                                 "cancel": self.close,
30                                 "ok": self.close,
31                         })
32