show hdd capacity in aboutbox
[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
6
7 class About(Screen):
8         def __init__(self, session):
9                 Screen.__init__(self, session)
10                 
11                 self["text"] = Label("Enigma v2.0a")
12
13                 self["tuner"] = Label("Detected NIMs:")
14                 self["tunerA"] = Label("   Tuner A: Fujitsu QST (DVB-S)")
15                 self["tunerB"] = Label("   Tuner B: Fujitsu QST (DVB-S)")
16
17                 self["hdd"] = Label("Detected HDD:")
18                 hdd = Harddisk(0)
19                 self["hddA"] = Label("%s (%s)" % (hdd.model(), hdd.capacity()))
20
21                 self["actions"] = ActionMap(["SetupActions"], 
22                         {
23                                 "cancel": self.close,
24                                 "ok": self.close,
25                         })
26